Hourly pay calculator in Excel: hours, overtime, gross pay

Hours times the hourly rate sounds simple until a week goes over 40 hours or the pay has to fit a budget. This calculator adds up two workweeks, splits regular and overtime hours per week, works out gross pay and checks the rate against the minimum wage you enter. You will also learn how to build it.

Important: this template is a calculation aid, not tax or legal advice. You are responsible for the figures. Check the minimum wage, the overtime rules that apply to the employee and every result against official sources (dol.gov, your state labor department, gov.uk), your payroll provider or an adviser before you pay anyone.

In short: gross pay is =ROUND(hours*rate,2), overtime hours per week are =MAX(0,hours-40) and the hours that fit a budget are =ROUNDDOWN(budget/rate,2). An IF warns when the rate is below the minimum wage or pay is over budget.

What you need: SUM, ROUND and IF.

Try it now

A part-time employee works 89.5 hours in a month at 18.50 an hour, with a budget of 1,700. Does the pay fit, and how many hours would?

Task A part-time employee works the hours below. In B4, total the hours. In B5, work out gross pay (hours times rate). In B6, work out how many hours fit into the budget (rounded down to 2 decimals). In B7, show "over budget" when gross pay is above the budget, otherwise "ok".

ABC
1 Hourly rate 18.5
2 Monthly budget 1700
3
4 Hours this month
5 Gross pay
6 Hours within budget
7 Check
8
9 Week Hours
10 Week 1 21
11 Week 2 19.5
12 Week 3 22
13 Week 4 18
14 Week 5 9
15
16

Download the hourly pay calculator

The workbook has a Pay sheet that prints on one Letter page and an Instructions sheet. Enter the rate, the first day of the workweek and the hours for each of 14 days. Yellow cells are inputs; the formulas are protected without a password. The sheet carries the note that you must check the figures yourself.

Preview of the hourly pay calculator in Excel: a note that the user is responsible for the figures, hourly rate, workweek start, overtime rule, hours for two workweeks, regular and overtime hours, gross pay, hours within a budget and minimum wage for referenceEnlarge preview

Download the finished template

The finished Excel file hourly-pay-calculator.xlsx, with sample rows and instructions, is free. All you need is a free account: no subscription, no payment details.

Figures, rates and sample data in the templates are as of 13 November 2026, without guarantee. Check that they still apply to you. The templates are mainly meant to show how to build this in Excel.

Create a free account and download the template Already have an account? Log in

How the calculator is laid out

CellContentFormula
A14:A2714 dates from the first day of the workweek=$B$6, =$B$6+1, …
G5, G6Hours in week 1 and week 2=SUM(C14:C20)
G8Regular hours=MIN(G5,G7)+MIN(G6,G7)
G9Overtime hours=G5+G6-G8
G12Gross pay=ROUND(G10+G11,2)
G13Hours within the budget=ROUNDDOWN(B11/B5,2)

The overtime rule is a dropdown: over 40 hours a week as under the US FLSA, over the contract hours, or no overtime premium. Weeks that go over the threshold are shaded.

Overtime per workweek with MAX

Under the FLSA, non-exempt employees get at least 1.5 times their regular rate for hours over 40 in a workweek, and the workweek is a fixed period of seven days that can start on any day (dol.gov). Overtime is counted per week, not averaged over the pay period: 46 hours plus 38 hours means 6 overtime hours, even though the two weeks average 42. Some states also have daily overtime rules; check yours. In the UK there is no legal overtime premium, so the contract decides.

MAX(0,hours-40) gives the overtime hours and turns a short week into 0 instead of a negative number. Practice it for a list of employees:

Task In D2, work out the overtime pay: hours over 40 in the week, times the hourly rate, times the multiplier in F2, rounded to cents. Weeks with 40 hours or fewer must show 0, not a negative amount. The formula is then filled down to D6.

ABCDEF
1 Employee Hours this week Hourly rate Overtime pay Overtime after 40
2 Maria Lopez 46 18.5 Multiplier 1.5
3 James Carter 38 22
4 Aisha Khan 52 16.75
5 Tom Becker 40 25
6 Daniel Kim 44.5 19.2

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

Minimum wage check

The federal minimum wage is $7.25 an hour; where a state or city sets a higher minimum, the employee gets the higher one (dol.gov). In the UK the rates from 1 April 2026 are £12.71 for workers aged 21 and over, £10.85 for 18 to 20 and £8.00 for under 18 and apprentices (gov.uk). The sheet shows these for reference, checked on 11 November 2026. Enter the rate that applies to the employee, and IF warns when the hourly rate is below it.

gov.uk explains what counts as pay and as working time for the UK minimum wage. The check here only compares the hourly rate, so look there for the full rules.

Hours within a budget

To plan shifts, divide the budget by the rate. ROUNDDOWN keeps the answer under the budget: at 18.50 and a budget of 1,700, 91.89 hours fit, while 91.90 would already cost 1,700.15. The plain division ignores overtime, so plan below the threshold or keep an eye on the overtime line.

Common mistakes

Averaging overtime over two weeks

The FLSA looks at each workweek on its own. One long week and one short week still create overtime.

Rounding up the hours that fit

A rounded-up figure can push pay over the budget. Use ROUNDDOWN for limits.

Forgetting the $

When the threshold or multiplier sits in one cell, copy the formula down with absolute references such as $F$1.

Hours in h:mm

7:30 in a time format is 0.3125 of a day. Enter decimal hours (7.5) or multiply a time by 24 first. Round to cents with ROUND.

Hourly pay formulas in German Excel

The German version is a Minijob-Abrechnung: hours times rate, the maximum hours under the minijob earnings limit of 603 euros and the employer's flat-rate contributions.

EnglishGerman
SUM, ROUNDSUMME, RUNDEN
ROUNDDOWNABRUNDEN
MAX, MIN, IFMAX, MIN, WENN

German Excel uses semicolons: =ABRUNDEN(B2/B1;2).

Which Excel versions support this?

According to Microsoft, SUM, ROUND, ROUNDDOWN, MIN, MAX and IF work in Excel 2016, 2019, 2021, 2024 and Microsoft 365, on Windows and Mac. No newer functions are needed.

FAQ

Does the calculator work out take-home pay?

No, it stops at gross pay. For withholding, Social Security, Medicare, PAYE and National Insurance use the payroll template.

Can I use it for a weekly pay period?

Yes. Fill in the first seven days only; week 2 stays empty and adds nothing.

Is time and a half required in the UK?

No. UK law does not require an overtime premium; the contract sets it. Choose "Over contract hours" and the multiplier from the contract, or "No overtime premium".

Am I responsible for the results?

Yes. The calculator is a calculation aid. Check the minimum wage and overtime rules that apply and every result against official sources, your payroll provider or an adviser.

Is the template free?

Yes. Download the Excel file with a free account, no subscription and no payment details.

To record start and end times with breaks, use the weekly timesheet; for flexitime balances, the overtime tracker. More on SUM in the lesson, and all templates on the Excel templates page.

Next up: payroll template

A payroll register with Social Security up to the wage base, Medicare, net pay and employer cost.

Open the payroll template

Write to us

Choose language

Select your preferred language