Hours Calculator (Work Hours Between Two Times)

How many hours is 9:00 to 5:30? Enter any start and end time to get exact hours and minutes, minus breaks, with overnight shifts, decimal hours and pay.

Updated September 2026 2026 tax data Free, no sign-up, nothing sent to us

Hours between two times

min
$

If the end time is earlier than the start time, the shift is treated as crossing midnight.

Time worked
0:00
0.00 decimal hours · 0 minutes
Gross pay for this time
$0.00
Overnight shift?
No

Results are estimates for planning and education only. They are not financial, tax or legal advice. See our methodology.

How to calculate hours between two times

The quickest reliable method is to turn both times into minutes after midnight, subtract, and turn the answer back into hours.

  1. Convert to 24-hour time. 9:00 AM stays 9:00; 5:30 PM becomes 17:30.
  2. Subtract. 17:30 − 9:00 = 8 hours 30 minutes.
  3. Remove unpaid breaks. 8:30 − 0:30 = 8 hours.

When the minutes of the end time are smaller than the start time’s, borrow an hour. For 8:45 AM to 3:20 PM: 15:20 − 8:45 → borrow one hour so 15:20 becomes 14:80, then 14:80 − 8:45 = 6 hours 35 minutes.

Overnight shifts

If a shift ends the next day, add 24 hours to the end time. 10:00 PM to 6:00 AM is 22:00 to 30:00, which is 8 hours. The calculator detects this automatically whenever the end time is earlier than the start time.

Hours and minutes vs. decimal hours

6 hours 35 minutes is not 6.35 hours. Divide the minutes by 60: 35 ÷ 60 = 0.58, so the decimal figure is 6.58 hours. Payroll uses decimals because they can be multiplied by an hourly rate directly: 6.58 × $18 = $118.44.

MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

See every minute from 1 to 60 on the minutes to decimal chart.

Common uses

  • Checking a single shift before you submit a timesheet.
  • Working out billable hours for a client.
  • Finding how long you volunteered, studied or drove.

For a full week of shifts, use the time card calculator. To measure across several days, use the time duration calculator.

Working out pay? See how overtime pay is calculated for hours over 40, and the time clock rounding rules if your employer rounds your punches.

Sources and limits

The rules on this page come from these official sources, which we read on September 26, 2026. Pay rules change and differ by state, and some employers and union contracts pay more than the law requires. This page is general information, not legal or payroll advice. If you think you have been underpaid, contact the U.S. Department of Labor's Wage and Hour Division or your state labor department.

Frequently asked questions

How many hours is 9 to 5?
8 hours. If you take an unpaid 30-minute lunch, it is 7.5 hours worked.
How many hours is 7 AM to 3:30 PM?
8.5 hours, or 8 hours after a 30-minute unpaid break.
How many hours is 8 AM to 5 PM?
9 hours. With a one-hour unpaid lunch it is 8 hours; with a 30-minute lunch it is 8.5 hours.
How many hours is 9:00 AM to 5:30 PM?
8 hours 30 minutes (8.5 hours) before any unpaid break. With a 30-minute unpaid lunch it is 8 hours. Enter any start and end time in the calculator above for the exact figure.
How many hours is 2:00 PM to 9:30 PM?
7 hours 30 minutes (7.5 hours) before any unpaid break. Enter your own times in the calculator above; it also handles shifts that cross midnight.
How do I calculate hours worked in Excel?
Enter times as Excel times, subtract start from end (=B2-A2), and multiply by 24 to get decimal hours (=(B2-A2)*24). For overnight shifts use =MOD(B2-A2,1)*24.

Related calculators