Hours Calculator (Time Duration Between Two Times)
Hours and minutes between a start and an end time.
Inputs
- In decimal hours
- 8.00
- In minutes
- 480
- Before the break
- 8 h 30 min
Use this calculator on your own site
Free embed
- Two lines of HTML, unlimited views
- Shows a small CalculateEveryday bar, with a credit link under the calculator
What each Hours input means
- Start time
- The start time. The box follows your device's 12- or 24-hour clock.
- End time
- The end time. One earlier than the start is read as the next day, for night shifts.
- Unpaid break
- Unpaid break time in minutes, taken off the total. Leave it at 0 if breaks are paid.
Hours formula
minutes = end − start (add 1,440 if the end is earlier than the start), minus the break; decimal hours = minutes ÷ 60
Both times are turned into minutes after midnight and subtracted. If the end comes out earlier than the start, the span crossed midnight, so a full day of 1,440 minutes is added — 22:00 to 06:00 is 480 minutes, not −960. Any unpaid break is taken off, and the result is shown as hours and minutes, as decimal hours — the form you multiply by an hourly rate — and as plain minutes, with the length before the break for checking against a rota. The page handles one span; for a week of shifts with overtime, the time card calculator adds them up.
Formula last checked against Arithmetic only — times as minutes after midnight on a 24-hour clock; 1 hour = 60 minutes, 1 day = 1,440 minutes on 2 October 2026. Built and maintained by Suman Kumar · How we check
Hours worked example
From 09:00 to 17:30 is 510 minutes. Taking off a 30-minute break leaves 480 minutes: 8 h 0 min, or 8.00 decimal hours.
More Hours examples
A night shift from 22:00 to 06:30 with a 30-minute break: the end is earlier than the start, so it is read as the next morning — 8 h 30 min on the clock, 8 h 0 min worked, 8.00 decimal hours.
08:45 to 17:15 with a 45-minute lunch: 8 h 30 min less the break is 7 h 45 min, or 7.75 hours to multiply by the hourly rate.
A 12-hour night shift from 19:00 to 07:00 with an hour's unpaid break: 11 h 0 min paid, 11.00 decimal hours.
Where the Hours calculator can give the wrong answer
- Decimal hours are not hours-and-minutes with a dot. 7 h 30 min is 7.50 hours, not 7.30 — multiplying 7.30 by a pay rate underpays by 12 minutes.
- An end time earlier than the start is read as the next day, so 22:00 to 06:00 is 8 hours. The page says when it has done this. Spans longer than 24 hours need the date difference calculator instead.
- Entering the same time twice gives zero, not 24 hours.
- Clock changes are ignored. On the night daylight saving time starts or ends, a shift across 02:00 is really an hour shorter or longer than shown.
Spotted a mistake? Tell us
Hours reference table
| Shift | Unpaid break | Hours and minutes | Decimal hours |
|---|---|---|---|
| 09:00–17:00 | None | 8 h 0 min | 8.00 |
| 09:00–17:00 | 30 min | 7 h 30 min | 7.50 |
| 08:00–16:30 | 30 min | 8 h 0 min | 8.00 |
| 07:00–15:30 | 30 min | 8 h 0 min | 8.00 |
| 08:45–17:15 | 45 min | 7 h 45 min | 7.75 |
| 19:00–07:00 | 60 min | 11 h 0 min | 11.00 |
Hours FAQ
- Use the time card calculator. It takes one row per shift, totals them, and splits out overtime after 40 hours.
- Whichever your device is set to — the time boxes follow your phone or computer's own format. The arithmetic underneath is always on a 24-hour clock.
- 8 hours — 480 minutes. With a 30-minute unpaid lunch it is 7.5 hours.
- Enter the start and end as they happened, for example 22:00 and 06:00. An end time earlier than the start is read as the next morning: 8 hours.
- Divide the minutes by 60: 7 hours 45 minutes is 7.75 hours. The page shows both forms.
- Add the hours and the minutes separately, then carry each 60 minutes into an hour: 3 h 45 min + 2 h 30 min = 5 h 75 min = 6 h 15 min. In decimal hours it is simply 3.75 + 2.5 = 6.25.
- 8 hours 30 minutes, or 8.5 hours. With a 30-minute unpaid lunch it is 8 hours.
- 12 hours. With a one-hour unpaid break, 11.
- Run each part separately and add them: 07:00–11:00 and 16:00–20:00 is 4 + 4 = 8 hours. The time card calculator takes one row per part and totals them.
- No — clock changes are ignored, so on the night the clocks go forward or back, a shift across 2 am is an hour shorter or longer than shown.
Related calculators
- Time Card Calculator (Time Clock Hours & Overtime)
- Duration Calculator: Hours, Minutes, Seconds to Decimal Hours
- Salary to Hourly Calculator (and Hourly to Salary)
- Time Zone Converter: Convert Time Between UTC Offsets
- Paycheck Calculator (2026 Take-Home Pay, All 50 States)
- Sleep Cycle Calculator (Best Time to Wake Up or Go to Bed)