Time Duration Calculator

Reviewed: November 22, 2026Editor: R.K.Free: No account requiredPrivacy: Runs in your browser

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.

Try an example:
12-hour or 24-hour. With no am or pm, 9-5 is read as 9 AM to 5 PM. Updates the first block.
Your result appears here.
Net time (HH:MM:SS)
08:00:00
After unpaid breaks
Time before breaks
08:30:00
Total breaks
30 min
Decimal hours
8.00
Rounded to 2 decimals
Total minutes
480
Also 28,800 seconds

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.

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 scenarioStart → EndBreakDurationDecimal hours
How many hours is 9 to 5?9:00 AM → 5:00 PMNone8h 00m8.00
How many hours is 9 to 5:30?9:00 AM → 5:30 PMNone8h 30m8.50
9 to 5:30 with a lunch break9:00 AM → 5:30 PM30 min8h 00m8.00
10 PM to 6:30 AM overnight10:00 PM → 6:30 AM next day30 min8h 00m8.00
Short meeting1:15 PM → 2:50 PMNone1h 35m1.5833 (4dp)
Two separate blocks9 AM to 12 PM, then 1 PM to 5 PMNone7h 00m total7.00
New York spring clock change, March 13 to 14, 202710 PM → 6 AM next dayNone7h real elapsed7.00
New York autumn clock change, November 6 to 7, 202710 PM → 6 AM next dayNone9h real elapsed9.00
London spring clock change, March 27 to 28, 202710 PM → 6 AM next dayNone7h real elapsed7.00
London autumn clock change, October 30 to 31, 202710 PM → 6 AM next dayNone9h real elapsed9.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.

Clock time versus real elapsed time: when clocks move forward or back overnight, subtracting clock times can be an hour out. The dates tab checks the offset on each date and makes you resolve a repeated hour instead of guessing.

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

All calculations happen locally in your browser. No external API is contacted by this tool.

Scroll to Top