Free online tool

Hours Calculator

Enter a start time and end time to find the hours and minutes between them.

Instant calculation

Hours Calculator

Enter a start time and end time to find the hours and minutes between them.

Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.

Tool and explanation maintained by Leslie. Report an incorrect result.

Input steps

How to use this calculator

  1. 01

    Enter start time

    Type the starting hour and minute.

  2. 02

    Enter end time

    Type the ending hour and minute.

  3. 03

    See duration

    Calculate to see the total hours and minutes.

The formula

How this calculation works

Subtract start time from end time. Handles wrap-around past midnight.

Hours Calculator

Duration = End time − Start time

Check the method

Worked examples

Each example follows the same formula used by the calculator.

9:00 AM to 5:30 PM — how many hours?

17:30−9:00=8 hours 30 minutes8 hours 30 minutes

Understand the overnight convention

09:00 to 17:30 is 8 hours 30 minutes. 22:00 to 06:00 is treated as an overnight interval of eight hours. Equal start and end times mean 24 hours in this tool, not zero.

Subtract breaks outside the clock-time calculation

09:15 to 17:45 spans 8 hours 30 minutes, or 8.5 hours. If that interval includes a 45-minute unpaid break, paid time is 7 hours 45 minutes, or 7.75 hours. Entering 7.45 in a decimal-hours payroll field would mean 7 hours 27 minutes. Convert the minutes by dividing by 60.

Know the one-day assumption

23:30 to 01:00 is treated as an overnight span of 1.5 hours. Equal start and end times are interpreted as a full 24 hours by this tool; do not use that combination to represent zero time. Multiple-day shifts, date-specific daylight-saving changes and timezone travel need dates and timestamps that these inputs do not contain.

Method notes updated by Leslie.

Common questions

Questions about this calculation

Does this subtract breaks or daylight-saving changes?

No. Subtract unpaid breaks separately. These are clock times without dates or time zones, so a daylight-saving transition can produce a different actual elapsed duration.