Calculate Overtime Pay (Time and a Half)

Excel Formulas › HR & Payroll

All versions

Anything over 40 hours a week is usually paid at 1.5×. A clean formula splits the hours and totals regular plus overtime pay in one step.


Quick formula: Pay regular hours at the rate and overtime at 1.5×:
=MIN(Hours,40)*Rate + MAX(Hours-40,0)*Rate*1.5

MIN and MAX split the hours so you never double-count.

Functions used (tap for the full reference guide):

The example

An employee worked 46 hours at $20/hour. The first 40 are regular; 6 are overtime.

AB
1ItemValue
2Hours worked46
3Hourly rate$20
4Gross pay$980

The formula

MIN caps regular hours at 40; MAX pulls out anything above 40 as overtime:

=MIN(B2,40)*B3 + MAX(B2-40,0)*B3*1.5 // regular pay + overtime at time-and-a-half

How it works

The two halves:

  1. MIN(B2,40) gives regular hours — 40 even though 46 were worked.
  2. MAX(B2-40,0) gives overtime hours — 6, and never a negative number for short weeks.
  3. Regular pay is 40 × $20 = $800; overtime is 6 × $20 × 1.5 = $180.
  4. Add them for gross pay of $980. If hours are 40 or fewer, the overtime term is zero.

The MAX(...,0) guard is what keeps a 35-hour week from producing negative overtime.

Try it: interactive demo

Interactive

Enter hours and rate; see regular, overtime, and gross pay.

Variations

Double time over 60 hours

Add a third tier for hours beyond 60 at 2×.

=MIN(B2,40)*B3+MIN(MAX(B2-40,0),20)*B3*1.5+MAX(B2-60,0)*B3*2

Overtime hours only

Just the OT count, for a separate column.

=MAX(B2-40,0)

Pitfalls & errors

Without the MAX(...,0) guard, weeks under 40 hours produce a negative overtime term and undercount pay.

Overtime rules vary — some states use daily overtime over 8 hours. Confirm the rule that applies before relying on the 40-hour split.

Practice workbook

📊
Download the free Calculate Overtime Pay (Time and a Half) practice workbook
Edit the yellow hours and rate; regular, overtime, and gross pay update.

Frequently asked questions

What counts as overtime?
Federally in the US, hours over 40 in a workweek are paid at 1.5×. Some states add daily overtime rules — always confirm the rule that applies.
Why use MIN and MAX instead of IF?
MIN/MAX split the hours cleanly without nesting. An IF version works too but is wordier and easier to get wrong.
How do I add double time?
Layer a third term for hours past your double-time threshold at 2×, as shown in the variation.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Round time to the quarter hour

Function references: MINMAXIF