FormulaCraft

How to calculate overtime pay in Excel and Google Sheets

Topic:Finance basics
Excel & Google Sheets
=MIN(A2,40)*B2+MAX(0,A2-40)*B2*1.5

Verified example

Computed by a real spreadsheet engine on the sample data below.

Hours WorkedHourly RateTotal Pay
4520
3825
5218
4030

=MIN(A2,40)*B2+MAX(0,A2-40)*B2*1.5950

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Column A = Total Hours Worked, Column B = Hourly Rate.
  2. 2In C2 enter =MIN(A2,40)*B2+MAX(0,A2-40)*B2*1.5.
  3. 3MIN(A2,40) caps regular hours at 40; MAX(0,A2-40) returns overtime hours (0 if none); multiply overtime by 1.5x rate.
  4. 4Adjust 40 to your jurisdiction's threshold and 1.5 to your overtime multiplier.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

How do I handle double-time for hours over 60?

Nest additional tiers: =MIN(A2,40)*B2+MIN(MAX(0,A2-40),20)*B2*1.5+MAX(0,A2-60)*B2*2.

What if the overtime threshold is daily (e.g., 8 hours/day)?

Apply the same formula per row for each day, with A2 = hours that day. Then SUM the daily totals.

More on Finance basics

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: