Time utilities free tools

Time Duration Calculator

Enter a start time, an end time and any break to see the duration between two times in hours, minutes and decimal hours instantly. It handles unpaid breaks and shifts that run past midnight. No signup, and a link you can share.

Updated June 2026 · Free, no signup, multi-currency

Your times

When the period began.

When the period ended.

Unpaid break time to subtract. Leave at 0 for none.

Duration
Decimal hours
Total minutes

The end time is earlier than the start time, so it has been treated as the next day. This is normal for overnight shifts.

How to calculate the duration between two times

The duration between two times is the end time minus the start time, with any unpaid break taken off. The only twist is what happens after midnight: if the end time reads earlier than the start, the period rolled over to the next day, so you add 24 hours before subtracting.

Duration = End − Start − Break
If End < Start → add 24 hours to End
Decimal hours = Total minutes ÷ 60

The reliable way to do this by hand is to convert each time to minutes since midnight, subtract, take off the break, then convert back. Working in minutes the whole way through avoids the classic mistake of adding 45 and 30 minutes and forgetting that it rolls into an extra hour.

Minutes to decimal hours reference

Keep this handy when you are converting time for a timesheet or an invoice. Each minute is one sixtieth of an hour, so the conversions repeat in a steady pattern.

Duration Minutes Decimal hours
15 minutes150.25
30 minutes300.50
45 minutes450.75
1 hour601.00
1 hour 30 minutes901.50
7 hours 45 minutes4657.75
8 hours4808.00

Worked example

Say you started at 09:00, finished at 17:30, and took a 30 minute lunch. Convert the times to minutes, subtract, then take off the break.

  • Gross span: 17:30 − 09:00 = 8 hours 30 minutes (510 minutes)
  • Less break: 510 − 30 = 480 minutes
  • Result: 8h 0m, or 8.00 decimal hours

Now an overnight example. A support shift runs from 22:00 to 06:00 with no break. Because 06:00 is earlier than 22:00, the shift crossed midnight, so treat the end time as 06:00 the next day.

  • Adjusted end: 06:00 next day = 30:00 (1800 minutes)
  • Span: 1800 − 1320 = 480 minutes
  • Result: 8h 0m, or 8.00 decimal hours

The calculator above flags the midnight crossing for you, so you never have to remember the plus 24 hours step yourself.

Why decimal hours matter for billing

An invoice multiplies time by a rate, and that is far cleaner in decimal hours. At 120 per hour, 1.5 hours is plainly 180, while 1 hour 30 minutes tempts you into multiplying the hours and minutes apart and getting it wrong. Decimal hours also add up across dozens of entries without any rollover at the 60 minute mark.

That is why timesheets, payroll runs and accounting tools store time as a decimal. Reading hh:mm is friendlier on the eye, but the moment money is involved, decimal hours are the format that keeps the totals honest.

How Hour Cap helps

This calculator settles a single span. Hour Cap captures every span as a real time entry, so you never type the duration in twice. You can let the timer run, or type a duration however it comes to mind: 1h30m, 1:30 or 8h all parse to the same minutes, because the built-in duration parser reads them all.

Every entry carries its decimal hours and its rate, totals roll up per project and per client, and the clean total pushes straight to Xero as an invoice. The hh:mm you read on a clock and the decimal hours your invoice needs stay in sync, with no manual conversion in between.

Frequently asked questions

Embed this calculator

Drop this calculator into your own blog or site. Free to use, just keep the Hour Cap link.

<iframe src="https://hourcap.com/free-tools/time-duration-calculator/embed" width="100%" height="760" style="border:0;max-width:680px" loading="lazy" title="Time Duration Calculator by Hour Cap"></iframe>

Useful once. Tedious every week.

Working out durations by hand is fine for a one-off and miserable as a habit. Hour Cap records start and stop times, accepts durations the way you would type them, and keeps the total for you.

Free forever plan
No credit card
Built for Xero