Date & Time

Hours Calculator

This hours calculator works out the hours worked between a start and an end time, takes off unpaid breaks and gives the answer in hours and minutes and in decimal hours for payroll.

Try
Calculate

Shows pay before tax. No currency is assumed.

More options Show times as
Show times as

Result

Hours worked, after breaks: 8 h

Hours worked, after breaks

8 h

8.00 decimal hours

Decimal hours
8
Hours and minutes (h:mm)
8:00
Total minutes
480 min
Shift length, before breaks
8 h 30 min
Unpaid breaks
30 min

From 8:00 AM to 4:30 PM is 8 h 30 min. After 30 min of unpaid breaks, that is 8 h worked, or 8.00 hours.

Step-by-step working (4 steps)
  1. Convert both times to minutes after midnight

    8:00 AM = 8 × 60 + 0 = 480; 4:30 PM = 16 × 60 + 30 = 990.

  2. Subtract the start from the end

    990 − 480 = 510 minutes = 8 h 30 min.

  3. Take off the unpaid breaks

    510 − 30 = 480 minutes = 8 h.

  4. Convert to decimal hours

    480 ÷ 60 = 8 hours, written 8.00 on a timesheet.

Fill in a week timecard to total the week and split out overtime and pay, or add up a list of hours. Shifts past midnight are handled.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Choose Shift for a single day, Timecard for a week from Monday to Sunday, or Add hours to total a list.
  2. Enter the start and end times. An end time earlier than the start, such as 10:00 PM to 6:30 AM, is read as the next morning.
  3. Type unpaid breaks in minutes. In Shift, separate several breaks with commas, such as 15, 30, 15. On the timecard, one break applies to every day worked; list days that differ under More options, such as Wed 60, Fri 0, and leave days off blank.
  4. Pick a rounding rule if your employer rounds clock times, and an overtime rule for the week. Add an hourly rate to see gross pay.
  5. Read the total in hours and minutes and in decimal hours. Open the working to check each step, or use Print for a paper copy of the timecard.

Formulas

Hours worked in one shift

hours=tend−tstart−breaks60\text{hours} = \frac{t_{\text{end}} - t_{\text{start}} - \text{breaks}}{60}

Plain-text formula: hours = (t_end − t_start − breaks)/60

t_start, t_end
the start and end times in minutes after midnight
breaks
unpaid break minutes

Write both times as minutes after midnight (hours × 60 + minutes), subtract, take off unpaid break minutes, then divide by 60 for decimal hours. If the end time is earlier than the start, the shift runs past midnight: add 1,440 minutes (24 hours) to the end first.

Minutes to decimal hours

decimal hours=h+m60\text{decimal hours} = h + \frac{m}{60}

Plain-text formula: decimal hours = h + m/60

Payroll software wants hours as a decimal. 8 h 45 min = 8 + 45/60 = 8.75 hours. Going back, multiply the decimal part by 60: 0.4 h × 60 = 24 minutes.

Weekly overtime and pay

pay=r×min(H,40)+1.5r×max(H−40,0)\text{pay} = r \times \min(H, 40) + 1.5\,r \times \max(H - 40, 0)

Plain-text formula: pay = r × min(H, 40) + 1.5 r × max(H − 40, 0)

Under the US Fair Labor Standards Act, non-exempt employees earn at least 1.5 times their regular rate for hours over 40 in a workweek. H is the week’s total hours and r the hourly rate.

Reading the result

The main answer is in hours and minutes, with decimal hours underneath. They are different numbers: 8 h 30 min is 8.50 decimal hours, and 7 h 20 min is 7.33, not 7.20. Use decimal hours when you multiply by a pay rate or enter hours into payroll software. To turn decimal hours back into minutes, use the hours to minutes converter.

Decimal hours are shown to two places, as timesheets write them. Pay is worked out from the exact minutes, so it can differ by a cent or two from multiplying the rounded decimal by the rate.

The week timecard puts each shift on the day it started, so a Friday night shift that ends on Saturday morning counts as Friday. Overtime is counted in day order, Monday first, which matches how hours over 40 are reached during a week.

How to calculate hours worked

To work out the hours worked in a shift, convert the start and end times to minutes after midnight, subtract, and take away any unpaid break. For 8:00 AM to 4:30 PM with a 30-minute lunch: 8:00 AM is 480 minutes and 4:30 PM is 16 × 60 + 30 = 990 minutes. Then 990 − 480 = 510 minutes, and 510 − 30 = 480 minutes, which is 8 hours.

For a shift that ends after midnight, the end time is smaller than the start. Add 24 hours (1,440 minutes) to the end time first: 10:00 PM to 6:30 AM is (390 + 1,440) − 1,320 = 510 minutes, or 8 h 30 min. The table shows common shifts worked out the same way.

