Skip to main content
🔢 Date & Time

Time Duration Calculator

Find the time between a start and end time — including overnight shifts. See the duration as hours:minutes, decimal hours, total minutes and total seconds.

Hours & minutes
Decimal hours
Overnight aware
Minutes & seconds
100% Free
📅 Open All Date & Time Calculators 📖 Read the Guide

Time duration — Quick answer

Convert both times to minutes, subtract, and add 24 h if it crosses midnight. Decimal hours = minutes ÷ 60.

minutes = (end − start), +1440 if end < start
h:m = ⌊min/60⌋ : min mod 60 · decimal = min ÷ 60

Worked example: 09:30 → 17:45 = 8h 15m (8.25 h, 495 min).

Common durations

Start → EndDurationMinutes
09:00 → 17:008h 00m480
09:30 → 17:458h 15m495
22:00 → 06:00 (overnight)8h 00m480

Used for: timesheets, shifts, billable hours, cooking, study.

🔢 Time Duration Calculator

Enter a start and end time (24-hour). If the end is earlier, an overnight shift is assumed.

Duration (h:m)
Decimal hours
Total minutes
Total seconds

⚠️ If the end time is before the start time, the calculator assumes the span crosses midnight and adds 24 hours. It assumes a single span shorter than 24 hours.

To find a time duration, convert both clock times to minutes since midnight and subtract. If the end is earlier than the start, the span has crossed midnight, so add 24 hours (1440 minutes). The result converts cleanly: hours:minutes from the total minutes, decimal hours by dividing by 60 (handy for payroll), and total minutes or seconds for fine-grained needs. That single trick — minutes since midnight, with a midnight wraparound — covers day shifts, night shifts and everything between.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: minutes-since-midnight time arithmetic.

The time duration method

Minutes elapsed
minutes = (end_h·60 + end_m) − (start_h·60 + start_m), + 1440 if negative
Hours & minutes
h = ⌊minutes ÷ 60⌋ · m = minutes mod 60
Decimal & seconds
decimal hours = minutes ÷ 60 · seconds = minutes × 60

Turning each time into a single minute count removes the awkwardness of borrowing across the hour. Subtracting gives the elapsed minutes; adding 1440 when the result is negative handles the overnight case automatically. From the total minutes, integer division by 60 gives whole hours and the remainder gives minutes, while plain division by 60 gives the decimal-hours figure that multiplies directly by an hourly rate.

Worked example — a working day

Scenario: clock in at 09:30, clock out at 17:45.

Minutes
(17·60 + 45) − (9·60 + 30) = 1065 − 570 = 495
Forms
495 min = 8 h 15 m = 8.25 decimal hours = 29,700 seconds

The shift is 495 minutes — 8 hours 15 minutes, or 8.25 decimal hours, which at any wage multiplies straight through for pay. The overnight case works the same way: 22:00 to 06:00 looks negative (360 − 1320 = −960), so adding 1440 gives 480 minutes, exactly 8 hours. A plain day shift such as 09:00 to 17:00 needs no wraparound and comes to 480 minutes. Whichever form you need — h:m for a schedule, decimal for payroll — the calculator shows them side by side.

Frequently Asked Questions

How is duration calculated?

Minutes since midnight, subtracted. 09:30→17:45 = 495 min = 8h 15m.

Overnight shifts?

If end < start, add 24 h. 22:00→06:00 = 8h (480 min).

What are decimal hours?

minutes ÷ 60. 495 min = 8.25 h. Used for payroll and billing.

Minutes to h:m?

÷ 60 for hours, remainder for minutes. 495 = 8 r15 → 8h 15m.

What's it for?

Timesheets, shifts, billable hours, study, cooking, commute times.

Ready to perform complete calculations?

Use the full AI Calculator suite for date, time and math with a professional PDF report.

🔢 Open Math Calculators — Free

No registration required · 350+ calculators · PDF report export