Time Duration Calculator (Hours Between Times)
CalculatorsHours and minutes between two times, or a time plus or minus hours and minutes.
Times without AM/PM: the end is read as PM when that makes a shorter span. An end before the start counts as the next day. Turn on Include dates for longer spans.
- Hours:minutes
- 8:30
- Decimal hours
- 8.5
- Total minutes
- 510
- Total seconds
- 30,600
Convert both times to minutes after midnight and subtract. If the end is earlier than the start, add 24 hours. Divide minutes by 60 for decimal hours.
duration = end − start (+ 24 h if end < start) · decimal hours = minutes ÷ 60
510 min ÷ 60 = 8.5 h
Calculated in your browser. The numbers you enter and the result are saved to your past runs so you can reopen them. Privacy
About
What the Time Duration Calculator does
The Time Duration Calculator works out how long it is from one clock time to another, in hours and minutes, decimal hours, total minutes and seconds. Spans can cross midnight or, with dates, run over many days. A second mode adds or subtracts hours and minutes from a time. It works on local clock time; it does not adjust for time zones or daylight saving.
Steps
How to use it
- 1Choose Time between, then enter a start and an end time such as 8:45 AM and 5:15 PM.
- 2Turn on Include dates for spans that run over more than one day.
- 3Or choose Add or subtract, enter a time and the hours and minutes to move.
- 4Copy the result in the format you need.
Example
A real run
Input
8:45 AM to 5:15 PM; then 2:30 PM plus 3 h 50 min
Output
8 h 30 min (8:30, 8.5 decimal hours, 510 minutes) 2:30 PM + 3 h 50 min = 6:20 PM, same day
5:15 PM is 1,035 minutes after midnight and 8:45 AM is 525; the difference, 510 minutes, divided by 60 is 8.5 hours.
Options
Every setting, and when to use it
- Time between
- The difference between two times. An end earlier than the start is counted as the next day, so 11:30 PM to 1:15 AM is 1 h 45 min.
- Include dates
- Adds a date to each time for spans over midnight or over days, up to 10,000 days, such as a trip or a long shift.
- Add or subtract
- Moves a time forward or back: 2:30 PM plus 3 hours 50 minutes is 6:20 PM. The result says when it lands on another day.
- 12-hour or 24-hour
- Changes how results are written. Either form is accepted as input.
Good to know
Common problems and limits
Clock times are local and have no time zone. To compare times across zones, convert them first with the Unix Timestamp Converter.
Daylight-saving changes are ignored: a night when clocks move is counted as 24 hours.
For a whole week of shifts with breaks and pay, use the Time Card Calculator.
Audience
Who uses it
- Workers and managersCheck how long a shift or a meeting really ran.
- TravelersWork out a layover or a drive from departure and arrival times, using dates when it runs overnight.
- StudentsPractice elapsed-time problems and see the subtraction in minutes.
FAQ
Frequently asked
How do I calculate the hours between two times?
Convert both times to minutes after midnight, subtract, and convert back: 8:45 AM is 525 minutes and 5:15 PM is 1,035, so the difference is 510 minutes, or 8 hours 30 minutes.
What if the time span crosses midnight?
Add 24 hours to the end time before subtracting. 10:00 PM to 6:00 AM is (6 + 24) − 22 = 8 hours. The calculator does this automatically when the end is earlier than the start.
How do I convert minutes to decimal hours?
Divide by 60: 30 minutes is 0.5 hours, 15 minutes is 0.25 and 50 minutes is about 0.83. So 8 hours 30 minutes is 8.5 decimal hours.
How do I add hours to a time?
Add the hours and minutes, then carry minutes over 60 into hours and wrap hours past 24 into the next day. 2:30 PM plus 3 h 50 min is 6:20 PM.
Does it handle daylight saving time?
No. It counts every day as 24 hours, so a span over the spring-forward night shows one hour more than really passed, and the fall-back night one hour less.
How do I find a time difference in Excel?
Subtract the cells, =B2-A2, and format the result as h:mm; multiply by 24 for decimal hours. For spans across midnight use =MOD(B2-A2,1).
Automation: an MCP tool time_duration(start, end) → minutes, hours and an n8n node are planned for this tool.