Time Duration Calculator
How long is it between two times? Enter a start and end time to get the duration in hours and minutes, in decimal hours, and in total minutes. Overnight spans are handled automatically.
Your numbers
Result
- Decimal hours
- 8.5
- Total minutes
- 510
| Unit | Value |
|---|---|
| Hours and minutes | 8:30 |
| Decimal hours | 8.50 h |
| Total minutes | 510 |
How the duration is worked out
The calculator subtracts the start time from the end time. From 9:00 AM to 5:30 PM is 8 hours 30 minutes. If the end time is earlier than the start — an overnight span like 10:00 PM to 6:00 AM — it adds 24 hours so the result is still correct (8 hours).
Hours and minutes vs decimal
The duration shows both ways. 8:30 means 8 hours and 30 minutes; the decimal form is 8.5 hours (minutes ÷ 60). Timesheets, billing and payroll use the decimal — and 8:30 is not "8.30", a common slip the calculator saves you from.
Twelve- or twenty-four-hour time
Enter times however you like: 12-hour with AM/PM (5:30 PM) or 24-hour (17:30). Both are accepted for either field, so you can mix a morning AM time with an afternoon 24-hour time and still get the right span.
Frequently asked questions
Sources
- Clock arithmetic (time-of-day durations)
Embed this calculator
Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.
<iframe src="https://contania.app/embed/date-time/time-duration" title="Time Duration Calculator — hours between two times" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/date-time/time-duration"]');if(f){f.style.height=e.data.height+"px"}}});</script>Related calculators
Work Hours
Add up the hours in a shift from the start time, end time and break. Get the result in hours and minutes and in decimal hours for payroll. Handles overnight shifts.
CalculateDate & TimeDays Between
Count the number of days between two dates, plus the gap in weeks and in years, months and days. The order of the dates does not matter.
CalculateDate & TimeDate Calculator
Add or subtract days from a date to find the resulting date and the day of the week. Handy for deadlines, due dates and scheduling.
CalculateDate & TimeWeeks Between
Count how many weeks are between two dates — as a decimal and as whole weeks plus the leftover days. The order of the dates does not matter.
CalculateDate & TimeAge
Work out an exact age from a birth date: years, months and days, plus the total months, weeks and days lived. Use any reference date.
CalculateDate & TimeBusiness Days
Count the business days (Monday to Friday) between two dates, and see how many weekend days fall in the range. Excludes public holidays.
Calculate