Hours calculator: work hours with lunch

This hours calculator finds how long you worked between a start and end time, takes off your unpaid lunch (as minutes or as the times you clocked out and back in), and gives the answer in hours and minutes and in decimal hours for payroll. Add the days you work to see the weekly total and any hours over 40.

  • Lunch as minutes or clock-out times
  • Works for overnight shifts
  • Decimal hours, weekly total and pay

Last updated

How many hours did I work?

min
min
$
days
Hours worked 8:30 hours 8:00 AM to 5:00 PM is 9:00, minus 30 min of unpaid lunch and breaks = 8:30
Decimal hours
8.50
Total minutes
510
Shift length
9:00
Unpaid breaks
0:30
Pay
Add a rate
Week (5 days)
42:30 (42.50 h)
Hours over 40 a week
2.50

Next steps: 5 days like this is 42.50 hours, so check the pay for the 2.50 hours over 40 in the overtime calculator. Enter each day’s times in the time card calculator, convert other times with the time to decimal calculator, or see 8.5 hours a day, 5 days a week as a yearly salary in the hourly to salary calculator.

Estimates only. Rounding, break and pay rules vary by state and employer; this is not legal or payroll advice.

How to use the hours calculator

  1. Enter the time you started and the time you finished. If you finished after midnight, just enter the end time; the calculator adds the extra day.
  2. Enter your unpaid lunch in minutes, such as 30 for a half-hour lunch, or switch to “Lunch out and in times” and enter the times you clocked out and back in. Leave breaks at 0 if they were paid.
  3. Pick a rounding rule only if your employer rounds clock punches, then add your hourly rate if you want to see the pay. Set how many days a week you work this shift to see the weekly total and any hours over 40.
  4. Read the hours as h:mm, or copy the decimal hours onto a timesheet.

How to calculate hours worked

Turn both clock times into minutes after midnight, subtract the start from the end, then take off the unpaid lunch and any other unpaid breaks. If the end time is earlier than the start, the shift ran past midnight, so add 24 hours (1,440 minutes) first.

hours worked = (end − start) − unpaid lunch and breaks

To get decimal hours, divide the minutes by 60. 8 hours 30 minutes is 8 + 30 ÷ 60 = 8.5 hours. Payroll multiplies the decimal hours by the hourly rate.

Worked example

A night shift runs from 10:00 PM to 6:30 AM with a 30-minute unpaid meal break.

  1. In 24-hour time the shift starts at 22:00 and ends at 6:30. The end is earlier than the start, so add 24 hours: 6:30 becomes 30:30.
  2. Subtract: 30:30 − 22:00 = 8 hours 30 minutes.
  3. Take off the break: 8:30 − 0:30 = 8 hours 0 minutes.
  4. In decimal that is 8.00 hours. At $18.50 an hour, the pay is 8 × $18.50 = $148.00.

Enter 22:00, 06:30, a 30-minute lunch and a rate of 18.50 in the calculator and it shows the same 8:00 and $148.00.

How do you calculate hours worked?

Write the start and end times in 24-hour form, subtract the start from the end, and take off any unpaid break. 7:45 AM to 4:10 PM is 7:45 to 16:10, which is 8 hours 25 minutes. With no unpaid break that is 8.42 decimal hours, because 25 minutes ÷ 60 = 0.42. Payroll multiplies the decimal by your hourly rate.

  1. Change PM times to 24-hour time by adding 12 to the hour: 4:10 PM is 16:10. AM times stay the same. The two exceptions: 12 AM (midnight) is 0:00 and 12 PM (noon) stays 12:00.
  2. Subtract the minutes: 10 is less than 45, so borrow an hour. 16:10 becomes 15:70, and 70 − 45 = 25 minutes.
  3. Subtract the hours: 15 − 7 = 8. The shift is 8 hours 25 minutes.
  4. Take off unpaid time. With a 30-minute unpaid lunch, it is 7 hours 55 minutes, or 7.92 decimal hours.
  5. Multiply by your rate: 475 minutes ÷ 60 × $20 = $158.33. Rounding to 7.92 hours first gives $158.40, so work from the exact minutes, as the calculator does.

Try it ready-filled: 7:45 AM to 4:10 PM with no unpaid break. For a plain length of time that is not a work shift, such as a flight or a drive, the time calculator finds the duration with seconds.

How do you calculate hours worked in a week?

