Life goals

Time Duration Calculator

How long is it from one time to another?

Type a start time and an end time. We tell you how many hours and minutes are between them, and the same in decimal hours.

Free, no sign-upPrivate — runs in your browserUpdated November 2026
Answers as you type
More
What do you want to do?
Dates ?
More options1 already filled in for you
Duration
8 h 30 min
Decimal hours
8.5 h
Total minutes
510 min
h:mm:ss
8:30:00
Total seconds
30,600 s
Both times are on the same day.
Step-by-step solution
  1. Start 9:00 AM = 09:00; end 5:30 PM = 17:30.
  2. 17:30 − 09:00.
  3. Duration = 8 h 30 min = 510 min ÷ 60 = 8.5 hours.

What can I do with my answer?

  1. If the end time is earlier than the start, it is counted as the next day (an overnight shift).
  2. Decimal hours are what most timesheets and payroll use: 7 h 45 min is 7.75 hours.
  3. Remember to subtract any unpaid breaks when working out hours for pay.

People also use

Learn more

At a glance

Work out how long it is from one time to another — including overnight and across dates — or add or subtract hours and minutes from a time.

FormulaDuration = (end date − start date) × 24 h + (end time − start time)
Without dates: if end < start, add 24 h
Decimal hours = hours + minutes ÷ 60 + seconds ÷ 3,600
Also searched astime duration calculator · time between two times · hours between times · how many hours from · elapsed time calculator · time difference calculator

How to use the time duration calculator

The calculator has two modes. Time between tells you how much time passes from a start time to an end time. Type each time in the way you normally write it — 9:00 AM, 5:30 pm, 17:30 or even 1730 — and add seconds if you need them (9:00:15 AM). If you leave the dates switch on "Same day / overnight", an end time that is earlier than the start time is treated as the next day, which is what you want for a night shift or a flight that lands after midnight. Choose "Use dates" when the span covers more than one day, such as a road trip from Friday evening to Sunday afternoon.

Add / subtract starts from a time and moves forward or back by a number of hours, minutes and seconds. It tells you the resulting clock time and whether it falls on the same day, the next day or earlier.

The formula

Times are converted to seconds after midnight, subtracted, and converted back:

Duration = (end date − start date) × 24 h + (end time − start time)
Without dates: if end < start, add 24 h
Decimal hours = hours + minutes ÷ 60 + seconds ÷ 3,600

The result is shown three ways: hours and minutes (8 h 30 min), decimal hours (8.5), and total minutes (510). Payroll and timesheet systems usually want decimal hours; schedules and travel plans usually want hours and minutes.

Worked examples

A working day

From 9:00 AM to 5:30 PM: in 24-hour time that is 09:00 to 17:30. 17:30 − 09:00 = 8 hours 30 minutes. As a decimal, 30 minutes ÷ 60 = 0.5, so the duration is 8.5 hours, or 510 minutes. These are the calculator's default inputs.

An overnight shift

From 10:00 PM to 6:15 AM: the end time (06:15) is earlier than the start (22:00), so the calculator adds 24 hours: 06:15 + 24:00 − 22:00 = 8 h 15 min, or 8.25 decimal hours.

Adding time

Starting at 9:00 AM and adding 2 hours 45 minutes gives 11:45 AM on the same day. Adding 16 hours instead would give 1:00 AM the next day.

Converting minutes to decimal hours

MinutesDecimal hoursMinutesDecimal hours
50.083350.583
100.167400.667
150.25450.75
200.333500.833
250.417550.917
300.5601.0

Common mistakes

  • Reading 7:45 as 7.45 hours. 7 hours 45 minutes is 7.75 decimal hours, not 7.45. Paying 7.45 hours would short someone 18 minutes.
  • Forgetting the overnight rule. Simply subtracting 22:00 from 06:15 gives a negative number. Add 24 hours when a span crosses midnight.
  • Daylight saving time. On the night clocks change, an overnight shift is really one hour shorter (spring) or longer (fall) than the clock difference. This calculator uses plain clock arithmetic and does not adjust for that.
  • Breaks. The duration is the total span. Subtract unpaid lunch or rest breaks yourself before using it for pay.
  • AM/PM slips. 12:00 AM is midnight and 12:00 PM is noon. If you work with 24-hour times, the military time converter helps you check.

To total a full week of start and finish times with breaks and pay, use the hours calculator. If you only need to add up lengths of time (for example several video clips), the time calculator is quicker. For spans measured in whole days, weeks or months, use the days between dates calculator, and for overtime pay see the overtime calculator.

Method: standard sexagesimal time arithmetic (60 seconds per minute, 60 minutes per hour, 24 hours per day) with dates counted on the Gregorian calendar.

Checked by the Calcivia team using our checking rules · Last updated .
Cite or link to this page

Using this time duration calculator in an article, report or homework? Copy a citation or a ready-made link:

APACalcivia. (2026). Time Duration Calculator. Retrieved November 11, 2026, from https://www.calcivia.com/time-duration-calculator/
MLA"Time Duration Calculator." Calcivia, 2026, https://www.calcivia.com/time-duration-calculator/. Accessed 11 Nov. 2026.
HTML link<a href="https://www.calcivia.com/time-duration-calculator/">Time Duration Calculator</a> by Calcivia
Did this help you?

Questions people ask

How do I calculate the hours between two times?

Convert both to 24-hour time, subtract the start from the end, and add 24 hours if the end is earlier (overnight). For example 17:30 − 09:00 = 8 h 30 min.

How many hours is 9 AM to 5 PM?

9 AM to 5 PM is 8 hours. If you take an unpaid 30-minute lunch, the paid time is 7.5 hours.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. 6 hours 20 minutes is 6 + 20 ÷ 60 = 6.33 hours.

How long is 10 PM to 6 AM?

10 PM to 6 AM is 8 hours: 2 hours until midnight plus 6 hours after it.

Does the calculator handle daylight saving time?

No. It uses plain clock arithmetic, so on a night when clocks change, the real elapsed time is one hour more or less than shown.