Hours Calculator
Work out the hours worked between a start and end time, including overnight shifts, and use the result for time cards and pay.
What the hours calculator does
Enter a start time and an end time on the 24-hour clock and it returns the hours worked. Times are entered as decimal hours, so 9 is 9:00 am and 17.5 is 5:30 pm. From 9 to 17.5 the result is 8.5 hours.
Entering times
Convert minutes to a decimal by dividing by 60. A quarter past is .25, half past is .5 and a quarter to is .75. For 1:30 pm, enter 13.5. For 6:45 am, enter 6.75.
Overnight shifts
If the end is earlier than the start, the tool assumes the shift ends the next day and adds 24 hours. A shift from 22 to 6 is 8 hours. It does not handle shifts longer than 24 hours.
Unpaid breaks
Subtract any unpaid break from the result. If you worked 9 to 17.5 with a 30-minute unpaid lunch, paid time is 8 hours. Rules on breaks vary by country and employer.
From hours to pay
Multiply the hours by the hourly rate. At $20 an hour, 8.5 hours earns $170 before tax. Overtime is often paid at 1.5 times the rate after 40 hours in a week. The Salary Calculator converts the pay to weekly, monthly and annual amounts.
Time cards
Many employers round time to the nearest quarter hour. Check your policy. Keeping your own record of start and end times helps you spot errors in a pay stub.
Worked example: Calculating payroll decimal hours for an overnight shift with a break
Suppose a hospital nurse or warehouse technician clocks in at 21:30 (9:30 PM), clocks out the next morning at 06:15 (6:15 AM), and takes an unpaid 45-minute meal break:
- Step 1 — Convert times to minutes from midnight: Start = `(21 × 60) + 30 = 1,290` minutes. End = `(6 × 60) + 15 = 375` minutes.
- Step 2 — Handle midnight rollover: Because the end time (`375`) is earlier than the start time (`1,290`), add 24 hours (`1,440` minutes) to the end time: `375 + 1,440 − 1,290 = 525` gross minutes (`8 hours 45 minutes`).
- Step 3 — Subtract unpaid break: `525 − 45 = 480` net payable minutes = 8 hours 00 minutes (`8.00` decimal hours). If the break was only 30 minutes, net time would be `495` minutes = 8 hours 15 minutes, which is 8.25 decimal hours (`15 ÷ 60 = 0.25`) for hourly pay multiplication.
Limits and what this tool cannot do
- Single shift under 24 hours per entry: When the end time is earlier on the clock than the start time, the calculator assumes the shift crossed midnight once (within a 24-hour window). It cannot distinguish a 26-hour continuous on-call shift from a 2-hour shift using clock times alone.
- Does not apply 7-minute / 15-minute timeclock rounding rules: Some employers use US FLSA 7-minute quarter-hour rounding (where 8:01–8:07 rounds back to 8:00 and 8:08–8:14 rounds up to 8:15). This tool computes exact minute totals.
- Daylight saving time transition nights: Working an overnight shift on the night clocks spring forward or fall back changes actual physical hours worked by ±1 hour compared with wall-clock arithmetic.
Frequently asked questions
How do I calculate hours worked?
Subtract the start time from the end time, then subtract any unpaid break.
How do I enter 7:15 pm?
Use 19.25 on the 24-hour decimal scale.
Does it handle night shifts?
Yes, if the end time is earlier than the start, it adds 24 hours.
Is the result paid time?
Only after you take off unpaid breaks.
Why can't I multiply 8 hours 45 minutes as '8.45' by my hourly wage?
Because 45 minutes is three-quarters of a 60-minute hour (`45 ÷ 60 = 0.75`), not 45 hundredths. Multiplying by `8.45` instead of `8.75` underpays you by `0.30` of an hour (18 minutes of pay) on that shift.
What are the decimal equivalents for 15, 20, 30, and 45 minutes?
15 minutes = `0.25` hr, 20 minutes = `0.333` hr, 30 minutes = `0.50` hr, and 45 minutes = `0.75` hr.
How do I calculate weekly overtime pay above 40 hours?
Add up your daily decimal hours for the week first, then enter your base hours, overtime hours, and multiplier (such as 1.5x) in the Overtime Pay Calculator.