Work out the hours for each day, then add the days together. Five shifts of 8:00 AM to 5:00 PM with a 30-minute unpaid lunch are 8.5 hours each, so the week is 42.5 hours. Under federal law, the 2.5 hours over 40 in the workweek are overtime, paid at least 1.5 times your regular rate.

Days with different times work the same way. Here is one week with a 30-minute or 45-minute unpaid lunch each day:

DayStartEndUnpaid lunchHours (h:mm)Decimal
Monday8:00 AM4:30 PM30 min8:008.00
Tuesday8:00 AM5:00 PM30 min8:308.50
Wednesday7:45 AM4:15 PM30 min8:008.00
Thursday8:00 AM5:30 PM45 min8:458.75
Friday8:00 AM4:30 PM30 min8:008.00
Week41:1541.25

The week is 41.25 hours: 40 regular hours and 1.25 overtime hours. At $20 an hour, that is 40 × $20 = $800.00 plus 1.25 × $30 = $37.50, for $837.50. Check it in the overtime calculator, or enter each day’s punches in the time card calculator. Federal overtime counts per workweek, a fixed 168-hour period of seven days in a row, so hours do not carry from one week to the next. Some states also count overtime per day.

How to calculate hours worked with a lunch break

Subtract your start time from your end time, then take off your unpaid lunch. 8:30 AM to 5:15 PM is 8 hours 45 minutes. Take off a 45-minute lunch and you worked 8 hours 0 minutes, or 8.00 decimal hours. If the shift crosses midnight, add 24 hours to the end time first. Short paid rest breaks stay in.

  1. Find the shift length: 5:15 PM is 17:15 in 24-hour time and 8:30 AM is 8:30. 17:15 − 8:30 = 8 hours 45 minutes.
  2. Find the unpaid lunch: 45 minutes. If you clocked out and back in, it is the gap between the punches: 12:05 PM to 12:40 PM is 35 minutes.
  3. Subtract: 8:45 − 0:45 = 8:00.
  4. Convert to decimal: 0 minutes ÷ 60 = 0, so the day is 8.00 hours. At $20 an hour, that is $160.00.

To check it, enter 8:30, 5:15 and 45 minutes of lunch. The calculator shows 8:00, 8.00 decimal hours and 480 total minutes. You can also open it ready-filled: 8:30 AM to 5:15 PM with a 45-minute lunch.

Another example with a half-hour lunch: 8:00 AM to 5:00 PM is 9 hours. Minus 30 minutes, that is 8 hours 30 minutes, or 8.5 decimal hours, the calculator’s starting values. With more than one unpaid break, add them up first. A 6:00 AM to 6:00 PM shift with a 30-minute lunch and a 30-minute unpaid dinner is 12:00 − 1:00 = 11 hours. Do not take off short rest breaks of 5 to 20 minutes: federal law counts them as paid work time.

Next, total the week in the time card calculator, turn h:mm into decimals with the time to decimal calculator, or check pay past 40 hours with the overtime calculator.

Common shifts with lunch: total hours and decimal

Worked hours after the unpaid lunch, in hours and minutes and in decimal hours for payroll.

StartEndUnpaid lunchTotal (h:mm)Decimal
8:00 AM5:00 PM30 min8:308.50
8:00 AM5:00 PM60 min8:008.00
8:00 AM4:30 PM30 min8:008.00
8:30 AM5:15 PM45 min8:008.00
9:00 AM5:00 PM30 min7:307.50
9:00 AM5:00 PM60 min7:007.00
9:00 AM5:30 PM30 min8:008.00
9:00 AM6:00 PM60 min8:008.00
7:00 AM3:30 PM30 min8:008.00
6:00 AM2:30 PM30 min8:008.00
7:00 AM7:00 PM30 min11:3011.50
8:00 AM4:00 PM30 min7:307.50
9:00 AM5:00 PM45 min7:157.25
8:00 AM5:30 PM45 min8:458.75
10:00 PM6:30 AM30 min8:008.00
11:00 PM7:00 AMNone8:008.00

Is lunch break time paid?

Usually not, if it is a real meal break. Under federal rules, a meal period of 30 minutes or more is not work time when you are completely relieved of duty. Rest breaks of 5 to about 20 minutes are different: they count as hours worked and must be paid. Federal law does not require employers to give either kind of break.

