Learn more
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.
Without dates: if end < start, add 24 h
Decimal hours = hours + minutes ÷ 60 + seconds ÷ 3,600
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:
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
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 5 | 0.083 | 35 | 0.583 |
| 10 | 0.167 | 40 | 0.667 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.333 | 50 | 0.833 |
| 25 | 0.417 | 55 | 0.917 |
| 30 | 0.5 | 60 | 1.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.
Related tools
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.
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:
Calcivia. (2026). Time Duration Calculator. Retrieved November 11, 2026, from https://www.calcivia.com/time-duration-calculator/"Time Duration Calculator." Calcivia, 2026, https://www.calcivia.com/time-duration-calculator/. Accessed 11 Nov. 2026.<a href="https://www.calcivia.com/time-duration-calculator/">Time Duration Calculator</a> by Calcivia