Why do I need linear equations to check my paycheck?

Hourly pay is a straight line: rate times hours. Overtime bends that line upward after 40 hours, because each extra hour pays one and a half times the rate. Writing the pay as two linear pieces lets you check a paycheck, compare job offers, and see exactly what a few extra hours are worth.

overtime after 40 h$704.00slope: $22/h, then $33/h
Pay this week
$704.00
Overtime pay
$0.00
Average per hour
$22.00

Challenge: Earn at least $1,000 in a week with no more than 5 overtime hours.

$
More settings

Play

Slide the hours past 40 and watch the line bend upward.

Challenge: Earn at least $1,000 in a week with no more than 5 overtime hours. The box under the picture turns green when you get it.

Stuck? Pick one of the examples from the “Try an example” menu, or press “New example.”

Understand

P=rmin⁡(h,40)+1.5 rmax⁡(0,h−40)P = r\min(h, 40) + 1.5\,r\max(0, h - 40)

Pay grows in a straight line with a slope equal to your hourly rate. At the overtime threshold the slope changes to 1.5r1.5r, so the graph has a bend. A function made of straight pieces like this is called piecewise linear:

P(h)=rmin⁡(h,40)+1.5rmax⁡(0,h−40)P(h) = r\min(h, 40) + 1.5r\max(0, h - 40)

Use

Every input has a unit menu, so you can type values in the units you already have. Results follow your units.

Show the work

  1. Regular hours32\ \text{h} \times \$22 = \$704.00
  2. Overtime hours0\ \text{h} \times 1.5 \times \$22 = \$0.00
  3. Total\$704.00 + \$0.00 = \$704.00

Export

Export PDF

Enter your rate and hours. In "More settings," change when overtime starts or switch to double time. The average per hour shows how overtime raises your effective rate.

  • Check your local labor law: some places also pay overtime after 8 hours in a day.
  • Salaried workers are often exempt from overtime.

For learning and estimation. Verify with applicable codes, standards, and a qualified professional before using in design, construction, or safety-critical work.

Cheat card

P=rh(h≤40)P = r h \quad (h \le 40)
P=40r+1.5r(h−40)(h>40)P = 40r + 1.5r(h - 40) \quad (h > 40)
SymbolMeaningUnit
rrhourly rate$/h
hhhours worked in the weekh
PPweekly pay before taxes$
  • Overtime usually starts after 40 hours in a week, not 8 hours in a day, but some places count both.
  • The slope of the line is your pay per hour. It jumps at 40 hours.
  • Taxes come out after this, so take-home pay is lower.

Print this card

Where it’s used

Questions people ask

How is time and a half calculated?

Multiply your hourly rate by 1.5 for each hour over 40. At $20 an hour, overtime pays $30 an hour.

Why is this called piecewise linear?

The pay line is made of two straight pieces with different slopes, joined at 40 hours.

Does overtime change my regular hours' pay?

No. The first 40 hours are paid at the regular rate; only the hours after that get the higher rate.