Time Duration Calculator

Find the elapsed time between two clock times, add or subtract hours and minutes from a time, or calculate the duration between two full dates and times, with automatic overnight rollover.

Calculator
Time format
Start time — AM/PM
End time — AM/PM

Duration

8h 0m

In decimal hours

8 hours

In minutes

480 min

Calculations run in your browser; nothing you type is sent anywhere. The "Between two times" and "Add/subtract" modes work on a single 24-hour clock; use "Two date-times" when the span crosses more than one calendar date and you want the day count included.

Spec

An hour equals exactly 60 minutes and a minute equals exactly 60 seconds, fixed ratios from the BIPM SI Brochure, not estimates. When the end time entered is earlier than or the same as the start time, this calculator assumes the end falls on the next day, the standard convention for an overnight span such as a 10 PM to 6 AM shift, so the result is always a positive duration instead of a negative one. A duration measured in years rather than hours needs a calendar-aware calculation of its own: [the age gap between two people](/age-difference-calculator/) is reported in years, months, and days, plus what that gap represents as a percentage of the older person's age, a figure a plain date-difference count skips entirely.

Three ways to measure elapsed time

"Between two times" answers the most common version of the question: given a start and an end clock reading, how much time passed. "Add/subtract" answers a different question: given one time and a duration, what time results, useful for figuring out when a task that started at 2:15 PM and runs for 3 hours 40 minutes will finish. "Two date-times" is for spans longer than a single day: enter a full start date and time and a full end date and time, and the result includes a day count along with hours and minutes.

All three modes convert clock readings into whole seconds first, then do the arithmetic in seconds before converting back, so a result of "8h 30m" and a result of "8.5 hours" always describe the identical span, just in two common formats. To take that resulting span further, into weeks, months, or years, feed the total into the time converter.

Why an earlier end time means the next day

A search for the time between two clock readings almost always means a single continuous span, not a full day minus that span. If the end time entered is earlier than or equal to the start time, this calculator assumes the missing hours belong to the next calendar day rather than returning a negative number. A shift that runs from 10:00 PM to 6:00 AM, for instance, is 8 hours: the clock passes midnight partway through, and 6:00 AM only reads as "earlier" than 10:00 PM because it belongs to the following day.

This is the convention every general-purpose elapsed-time tool uses for the same reason: on a plain 24-hour clock with no date attached, there is no way to distinguish "2 hours" from "26 hours" without picking one interpretation, and the overnight-span reading matches how the question is normally asked.

Worked example: a 9:15 AM to 5:45 PM workday

Start at 9:15 AM (33,300 seconds after midnight) and end at 5:45 PM (63,900 seconds after midnight). The difference is 30,600 seconds, which breaks down to 8 hours and 30 minutes, or 8.5 hours exactly, since 30 minutes is precisely half of 60. A workday quoted as "9 to 5" with a half-hour added on either end lands on this same 8.5-hour figure.

Payroll and time-tracking software often display both formats side by side because they serve different purposes: decimal hours multiply cleanly against an hourly rate (8.5 hours at $20/hour is $170.00 with no further conversion), while hours and minutes reads naturally off a clock.

When to use "Two date-times" instead

"Between two times" and "Add/subtract" both work on a single abstract 24-hour clock with no calendar date attached, which is enough for anything within one day or one overnight rollover. "Two date-times" is for a longer span: a project that starts at 9:00 AM on January 1 and finishes at 9:00 AM on January 3 is exactly 48 hours, 2 full days, a figure the single-clock modes cannot express since they only ever assume at most one day has passed.

The two calculations agree wherever they overlap. An overnight span entered as 10:00 PM to 6:00 AM in "Between two times," and the same span entered as two full date-times one calendar day apart, both return 8 hours, because both ultimately convert the clock readings to seconds and subtract.

Minutes as decimal hours

Minutes Decimal hours
00.00
150.25
300.50
450.75
601.00

Exact fractions of 60, not rounded. Useful for reading a timesheet total like "8h 15m" as 8.25 hours.

Example elapsed times

Start End Elapsed
9:00 AM5:00 PM8h 0m
9:15 AM5:45 PM8h 30m
8:30 AM12:15 PM3h 45m
10:00 PM6:00 AM8h 0m (overnight)

Each figure is a plain clock-to-clock difference; the overnight row assumes an end time at or before the start time falls on the next day.

Frequently asked questions

How do I calculate the time between two clock times?

Use "Between two times," enter the start and end hour and minute, and the calculator returns the elapsed duration in hours and minutes, decimal hours, and total minutes at once.

What happens if the end time is earlier than the start time?

The calculator assumes the end time falls on the next day rather than returning a negative result. A 10:00 PM to 6:00 AM entry is treated as an 8-hour overnight span, not negative 16 hours.

How do I add or subtract hours and minutes from a time?

Use "Add/subtract," enter a starting time and a duration in hours and minutes, and choose Add or Subtract. If the result crosses midnight, the calculator reports how many days forward or back it lands.

What is the difference between "Between two times" and "Two date-times" modes?

"Between two times" works on a single 24-hour clock and assumes at most one overnight rollover. "Two date-times" takes a full calendar date alongside each time, so it correctly reports spans of several days, not just a same-day or overnight difference.

How do I convert 8 hours 30 minutes into decimal hours?

Divide the minutes by 60 and add it to the hours: 30 minutes is 30/60 = 0.5, so 8 hours 30 minutes is 8.5 decimal hours. The calculator does this automatically and shows the decimal-hours figure alongside the hours-and-minutes figure.

Does this calculator account for time zones or daylight saving time?

No. This tool treats every day as exactly 24 hours on an abstract clock with no time zone attached. If two real-world clock readings fall on opposite sides of a daylight-saving transition, the actual elapsed wall-clock time will differ by an hour from what this calculator reports; this site's World Clock converter handles time-zone-aware conversions instead.

Embed this calculator

Paste this snippet into any blog post or web page to get the working time duration calculator, free to use, with the attribution link staying in place.

Readout check

Did this tool do the job?

Built and maintained by the CalcBadger Team. Formulas verified against the sources above; last reviewed 2026-09-13.