Time Duration Calculator

Calculate hours and minutes between two times with overnight support.

By Konstantin Iakovlev · Updated September 2026 · Source: TimeAndDate

Overnight Shift

Duration

8h 30m

Decimal Hours

8.50

Time Duration

Hours8
Minutes30
Total Minutes510
Decimal Hours8.50
In Words8 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. 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. 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. 3 Duration: 1,515 − 1,350 = 165 minutes = 2 hours 45 minutes, or 2.75 decimal hours.
  4. 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?
Subtract the start time from the end time. For example, 9:30 AM to 2:45 PM is 5 hours and 15 minutes. If the end time is earlier (overnight shift), add 24 hours to the end time first.
How do you calculate overnight time duration?
For overnight periods, add 24 hours to the end time before subtracting. For example, 10 PM to 6 AM: convert to 22:00 to 30:00 (6:00 + 24), then subtract to get 8 hours.
How do you convert minutes to decimal hours?
Divide the minutes by 60. For example, 45 minutes = 0.75 hours, 30 minutes = 0.50 hours, and 15 minutes = 0.25 hours. This is useful for timesheet calculations and billing.