Duration · between two times
Time Duration Calculator
The exact time between any two clock times — same day, overnight, or across dates — in hours:minutes, decimal hours and total minutes.
Times accept 9, 9:30p or 21:30. Without dates, an
end time before the start time counts as overnight.
Common time durations
| From | To | Duration | Decimal |
|---|---|---|---|
| 9:00 AM | 5:00 PM | 8:00 | 8.00 |
| 8:00 AM | 4:30 PM | 8:30 | 8.50 |
| 8:30 AM | 5:00 PM | 8:30 | 8.50 |
| 7:00 AM | 3:00 PM | 8:00 | 8.00 |
| 10:00 AM | 6:30 PM | 8:30 | 8.50 |
| 11:00 PM | 7:00 AM | 8:00 | 8.00 |
Tracking work time rather than a single gap? The work hours calculator runs a whole week of durations with break deductions and pay.
Frequently asked questions
How do I calculate the duration between two times?
How many hours is 9 AM to 5 PM?
How do I count hours across midnight?
How do I turn a duration into decimal hours?
Can I calculate durations longer than a day?
Related calculators
Work Hours Calculator
Calculate hours worked from start and end times, minus breaks — supports overnight shifts.
DHDecimal Hours Calculator
Convert hours:minutes to decimal hours (and back) with the full minutes-to-decimal payroll chart.
SHShift Calculator
Calculate shift length (including overnight), apply a shift differential and estimate shift pay.
TCTime Card Calculator
Add up weekly work hours with lunch breaks, overtime and gross pay. Free, private, no sign-up.
BRBreak Time Calculator
Deduct meal and rest breaks from a shift to get paid hours, with state meal-break reference rules.
TSTimesheet Calculator
Turn a paper or digital time sheet into totals: hours in hh:mm and decimal, breaks, overtime and pay.