TIME & PAY

Hours Calculator: Time Duration, Work Hours & Shifts

From 9:00 AM to 5:30 PM with a 30-minute unpaid lunch is 8 hours (8:00). Add up times, convert to decimal, or see when a shift ends.

  • Overnight shifts
  • Decimal converter
  • Shift differential
Calculate your hours
Quick answers
  • 9:00 AM – 5:30 PM, 30 min lunch8:00 h
  • 7:00 AM – 4:00 PM9:00 h
  • 3:45 + 2:30 + 4:5011:05
  • 11 h 05 min in decimal11.08
  • 8-hour shift from 7:00 AM, 30 min lunch, ends3:30 PM

To find the hours or time duration between two times, subtract the start time from the end time and take off any unpaid break. From 9:00 AM to 5:30 PM is 8 hours 30 minutes; minus a 30-minute unpaid lunch, that's 8 hours (8:00). For payroll, turn minutes into decimal hours by dividing by 60: 8 hours 45 minutes is 8.75 hours. This hours calculator also adds and subtracts hours and minutes, finds when a shift ends, and works out shift differential pay.

Last updated November 11, 2026  DOL rules and 29 CFR Parts 778 and 785  Review: pending sign-off by a qualified professional  How we calculate

What do you want to calculate?

For a plain time duration, set this to 0 (open with no break). Minutes (30; a plain number is minutes here), a duration (1:00 or 1h), or lunch out–in times (12:00-12:30). Leave out short paid breaks. If the end time is earlier than the start, the time runs past midnight.

Your result

Hours worked

8:00

8.00 decimal hours · 480 minutes

Time span8:30
Unpaid break−0:30
Hours worked8:00 (8.00)

How to Calculate Hours and Time Duration Between Two Times

  1. Use a 24-hour clock. 5:30 PM is 17:30, so 17:30 − 9:00 = 8 hours 30 minutes.
  2. Borrow an hour if the minutes don't fit. 4:15 PM − 9:45 AM: 16:15 − 9:45 → 15:75 − 9:45 = 6 hours 30 minutes.
  3. Subtract unpaid breaks. Meal periods you're fully relieved for, ordinarily 30 minutes or more, aren't work time; short rest breaks of about 5 to 20 minutes are (29 CFR 785.19, 785.18).
  4. Past midnight? Add 24 hours to the end time: 10:00 PM to 6:30 AM is 30:30 − 22:00 = 8 hours 30 minutes.
Hours between common start and end times
FromToHoursAfter 30 min lunch
8:00 AM5:00 PM9:00 (9.00)8:30 (8.50)
9:00 AM5:00 PM8:00 (8.00)7:30 (7.50)
7:00 AM3:30 PM8:30 (8.50)8:00 (8.00)
7:00 AM4:00 PM9:00 (9.00)8:30 (8.50)
8:00 AM4:30 PM8:30 (8.50)8:00 (8.00)
6:00 AM2:30 PM8:30 (8.50)8:00 (8.00)
7:00 AM7:00 PM12:00 (12.00)11:30 (11.50)
10:00 PM6:30 AM8:30 (8.50)8:00 (8.00)

For a whole week of clock-ins and clock-outs, with overtime, use the time card calculator. To turn weekly hours into a full-time equivalent, use the FTE calculator.

Adding Hours and Minutes

Add the hours and the minutes separately, then turn every 60 minutes into an hour. 3:45 + 2:30 + 4:50 is 9 hours and 125 minutes; 125 minutes is 2 hours 5 minutes, so the total is 11:05, or 11.08 in decimal. To subtract, borrow 60 minutes from the hours when you need to: 5:15 − 2:40 = 4:75 − 2:40 = 2:35.

Convert Minutes to Hours and Decimal Hours

Divide the minutes by 60 and add them to the hours: 7 hours 20 minutes is 7 + 20 ÷ 60 = 7.33 hours. Minutes on their own work the same way: 90 minutes is 1.5 hours, 120 minutes is 2 hours and 150 minutes is 2.5 hours. To go back, multiply the decimal part by 60: 0.6 hours is 36 minutes. In the calculator, choose "Convert (decimal or minutes)" and type minutes with an m, such as 90m.

