Hours Calculator

Hours and minutes between two times, with unpaid breaks, overnight shifts, decimal hours and pay.

Start and end time

Minutes to decimal hours

Calculated in your browser – nothing you enter is sent or stored.

This hours calculator works out exactly how long you worked between two times – in hours and minutes and in decimal hours for payroll. It subtracts unpaid breaks, handles overnight shifts that end after midnight, and multiplies by your hourly rate to show what the shift is worth. Enter the number of days to get a weekly total with overtime.

Hours Calculator with ShrinkBee

How to Calculate Hours Worked

  1. Convert both times to a 24-hour clock. 9:00 AM is 09:00 and 5:30 PM is 17:30.
  2. Subtract the start time from the end time. 17:30 − 09:00 = 8 hours 30 minutes.
  3. Subtract unpaid breaks. 8:30 − 0:30 lunch = 8 hours.
  4. If the end time is earlier than the start, the shift crossed midnight: add 24 hours to the end time first. A 10:00 PM to 6:30 AM shift is 30:30 − 22:00 = 8 hours 30 minutes.

Converting Minutes to Decimal Hours

Payroll and timesheet software use decimal hours, not hours and minutes. To convert, divide the minutes by 60:

Decimal hours = hours + (minutes ÷ 60)

So 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours, and 8 hours 20 minutes is 8.33 hours. A common mistake is writing 7:45 as 7.45 hours – that underpays you by 18 minutes. The table below the calculator lists every 5-minute step.

Calculating Pay From Hours

Multiply decimal hours by your hourly wage: 7.75 hours × $18.50 = $143.38. Under the federal Fair Labor Standards Act (FLSA), non-exempt employees must be paid at least 1.5 times their regular rate for every hour over 40 in a workweek. Enter the number of days you work this shift and the calculator applies overtime automatically. Some states have stricter rules – California, for example, also requires overtime after 8 hours in a single day.

Are Breaks Paid?

Federal law does not require breaks, but if an employer offers short breaks of 5 to 20 minutes, they must be paid. Meal periods of 30 minutes or more, when you are fully relieved of duty, can be unpaid. Many states, including California, New York and Washington, require meal or rest breaks after a certain number of hours. Only enter unpaid breaks in the calculator.

Common Shift Lengths

ShiftBreakHoursDecimal
8:00 AM – 4:30 PM30 min8 hr 0 min8.00
9:00 AM – 5:00 PM60 min7 hr 0 min7.00
7:00 AM – 3:30 PMnone8 hr 30 min8.50
7:00 AM – 7:00 PM30 min11 hr 30 min11.50
11:00 PM – 7:00 AM30 min7 hr 30 min7.50

For a whole week with different times each day, use the time card calculator. To see what your hours mean after taxes, use the paycheck calculator, and to count days between dates, the date calculator.

Sources

Last reviewed: October 2026 by the ShrinkBee team. Results are estimates. Overtime and break rules vary by state and employer.

Time Card Calculator Paycheck Calculator Date Calculator Percentage Calculator

Frequently Asked Questions

How do I calculate hours between two times?
Subtract the start time from the end time on a 24-hour clock, then take off unpaid breaks. From 8:15 AM to 4:45 PM is 16:45 − 8:15 = 8 hours 30 minutes; with a 30-minute lunch that is 8 hours.
How many hours is 9 to 5?
9:00 AM to 5:00 PM is 8 hours. With a 30-minute unpaid lunch it is 7.5 hours, and with a one-hour lunch it is 7 hours.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5, 45 minutes is 0.75 and 20 minutes is 0.33. So 6 hours 45 minutes is 6.75 hours.
How do I calculate hours for an overnight shift?
Add 24 hours to the end time before subtracting. 10:00 PM to 6:00 AM is (6 + 24) − 22 = 8 hours. The calculator does this automatically when the end time is earlier than the start time.
When do I get overtime?
Under federal law, non-exempt employees get time and a half for hours over 40 in a workweek. Some states, such as California, also pay overtime after 8 hours in a day.
Is this hours calculator free?
Yes. The Hours Calculator is completely free, with no sign-up and no limit on how many times you use it.
Is the information I enter saved?
No. The numbers you enter are calculated in your web browser and are not sent to a server or stored. Your inputs are not added to the page address, and a share link is created only if you click "Copy link to these results" (health calculators have no share link at all).

More Calculator Tools

Made With ♥ By ShrinkBee