Skip to content
Mathico

Hours Calculator

Calculate the hours and minutes between two times, including breaks and overnight shifts. Total a weekly timesheet with pay and overtime, or find the time X hours from now.

Calculate
min

An end time earlier than the start is treated as the next day (overnight shift).

Time worked

8 h 00 min

Decimal hours
8.00
Total minutes
480

How to use the hours calculator

  • Between two times: enter a start time, an end time and any unpaid break to get the hours and minutes worked, plus decimal hours for payroll. Overnight shifts are handled automatically.
  • Weekly timesheet: enter clock-in and clock-out times for each day to total the week. Add your hourly rate to see regular pay, overtime pay and gross pay.
  • Hours from now: add hours and minutes to the current time, or to a time you choose, to find a clock-out time, a deadline or when a timer ends.

How hours are calculated

Hours worked = end time − start time − unpaid breaks
Overnight: if end ≤ start, add 24 hours to the end time
Decimal hours = hours + minutes ÷ 60

Worked examples

  • Day shift: 9:00 AM to 5:30 PM with a 30-minute lunch = 8 h 30 min − 30 min = 8 hours (8.00 decimal).
  • Night shift: 10:00 PM to 6:30 AM = (6:30 + 24:00) − 22:00 = 8 h 30 min (8.50 decimal).
  • Overtime week: five 9-hour days = 45 hours. At $20/hour that's 40 × $20 = $800 regular plus 5 × $30 = $150 overtime, so $950 gross.

Minutes to decimal hours

MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

Don't confuse 7.30 hours with 7 hours 30 minutes: 7 h 30 min is 7.50 decimal hours.

24-hour (military) time

Times after noon add 12: 1:00 PM = 13:00, 5:30 PM = 17:30, and midnight = 00:00. Converting to 24-hour time before subtracting avoids AM/PM mistakes, which is what this calculator does behind the scenes.

Overtime rules (US)

Under the federal Fair Labor Standards Act, covered non-exempt employees must be paid at least 1.5 times their regular rate for hours over 40 in a workweek (see the U.S. Department of Labor's overtime guidance). Some states add daily overtime or double time, and salaried exempt roles are treated differently. Change the "Overtime after" box if your rules differ.

Useful numbers

  • Full-time year: 40 hours × 52 weeks = 2,080 hours (about 2,000 after two weeks off).
  • An 8-hour shift starting at 9:00 AM with a 30-minute unpaid lunch ends at 5:30 PM.
  • Counting days instead of hours? Use the days from today calculator; for an age or anniversary, the age calculator.

Pay figures are gross estimates before taxes and deductions. Check your employer's rounding and break policies. More date and time calculators.

Frequently asked questions

How do I calculate hours worked?

Subtract the start time from the end time, then subtract unpaid breaks. 8:00 AM to 5:00 PM is 9 hours; minus a 1-hour lunch, that's 8 hours worked. Converting both times to 24-hour format first avoids AM/PM mistakes.

How do I calculate an overnight shift?

If the end time is earlier than the start time, the shift crossed midnight, so add 24 hours to the end time before subtracting. 10:00 PM to 6:30 AM is (6:30 + 24:00) − 22:00 = 8 hours 30 minutes. The calculator does this automatically.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours. Payroll systems usually need decimal hours: 15 minutes is 0.25, 30 minutes is 0.5 and 45 minutes is 0.75.

When does overtime start?

Under the federal Fair Labor Standards Act, covered non-exempt employees must get at least 1.5 times their regular rate for hours over 40 in a workweek. Some states, such as California, also require daily overtime, so check your state's rules.

How many work hours are in a year?

A full-time 40-hour week for 52 weeks is 2,080 hours. With two weeks of vacation, that's about 2,000 hours actually worked.

What time will it be in 8 hours?

Use the 'Hours from now' tab: it adds any number of hours and minutes to the current time (or a time you choose) and shows the day if it passes midnight.