Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Hours calculator

Enter a start and end time to get the hours worked, with an unpaid break taken off and the total in decimal hours.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Adding up a whole week of shifts? Use the time card calculator, which adds overtime and pay.

How hours are calculated

Minutes = end − start (add 24 hours if the end is earlier, for overnight)
Worked = minutes − break
Decimal hours = worked minutes ÷ 60

Times are turned into minutes after midnight first. 9:00 AM is 540, and 5:30 PM is 1,050.

Worked example

From 9:00 AM to 5:30 PM with a 30-minute lunch: 1,050 − 540 = 510 minutes. Minus 30 is 480 minutes, which is 8 hours (8.00 decimal).

An overnight shift from 10:00 PM to 6:15 AM: the end is earlier than the start, so add 24 hours. (375 + 1,440) − 1,320 = 495 minutes. With a 45-minute break that's 450 minutes, or 7 hours 30 minutes (7.50).

Minutes to decimal hours

MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

Don't type 8:30 as 8.30 on a payroll form: 30 minutes is half an hour, so it's 8.50.

Limitations

  • Shifts over 24 hours can't be shown with two clock times. Use the time calculator to add up long durations.
  • Daylight saving nights. A shift across the spring or fall clock change is really an hour shorter or longer than the clock times suggest.
  • Paid breaks. Under federal rules, short breaks of about 20 minutes or less are paid work time (U.S. Department of Labor). Only enter breaks that are unpaid, typically meal breaks of 30 minutes or more.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 9:00 AM to 5:30 PM with a 30-minute break: 8 hours ✓
  • 10:00 PM to 6:15 AM overnight, 45-minute break: 7.50 hours ✓
  • 8:15 AM to 12:05 PM: 3 hours 50 minutes = 3.83 hours ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do I calculate hours worked?

Subtract the start time from the end time, then take off any unpaid break. 9:00 AM to 5:30 PM with a 30-minute lunch is 8 hours.

How do I calculate hours for an overnight shift?

If the end time is earlier than the start, add 24 hours to it. 10 PM to 6 AM is 8 hours. The calculator does this automatically.

How do I convert minutes to decimal hours?

Divide by 60. 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75.

What is 8:15 AM to 12:05 PM?

3 hours 50 minutes, or 3.83 hours.

Related calculators