Hours Calculator
Enter a start time and an end time, subtract an unpaid break if there is one, and read the total in hours-and-minutes, decimal hours and raw minutes — overnight shifts handled automatically.
How the hours between two times are counted
Both times are converted to minutes since midnight and subtracted. If the end time is not after the start time, the calculator assumes the shift crossed midnight and adds 24 hours — a 22:00 to 06:00 night shift comes out as 8 hours, not a negative number.
The break box deducts unpaid time before the total is shown, so what you see is the payable duration. Set it to zero with the "No break" button if the whole span counts.
Decimal hours for payroll
Payroll systems usually want decimal hours: 8:30 becomes 8.50, 7:45 becomes 7.75. The conversion is just minutes ÷ 60, and the calculator shows it next to the hours-and-minutes figure so you can copy whichever your timesheet asks for.
Rounding rules vary by employer — some round to the nearest quarter hour, some to two decimals. This calculator reports the exact value and lets you apply your company's rounding on top, so nothing is lost before the policy is applied.
Common uses
Timesheets. Fill start, end and unpaid lunch to get the day's payable hours in both formats payroll accepts.
Night shifts. Any span that crosses midnight is detected and handled — no manual "plus one day" bookkeeping.
Everyday timing. How long a trip took, how long an oven has been on, or how much of the day is left before an appointment — the "now" buttons fill the current time instantly.
Frequently asked questions
What happens when the end time is earlier than the start time?
The calculator treats it as an overnight span and adds 24 hours: 22:00 → 06:00 gives 8 hours. The result panel labels it as an overnight shift so you can double-check.
How do I convert 7 hours 45 minutes to decimal?
45 minutes is 45 ÷ 60 = 0.75, so 7:45 = 7.75 decimal hours. The calculator does this conversion automatically and shows it in the results.
Does the break count as unpaid time?
It is whatever you make it: the tool subtracts the break from the gross span and shows both numbers. If your break is paid, set the break box to 0 and read the gross figure.
Can I calculate multiple shifts in one go?
Calculate each shift separately and add the decimal hours — adding decimals is far less error-prone than adding h:mm values by hand.
Is 24-hour time supported?
Yes — the time fields use your browser's native picker, which accepts both 09:00 and 21:00 input styles depending on your system settings.
Does it need an internet connection?
No. All math runs locally in JavaScript; once the page is loaded it works offline.