Skip to content
Contania

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

e.g. 9:00 AM or 09:00

e.g. 5:30 PM or 17:30

Result

Duration
8:30
hours:minutes
Decimal hours
8.5
Total minutes
510
Duration
UnitValue
Hours and minutes8:30
Decimal hours8.50 h
Total minutes510

How the duration is worked out

Both times are converted to minutes past midnight and subtracted. From 9:00 AM to 5:30 PM that is 1050 − 540 = 510 minutes, or 8 hours 30 minutes. The same span comes back in three readings: hours and minutes, decimal hours, and total minutes. Reach for total minutes whenever you need to add several spans together — minutes add without carrying, while 45 + 45 in clock notation quietly becomes 1:30 rather than 0:90.

Decimal hours are not the clock face

The most expensive confusion in this whole family of calculations: 1.5 hours is 1h30, not 1h50. The decimal part is a fraction of 60 minutes, so it has to be multiplied by 60, not read off as minutes. Worth knowing by heart: 0.25 h is 15 minutes, 0.5 h is 30, 0.75 h is 45, and 0.1 h is 6. Backwards, 20 minutes is 0.33 h and 40 minutes is 0.67 h — neither lands on a tidy decimal, which is precisely why people round them badly. Timesheets, hourly billing and consulting invoices all run on the decimal form. Entering 7.45 for a 7h45 session undercharges by 18 minutes, since 7h45 is 7.75. The calculator prints both forms so you copy the correct one.

Spans that cross midnight

When the end time is earlier than the start, the calculator assumes the span ran overnight and adds 24 hours. So 10:00 PM to 6:00 AM comes back as 8 hours rather than a negative number. That assumption has a hard limit: it can only add one day. A span genuinely longer than 24 hours — a 30-hour journey, a two-day event — cannot be expressed here, because the tool knows times of day and not dates. For anything covering more than a single night, work from full dates using the days-between-dates calculator.

Noon, midnight and the 12-hour clock

The 12-hour clock has one truly ambiguous hour, and it ruins deadlines. 12:00 AM is midnight, the very start of a day, and 12:00 PM is noon — not the other way round. So "due by 12 AM Friday" technically means the instant Thursday ends, which is almost never what the person writing it meant. The 24-hour clock has no such trap: 00:00 is midnight, 12:00 is noon. This calculator accepts either format in either field, so you can enter 5:30 PM in one and 17:30 in the other and still get the right span.

The two nights when the clock lies

On the nights the clocks change, elapsed time is not the difference between the two clock readings. On the night the clocks spring forward, a shift from 10:00 PM to 6:00 AM is only 7 real hours, because one hour of clock time never occurs. On the night they fall back, the same shift is 9 hours. That matters for overnight shifts, sleep tracking and anything billed through the small hours. It matters across borders too: the United States and the European Union do not change their clocks on the same dates, so for a few weeks each spring and autumn the offset between New York and London is not its usual five hours. If your span crosses a transition, work from timestamps carrying a UTC offset rather than from local clock faces.

Frequently asked questions

Sources

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

Date & Time

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.

Calculate
Date & Time

Days 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.

Calculate
Date & Time

Date 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.

Calculate
Date & Time

Weeks 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.

Calculate
Date & Time

Age

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.

Calculate
Date & Time

Business 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