Time Calculator
Add and subtract hours, minutes and seconds, add up a list of times, or find the time between two times.
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.
Hours worked, after breaks
8 h
8.00 decimal hours
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.
Convert both times to minutes after midnight
8:00 AM = 8 × 60 + 0 = 480; 4:30 PM = 16 × 60 + 30 = 990.
Subtract the start from the end
990 − 480 = 510 minutes = 8 h 30 min.
Take off the unpaid breaks
510 − 30 = 480 minutes = 8 h.
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.
Hours worked in one shift
Plain-text formula: hours = (t_end − t_start − breaks)/60
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
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
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.
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.
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.
| Shift | Shift length | Unpaid break | Hours worked | Decimal hours |
|---|---|---|---|---|
| 9:00 AM to 5:00 PM | 8 h | 60 min | 7 h | 7.00 |
| 8:00 AM to 5:00 PM | 9 h | 60 min | 8 h | 8.00 |
| 8:00 AM to 4:30 PM | 8 h 30 min | 30 min | 8 h | 8.00 |
| 7:00 AM to 3:30 PM | 8 h 30 min | 30 min | 8 h | 8.00 |
| 7:30 AM to 4:00 PM | 8 h 30 min | 30 min | 8 h | 8.00 |
| 6:00 AM to 2:30 PM | 8 h 30 min | 30 min | 8 h | 8.00 |
| 9:00 AM to 2:00 PM | 5 h | None | 5 h | 5.00 |
| 3:00 PM to 11:30 PM | 8 h 30 min | 30 min | 8 h | 8.00 |
| 10:00 PM to 6:30 AM | 8 h 30 min | 30 min | 8 h | 8.00 |
| 7:00 PM to 7:00 AM | 12 h | 60 min | 11 h | 11.00 |
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).
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 | Decimal | Minutes | Decimal | Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|---|---|---|---|
| 1 | 0.02 | 16 | 0.27 | 31 | 0.52 | 46 | 0.77 |
| 2 | 0.03 | 17 | 0.28 | 32 | 0.53 | 47 | 0.78 |
| 3 | 0.05 | 18 | 0.30 | 33 | 0.55 | 48 | 0.80 |
| 4 | 0.07 | 19 | 0.32 | 34 | 0.57 | 49 | 0.82 |
| 5 | 0.08 | 20 | 0.33 | 35 | 0.58 | 50 | 0.83 |
| 6 | 0.10 | 21 | 0.35 | 36 | 0.60 | 51 | 0.85 |
| 7 | 0.12 | 22 | 0.37 | 37 | 0.62 | 52 | 0.87 |
| 8 | 0.13 | 23 | 0.38 | 38 | 0.63 | 53 | 0.88 |
| 9 | 0.15 | 24 | 0.40 | 39 | 0.65 | 54 | 0.90 |
| 10 | 0.17 | 25 | 0.42 | 40 | 0.67 | 55 | 0.92 |
| 11 | 0.18 | 26 | 0.43 | 41 | 0.68 | 56 | 0.93 |
| 12 | 0.20 | 27 | 0.45 | 42 | 0.70 | 57 | 0.95 |
| 13 | 0.22 | 28 | 0.47 | 43 | 0.72 | 58 | 0.97 |
| 14 | 0.23 | 29 | 0.48 | 44 | 0.73 | 59 | 0.98 |
| 15 | 0.25 | 30 | 0.50 | 45 | 0.75 | 60 | 1.00 |
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.
| Rule | Overtime at 1.5× | Double time at 2× |
|---|---|---|
| US federal (FLSA) | Hours over 40 in the workweek | None |
| California | Over 8 h in a day; over 40 regular hours in the week; the first 8 h on the 7th straight workday | Over 12 h in a day; over 8 h on the 7th straight workday |
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.
| Punch | Minutes past 8:00 | Nearest 15 min | Nearest 6 min |
|---|---|---|---|
| 8:03 AM | 3 | 8:00 AM | 8:06 AM |
| 8:07 AM | 7 | 8:00 AM | 8:06 AM |
| 8:08 AM | 8 | 8:15 AM | 8:06 AM |
| 8:12 AM | 12 | 8:15 AM | 8:12 AM |
| 8:15 AM | 15 | 8:15 AM | 8:18 AM |
| 8:22 AM | 22 | 8:15 AM | 8:24 AM |
| 8:23 AM | 23 | 8:30 AM | 8:24 AM |
| 8:37 AM | 37 | 8:30 AM | 8:36 AM |
| 8:38 AM | 38 | 8:45 AM | 8:36 AM |
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.
| Period | Hours |
|---|---|
| 1 day | 24 |
| 1 week | 168 |
| Full-time work week | 40 |
| Two-week (biweekly) pay period at 40 h a week | 80 |
| 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 |
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×.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Add and subtract hours, minutes and seconds, add up a list of times, or find the time between two times.
Hours, minutes and seconds between two times, overnight spans, clock time plus a duration, and dates.
Days between two dates (with business days), or a date plus or minus years, months, weeks and days.
Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.
How old you are in years, months and days, with totals, decimal age, your next birthday and birth weekday.
Convert between units in 40 categories with exact factors, formulas and tables.
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?