Common shifts, unpaid breaks and hours worked
ShiftShift lengthUnpaid breakHours workedDecimal hours
9:00 AM to 5:00 PM8 h60 min7 h7.00
8:00 AM to 5:00 PM9 h60 min8 h8.00
8:00 AM to 4:30 PM8 h 30 min30 min8 h8.00
7:00 AM to 3:30 PM8 h 30 min30 min8 h8.00
7:30 AM to 4:00 PM8 h 30 min30 min8 h8.00
6:00 AM to 2:30 PM8 h 30 min30 min8 h8.00
9:00 AM to 2:00 PM5 hNone5 h5.00
3:00 PM to 11:30 PM8 h 30 min30 min8 h8.00
10:00 PM to 6:30 AM8 h 30 min30 min8 h8.00
7:00 PM to 7:00 AM12 h60 min11 h11.00

Is a lunch break counted as hours worked?

Under US federal rules, short rest breaks of about 5 to 20 minutes count as hours worked and must be paid (29 CFR 785.18). A real meal period, usually 30 minutes or more, when you are fully relieved of duty, is not work time and can be unpaid (29 CFR 785.19). If you eat at your desk while still answering the phone, that meal time counts as work.

So enter only unpaid breaks in the calculator. Federal law does not require employers to give meal or rest breaks, but many states do, such as California’s 30-minute meal period for shifts over 5 hours. The Department of Labor lists the state rules on its breaks and meal periods page (opens in a new tab).

Minutes to decimal hours chart

Divide minutes by 60 to get the decimal part of an hour. Payroll usually rounds this to two places, so 20 minutes is written 0.33 and 40 minutes 0.67. Multiples of 6 minutes give exact tenths: 6 min = 0.1 h, 12 min = 0.2 h. For other time units, the minutes to hours converter converts any number of minutes.

Minutes as decimal hours, rounded to two places
MinutesDecimalMinutesDecimalMinutesDecimalMinutesDecimal
10.02160.27310.52460.77
20.03170.28320.53470.78
30.05180.30330.55480.80
40.07190.32340.57490.82
50.08200.33350.58500.83
60.10210.35360.60510.85
70.12220.37370.62520.87
80.13230.38380.63530.88
90.15240.40390.65540.90
100.17250.42400.67550.92
110.18260.43410.68560.93
120.20270.45420.70570.95
130.22280.47430.72580.97
140.23290.48440.73590.98
150.25300.50450.75601.00

Overtime: when it starts and how it is paid

Under the Fair Labor Standards Act (FLSA), a non-exempt employee in the US must be paid at least 1.5 times the regular rate for every hour over 40 in a workweek. The workweek is a fixed, repeating 7-day period that the employer chooses; it does not have to start on Monday, and each week stands alone, so a 45-hour week and a 35-hour week cannot be averaged to 40. Federal law has no daily overtime: a 10-hour day is not overtime if the week stays at or under 40 hours.

Some states add daily overtime. California pays 1.5× for hours over 8 in a workday and for the first 8 hours on the seventh straight day worked in a workweek, and 2× (double time) for hours over 12 in a day and over 8 on that seventh day. Choose California in the overtime rule to apply these. Other states, including Alaska and Colorado, have their own daily rules, so check your state labor department.

Overtime rules the calculator applies
RuleOvertime at 1.5×Double time at 2×
US federal (FLSA)Hours over 40 in the workweekNone
CaliforniaOver 8 h in a day; over 40 regular hours in the week; the first 8 h on the 7th straight workdayOver 12 h in a day; over 8 h on the 7th straight workday

Rounding time clock punches: the 7-minute rule

Employers may round clock-in and clock-out times to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour (15 minutes), as long as the rounding averages out and does not always favor the employer (29 CFR 785.48(b)). Quarter-hour rounding is called the 7-minute rule: up to 7 minutes past a quarter hour rounds down, and 8 or more rounds up.

Clock times rounded to the nearest 15 and 6 minutes
PunchMinutes past 8:00Nearest 15 minNearest 6 min
8:03 AM38:00 AM8:06 AM
8:07 AM78:00 AM8:06 AM
8:08 AM88:15 AM8:06 AM
8:12 AM128:15 AM8:12 AM
8:15 AM158:15 AM8:18 AM
8:22 AM228:15 AM8:24 AM
8:23 AM238:30 AM8:24 AM
8:37 AM378:30 AM8:36 AM
8:38 AM388:45 AM8:36 AM

How many work hours are in a week, month and year?

A full-time schedule of 40 hours a week over 52 weeks is 2,080 hours a year, the figure many employers use to turn an annual salary into an hourly rate (salary ÷ 2,080). A year has 365 × 24 = 8,760 hours, or 8,784 in a leap year.

Hours in common periods
PeriodHours
1 day24
1 week168
Full-time work week40
Two-week (biweekly) pay period at 40 h a week80
Average month at 40 h a week (2,080 ÷ 12)173.33
Work year at 40 h a week (40 × 52)2,080
Calendar year (365 days)8,760
Leap year (366 days)8,784

Worked example

A week with overtime

