Free Hours Calculator Online
Use our free hours calculator with a clean, easy-to-use interface.
Ad space
Ad space
How to use the Hours Calculator
- 1
Open the Hours Calculator tool
- 2
Enter your data or upload your file
- 3
Adjust settings if needed
- 4
Get instant results
- 5
Download or copy your output
Frequently asked questions
Is the Hours Calculator free?
Yes, our hours calculator is 100% free with no limits, no signup, and no watermarks.
Do I need to create an account?
No. You can use the hours calculator without any registration. Just open it and start using it.
Is my data safe?
Yes. Any files you upload are automatically deleted after 5 minutes. We never store, share, or access your data.
Does this work on mobile?
Yes. The hours calculator is fully responsive and works on phones, tablets, and desktops.
Is there an API for this?
Yes. All our tools are available as API endpoints for developers. Check our API documentation for details.
Hours Calculator: Turn a Start Time, an End Time, and a Break Into Payable Hours
An hours calculator takes the two clock times most timesheets are built from — when a shift started and when it ended — subtracts any unpaid break in between, and reports how long the shift actually was. Enter a start time and an end time in the familiar 24-hour clock format, add the length of the break if there was one, and the worked time appears immediately as both a decimal figure (useful for payroll spreadsheets) and an hour-and-minute figure (useful for reading at a glance). Nothing needs to be uploaded and nothing needs to be typed twice; the moment any of the three fields changes, the result updates.
The reason a dedicated calculator earns its place over doing this by eye is that clock-time subtraction is easy to get wrong the moment a shift crosses midnight or a break doesn't land on a clean number of minutes. A shift that runs from 22:00 to 06:00 isn't "negative eight hours" — it's an overnight shift that wraps into the next day — and this tool handles that case automatically rather than making you mentally carry the extra 24 hours yourself.
How to Calculate Worked Hours
The layout is three fields feeding one result panel:
- Set the Start field to the clock-in time, using the 24-hour time picker (for example, 9:00 AM is entered as 09:00).
- Set the End field to the clock-out time the same way.
- Set the Break field to the number of unpaid minutes taken during the shift — leave it at zero if there was no break.
- The result panel below updates instantly, showing the worked time as an hour:minute figure in large type, with the decimal-hours equivalent printed underneath.
- If the end time is earlier than the start time, the calculator assumes the shift ran past midnight into the next calendar day and adds the missing 24 hours automatically — a small note reading "overnight shift" appears next to the result so you can confirm that's what was intended.
- If the break you entered is longer than the gap between start and end, an error message appears instead of a result, since a break can't consume more time than the shift itself contains.
Why People Reach for an Hours Calculator
Turning clock times into a worked-hours figure comes up constantly wherever pay or billing is tied to time on the clock:
- Hourly payroll. Employees paid by the hour need their clock-in and clock-out times converted into a decimal figure that a payroll system can multiply by an hourly rate — 8 hours and 15 minutes has to become 8.25, not stay as a clock-time string.
- Freelance and contract billing. Anyone invoicing by the hour needs an accurate worked-hours number for each session logged, especially when a client questions a total and wants to see how it was derived from the start and end times recorded.
- Shift scheduling that spans midnight. Restaurants, hospitals, security, and manufacturing frequently schedule shifts that start in the evening and end after midnight, and getting the total hours right for an overnight shift by hand is exactly the kind of arithmetic that's easy to fumble under time pressure.
- Verifying a timesheet before submission. Before sending hours to a manager or a client, running the numbers through an independent calculator catches a typo in the clock-out time or a break that was recorded incorrectly.
- Comparing a scheduled shift to an actual one. Managers building a schedule can check what a proposed start and end time actually adds up to after breaks, before committing it to the roster.
- Estimating labor cost before a shift is worked. Multiplying a proposed shift's decimal-hours figure by an hourly wage gives a quick cost estimate for staffing a particular window before it's locked into a schedule.
How the Worked-Hours Figure Is Derived
The calculation converts everything into minutes first, because minutes avoid the rounding awkwardness of working in fractional hours throughout. Start and end times are each converted to "minutes since midnight," the break in minutes is subtracted from the gap between them, and the remaining total is the worked time — which is then re-expressed two ways for the result panel.
| Step | What happens |
|---|---|
| Convert start and end | Each clock time becomes a single "minutes since midnight" number |
| Handle overnight shifts | If end is earlier than start, 1,440 minutes (24 hours) are added to end |
| Subtract the break | Worked minutes = (end − start) − break minutes |
| Format the result | Worked minutes are shown as decimal hours (rounded to two places) and as an H:MM string |
An anchor worth checking against your own math: a shift from 09:00 to 17:30 with a 30-minute break comes out to exactly 8.0 decimal hours, or 8:00 — a useful number to confirm the tool is behaving as expected before trusting it with a real timesheet. This same conversion logic — including the overnight-shift wraparound and the break-longer-than-shift rejection — is also exposed through a metered API endpoint, which accepts the break either as a plain number of minutes or as an "H:MM" string like "0:30", making it easy to feed the endpoint a value straight from a time-tracking system without reformatting it first. See the API documentation for the request and response format.
Pitfalls That Skew a Worked-Hours Total
The single most common source of a wrong total is entering AM/PM times as if they were already 24-hour — 5:30 PM has to go in as 17:30, not 5:30, or the calculator will read it as a very early morning start and produce a wildly different (and usually overnight-flagged) result. A second pitfall is forgetting the break entirely: a shift calculated without subtracting a lunch or rest break will consistently overstate worked time by however long that break actually was, which adds up quickly across a pay period. It's also worth double-checking that an "overnight shift" flag showing up unexpectedly isn't hiding a typo — if you meant to enter a same-day shift but the end time accidentally landed earlier than the start, the calculator will silently treat it as crossing midnight rather than flagging it as a likely mistake, so the note is your cue to verify the times were entered correctly. A less obvious pitfall shows up when several short breaks are logged separately across a shift instead of as one combined figure — entering only the last break and forgetting the earlier ones understates the total unpaid time and, in turn, overstates the worked hours.
Manual Timesheet Math vs. Using a Calculator
Subtracting two clock times by hand is possible for a single shift, but the approach has real limits once breaks, overnight wraps, or decimal conversion enter the picture:
- Doing the subtraction on paper. It's manageable for a simple same-day shift with no break, but converting the leftover minutes into a clean decimal fraction (52 minutes isn't obviously 0.87 hours without a calculator) invites small errors that compound across a pay period.
- A generic calculator app. A basic calculator can multiply and divide, but it has no concept of "clock time" — you'd still have to manually convert HH:MM into minutes yourself before it can do anything useful, and manually handle the overnight-wrap case.
- A spreadsheet with time-formatted cells. Spreadsheets can subtract time-formatted cells correctly, but getting the overnight-shift case, the break subtraction, and the decimal display all set up correctly usually takes a few formula iterations to get exactly right.
- This calculator. All three of the tricky parts — overnight wraparound, break subtraction, and decimal-hours formatting — are handled the moment you type in the three input fields, with the overnight case flagged explicitly rather than silently producing a confusing negative number.
- This calculator's API. If worked-hours conversion is one step inside a larger payroll import, time-tracking integration, or invoicing script, the same start/end/break logic is available as a metered endpoint that returns both the decimal and H:MM figures as JSON.
How does the calculator handle a shift that crosses midnight?
If the end time you enter is earlier than the start time, the calculator assumes the shift continued into the next day and adds 24 hours to the end time before subtracting, rather than treating the gap as negative. An "overnight shift" note appears next to the result so you can confirm that's the shift you meant to enter.
What happens if I enter a break longer than the shift itself?
The calculator shows an error message instead of a result, since a break can't be longer than the total time between clock-in and clock-out. Double-check the break length and the start/end times if you see this message.
Should I enter the break in minutes, or as a time like 0:30?
The on-page calculator's break field takes a plain number of minutes (30 for a half-hour break). The API version is more flexible and also accepts an "H:MM" or "HH:MM" string like "0:30" if that's the format your source data is already in.
Why does the decimal-hours figure sometimes look like an unusual fraction?
Minutes don't always divide evenly into hours — 45 worked minutes becomes 0.75 decimal hours, but 52 minutes becomes 0.87 after rounding to two decimal places. The rounding is applied only to the decimal display; the underlying minute count used to derive it is exact.
Can I use this for a shift that includes multiple separate breaks?
The break field expects one combined figure, so add up multiple breaks into a single total number of minutes before entering it — two 15-minute breaks would be entered as 30 total, for example.
Does the calculator round the worked minutes, or only the decimal display?
The worked-minutes figure itself is exact, calculated directly from the start, end, and break inputs with no rounding applied. Only the decimal-hours figure shown alongside it is rounded, to two decimal places, purely for readability.
Can I calculate hours for a shift longer than 24 hours?
The start and end fields are each a single clock time, so the calculator supports shifts up to 24 hours (including ones that wrap past midnight). A shift genuinely longer than a full day needs to be entered and totaled as separate consecutive shifts.
Is the calculation the same whether I'm on a phone or a desktop?
Yes. The math runs the same way regardless of device or screen size — only the layout of the time pickers adjusts to fit a smaller screen, not the underlying calculation.
Does entering a break of zero change how the result is calculated?
No — a break of zero simply means nothing is subtracted from the gap between start and end, so the worked-hours figure equals that gap exactly. It's the default value and doesn't need to be explicitly cleared for a shift with no break.
Related Time Tools
Once you have a worked-hours figure for a single shift, the time duration calculator is the better fit for measuring a span that isn't a work shift at all — the gap between two arbitrary dates and times, down to the second, without any break subtraction. If what you're scheduling is a countdown to a specific clock-in time rather than a completed shift, the countdown timer tracks the remaining time until that moment arrives. And for logging elapsed time as it happens rather than calculating it from two typed-in clock times, the stopwatch starts and stops on demand.
Ad space
Related tools
Ad space