Quick answer: 9:00 AM to 5:30 PM is 8 hours 30 minutes (8.50 decimal hours) before breaks. Take off a 30-minute lunch and the paid time is 8 hours.
Need real elapsed time across time zones or a clock change? Use the second tab.
Enter one or more clock-time blocks. An end earlier than the start counts as the next day. Choose Next day for a full 24-hour block. This tab is clock-time arithmetic; use the dates tab when a clock change is involved.
Blocks are added as independent durations. Overlapping clock times count twice; this is not an overlap-removal or payroll-compliance tool. Block settings are saved only in this browser.
For travel, remote meetings and overnight clock changes, pick a zone for each date and time. Nonexistent clock times are rejected. If a clock hour repeats, choose its first or second occurrence.
Actual elapsed time is the difference between two UTC instants. Your browser’s time-zone database supplies the offsets, so an out-of-date browser may miss recent law changes.
Add or subtract days, hours and minutes from a displayed clock time. This is calendar and clock arithmetic, not elapsed time across a clock change. Use the dates tab for that.
Hours Between Two Times: Examples and Answers
The first six rows are plain clock-time durations. The last four are real elapsed time across a clock change, which only the dates tab calculates correctly.
| Question or scenario | Start → End | Break | Duration | Decimal hours |
|---|---|---|---|---|
| How many hours is 9 to 5? | 9:00 AM → 5:00 PM | None | 8h 00m | 8.00 |
| How many hours is 9 to 5:30? | 9:00 AM → 5:30 PM | None | 8h 30m | 8.50 |
| 9 to 5:30 with a lunch break | 9:00 AM → 5:30 PM | 30 min | 8h 00m | 8.00 |
| 10 PM to 6:30 AM overnight | 10:00 PM → 6:30 AM next day | 30 min | 8h 00m | 8.00 |
| Short meeting | 1:15 PM → 2:50 PM | None | 1h 35m | 1.5833 (4dp) |
| Two separate blocks | 9 AM to 12 PM, then 1 PM to 5 PM | None | 7h 00m total | 7.00 |
| New York spring clock change, March 13 to 14, 2027 | 10 PM → 6 AM next day | None | 7h real elapsed | 7.00 |
| New York autumn clock change, November 6 to 7, 2027 | 10 PM → 6 AM next day | None | 9h real elapsed | 9.00 |
| London spring clock change, March 27 to 28, 2027 | 10 PM → 6 AM next day | None | 7h real elapsed | 7.00 |
| London autumn clock change, October 30 to 31, 2027 | 10 PM → 6 AM next day | None | 9h real elapsed | 9.00 |
US clocks change on March 14 and November 7, 2027. UK and EU clocks change on March 28 and October 31, 2027. The US and UK dates differ, so the gap between New York and London shifts for a couple of weeks twice a year. Dates reflect the rules in force at the review date.
How to Calculate Time Duration Manually
1. Subtract start from end
Convert both times into minutes after midnight: multiply each hour by 60, then add the minutes. Subtract the start total from the end total.
For 9:40 AM to 5:15 PM, the difference is 1,035 − 580 = 455 minutes, or 7 hours 35 minutes.
2. Handle a shift crossing midnight
If the end clock time is earlier than the start, add 24 hours to the end before subtracting. For 10:00 PM to 6:30 AM, the clock-time span is 8 hours 30 minutes. A 30-minute unpaid break leaves 8 hours.
For a full 24-hour period with matching start and end times, choose the Next day setting explicitly.
3. Convert minutes into decimal hours
Divide the minutes by 60. 7h 45m = 7.75 decimal hours, while 8h 20m = 8.3333… decimal hours.
Displayed decimals are rounded. The calculator keeps the full seconds in its totals.
Time Duration Calculator FAQs
How many hours are between two times?
Subtract the start from the end. For example, 9:00 AM to 5:30 PM is 8 hours 30 minutes, or 8.50 decimal hours. Use the first tab to add unpaid breaks or several intervals.
Does the calculator handle overnight shifts?
Yes. If the end clock time is earlier than the start in the first tab, it assumes the next day. When both times are identical, choose Next day for a full 24 hours. For clock-change nights, use the dates tab.
Why is a 10 PM to 6 AM shift only 7 hours on some nights?
On the night clocks spring forward, one clock hour never happens, so 10 PM to 6 AM is 7 real hours. On the night clocks fall back, an hour repeats and the same shift is 9 real hours. The dates tab shows this for the US and UK examples.
How does it calculate real time through daylight saving changes?
The second tab maps each local date, time and time zone to a UTC instant. If a local time does not exist, it asks for a valid time. If a local time happens twice, you choose the first or second occurrence.
Can I total several blocks and deduct breaks?
Yes. Add up to 60 independent time blocks, each with its own break. Overlapping blocks are counted twice because the tool sums durations rather than merging occupied hours.
Can I use the results in Excel?
Yes. Export CSV gives block labels, times, break lengths, gross and net seconds, and decimal hours. To convert an existing column of HH:MM values, use the Hours to Decimal Calculator.
What is the difference between 8:30 and 8.30?
8:30 as a duration is eight hours thirty minutes, which equals 8.50 decimal hours. 8.30 decimal hours is eight hours and eighteen minutes. Use a colon for clock time and a period for decimal hours.
Is my data saved?
The first tab keeps your time blocks in this browser’s local storage so they survive a reload. Nothing is uploaded. Reset clears the saved blocks. Avoid entering sensitive details on a shared device.
Does this calculate payable hours under local employment rules?
No. It calculates time, not overtime eligibility, paid breaks or legal rounding. Those depend on your workplace rules and jurisdiction.
Related Working-Time Tools
Official Sources
- IANA Time Zone Database: the rules behind browser time-zone data
- GOV.UK: When do the clocks change?
- US Department of Labor: Hours worked under the FLSA (Fact Sheet 22)
- MDN: Intl.DateTimeFormat time-zone handling
- MDN: time-zone disambiguation for repeated and skipped times
All calculations happen locally in your browser. No external API is contacted by this tool.