1. Home
  2. Dates & time
  3. Hours Calculator
Dates & time

Hours Calculator

Convert a wall-clock interval into decimal paid hours after breaks.

Your numbers

minutes

Results update as you type. Nothing you enter is sent anywhere.

Result

8 hours

Gross duration 510 minutes − unpaid breaks 30 minutes. An earlier end means the next day; equal clocks mean zero duration.

Formula used

Paid hours = (end − start − unpaid breaks)/60, with overnight wrap

The Hours Calculator turns a start time, an end time and unpaid break minutes into decimal hours you can multiply by a pay rate. It handles shifts that run past midnight and returns a figure like 7.75 instead of 7 h 45 min, which is the format most payroll forms and invoices need.

How to use the Hours calculator

  1. Type Start time (HH:MM) in 24-hour format with a leading zero, for example 08:30 for 8:30 a.m. or 13:05 for 1:05 p.m. Entries like 8:30 or 1:05 PM are rejected.
  2. Type End time (HH:MM) the same way. If the end time is earlier than the start, the calculator assumes the shift ended the next day.
  3. Enter Unpaid breaks in minutes, such as 30 for a lunch break you were relieved from. Leave paid rest breaks out of this field.
  4. Read the paid hours in decimal. Multiply by an hourly rate for gross pay, or add several days together for a weekly total.

How the hours calculation works

FormulaPaid hours = (end − start − unpaid breaks)/60, with overnight wrap

From clock times to decimal hours

Each time is converted to minutes after midnight: 08:30 is 8 × 60 + 30 = 510, and 17:15 is 1,035. The shift length is the difference, 525 minutes. Unpaid break minutes are subtracted, and the total is divided by 60. Because the conversion happens in minutes, no rounding happens until the final display, which shows up to six decimal places.

Decimal hours confuse people because 7.5 hours means 7 hours 30 minutes, not 7 hours 50 minutes. Quarter hours are 0.25, 0.5 and 0.75. Any other minute value can be converted by dividing by 60, so 20 minutes is 0.333333 and 40 minutes is 0.666667.

Which breaks belong in the Unpaid breaks field

Under the federal Fair Labor Standards Act, short rest periods, usually 20 minutes or less, must be counted as hours worked. Bona fide meal periods, typically 30 minutes or more, generally do not have to be paid, but only when the employee is completely relieved from duty. A lunch eaten at the desk while answering calls is usually work time.

So a typical entry is 30 for a half-hour lunch, not 45 for a lunch plus two 7-minute coffee breaks. State laws and employment contracts can be more generous than the federal rule, so check your employer's policy or your state labor department if you are unsure. The calculator itself has no opinion about which minutes are paid; it subtracts whatever you enter.

Overnight shifts, overtime and time-clock rounding

A night shift from 22:00 to 06:30 is handled automatically: because 06:30 is earlier than 22:00, the calculator adds 24 hours to the end time. A shift can cross midnight once, so 24-hour-plus shifts need to be split. Equal start and end times return zero hours rather than 24.

The calculator does not apply overtime. Federal law requires overtime pay at one and a half times the regular rate for covered, non-exempt employees after 40 hours in a workweek; daily overtime exists only under some state laws. Add up the week's paid hours first, then use the Overtime Pay Calculator. Some employers round punches to the nearest 5, 6 or 15 minutes, which federal regulations accept only if the rounding does not shortchange employees over time. Enter the times as recorded on your timesheet to match your paycheck.

Worked examples

Day shift with a 45-minute unpaid lunch

Start time (HH:MM): 08:30 · End time (HH:MM): 17:15 · Unpaid breaks: 45 minutes

  1. Start: 8 × 60 + 30 = 510 minutes after midnight.
  2. End: 17 × 60 + 15 = 1,035 minutes after midnight.
  3. Shift length: 1,035 − 510 = 525 minutes.
  4. Paid minutes: 525 − 45 = 480. Paid hours: 480 ÷ 60 = 8.

Result: 8 hours

Night shift that ends the next morning

Start time (HH:MM): 22:00 · End time (HH:MM): 06:30 · Unpaid breaks: 30 minutes

  1. Start: 22 × 60 = 1,320 minutes. End: 6 × 60 + 30 = 390 minutes.
  2. The end is earlier than the start, so add a day: 390 + 1,440 = 1,830.
  3. Shift length: 1,830 − 1,320 = 510 minutes. Subtract the 30-minute meal: 480 minutes.
  4. 480 ÷ 60 = 8 paid hours.

Result: 8 hours

Assumptions and limits

Equal start/end means zero hours; earlier end wraps to next day. No daylight-saving or overtime policy.

Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.

Frequently asked questions

How do I convert minutes to decimal hours for a timesheet?

Divide the minutes by 60. 15 minutes is 0.25, 45 minutes is 0.75, and 50 minutes is 0.833333. So 7 hours 50 minutes is entered as 7.83 on most timesheets that ask for two decimals.

Should 15-minute breaks be subtracted from my hours?

Under federal law, rest breaks of about 20 minutes or less count as paid work time, so they should not be entered as unpaid. Meal breaks of 30 minutes or more, where you are fully relieved of duty, are generally unpaid. Your state or employer may have stricter rules.

How many hours is 9 a.m. to 5 p.m.?

Enter 09:00 and 17:00. That is 8 hours with no break, or 7.5 hours if you take an unpaid 30-minute lunch.

How do I calculate pay from decimal hours?

Multiply the decimal hours by the hourly rate. 7.75 hours at $18.40 an hour is 7.75 × 18.40 = $142.60 gross. Taxes and deductions come off that figure, which the Hours Calculator does not estimate.

Why does the calculator reject 8:30?

It expects 24-hour times with two digits for the hour, so 8:30 a.m. must be typed as 08:30 and 8:30 p.m. as 20:30. This avoids a.m./p.m. mix-ups, which are the most common cause of wrong timesheet totals.

Can I total a whole week of shifts here?

Calculate each day separately and add the results. If every shift is identical, the Work Hours Calculator multiplies one day's paid hours by the number of shifts for you.

Sources