X-Calculator
Business and Everyday Money Updated November 23, 2026

Hours Calculator

Work out hours worked between two times, minus breaks, in h:mm and decimal hours, with optional pay.

Start time
End time
Unpaid break
min
Hourly rate (optional)
$
Number of identical shifts
Advertisement
Advertisement

This hours calculator works out how long you worked between a start time and an end time, subtracts your unpaid break, and gives the result in hours and minutes and in decimal hours for your timesheet. Add an hourly rate to see gross pay, and set the number of shifts to total a whole week. Shifts that cross midnight are handled automatically.

How to calculate hours worked

shift length  = end time − start time   (add 24 h if the end is earlier than the start)
hours worked  = shift length − unpaid break
decimal hours = hours + minutes ÷ 60
gross pay     = decimal hours × hourly rate

Convert both times to the 24-hour clock first – 5:30 PM is 17:30 – so the subtraction is straightforward. If the end time is smaller than the start time, the shift ran past midnight and you add 24 hours to the end time.

Worked examples

  • 9:00 AM to 5:30 PM with a 30-minute lunch: 17:30 − 9:00 = 8 h 30 min; minus 30 min = 8:00 = 8.00 hours. At $25/hour that is $200.00.
  • Night shift 10:00 PM to 6:30 AM, 30-minute break: 6:30 + 24:00 − 22:00 = 8 h 30 min; minus 30 min = 8:00. At $20/hour = $160.00.
  • 8:15 AM to 5:05 PM, 45-minute break, 5 days at $18.50: 8 h 50 min − 45 min = 8 h 5 min per day (8.08 h). Five shifts = 40:25 = 40.42 hours = $747.71 straight time. The 25 minutes over 40 hours qualify for overtime, adding $3.85.
  • 7:00 AM to 3:45 PM, no break: 8:45 = 8.75 hours.
Advertisement
Advertisement

Minutes to decimal hours for timesheets

Payroll systems need hours as a decimal. Never type 7:45 as 7.45 – it is 7.75.

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.50 60 1.00

Many employers round punches to the nearest quarter hour (7 minutes or less rounds down, 8 or more rounds up). The US Department of Labor allows this only if, over time, it does not consistently shortchange employees.

Common work schedules

Schedule Hours per week Hours per year (52 weeks) Yearly pay at $20/h
8 h × 5 days (9–5:30 with 30-min lunch) 40 2,080 $41,600
7.5 h × 5 days 37.5 1,950 $39,000
10 h × 4 days (4/10) 40 2,080 $41,600
12 h × 3 days (nursing, security) 36 1,872 $37,440
9/80 (80 h over 9 days in 2 weeks) 40 average 2,080 $41,600
Part-time 4 h × 5 days 20 1,040 $20,800

The 2,080-hour work year is the standard figure for converting an hourly wage to an annual salary: multiply the hourly rate by 2,080, or divide a salary by 2,080 to get the hourly equivalent.

Breaks, overtime and the law

  • Short breaks are paid. Under the federal Fair Labor Standards Act, rest breaks of 5–20 minutes count as hours worked. Only genuine meal periods of typically 30 minutes or more, when you are fully relieved of duty, can be unpaid – so enter only those as the unpaid break.
  • Overtime is weekly. Non-exempt employees earn at least 1.5× their regular rate for hours over 40 in a workweek. Federal law has no daily overtime, but some states do – California, for example, requires overtime after 8 hours in a day.
  • Meal break rules vary by state. California requires a 30-minute meal period for shifts over 5 hours; many states have no requirement for adults.

See the US Department of Labor’s FLSA guidance for the federal rules and your state labor department for local ones.

Good to know: pay figures here are gross amounts before taxes and deductions and are estimates for educational purposes, not payroll or legal advice.

Tips for accurate time tracking

  • Record start and end times as they happen; reconstructing a week from memory typically misses 15–30 minutes a day.
  • Log each shift separately when start or end times differ, then add the daily totals with the time calculator.
  • For shifts that span a daylight saving change, add or subtract one hour manually – the night the clocks go back, a 10 PM–6 AM shift is 9 hours long.

Frequently Asked Questions

How do I calculate hours worked in a day?

Subtract the start time from the end time using a 24-hour clock, then subtract any unpaid break. For 8:00 AM to 4:30 PM with a 30-minute lunch: 16:30 − 8:00 = 8 h 30 min, minus 30 min = 8 hours.

How do I calculate hours for an overnight shift?

Add 24 hours to the end time before subtracting. For 11:00 PM to 7:00 AM: 7:00 + 24:00 − 23:00 = 8 hours. The calculator does this automatically whenever the end time is earlier than the start time.

How do I convert hours and minutes to decimal for payroll?

Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes is 7.75 hours, and 8 hours 20 minutes is 8.33 hours.

Should breaks be subtracted from hours worked?

Only unpaid meal breaks, usually 30 minutes or longer. Under federal law, short rest breaks of 5–20 minutes are paid work time and should stay in your total.

Does the calculator include overtime pay?

Gross pay is calculated at your straight hourly rate. When the total exceeds 40 hours, the step-by-step section shows how much federal 1.5× overtime would add if all hours fall in the same workweek.

Advertisement
Advertisement
Advertisement