Monday, Tuesday and Thursday 8:00 AM to 5:00 PM, Wednesday 7:00 AM to 6:30 PM and Friday 8:00 AM to 4:00 PM, each with a 30-minute unpaid lunch. Pay is 20.00 an hour with overtime after 40 hours at 1.5×.

  1. Each day: Monday, Tuesday and Thursday 9 h − 30 min = 8 h 30 min; Wednesday 11 h 30 min − 30 min = 11 h; Friday 8 h − 30 min = 7 h 30 min.
  2. Week total: 8.5 + 8.5 + 11 + 8.5 + 7.5 = 44 hours.
  3. Overtime: 44 − 40 = 4 hours at 1.5×.
  4. Pay: 40 × 20.00 = 800.00, plus 4 × 30.00 = 120.00, so 920.00 before tax.

Answer: The week is 44 h (44.00 hours): 40 regular hours and 4 hours of overtime, paying 920.00 at 20.00 an hour.

Frequently asked questions

How do I calculate hours worked?

Subtract the start time from the end time, then take off unpaid breaks. For example, 8:00 AM to 4:30 PM is 8 h 30 min, and with a 30-minute lunch that is 8 hours worked. Convert to decimal hours by dividing the minutes by 60.

How many hours is 8 AM to 5 PM?

8:00 AM to 5:00 PM is 9 hours. With a 30-minute unpaid lunch it is 8 h 30 min (8.5 hours), and with a 1-hour lunch it is 8 hours.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add the result to the whole hours. 7 h 45 min = 7 + 45/60 = 7.75 hours, and 7 h 20 min = 7.33 hours. Multiply the decimal hours by your hourly rate to get pay.

Is a 30-minute lunch break paid?

Usually not. Under US federal rules a meal period of 30 minutes or more, when you are fully relieved of duty, is not work time. Short rest breaks of 5 to 20 minutes count as hours worked and are paid.

How do I calculate hours for an overnight shift?

Add 24 hours to the end time before you subtract. 10:00 PM to 6:30 AM is (6:30 + 24:00) − 22:00 = 8 h 30 min. The calculator does this for you whenever the end time is earlier than the start.

When does overtime start?

Under US federal law, after 40 hours in a workweek, at 1.5 times the regular rate. There is no federal daily overtime. California also pays overtime after 8 hours in a day and double time after 12.

What is the 7-minute rule?

A payroll rule that rounds clock times to the nearest quarter hour: 1 to 7 minutes past a quarter hour round down, and 8 to 14 minutes round up. So 8:07 counts as 8:00 and 8:08 as 8:15.

How do I bill hours in tenths of an hour?

Many freelancers, lawyers and consultants bill in 6-minute units, where each 6 minutes is 0.1 hour. Choose rounding to the nearest 6 minutes, or round each task up to the next 6 minutes yourself: 1 h 20 min is 1.33 hours, or 1.4 billed in tenths rounded up.

How many work hours are in a year?

A 40-hour week for 52 weeks is 2,080 hours. Dividing an annual salary by 2,080 gives the equivalent hourly rate, for example 52,000 ÷ 2,080 = 25.00 an hour.

Are my hours saved or sent anywhere?

No. The calculator runs in your browser and does not store or upload what you type. Use Share to get a link with your inputs, or Print to keep a paper copy of the timecard.

Time Calculator

Add and subtract hours, minutes and seconds, add up a list of times, or find the time between two times.

Date & Time

Time Duration Calculator

Hours, minutes and seconds between two times, overnight spans, clock time plus a duration, and dates.

Date & Time

Date Calculator

Days between two dates (with business days), or a date plus or minus years, months, weeks and days.

Date & Time

Percentage Calculator

Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.

Arithmetic & Numbers

Age Calculator

How old you are in years, months and days, with totals, decimal age, your next birthday and birth weekday.

Date & Time

Unit Converter

Convert between units in 40 categories with exact factors, formulas and tables.

Tools

Sources and further reading

  1. Fact Sheet #23: Overtime Pay Requirements of the FLSA (opens in a new tab), U.S. Department of Labor, Wage and Hour Division
  2. 29 CFR 785.18: Rest periods (opens in a new tab), Legal Information Institute, Cornell Law School
  3. 29 CFR 785.19: Meal periods (opens in a new tab), Legal Information Institute, Cornell Law School
  4. 29 CFR 785.48: Use of time clocks (rounding of starting and stopping times) (opens in a new tab), Legal Information Institute, Cornell Law School
  5. 29 CFR 778.105: Determining the workweek (opens in a new tab), Legal Information Institute, Cornell Law School
  6. Overtime (Frequently asked questions, California Labor Code section 510) (opens in a new tab), California Department of Industrial Relations, Labor Commissioner’s Office
  7. Breaks and Meal Periods (opens in a new tab), U.S. Department of Labor

Overtime and break rules differ by country, state, industry and contract, and some employees are exempt. Use the results as a check on a timesheet, not as legal or payroll advice.

Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?