Time duration calculator

Find the hours and minutes between two times, calculate net work hours with breaks and overtime, or check how long until or since a time today. Runs entirely in your browser.

--:--:--
 
Result
8h 30m
8.5 hrs510 min

How the calculation works

A duration like "8 hours 45 minutes" and its decimal form "8.75 hours" represent the same span of time, but most payroll and invoicing software expects decimal hours, not hours and minutes. This calculator shows both at once so you don't have to convert by hand — 45 minutes is 0.75 of an hour, not ".45," which is a common source of payroll errors when people convert manually.

If your end time is earlier than your start time — like a 10:00 PM to 6:00 AM overnight shift — this calculator assumes the span rolls into the next day rather than returning a negative or incorrect result. If you need to calculate across specific calendar dates instead of just clock times, use the "spans multiple days" option to set exact start and end dates.

Twice a year, clocks shift for daylight saving time in regions that observe it. A span that crosses one of these transitions is either one hour longer or one hour shorter than the clock times alone would suggest — this calculator accounts for that automatically and flags it when it happens, rather than silently giving you a slightly wrong number.

Need a date-based calculation instead — days between two dates, or adding time to a date? Use the date calculator.

Our Time Duration Calculator's Features

Each mode is built for a different way people actually ask "how much time is that" — pick the one that matches what you're trying to do.

Time Between Two Times

The exact hours and minutes between any two clock times.

Meeting lengthFlight durationStudy sessionsOvernight shifts

Enter a start time and an end time and get the duration instantly, shown as hours and minutes, decimal hours, and total minutes at once. Handles spans that cross midnight automatically — a 10:00 PM to 6:00 AM overnight shift correctly returns 8 hours without any extra setting to flag.

See a worked example
9:00 AM → 5:45 PM
8h 45m · 8.75 hrs · 525 min

Payroll & Work Hours

Net work hours after breaks, with automatic overtime detection.

FreelancersHourly employeesTimesheet entryOvertime tracking

Built for logging actual paid hours, not just raw clock time. Enter a start and end time, subtract an unpaid break, and set an optional daily overtime threshold — the calculator returns net hours in decimal form, ready to paste into QuickBooks, Gusto, ADP, or any timesheet that expects decimal hours instead of hours-and-minutes.

See a worked example
9:00 AM → 5:45 PM, 45 min break
8.00 hrs net

Time Until / Time Since

How long until an upcoming time, or how long since a past one.

Countdown to a deadline todayElapsed-time trackingQuick reminders

A single time field, one toggle. Pick a time today and instantly see how many hours and minutes remain until it happens, or how much time has passed since it occurred — no need to manually check the current time and subtract by hand.

See a worked example
Until 6:00 PM (now 2:15 PM)
3h 45m remaining

Explore related tools

Common questions

What is this time duration calculator for?

It finds the amount of time between two clock times — in hours and minutes, and as decimal hours — and includes a payroll mode that deducts unpaid breaks and flags overtime, plus a quick shortcut for "how long until" or "how long since" a time today.

Should I round to the nearest quarter hour for payroll?

Some employers round to the nearest 6, 15, or 30 minutes for payroll simplicity, while others pay exact minutes worked. This calculator gives you the exact, unrounded duration — round afterward according to your employer's or payroll provider's policy, since rounding rules vary and aren't standardized.

Decimal hours vs. hh:mm — which do QuickBooks, Gusto, or ADP expect?

Most payroll platforms, including QuickBooks, Gusto, and ADP, expect hours logged in decimal form (e.g. 8.75 hours), not hours-and-minutes format (8h 45m). This calculator shows both, with a one-click "copy decimal" button for pasting straight into timesheet fields.

How does this handle an overnight shift?

If your end time is earlier than your start time, the calculator assumes the shift crosses midnight into the next day rather than returning a negative result — a 10:00 PM to 6:00 AM shift correctly calculates as 8 hours.

Does this account for daylight saving time?

Yes. If a calculated span crosses a daylight saving transition, the result is adjusted automatically and a note appears letting you know the span included a DST change.

Is my time data sent to a server?

No. All calculations run locally in your browser using JavaScript. Nothing you enter is transmitted or stored.