Time Duration Calculator

Calculate hours and minutes between two times with overnight support.

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 and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.

How It Works

Our Time Duration Calculator helps you quickly determine the exact hours and minutes between two specified times, even if the duration spans across midnight. This tool is invaluable for accurately tracking work hours for freelance projects, calculating shift lengths for employees in 2026, or simply understanding how long an event lasted. Knowing precise time durations can optimize scheduling and ensure accurate billing or payroll for the 2026 fiscal year.

The calculation methodology involves converting both start and end times into a common unit, typically minutes from a reference point (e.g., midnight). If the end time is earlier than the start time, it implies an overnight duration, and 24 hours (1440 minutes) are added to the end time's minute value before subtraction. The absolute difference in minutes is then converted back into hours and remaining minutes for a human-readable result.

When using the calculator, always double-check your AM/PM selections, as this is the most common source of error. Be mindful that the calculator assumes a continuous duration within a 24-hour cycle; it doesn't account for breaks or pauses unless you adjust the input times accordingly. For extremely long durations spanning multiple days, this calculator will only provide the duration within a 24-hour window, effectively ignoring the day component.

Example: Calculating a Late-Night Freelance Project in 2026

  1. 1 A freelance graphic designer starts a project on March 15, 2026, at 10:30 PM and finishes at 1:15 AM on March 16, 2026.
  2. 2 Input Start Time: 10:30 PM, Input End Time: 1:15 AM. The calculator recognizes the overnight span.
  3. 3 The duration is 2 hours and 45 minutes.
  4. 4 This duration represents the billable hours for the designer's late-night work, ensuring accurate invoicing for their client in 2026.

Source: TimeAndDate · Last updated: April 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.