Hours Calculator

Enter a start and end time (and any unpaid break) to get the duration in hours and minutes, decimal hours and, optionally, your pay.

How the hours between two times are calculated

The calculator turns both times into minutes after midnight, subtracts, and then removes any break:

duration = (end − start) − break

If the end time is earlier than the start time, the shift is assumed to cross midnight and 24 hours (1,440 minutes) are added. For example, 22:00 to 06:00 is (360 − 1,320 + 1,440) = 480 minutes = 8 hours. The result is shown both as hours and minutes (8:00) and as decimal hours (8.00), because payroll systems and invoices almost always need the decimal form.

Example: a 9:00 to 17:30 workday

  1. Convert to minutes: 9:00 = 540, 17:30 = 1,050.
  2. Subtract: 1,050 − 540 = 510 minutes = 8 h 30 min.
  3. Remove a 30-minute unpaid lunch: 510 − 30 = 480 minutes = 8 h 00 min = 8.00 hours.
  4. At $25 per hour the day is worth 8 × $25 = $200.

In multiple-shift mode you can add a second block — for example an evening shift from 18:00 to 20:00 — and the calculator totals all the blocks.

Decimal hours vs hours and minutes

A common payroll mistake is to type 7:45 as 7.45. Minutes are sixtieths of an hour, so 45 minutes is 45 ÷ 60 = 0.75 h and 7:45 is 7.75 hours. Typing 7.45 would underpay by 18 minutes.

MinutesDecimal
150.25
300.50
450.75
200.33
400.67

For a full rounding table, use the time to decimal calculator. For a whole week with overtime, use the time card calculator.

Breaks, rounding and labor rules

Under US federal rules, short rest breaks (usually 5–20 minutes) are paid working time, while bona fide meal periods of 30 minutes or more, during which you are fully relieved of duty, can be unpaid. Many employers round punches to the nearest 5, 6 or 15 minutes; the rounding must average out and not systematically favor the employer. Rules differ by state and country, so check your local labor regulations or employment contract before relying on any figure. Keeping an accurate daily record also protects you if a pay dispute ever arises.

Frequently asked questions

How do I calculate hours worked overnight?

If the end time is earlier than the start time, add 24 hours to the end. 23:00 to 07:00 is 8 hours. The calculator does this automatically.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours: 6 h 20 min = 6 + 20/60 = 6.33 hours.

Should lunch breaks be subtracted?

Subtract unpaid meal breaks only. Short paid rest breaks count as working time under US federal law.

How many hours is 8 am to 5 pm?

9 hours, or 8 hours after a one-hour unpaid lunch.

Sources & references

Last reviewed: