Time Duration Calculator

Enter a start time and an end time to see the duration between them in hours and minutes, plus the total in minutes.

🔒 All processing happens in your browser — your files are never uploaded to a server.

About Time Duration Calculator

If you clock in at 7:15 and leave at 4:00, how long did you actually work? If you fell asleep at 11:30 pm and woke at 6:45, how much sleep did you get? Subtracting times in your head is easy to get wrong, especially when the minutes do not line up or the period crosses midnight. This calculator returns the exact duration in days, hours, minutes and seconds, together with the totals in hours, minutes and seconds.

Enter a start time and an end time and you are done. Seconds are supported. When the end time is earlier than the start, the calculator assumes it falls on the next day, adds 24 hours and tells you so; for spans longer than a day, enter how many days later the end is. It is handy for logging work hours, checking shift lengths, timing lessons and tracking sleep. All calculations happen in your browser.

Why use it

  • Shows hours and minutes and the grand total in minutes on one line.
  • Overnight periods such as night shifts or sleep are handled automatically.
  • Avoids the classic borrowing mistake when end minutes are smaller than start minutes.
  • The minute total makes converting to decimal hours for payroll trivial.
  • Instant, free and works on any phone or computer.

How to use

  1. Set the start time

    Pick the start time in the first field (default 09:00:00). Seconds are supported, and 12-hour or 24-hour display depends on your device settings.

  2. Set the end time

    Pick the end time in the second field (default 17:30:00). If it falls one or more days later, enter the number of days in “End is how many days later?”.

  3. Calculate

    Press Calculate. The duration appears in days, hours, minutes and seconds, followed by the totals in hours, minutes and seconds, plus a note if the end time is on the next day.

Examples

Standard workday

09:00 to 17:30 gives 8 h 30 min, a total of 510 minutes.

Night shift

22:00 to 06:00 gives 8 h 0 min (480 minutes), flagged as ending the next day.

Sleep tracking

11:30 pm to 6:45 am gives 7 h 15 min, or 435 minutes.

Meeting length

1:45 pm to 3:10 pm gives 1 h 25 min, or 85 minutes.

Minutes to decimal hours for timesheets
DurationDecimal hoursPay at 20 per hour
15 min0.255.00
30 min0.5010.00
45 min0.7515.00
510 min (8 h 30 min)8.50170.00
435 min (7 h 15 min)7.25145.00

Tips

  • Divide the total minutes by 60 to get decimal hours: 510 / 60 = 8.5 hours.
  • For net working time, subtract your unpaid break in minutes before converting to hours.
  • For a weekly timesheet, calculate each day, add up the minute totals, then divide by 60 once.
  • On 12-hour devices, double-check AM and PM. A wrong half of the day is the most common input error.
  • For spans longer than a day or across specific dates, use the date difference calculator instead.

The calculation runs in your browser; the times you enter are not sent anywhere.

Frequently asked questions

How do I calculate the hours between two times?

Enter the start and end times and press Calculate. You get the duration in hours and minutes, plus the total number of minutes.

What if the end time is after midnight?

If the end time is earlier than the start, for example 22:00 to 06:00, the calculator treats it as the next day, adds 24 hours and shows a note saying so.

Does it include seconds?

Yes. Both time fields accept seconds, and the result shows seconds along with the total in seconds.

Can it handle durations longer than 24 hours?

Yes. Enter the number of days between start and end in “End is how many days later?” — for example 2 for a shift that ends two days later — and the full duration is shown in days and hours. For spans between distant dates, use the date difference calculator.

What happens if both times are the same?

With the days field at 0 the result is 0, because the calculator does not assume you meant a full day. For exactly 24 hours, enter 1 in the days field.

How do I turn the result into pay?

Divide the total minutes by 60 to get decimal hours, then multiply by your hourly rate. For example, 510 minutes is 8.5 hours, which at 20 per hour comes to 170.

How do I subtract a lunch break?

Calculate the full shift, then subtract the break minutes from the total. A 510-minute day with a 30-minute break leaves 480 minutes, or 8 hours of work.

Can I add up several time periods?

The tool calculates one period at a time. Work out each period, add the minute totals together and convert at the end; it is simpler than adding hours and minutes separately.

Why does my time field show AM/PM?

The time picker follows your device's language and region settings. Some show a 24-hour clock and others a 12-hour clock; the result is correct either way as long as you pick the right half of the day.

Does it account for daylight saving time?

No. It treats both entries as plain clock readings, so if your period crosses a clock change, the real elapsed time may differ by an hour.

Is my data stored?

No. Everything is calculated locally in your browser and nothing is saved on our servers.

Does it work on mobile?

Yes. Tapping a field opens your phone's native time picker, making it quick to set exact hours and minutes.

Last updated:

Share this tool:WhatsAppXTelegram