Minutes as decimal hours
MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

8-Hour and 12-Hour Shifts

A shift's end time is its start time plus the paid hours plus any unpaid break. An 8-hour shift starting at 7:00 AM with a 30-minute unpaid lunch ends at 3:30 PM, an 8½-hour day at work. A night shift of 8 paid hours with a 30-minute unpaid break, starting at 10:00 PM, ends at 6:30 AM the next morning. A 12-hour shift with no unpaid break, starting at 7:00 AM, ends at 7:00 PM.

Under the standard federal rule, long days don't earn overtime by themselves: non-exempt employees get overtime for hours over 40 in a workweek (DOL). Three 12-hour shifts are 36 hours, so no federal overtime; four are 48 hours, so 8 overtime hours. Hospitals and residential care establishments may instead use, by agreement, a 14-day period with overtime after 8 hours in a day and 80 hours in the period (29 CFR 778.601), so a 12-hour shift there earns 4 overtime hours. Some states also require daily overtime; see California overtime law.

Overnight Times

If the end time is earlier than the start time, the calculator treats it as the next day: 10:00 PM to 6:30 AM is 8 hours 30 minutes. If a shift runs through 2:00 AM on the night clocks change for daylight saving time, it's really an hour longer or shorter than the clock times suggest, so check your employer's records for that night.

Shift Differential Pay

A shift differential is extra pay for working evenings, nights or weekends, either a set amount per hour or a percentage of your base rate. Federal law doesn't require it: "The Fair Labor Standards Act (FLSA) does not require extra pay for night work," and it's a matter of agreement between you and your employer (DOL, Night work).

If you're a non-exempt employee and get a differential, it counts toward your regular rate for overtime: the rules require "the inclusion in the regular rate of such extra premiums as nightshift differentials" (29 CFR 778.207(b)). So the overtime premium is based on your average rate for the week, not just your base rate. One exception: premium pay for work on weekends, holidays or regular days of rest at 1.5 times or more of your normal rate can be left out of the regular rate and credited toward overtime (29 CFR 778.203).

$20 base rate, $2 night differential, 45 hours with 10 at night
LineAmountHow it's figured
Base pay$900.0045 × $20
Differential$20.0010 × $2
Regular rate$20.44$920.00 ÷ 45 hours = $20.444…
Overtime premium$51.115 hours × ($20.444… ÷ 2)
Gross pay$971.11$970.00 if the differential were left out of the regular rate

A percentage differential works the same way: 10% on a $20 base is $2 more, or $22 an hour, for the hours it covers. For bonuses and other pay that changes the regular rate, see the overtime calculator.

What This Calculator Doesn't Cover

Frequently Asked Questions

How many hours is 7 AM to 4 PM?

9 hours. With a 30-minute unpaid lunch it's 8.5 hours of work, and with a 1-hour lunch, 8 hours.

How do I calculate the time duration between two times?

Subtract the start time from the end time on a 24-hour clock: 2:15 PM to 6:40 PM is 18:40 − 14:15 = 4 hours 25 minutes. In the calculator, set the unpaid break to 0 (this example) and the result is labeled as a duration.

How do I calculate hours worked?

Subtract your start time from your end time, take off unpaid breaks, and convert any minutes to decimal by dividing by 60. Add the days together for the week.

How do I add hours and minutes?

Add the hours and minutes separately, then turn each 60 minutes into an hour: 3:45 + 2:30 + 4:50 = 9:125 = 11:05.

How do I convert minutes to hours or decimal hours?

Divide the minutes by 60: 90 minutes is 1.5 hours, and 45 minutes is 0.75 hours, so 8 hours 45 minutes is 8.75 hours. 8 hours 20 minutes is 8.33 and 8 hours 10 minutes is 8.17. In the calculator, choose "Convert (decimal or minutes)" and type 90m.

When does an 8-hour shift end if I start at 7?

At 3:00 PM with no unpaid break, or 3:30 PM with a 30-minute unpaid lunch.

Is shift differential required by law?

Not under federal law; it's up to your employer or your contract. When a non-exempt employee is paid one, it must be included in the regular rate used for overtime.

Sources

For general information; not legal advice. Your employer's policies, contract and state law may differ.