The rules are in the Department of Labor’s wage and hour regulations. 29 CFR 785.19 says bona fide meal periods are not work time, that ordinarily 30 minutes or more is long enough, and that a shorter period may count under special conditions. 29 CFR 785.18 says rest periods from 5 minutes to about 20 minutes are customarily paid and must be counted as hours worked. Both were last checked on 29 November 2026.

You are not relieved of duty if you must keep working while you eat. The U.S. Department of Labor’s examples are an office worker required to eat at their desk and a factory worker required to stay at their machine: that time is work time. Some states require meal or rest breaks, so check your state’s labor department.

Some employers also round clock punches. Federal rules accept rounding to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour (15 minutes), as long as over time it does not shortchange workers. With 15-minute rounding, a punch at 8:07 counts as 8:00 and a punch at 8:08 counts as 8:15. State rules can be stricter.

Common questions

How do I calculate hours worked with a lunch break?

Subtract your start time from your end time, then take off the unpaid lunch. 8:00 AM to 5:00 PM is 9 hours; minus a 30-minute lunch, that is 8 hours 30 minutes, or 8.5 decimal hours.

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

9:00 AM to 5:00 PM is 8 hours. With an unpaid 30-minute lunch it is 7 hours 30 minutes (7.5 hours), and with a 1-hour lunch it is 7 hours. 8 to 5 with a 1-hour lunch is 8 hours.

Is a 30-minute lunch break paid?

Under federal rules, a meal break of 30 minutes or more can be unpaid if you are completely relieved of duty. Rest breaks of 5 to about 20 minutes count as work time and are paid. Federal law does not require breaks, but some states do.

How do I calculate hours for an overnight shift with lunch?

Add 24 hours to the end time, subtract the start time, then take off the lunch. 10:00 PM to 7:00 AM becomes 31:00 minus 22:00, which is 9 hours; minus a 30-minute lunch, that is 8.5 hours.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours, and 6 hours 20 minutes is 6.33 hours.

How do I add up hours for a whole week?

Find the hours for each day, then add them. Five days of 8:00 AM to 5:00 PM with a 30-minute lunch is 5 × 8.5 = 42.5 hours. The time card calculator totals seven days at once and shows overtime past 40 hours.

How many hours is 8:30 to 5:15 with a 45-minute lunch?

8:30 AM to 5:15 PM is 8 hours 45 minutes. Minus a 45-minute lunch, that is 8 hours 0 minutes, or 8.00 decimal hours.

How many hours is 7 to 3:30 with a 30-minute lunch?

7:00 AM to 3:30 PM is 8 hours 30 minutes. Minus a 30-minute unpaid lunch, you worked 8 hours, or 8.00 decimal hours.

Does an unpaid lunch count toward 40 hours or overtime?

No. Unpaid meal time is not hours worked, so it is not counted toward the 40 hours a week that trigger federal overtime. Five days of 8:30 AM to 5:15 PM with a 45-minute lunch is 5 × 8 = 40 hours, so no overtime. Shorten the lunch to 30 minutes and it is 5 × 8.25 = 41.25 hours.

How do I calculate a 1-hour lunch break?

Subtract 60 minutes from the shift length. 9:00 AM to 6:00 PM is 9 hours; minus a 1-hour lunch, that is 8 hours. In the calculator, enter 60 in the unpaid lunch box.

How many hours is 7:45 AM to 4:10 PM?

8 hours 25 minutes, or 8.42 decimal hours. With a 30-minute unpaid lunch it is 7 hours 55 minutes, or 7.92 hours.

How many hours is 5 days of 8 to 4:30 with a 30-minute lunch?

Each day is 8 hours 30 minutes minus 30 minutes, which is 8 hours. Five days is 40 hours, right at the federal overtime line, so none of it is overtime.

When do work hours become overtime?

Under federal law, hours worked over 40 in a workweek are overtime, paid at least 1.5 times the regular rate. 42.5 hours at $20 is 40 × $20 plus 2.5 × $30, which is $875.00. Some states also have daily overtime.

How do I calculate work hours for 4 days of 10-hour shifts?

Find one day, then multiply. 7:00 AM to 5:30 PM with a 30-minute unpaid lunch is 10 hours, so 4 days is 40 hours. Set “Days like this a week” to 4 and the calculator shows 40:00.

Sources

See the methodology page for how Clockfigure builds and checks its calculators.