Time Duration Calculator
Calculate hours and minutes between two times with overnight support.
By Konstantin Iakovlev · Updated September 2026 · Source: TimeAndDate
Duration
8h 30m
Decimal Hours
8.50
Time Duration
| Hours | 8 |
| Minutes | 30 |
| Total Minutes | 510 |
| Decimal Hours | 8.50 |
| In Words | 8 hours and 30 minutes |
Use the Time Duration Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.
Disclaimer: This calculator is for informational purposes only. Results are estimates based on the information you provide and the assumptions described on this page.
How It Works
Working out the exact hours and minutes between two clock times sounds trivial until the span crosses midnight. This tool handles that case cleanly, which makes it practical for logging freelance project hours, measuring employee shift lengths, or just settling how long an event actually ran. Precise durations feed directly into dependable scheduling, accurate billing, and clean payroll.
The math starts by converting both the start and end times into a single unit, usually the number of minutes elapsed since a reference point such as midnight. When the end time lands earlier than the start time, that signals an overnight span, so 24 hours (1440 minutes) are added to the end value before the subtraction happens. The resulting difference in minutes is then translated back into hours and leftover minutes to give a readable answer.
A quick word on accuracy: hours go in on a 24-hour clock (0–23), so 10:30 PM is entered as 22 and 30, and typing 10 for an evening hour is the most common slip. The tool counts clock time, so a shift that spans the night the clocks change (2:00 AM on the second Sunday of March or the first Sunday of November) actually ran an hour less or an hour more than shown. The calculation also assumes one unbroken stretch inside a 24-hour cycle and makes no allowance for breaks or pauses unless you build them into the input times yourself. Durations that genuinely run across several days fall outside its scope, since it reports only the portion within a single 24-hour window and disregards the day count entirely.
Example: Billing a Late-Night Freelance Session
- 1 A freelance graphic designer starts work at 10:30 PM on March 15, 2026 and finishes at 1:15 AM on March 16.
- 2 Input: Start Hour 22, Start Min 30; End Hour 1, End Min 15. In minutes after midnight the start is 22 × 60 + 30 = 1,350 and the end is 1 × 60 + 15 = 75; the end is earlier, so the tool adds 1,440: 75 + 1,440 = 1,515.
- 3 Duration: 1,515 − 1,350 = 165 minutes = 2 hours 45 minutes, or 2.75 decimal hours.
- 4 The designer bills 2.75 hours for the session. The Overnight Shift toggle is not needed here; it only matters when the start and end times are identical, where Yes means 24 hours and No means 0.
Source: TimeAndDate · Last updated: September 2026
Frequently Asked Questions
How do you calculate hours between two times?
How do you calculate overnight time duration?
How do you convert minutes to decimal hours?
You might also need
Age Calculator
Calculate exact age in years, months, and days. See total days lived, next birthday countdown, and zodiac sign.
Date Calculator
Calculate days between two dates or add/subtract days from a date. Shows business days excluding weekends.
Time Zone Converter
Convert time between US and international time zones instantly.