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

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

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

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

Last reviewed: