Hours Calculator
Work out the hours between a start and end time, minus an unpaid break. Enter an hourly rate to estimate gross pay, and the calculator automatically handles shifts that cross midnight.
Enter a start and end time.
Hours between two clock times
This calculator finds the elapsed time between a start time and an end time. It converts both times to minutes, subtracts the start from the end, then deducts the unpaid break. The result is shown in decimal hours, hours and minutes, and total minutes.
If the end time is earlier than the start time, the shift is treated as overnight. A shift from 22:00 to 06:00 is therefore 8 hours, not a negative number. This is common in healthcare, hospitality, security and manufacturing.
Breaks and paid time
Only enter the break as unpaid time. A 30-minute lunch break on an 8-hour shift leaves 7.5 paid hours. Short paid breaks, such as two 10-minute rests, should not be deducted unless your employer treats them as unpaid.
Some workplaces use a rounding rule, such as rounding to the nearest quarter hour. This calculator returns the exact minutes, so apply your employer's rounding policy afterward if needed.
Estimating gross pay
Enter an hourly rate to multiply the paid hours by the rate. The figure is gross pay before tax, superannuation, insurance or other deductions. Overtime is not applied automatically here; use the time card calculator for a full week with overtime.
The calculation
decimal hours = minutes worked ÷ 60
gross pay = decimal hours × hourly rate
When the end time is earlier than the start time, 1,440 minutes (24 hours) is added to the end time before subtracting.
Worked examples
- 09:00 to 17:30, 30-minute break: 8 hours paid.
- 08:15 to 16:45, 45-minute break: 7.75 hours paid.
- 22:00 to 06:00, 30-minute break: 7.5 hours paid overnight.
- 10:00 to 14:20, no break: 4.33 hours paid.
- 7.5 hours at $20 per hour: $150 gross pay.
Decimal hours and the 7-minute rule
Payroll systems often record time in decimal hours. The common “7-minute rule” rounds 1 to 7 minutes down and 8 to 14 minutes up to the next quarter hour. It is a workplace convention, not a mathematical requirement, so check your contract or local rules before relying on it.
Assumptions and limitations
The tool compares clock times, not elapsed physical time. Across a spring-forward night, 01:00 to 05:00 contains three real hours but is reported as four; across the autumn fall-back the same input covers five. Night shifts falling on those two dates need a manual hour in either direction.
One continuous session with one break figure is assumed. Split shifts, two unpaid gaps, or a break taken before clock-in need separate entries, added afterwards. Two short unpaid gaps on the same day are easier to add together first and enter once.
Pay is the rate you type multiplied by paid hours. Loadings, weekend penalties, allowances, tax and currency conversion all sit outside that figure.
Common mistakes to avoid
Typing 45 minutes as 0.45 hours understates the deduction. Decimal hours divide by 60, so 45 minutes is 0.75; 0.45 hours is 27 minutes, and the 18-minute difference quietly becomes paid time.
Deducting the same break twice is the next error. If the start and end times already skip a lunch gap, entering 30 minutes removes a further half hour from an eight-and-a-half-hour span.
Keep units consistent between fields. A break of 1 hour 15 minutes is 75 minutes, or 1.25 decimal hours; 1.15 decimal hours is only 69 minutes.
A shift ending at 00:00 is read as midnight after the start, so 22:00 to 00:00 returns two hours. Changing the end time to 23:59 to be safe costs a minute of pay.
How to check the result
Work in minutes once. 07:40 to 16:10 spans 510 minutes; deducting 30 leaves 480, which is 8.00 decimal hours and $156.00 at $19.50 an hour. Dividing the pay by the rate must return 8.00.
The decimal part is a fraction of an hour, not a minute count:
| Minutes | Decimal hours |
|---|---|
| 15 | 0.25 |
| 20 | 0.33 |
| 30 | 0.50 |
| 40 | 0.67 |
| 45 | 0.75 |
| 50 | 0.83 |
Compare the paid figure with the clock span as a last check. It can never exceed the elapsed time, and it should equal the span minus the break, so a larger answer means the break was entered as paid or left out.
Frequently asked questions
Does the calculator handle overnight shifts?
Yes. When the end time is earlier than the start, the tool adds 24 hours and treats the shift as crossing midnight. A 22:00 to 06:00 shift therefore totals 8 hours before any break is deducted.
Should I deduct paid breaks?
No, enter unpaid breaks only. Paid rest breaks count as working time, so deducting them would understate the shift. A 30-minute unpaid lunch is typical and is the only figure most employers expect here. Check your contract for the exact break policy.
How is gross pay calculated?
Decimal paid hours are multiplied by the hourly rate you supply. The output is gross pay, before income tax, social security and pension contributions, so your take-home amount will be lower. Overtime and bonuses are likewise excluded from the total.
Does it apply overtime?
No. This tool totals one shift only. For a full week with regular and overtime rates, use the time card calculator, which splits hours above a weekly threshold at the multiplier you choose. Some regions require double time after long shifts.
Why is my pay slightly different from the calculator?
Employers may round punch times, pay shift differentials, or apply local deductions. The calculator uses the exact minutes and rate you enter, so small differences usually come from rounding or extra pay rules. Compare the payslip hours against your own record.
Sources & methodology
- U.S. Department of Labor — hours worked and break time guidance.
- ISO 8601 — time representation standard.
- Calculation method: minute difference between clock times, minus unpaid break, with overnight rollover.
Results are estimates for general information. For medical, legal or financial decisions, confirm with a qualified professional.