How to calculate work hours (with a free calculator)

The formula, a free work hours calculator, and worked examples for lunch breaks, AM/PM shifts, overnight shifts and weekly overtime.

Updated November 23, 2026 4 min read Calculator

The short answer

To calculate work hours, subtract the start time from the end time, then subtract unpaid breaks: 8:30 AM to 5:15 PM is 8 hours 45 minutes, minus a 45-minute lunch is 8 hours. To get decimal hours for payroll, divide the leftover minutes by 60, so 7 hours 45 minutes is 7.75 hours. Try it with the calculator below; it also handles shifts that end after midnight.

Work hours calculator

Hours worked8 h 0 min
in decimal8.00

The calculation runs only in your browser. Nothing is stored or sent.

The formula

Hours worked = end time − start time − unpaid breaks

It is easiest in three steps:

  1. Convert to 24-hour time. Add 12 to any PM hour from 1 PM on. 5:15 PM becomes 17:15. 12 PM (noon) stays 12:00, and 12 AM (midnight) becomes 0:00.
  2. Subtract start from end. If the end minutes are smaller than the start minutes, borrow 60 minutes from the hours. 17:15 − 8:30 = 16:75 − 8:30 = 8:45.
  3. Take off unpaid breaks. 8:45 − 0:45 = 8:00. Paid breaks stay in.

Worked examples

ShiftSpanUnpaid breakHours workedDecimal
8:30 AM – 5:15 PM8:4545 min8:008.00
7:45 AM – 4:10 PM8:2530 min7:557.92
9:00 AM – 1:20 PM4:200 min4:204.33
2:00 PM – 10:30 PM8:3030 min8:008.00
10:00 PM – 6:30 AM8:3030 min8:008.00

The second row shows why borrowing matters: 16:10 − 7:45 does not work directly, so write 16:10 as 15:70. 15:70 − 7:45 = 8:25. Minus 30 minutes is 7:55, and 55 ÷ 60 = 0.92, so 7.92 hours.

Minutes to decimal hours

Payroll systems and time card calculators often want decimal hours. Divide the minutes by 60 and round to two places:

MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

A common mistake is to write 7 hours 30 minutes as 7.30. It is 7.50. Writing 7.30 underpays you by 12 minutes.

AM/PM pitfalls

  • 12 PM is noon, 12 AM is midnight. A shift from 12:00 PM to 8:00 PM is 8 hours, not 20.
  • Do not subtract across AM and PM directly. 4:10 PM − 7:45 AM is not 3:35. Convert to 24-hour time first: 16:10 − 7:45 = 8:25.
  • Check the end time on long shifts. A 6:00 AM to 6:00 PM shift is 12 hours; it is easy to read it as 0.

Shifts over midnight

When the end time is earlier than the start time, the shift crossed midnight. Add 24 hours to the end time, then subtract: 10:00 PM to 6:30 AM becomes 22:00 to 30:30, which is 8:30. Minus a 30-minute break, that is 8 hours. The calculator above does this for you. For which day such a shift counts on, and other night-shift questions, see night shift hours calculation.

Weekly total and overtime

Add up the daily hours in minutes or in decimal, never mixed. Here is one example week:

DayHours workedDecimal
Monday8:008.00
Tuesday8:008.00
Wednesday9:309.50
Thursday8:458.75
Friday9:009.00
Total43:1543.25

Under the federal Fair Labor Standards Act (FLSA), non-exempt employees get overtime for hours over 40 in a workweek, paid at 1.5 times their regular rate. In this week that is 3.25 overtime hours. With a regular rate of, say, $20 per hour:

  • Regular pay: 40 × $20 = $800.00
  • Overtime pay: 3.25 × $30 = $97.50
  • Gross pay for the week: $897.50

Note: Federal law counts overtime per workweek, not per day. Some states have their own rules, for example California has daily overtime for hours over 8 in a day. Exempt employees do not get FLSA overtime. Check your state's rules and your contract.

If you write your hours on paper, the free timesheet template has rows for start, end, break and hours, plus a total.

How Horello helps

Horello is an iPhone app that does this math for you as you work.

  • Clock in and out, or log a shift later. Use the live timer with breaks, or enter a shift after it happened.
  • Breaks you record are taken off. Night shifts over midnight count correctly, and you can log many shifts per day.
  • Weekly totals and gross pay. Set an hourly rate per job and see your gross pay per week. Pay periods can be weekly, every 2 weeks, twice a month or monthly.
  • Free weekly export. Export any week as a plain PDF or CSV; the CSV opens in Excel or Numbers.
  • Pro extras. An overtime balance across weeks and months against your weekly target, a whole month or pay period in one file, more than one job, and rounding rules are part of Horello Pro. See pricing.

Horello shows rest and long-day warnings, but it does not check US federal or state labor law. It stores your hours only on your iPhone, with no account. Horello is coming soon to the App Store.

Frequently asked questions

How do I calculate hours worked in a day?

Subtract the start time from the end time, then subtract any unpaid break. For example, 8:30 AM to 5:15 PM is 8 hours 45 minutes; minus a 45-minute lunch, that is 8 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5, 45 minutes is 0.75, so 7 hours 45 minutes is 7.75 hours.

When do I get overtime in the US?

Under the federal Fair Labor Standards Act, non-exempt employees get overtime for hours over 40 in a workweek, paid at 1.5 times the regular rate. Some states have extra rules, such as daily overtime in California, so check your state.

How do I calculate hours for a shift that ends after midnight?

Add 24 hours to the end time before you subtract. 10:00 PM to 6:30 AM becomes 22:00 to 30:30, which is 8 hours 30 minutes before breaks.

Horello App-Icon

Let your hours add themselves up

Horello records start, end and breaks on your iPhone and shows your weekly hours and gross pay, night shifts included.

Coming soon to theApp Store

Free: unlimited tracking and a weekly export. Pro is optional.

Horello is in beta (TestFlight) and comes to the App Store soon.