Time duration — the quick answer
A time duration is simply the gap between two moments: subtract the start time from the end time. 9:00 AM to 5:30 PM is 8 hours 30 minutes — or 8.5 hours in decimal form, the number timesheets and payroll systems actually want. The calculator above does both representations instantly, plus the total in seconds.
The only tricky case is crossing midnight: 11:00 PM to 7:00 AM looks like a negative number until you add 24 hours, giving a clean 8 hours. When no dates are entered, this calculator makes that overnight assumption for you and labels it — no silent magic, no surprises.
A short history: how hours got measured
Dividing the day into 24 hours is ancient Egypt's gift to us. Around 1500 BC, Egyptians tracked 12 decans (star groups) across the night sky and mirrored them with 12 daylight hours — giving us the 12-hour dial and the AM/PM split we still use. The Sumerians and Babylonians contributed the base-60 system behind minutes and seconds, which is why an hour stubbornly refuses to be decimal.
For most of history, though, nobody needed "duration between two times" — sundials and church bells told you when, not how long. That changed with railways and factories in the 1800s: train timetables demanded exact elapsed times, and hourly wages demanded them in decimal form. Timesheets turned "8 hours 30 minutes" into 8.5, and the decimal hour was born.
Today the same math runs shift scheduling, flight planning, billing and fitness tracking. The units are ancient; the need to subtract them precisely is industrial — and now it fits in your browser.
How it works: the formula
Convert both times to minutes after midnight, subtract, and if the result isn't positive, add 1,440 minutes (24 hours). Decimal hours come from dividing the minutes by 60:
5:30 PM = 1,050 min, 9:00 AM = 540 min. 1,050 − 540 = 510 minutes = 8 h 30 m = 8.5 decimal hours = 30,600 seconds.
7:00 AM (420 min) is earlier than 11:00 PM (1,380 min), so add 24 h: 420 − 1,380 + 1,440 = 480 minutes = 8 hours — the classic night shift.
Common durations reference table
Familiar durations to calibrate your sense of hours, minutes and seconds:
| Activity | Typical duration | In hours |
|---|---|---|
| Standard workday | 8 hours | 8 |
| Average school day | 6 h 30 m | 6.5 |
| Feature film | ≈ 2 hours | 2 |
| Flight New York → London | ≈ 7 hours | 7 |
| Marathon world record (K. Kiptum, 2023) | 2 h 0 m 35 s | ≈ 2.01 |
| Human sleep cycle | 90 minutes | 1.5 |
| Overnight shift (11 PM → 7 AM) | 8 hours | 8 |
| Full day | 24 hours | 24 |
How long is that, really? Everyday durations
Six durations you'll actually need to compute — and what they look like in every unit:
11:00 PM → 7:00 AM — the classic night shift, 28,800 seconds.
The average one-way commute — 0.75 decimal hours on a timesheet.
One-third of an hour (0.33 h) — long enough to refresh, short enough to skip grogginess.
A standard university exam — 180 minutes, 10,800 seconds.
A 7:15 PM movie ends at 9:15 PM — use add mode to plan the evening.
90 minutes plus halftime ≈ 1.5 decimal hours.
Visual guide: reading a stopwatch
Before digital timers, elapsed time was read off a dial like this — each small tick one second, each revolution one minute. The same 60-based math your timesheet uses:
Figure: an analog stopwatch. The hand points at 40 seconds — two-thirds of one full minute revolution. Sixty seconds make a minute, sixty minutes make an hour: the same base-60 math behind every duration above.
Common mistakes to avoid
Time math goes wrong in predictable ways. These four catch almost everyone:
- Forgetting the overnight add. 11:00 PM → 7:00 AM is 8 hours, not negative 16. Whenever the end time is earlier than the start, add 24 hours — or just let this calculator do it.
- Minutes are not decimals. 1 hour 30 minutes is 1.5 hours, not 1.30 — and 1.90 hours is 1 hour 54 minutes, not 1:90. Always divide minutes by 60 for decimal hours.
- 12 AM / 12 PM mix-ups. 12 AM is midnight (the start of the day) and 12 PM is noon. A shift "12 AM to 8 AM" is 8 hours; "12 PM to 8 PM" is also 8 hours — but they're very different shifts.
- Ignoring daylight saving and time zones. A duration spanning a spring-forward night is one hour shorter in local time, and times in different cities need conversion first — durations only work when both times share one clock.
Pro tips & mental math
Faster time math for timesheets, travel and planning:
- Timesheet shortcut. Total minutes ÷ 60 = decimal hours. 510 minutes ÷ 60 = 8.5 h — the number payroll actually wants.
- The quarter-hour table. Memorize four: 15 min = 0.25, 30 min = 0.5, 45 min = 0.75, 60 min = 1.0. Most billing rounds to these anyway.
- Plan arrivals with add mode. Movie starts 7:15 PM, runs 2 h 10 m → ends 9:25 PM. Enter start + duration below and the calculator wraps past midnight with a day indicator.
- Same time tomorrow = exactly 24 h. When both date fields are set to different days with the same clock time, the result is a clean multiple of 24 hours — no guessing.
Printable cheat sheet
Print a clean one-page reference — common durations plus the minutes-to-decimal table — with one click. Navigation and widgets are automatically hidden in the printout:
Fun facts
- "Minute" means "small". It comes from the Latin pars minuta prima — "first small part" of an hour. The second was the "second small part" — pars minuta secunda.
- Some minutes have 61 seconds. Leap seconds are occasionally added to keep atomic clocks in sync with Earth's slowing rotation — the most recent ones have stretched a UTC minute to 61 seconds.
- The shortest scheduled flight in the world — Westray to Papa Westray in Scotland's Orkney Islands — takes about 2 minutes gate to gate. That's 0.033 decimal hours.
- Before time zones, every town had its own noon. Railway timetables in the 1800s made local solar time unworkable — standard time zones, born in 1884, finally let "duration between two times" mean the same thing everywhere.
The complete guide
The guide covers subtracting times, overnight shifts, add/subtract mode, multi-day spans, and decimal hours for payroll.
Frequently asked questions
How do you calculate hours between two times that cross midnight?
Subtract start from end; if the end time is earlier than or equal to the start (e.g., 11:00 PM to 7:00 AM), add 24 hours. This calculator does that automatically and shows an "overnight" note. For exact multi-day spans, use the optional date fields.
What is 1 hour 30 minutes in decimal hours?
1 hour 30 minutes = 1.5 decimal hours: divide the minutes by 60 and add (1 + 30/60 = 1.5). Handy values: 15 min = 0.25 h, 30 min = 0.5 h, 45 min = 0.75 h.
How do I add a duration to a clock time?
Use the Add / subtract mode: enter a start time, the hours and minutes, and choose add or subtract. The result wraps past midnight correctly and shows a +1 day or −1 day indicator when the day changes.
Why does the calculator say "overnight"?
When the end time is earlier than the start and no dates are entered, the calculator assumes the end falls on the next day — the classic overnight shift, like 11:00 PM to 7:00 AM = 8 hours — and labels it so the assumption is transparent.
Can I include dates, not just times?
Yes. The optional start and end date fields handle multi-day spans exactly — Monday 9:00 AM to Wednesday 5:00 PM is 56 hours. With both dates set, exact date math replaces the overnight assumption.
How many seconds are in a given number of hours?
Multiply hours by 3,600. The calculator shows total seconds for every result automatically — for example, 8 hours 30 minutes = 30,600 seconds.
Related tools
More time tools that pair well with duration math:
