Duration Calculator
Local only — nothing is uploaded unless you save or share it.
The time between two times in hours and minutes, and durations added up and subtracted.
- Type the start time and the end time, in 24-hour or am/pm form
- Read the duration in hours and minutes, decimal hours and total minutes
- Tick Add dates when the end is on another day, or to count a clock change
- To add up durations, type them with + and − in the second box
Time between two times
Add and subtract durations
Total
Save this tool
Keep Duration Calculator handy
Use your browser's Share menu, then “Add to Home Screen”.
Embed
Put Duration Calculator on your website
Paste this into your page. It shows the tool, free, with a link back to it.
About this tool
This duration calculator answers the two questions people actually have about time: how long is it from one time to another, and what do these lengths of time add up to. Time between two times. Type a start and an end, as 9:15 AM, 17:40, 9h15 or 21:15:30, and you get the hours between two times as hours and minutes (8 h 25 min), as decimal hours (8.42, which is what a timesheet wants) and as total minutes and seconds. When the end is earlier than the start, the end is counted as the next day, and the page says so, so 22:00 to 06:30 is 8 h 30 min rather than a negative number. Seconds are counted when you type them. Over more than a day, tick Add dates. Then the dates decide which day each time falls on, and the time duration calculator works on the real calendar in your own time zone: a night shift across the autumn clock change is nine hours, not eight, and the page tells you when that happened. Without dates the two times are taken as one ordinary day, so a clock change is not counted. Add hours and minutes. The second part is a time calculator for a list: type 1h 45m + 2h 30m − 20 min, or one duration per line, and you get the total. It reads 1:45, 1h 45m, 1.75h and 105 min alike, and a total below zero is shown with a minus sign rather than refused. Everything is worked out in your browser. Nothing you type is sent anywhere.
Frequently asked questions
How do I calculate the hours between two times?
Subtract the start from the end, hours and minutes separately, and borrow 60 minutes when the end has fewer minutes. 9:15 to 17:40 is 8 hours and 25 minutes. If the end is earlier than the start, add 24 hours first, because the end is on the next day. The calculator does this as you type.
How do I turn hours and minutes into decimal hours?
Divide the minutes by 60 and add them to the hours. 8 h 25 min is 8 + 25 ÷ 60 = 8.42 hours, rounded to two places, and 7 h 45 min is 7.75. Note that 8:25 is not 8.25 hours; that is 8 h 15 min. Both forms are shown for every answer.
What happens when the time crosses midnight?
Without dates, an end time earlier than the start is counted as the next day: 22:00 to 06:30 is 8 h 30 min, and a note under the answer says the end was taken as the next day. With dates ticked, the dates decide, so you can also measure across several days.
Does it count daylight saving time?
Only when you add dates. Then both times are placed on the real calendar in your browser's time zone, so a night across the spring change is an hour shorter and one across the autumn change an hour longer, and the page says how much the clocks moved. Without dates it is the plain difference on the clock face.
How do I add hours and minutes together?
Type the durations into the second box with + and − between them, for example 1h 45m + 2h 30m − 20 min, or put one on each line. 1:45, 1h 45m, 1.75h and 105 min all mean the same, and a number on its own counts as minutes. Each line of the breakdown shows how a duration was read.
Can I use am and pm?
Yes. 9:15 am, 9:15 AM, 9:15 a.m. and 9pm all work, as do 24-hour times like 21:15, and you can mix the two. 12:00 am is midnight and 12:00 pm is noon. Seconds are optional: 9:15:30 pm.
Can I put this calculator on my own website?
Yes. Tap Embed under the calculator and copy the code into your page. It works there for free, with a link back here.
Help improve this tool
Found a bug, want a change, or need a tool we don't have?
You have an unsent draft.
Thanks — that's with us. You'll find the reply in your inbox.Go to my messages