Skip to content

Hours Calculator

9:00 AM to 5:30 PM is 8 hours 30 minutes — 8 hours after a 30-minute unpaid lunch. Enter your times and breaks for hours in h:mm, decimal hours and pay.

Common shifts
Breaks
Break 1 is
Round start and end to

Hours worked

8 hours

Hours:minutes
8:00
Decimal hours
8
Minutes
480
On the clock
8:30
Unpaid breaks
30 min

9:00 AM → 5:30 PM

Updates as you typeNo sign-upShare the link and your numbers travel with it

How to calculate hours worked

  1. Enter the start and end time. The fields use your phone’s time picker; on a computer, type the hour, minutes and AM or PM.
  2. Add breaks. Mark each one Unpaid (a meal break, taken off the hours) or Paid (a short rest break, which stays in the hours).
  3. Optional: round the times to 5, 6 or 15 minutes, and enter your hourly rate to see the pay for the shift.
  4. Read the answer: hours worked as 8:00 and as 8 decimal hours, the minutes, the time on the clock before breaks, and the pay.

Common shifts with a 30-minute unpaid lunch:

Shift On the clock Hours worked Decimal
9:00 AM – 5:00 PM 8:00 7:30 7.5
9:00 AM – 5:30 PM 8:30 8:00 8
8:00 AM – 4:30 PM 8:30 8:00 8
7:00 AM – 3:30 PM 8:30 8:00 8
10:00 PM – 6:30 AM 8:30 8:00 8
7:00 AM – 7:00 PM 12:00 11:30 11.5

Federal wage rules separate two kinds of breaks:

  • Rest breaks of about 5 to 20 minutes “must be counted as hours worked” (29 CFR 785.18). A 15-minute coffee break is paid time.
  • Meal periods of ordinarily 30 minutes or more, when you are completely relieved from duty, are not worktime (29 CFR 785.19). A 30-minute lunch away from your desk is usually unpaid.

The calculator subtracts only the breaks you mark Unpaid. If you mark a break of under 20 minutes as unpaid, it reminds you of the rest-break rule. Employers have paid large settlements for deducting short breaks as unpaid lunches, so it is worth checking a pay stub. Some states, such as California, have their own meal and rest break rules; this calculator does not apply state rules or give legal advice — the U.S. Department of Labor’s breaks page links to the federal rules.

Night shifts and 12 AM vs 12 PM

  • 12:00 AM is midnight — the start of a new day. 12:00 PM is noon. NIST notes that “a.m.” and “p.m.” are ambiguous at exactly 12, so the calculator writes “12:00 AM (midnight)” and “12:00 PM (noon)” next to the answer. To read or write shift times as 0730 and 1915, use the military time converter.
  • Shifts that cross midnight: when the end time is earlier than the start time, the shift ends the next day. 10:00 PM to 6:30 AM is 8 hours 30 minutes on the clock.
  • The nights the clocks change — in March and November — a night shift is an hour shorter or longer than the clock says. For those, use the time duration calculator, which takes dates and time zones into account.

Hours and minutes to decimal hours

Minutes Decimal Minutes Decimal
5 0.08 35 0.58
10 0.17 40 0.67
15 0.25 45 0.75
20 0.33 50 0.83
25 0.42 55 0.92
30 0.5 60 1

Multiply decimal hours by your rate for the pay: 7.75 hours × $18 = $139.50. To total a week of shifts day by day, with hours over 40, use the work hours calculator; to add up a list of durations — 7:45 + 8:15 + 6:30 + 8:00 + 5:50 = 36:20 — the time calculator. The pay shown here is gross pay for one shift at one rate — no overtime, taxes or deductions. To work out a raise or a share of your pay, the percentage calculator shows each step.

Rounding time to the nearest 5, 6 or 15 minutes

Many time clocks round punches. Federal rules accept rounding start and stop times “to the nearest 5 minutes, or to the nearest one-tenth or quarter of an hour”, provided it averages out so employees are paid for all the time they actually work (29 CFR 785.48).

Punch Nearest 5 min Nearest 6 min (0.1 h) Nearest 15 min
7:53 AM 7:55 AM 7:54 AM 8:00 AM
4:08 PM 4:10 PM 4:06 PM 4:15 PM
Hours, after a 30-min lunch 7:45 7:42 7:45

Choose Round to to see the times your time clock would record; the card shows the original times next to the rounded ones.

Hours in Excel and Google Sheets

Want Formula (start in A1, end in B1, break minutes in C1)
Hours as h:mm =B1-A1-C1/1440, formatted [h]:mm
Decimal hours =(B1-A1)*24-C1/60
Night shift (end after midnight) =MOD(B1-A1,1)*24-C1/60
Pay at the rate in D1 =((B1-A1)*24-C1/60)*D1

Excel shows #### for a night shift if you subtract times that cross midnight without MOD. To count whole days between dates, use the days between dates calculator.

Frequently asked questions

How many hours is 9 to 5 with a 30-minute lunch?

9:00 AM to 5:00 PM is 8 hours on the clock; minus a 30-minute unpaid lunch it is 7 hours 30 minutes, or 7.5 hours. 9:00 AM to 5:30 PM with the same lunch is exactly 8 hours.

Are 15-minute breaks paid?

Under federal rules, short rest breaks of about 5 to 20 minutes count as hours worked and are paid (29 CFR 785.18). Meal periods — ordinarily 30 minutes or more, completely relieved from duty — are not worktime (29 CFR 785.19). State laws can add more; mark each break Paid or Unpaid in the calculator.

Is 12 AM midnight or noon?

12:00 AM is midnight, the start of the day, and 12:00 PM is noon. NIST calls both labels ambiguous and suggests saying 12 noon and 12 midnight, so the calculator writes them that way next to the answer.

How do I calculate hours for a night shift?

Enter the start and end times as they are — 10:00 PM and 6:30 AM. When the end is earlier than the start, the calculator counts the shift as ending the next day: 8 hours 30 minutes, or 8 hours after a 30-minute lunch.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25, 30 is 0.5, 45 is 0.75. So 7 hours 45 minutes is 7.75 hours — not 7.45.

Can my employer round my time?

Federal rules allow rounding start and stop times to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour, as long as it averages out so employees are paid for all the time they actually work (29 CFR 785.48). Use Round to see what your time clock records.