Hours Calculator
Calculate the hours and minutes between two times, subtract breaks and work out pay for a shift.
How to calculate hours between two times
Convert both times to minutes after midnight, subtract the start from the end, and convert back to hours and minutes. If the end time is earlier than the start, the shift crosses midnight, so the calculator adds 24 hours.
8:30 AM to 5:15 PM is 8 hours 45 minutes. Subtract a 30-minute unpaid lunch and the paid time is 8 hours 15 minutes, or 8.25 decimal hours.
Converting minutes to decimal hours
Payroll systems use decimal hours. Divide minutes by 60:
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 6 | 0.10 | 30 | 0.50 |
| 12 | 0.20 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
A common mistake is to write 8 hours 15 minutes as 8.15 hours. It is 8.25 hours; the difference adds up on a timesheet.
Overtime
Under the US Fair Labor Standards Act, non-exempt employees earn 1.5 times their regular rate for hours over 40 in a workweek. Some states also require overtime by the day. In California, Labor Code § 510 sets 1.5 times the regular rate for hours over 8 in a workday and double time for hours over 12. When you enter an hourly rate and the shift is longer than 8 hours, the calculator shows the pay under the California daily rule as well. Add up your daily totals from this calculator to check a weekly timesheet.
Example: 7:00 AM to 8:30 PM with a 30-minute unpaid break is 13 paid hours. At $20 an hour, straight time pays $260. Under California's daily rule it is 8 hours at $20, 4 hours at $30 and 1 hour at $40, or $320.
Rounding clock times
Many employers round punch times to set increments. Federal rules allow this as long as it averages out over time and does not always favor the employer (29 CFR 785.48(b)). The most common method is quarter-hour rounding with the 7-minute rule: 1 to 7 minutes past a quarter hour round down, and 8 to 14 minutes round up. Tenth-of-an-hour rounding (6-minute increments) is also common.
Example: clocking in at 8:07 AM and out at 4:53 PM is 8 hours 46 minutes. With the 7-minute rule the times become 8:00 AM and 5:00 PM, and the shift counts as 9 hours (14 minutes more). Clocking in at 8:08 AM instead rounds to 8:15 AM.
Some states are stricter. In California, for example, employers may not round meal-period punches (Donohue v. AMN Services, California Supreme Court, 2021). Use the rounding option to check how your employer's policy changes your hours, not to decide what you are owed.
Frequently asked questions
How do I calculate hours worked?
Subtract the start time from the end time, then subtract unpaid breaks. Enter the times above and the calculator does it for you.
How do I handle a night shift that ends after midnight?
Just enter the times. If the end time is earlier than the start time, the calculator assumes the shift crossed midnight.
How do I convert 7 hours 45 minutes to decimal?
Divide 45 by 60 to get 0.75, so 7 hours 45 minutes is 7.75 hours.
Last reviewed November 2026.