How to calculate overtime pay in Excel

This is not legal, tax, or wage advice. The rates are a sample for the week of Monday, November 16, 2026. They are not a pay quote.

The split is the one on the overtime pay page. The first 40 hours are at the straight rate. Hours after that are at 1.5 times that rate. The Department of Labor’s overtime page is the federal rule this sheet is copying: covered nonexempt employees get overtime pay for hours worked over 40 in a workweek, at not less than one and one-half times the regular rate. Daily overtime, a seventh-day rule, and exempt salaried work are different tests. The formulas below only split the hours you type in.

Riley worked 46 hours at $20. Straight time is 40 × 20 = 800. Overtime is 6 × 30 = 180. Pay is $980. Sam worked 38 hours at $18. There is no hour past 40, so pay is 38 × 18 = $684. Jordan worked 42.5 hours at $17.50. The unrounded pay is $765.625, and the cent on the paycheck is $765.63.

The workbook that collects a week of shifts is the timesheet calculator.

xl.overtime.pay
=MIN(B2,40)*C2+MAX(0,B2-40)*C2*1.5
=MIN(B2,40)*C2+MAX(0,B2-40)*C2*1.5D2
Week of November 16
ABCD
1NameHoursRatePay
2Riley4620$980
3Sam3818$684
4Jordan42.517.5$765.63
5Total$2,429.63
A picture of three sample weeks. Riley is 40 times $20 plus 6 times $30, which is $980. Sam has no hours over 40, so the overtime piece is 0 and the pay is $684. Jordan's unrounded pay is $765.625. The total uses the rounded cent, $765.63. 980 + 684 + 765.63 = 2,429.63.

The 40-hour split

MIN of the hours and 40 is the straight-time piece. MAX of 0 and the hours minus 40 is the overtime piece. A short week stays at 0 overtime, because 38 − 40 is negative and MAX with 0 throws that negative away.

MAX
=MAX(0,B2-40)
=MAX(0,B2-40)B4
Riley's split
AB
1Value
2Hours46
3Straight hours40
4Overtime hours6
5Pay$980
A picture of the 46-hour week. MIN caps the straight hours at 40. MAX of 46 minus 40 is 6. Those 6 hours are paid at $30, which is 20 times 1.5. 800 + 180 = 980.
=MIN(B2,40)*C2+MAX(0,B2-40)*C2*1.5

For Riley that is MIN(46,40)*20+MAX(0,46-40)*20*1.5, which is 800 + 180 = 980. For Sam it is MIN(38,40)*18+MAX(0,38-40)*18*1.5. The MAX is 0, and the pay is 684.

xl.overtime.pay is that formula as a name:

=xl.overtime.pay(46,20)
=xl.overtime.pay(38,18)
=xl.overtime.pay(42.5,17.5)

Those return 980, 684, and 765.625. The name does not round. Jordan’s third result is 765.625, and ROUND to two decimals is 765.63:

=ROUND(xl.overtime.pay(42.5,17.5),2)

40 × 17.50 is 700. The 2.5 overtime hours are paid at 17.50 × 1.5 = 26.25. 2.5 × 26.25 is 65.625. 700 + 65.625 is 765.625. Half a cent rounds away from zero in Excel’s ROUND, so the displayed pay is $765.63. Adding the already-rounded pays is the total on the sheet: 980 + 684 + 765.63 = $2,429.63.

The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME?. MIN, MAX, and ROUND work without it. Saving the name is the same Name Manager step as the LAMBDA how-to.

A week of exactly 40 hours has an overtime piece of 0. At $22 that pay is 40 × 22 = $880. Two jobs in one week have to be added before the 40-hour test if the week, rather than each shift, is the number you meant to pass. The overtime-pay page says the function does not build double time or a blended rate. Pass the rate the week should use.


Template for this article

Timesheet Calculator with Overtime

More from the blog