Hours Calculator

Work out the hours between two times, minus breaks, in hours and minutes and decimal hours, or fill in a weekly time card with overtime and pay. Handles overnight shifts and payroll rounding.

Calculator Time & Date Updated Oct 3, 2026
Learn how this works
How to Use
  1. Choose One shift for a single start and end time, or Time card for a whole week.
  2. Enter the start and end times and the unpaid break in minutes. An end time earlier than the start is read as the next morning, for night shifts.
  3. Add an hourly rate to see the pay. In Time card, choose how overtime is counted and its multiple, usually 1.5.
  4. If your employer rounds clock-in times, choose the rounding; each punch is rounded before the hours are added up.
  5. Read the hours as hours and minutes and as decimal hours, the figure payroll uses.
Input
optional
Presets
Hours
Hours worked
—
Decimal hours
—
Minutes
—
Pay
—

Worked Example

8:45 AM to 5:15 PM with a 30-minute unpaid lunch. In 24-hour time that is 17:15 − 08:45 = 8 hours 30 minutes, minus 30 minutes of break: 8 hours, or 8.00 decimal hours. At $20 an hour, $160.00.

The common mistake: minutes written as decimals. A shift of 8:00 to 15:45 is 7 hours 45 minutes. As decimal hours that is 7 + 45 ÷ 60 = 7.75. Typing 7.45 into a payroll sheet pays 7 hours 27 minutes; at $20 an hour that is $149.00 instead of $155.00, $6 short every such day.

Overtime: five days of 8:00 to 17:30 with a 30-minute break are 9 hours each, 45 hours in the week. With US federal overtime after 40 hours at 1.5×: 40 × $20 = $800 regular, 5 × $30 = $150 overtime, $950 gross.

Show Work

Enter times above to see the calculation.

Formulas

Hours worked
end − start − break
+ 24 h when the end is before the start
Decimal hours
hours + minutes ÷ 60
45 min = 0.75 h
Weekly overtime
OT = max(0, total − 40)
US federal rule
Gross pay
rate × regular + rate × 1.5 × OT
15-minute rounding
0–7 min down · 8–14 min up
The “7-minute rule”
6-minute rounding
to the nearest tenth of an hour
1–2 min down, 3–5 min up

Time Clocks and the 40-Hour Week

The punch clock was patented in 1888 by Willard Bundy, a jeweller in Auburn, New York; his company became part of IBM. Workers stamped a card on the way in and out, and the card, the “time card”, was totted up at the end of the week, which is where the practice of rounding to the nearest quarter hour comes from.

The 40-hour week became US law through the Fair Labor Standards Act of 1938, which phased the limit down from 44 hours to 40 by 1940 and required time and a half for hours beyond it. US regulations still allow rounding clock times to the nearest 5, 6 or 15 minutes, provided it does not, over time, shortchange employees.

About This Calculator

This calculator works out the hours between two times, including shifts that cross midnight, minus unpaid breaks, in hours and minutes, decimal hours and minutes, with optional pay. The time card adds up a week of shifts and splits the total into regular and overtime hours, weekly or daily, at any overtime multiple. Each punch can be rounded the way payroll systems do before anything is added.

It is a calculator, not payroll or legal advice; check your employer’s policy and local law. Everything runs in your browser.

Related calculators: Work Day Calculator, Date Calculator, and Stopwatch.

Frequently Asked Questions

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours, not 7.45. Writing 7.45 underpays the 45 minutes as if they were 27, which at $20 an hour costs $6 a day. Common values: 15 minutes = 0.25, 30 minutes = 0.5, 45 minutes = 0.75, 6 minutes = 0.1.

How do I count an overnight shift?

If the end time is earlier than the start, the shift crossed midnight, so add 24 hours to the end. 22:00 to 06:30 is 30:30 − 22:00 = 8 hours 30 minutes. The calculator does this automatically.

When is overtime paid?

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. Some states also require daily overtime, notably California after 8 hours in a day. Other countries set their own limits. Choose weekly or daily in Time card; this is a calculator, not legal advice.

What is the 7-minute rule?

US rules allow employers to round clock times to the nearest 5, 6 or 15 minutes, as long as the rounding averages out over time (29 CFR 785.48(b)). With 15-minute rounding, 1 to 7 minutes past a quarter hour round down and 8 to 14 round up, so 8:07 counts as 8:00 and 8:08 as 8:15.

Is the break subtracted from paid time?

Only the break minutes you enter are subtracted, so enter unpaid breaks only. Under US federal rules, short rest breaks of 5 to 20 minutes are normally paid, while meal breaks of 30 minutes or more in which the employee is fully relieved of duty can be unpaid.

How do I use the Hours Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Filling in a timesheet

8:45 AM to 5:15 PM with a 30-minute lunch is 8 hours, 8.00 decimal hours.

Checking a paycheck

A week of five 9-hour days is 45 hours: 40 regular and 5 overtime, which at $20 an hour is $800 + $150 = $950.

Night shifts

22:00 to 06:30 with a 30-minute break is 8 hours, counted across midnight.

Clock rounding

Clocking in at 8:08 and out at 16:52 is 8 h 44 min of real time, but 8 h 30 min after quarter-hour rounding (8:15 and 16:45).

Freelance billing

Total a week of client sessions in decimal hours to multiply by an hourly rate.

Last updated: