Time & date
Hours Calculator
Enter start and end times for one shift or many, subtract breaks, and get the total in hours and minutes and in decimal hours.
Type times any way you like — 9, 9:30am, 930p, 21:30. An end time earlier than the start counts as the next day, so 10 PM to 6 AM is 8 hours.
9:00 AM → 5:30 PM
Straight-time pay only. For a weekly timesheet with rounding and overtime, use the time card calculator.
All calculations run locally in your browser — nothing is uploaded.
Works in your browser. No account needed.
Frequently asked questions
How do I calculate the hours between two times?
Put both times on the 24-hour clock, subtract the start from the end, then take off any break. From 8:45 AM to 5:15 PM is 08:45 to 17:15, which is 8 hours 30 minutes; minus a 30-minute lunch, that is 8:00 worked, or 8.00 in decimal hours. The calculator does this for every row as you type.
How does it handle night shifts that cross midnight?
Any end time earlier than the start time is treated as belonging to the next day, so there is no toggle to remember: 10:00 PM to 6:00 AM gives 8 hours, and 11:45 PM to 12:15 AM gives 30 minutes. If the start and end are exactly the same, the row shows 0 hours; for a shift of 24 hours or more, use the Dates and times mode.
How do I turn hours and minutes into decimal hours?
Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours; 15 minutes is 0.25, 30 is 0.5, 6 minutes is 0.1 and 20 minutes is 0.33 to two places. Payroll and invoices multiply decimal hours by an hourly rate, which is why both formats are shown.
Does it account for daylight saving time?
Clock-time rows are plain clock arithmetic, so a night shift on the night the clocks change shows 8 hours even though 7 or 9 hours actually passed. The Dates and times mode uses your device’s time zone, so an hour gained or lost inside the span is counted and flagged under the row.
How is this different from the time calculator?
The time calculator adds and subtracts durations you already know, like 2:30 plus 1:45. This hours calculator starts from clock times: it works out each shift from its start and end, takes off breaks, adds up as many shifts as you like and can span several days. For a weekly timesheet with rounding and overtime, use the time card calculator.
Are my times sent anywhere?
No. Everything is worked out in your browser with plain arithmetic; nothing you type is uploaded or stored. The page keeps working if you go offline after it has loaded.
About this tool
Working out hours by hand goes wrong in two places: the clock rolls over at 12 and again at midnight, and minutes are sixtieths, not hundredths. This hours calculator takes both out of your hands. Enter when a shift started and ended in whatever style you think in — 9:15am, 1715 or 5:15 PM — and it gives the elapsed time at once, with any break subtracted.
Each row is one shift or one stretch of work, with its own break, and every filled row is added into a running total. That makes it quick to total a split shift, a few days of freelance work or a week of entries copied from a paper log. A shift that ends after midnight needs no special handling: an end earlier than the start is read as the next morning, and the row says so, so you can check it.
Totals are shown two ways. Hours and minutes (h:mm) is how you read a clock; decimal hours is what payroll systems, invoices and spreadsheets expect, where 7:45 becomes 7.75 because 45 minutes is three quarters of an hour. Add an hourly rate and the calculator multiplies the decimal total for a quick straight-time figure. It does not apply overtime; the time card calculator handles weekly and California daily overtime.
When a stretch of work runs longer than a day, or you want the dates on record, the Dates and times mode takes a full start and end date. It measures real elapsed time in your device’s time zone, so a span that crosses a daylight-saving change is an hour shorter or longer than the clock faces suggest, and the row tells you when that has happened. Nothing is uploaded: every calculation runs in your browser.