CONVERTER TOOL

Elapsed Time Calculator

This time duration calculator finds the hours, minutes and decimal hours between a start and end time, including overnight shifts. Nothing is sent to a server.

—
Hours
—
Minutes
—
Seconds
—
Total minutes
—
Decimal hours

About this tool

This calculator finds the exact elapsed time between a start and end clock time — down to the second, plus a decimal-hours total that's handy for timesheets. Everything runs locally in your browser.

How to use the Time Duration Calculator

  1. Enter the start time and end time.
  2. Check "End time is the next day" if the shift crosses midnight.
  3. Read the duration — hours, minutes, seconds, and totals.

Common use cases

Worked example

A shift from 9:00 PM to 5:30 AM the next morning: enter 9:00 PM as the start time, 5:30 AM as the end time, and check "End time is the next day." The result is 8 hours and 30 minutes — without that checkbox checked, the calculator shows a duration of 0, since 5:30 AM comes before 9:00 PM on the same clock face. The decimal-hours figure (8.5) is the one most timesheet and payroll systems expect, rather than "8 hours 30 minutes" written out.

Things to watch out for

This tool works with a single day's clock times, not calendar dates — if you need the duration between two specific dates (like "March 3 to July 19"), use the Relationship Day Counter or Age Calculator instead, both of which handle full dates. Seconds are optional — if your browser's time picker doesn't show a seconds field, the calculation still works correctly using whole minutes.

Time math examples

CalculationResult
9:00 AM to 5:30 PM8 hours 30 minutes
10:15 PM to 6:45 AM8 hours 30 minutes
2 h 20 min + 1 h 50 min4 hours 10 minutes
3.5 hours3 hours 30 minutes
90 minutes1 hour 30 minutes

When a shift crosses midnight, add 24 hours to the end time before subtracting.

Clock time versus decimal time

Payroll and invoices usually want decimal hours, while clocks use hours and minutes. To convert, divide the minutes by 60: 7 hours 45 minutes is 7.75 hours, and 6 hours 20 minutes is 6.33 hours. Going the other way, multiply the decimal part by 60, so 0.25 hours is 15 minutes. Pick one format for the whole timesheet and round only at the end, not on every line.

Minutes to decimal hours chart

Payroll and timesheet systems usually want hours as a decimal, which is minutes ÷ 60. The calculator shows decimal hours to two places. The last column shows four places, so you can see where the two-place rounding comes from.

MinutesDecimal hours (2 places)Decimal hours (4 places)
5 min0.080.0833
10 min0.170.1667
15 min0.250.2500
20 min0.330.3333
25 min0.420.4167
30 min0.500.5000
35 min0.580.5833
40 min0.670.6667
45 min0.750.7500
50 min0.830.8333
55 min0.920.9167

So 7 hours 45 minutes is 7.75 hours, and 7 hours 20 minutes is 7.33 hours. Multiples of 6 minutes, such as 6, 12 or 18 minutes, give exact tenths: 0.1, 0.2 and 0.3 of an hour.

Subtracting an unpaid break

The calculator measures the whole span between two times and does not know about breaks. Take them off afterwards. For a shift from 8:45 AM to 5:15 PM, the tool shows 8 hours 30 minutes, or 8.50 decimal hours. Subtract a 30-minute lunch (0.50) and the hours to pay are 8.00. With two breaks, add them up first: 15 + 15 + 30 minutes = 60 minutes = 1.00 hour. To total a week, work out each day here and add the decimal figures.

Midnight, noon and daylight saving time

Elapsed time calculator: examples

Elapsed time is the clock time that passes between a start and an end. Enter both times, tick the next-day box if the end is after midnight, and read the result in hours and minutes and in decimal hours.

StartEndBreakElapsed timeDecimal hours
9:15 AM5:45 PMNone8 h 30 min8.50
10:00 PM6:00 AM (next day)None8 h 0 min8.00
7:30 AM4:00 PM30 min8 h 0 min8.00
8:00 AM12:20 PMNone4 h 20 min4.33

Which time calculator do I need?

Frequently asked questions

How do I calculate time worked, like a shift that crosses midnight?

Check "End time is the next day" if the end time is earlier in the clock than the start time — for example, a 10:00 PM to 6:00 AM shift. The calculator then adds 24 hours to the end time before computing the difference.

Does this account for AM and PM automatically?

Yes — enter times using the browser's native time picker, which handles AM/PM (or 24-hour format, depending on your device's settings) for you.

How is this different from the Age Calculator or Relationship Day Counter?

Those two work with calendar dates (years, months, days between two dates). This tool works with clock times within a day — hours, minutes, and seconds between two times, like a work shift or a race split.

How do I convert 7 hours 45 minutes to decimal hours?

Divide the minutes by 60 and add the result to the hours. 45 divided by 60 is 0.75, so 7 hours 45 minutes is 7.75 hours. For 7 hours 20 minutes, 20 divided by 60 is 0.333, so it is about 7.33 hours when rounded to two places.

Can this calculator add up a whole week of shifts?

Not in one step. It measures one start time and one end time at a time. Enter each shift separately, note the decimal hours shown for each one, then add those figures together. Adding decimal hours is simpler than adding hours and minutes, because there is no carrying over at 60.

What happens if the end time is earlier and I forget the next-day box?

The calculator treats both times as being on the same day, finds that the end comes before the start, and shows zero rather than a negative number. Tick End time is the next day and it adds 24 hours to the end time, giving the correct overnight duration.

How do I calculate elapsed time between two times?

Subtract the start time from the end time. If the end is after midnight, count it as the next day. For example, 9:15 AM to 5:45 PM is 8 hours 30 minutes, or 8.5 hours.

How do I find elapsed time over midnight?

Tick the next-day option so the end time is treated as the following day. 10 PM to 6 AM then gives 8 hours.