Hours Calculator
What is the Hours Calculator?
What this calculator does
Enter a start time and an end time on the 24-hour clock, plus any break in minutes, and the page reports the span four ways: total minutes, total hours, and the same span net of the break in minutes and in hours.
The default run
The page opens on 9:00 to 17:30 with a 30-minute break. The span is 510 minutes, so the total lines read 510 minutes and 8. 5 hours, and the net lines read 480 minutes and 8 hours.
The total lines are the gross span
Total Minutes and Total Hours describe the full time from clock-in to clock-out, break included. That gross figure is the right one for comparing against a time-clock printout, which also records the whole span.
The net lines remove the break
Net Minutes subtracts the break from the span, and Net Hours expresses that remainder as a decimal. For most timesheet and payroll questions, the net lines are the numbers you actually want to report.
Overnight shifts work now
When the end time is earlier than the start time, the span wraps past midnight into the next day. A night shift from 22:00 to 6:00 now reads 480 total minutes and 8 total hours instead of negative values.
The night shift, netted
With a 30-minute break, that same 22:00 to 6:00 shift reads 450 net minutes and 7. 5 net hours. Before this fix, the page reported negative 960 minutes and negative 16. 5 net hours for the identical entry.
How the wrap works
The span is taken modulo 24 hours, which is the same as adding 24 hours to the end time by hand whenever the end falls before the start. One midnight crossing is handled; the result is always a span under 24 hours.
Ending exactly at midnight
A shift ending at midnight can now be entered with an end time of 0:00. From 16:00 to 0:00 the span is 480 minutes, and with a 30-minute break the net lines read 450 minutes and 7. 5 hours.
The 24-hour limit
Because of the wrap, equal start and end times read zero, never 24 hours, and no span longer than a day can be entered. Split a longer stretch at midnight and add the parts yourself.
A morning shift example
A shift from 7:15 to 15:45 with a 45-minute break spans 510 gross minutes. The page reports 510 total minutes, 8. 5 total hours, 465 net minutes, and 7. 75 net hours, which is 7 hours and 45 minutes of paid time.
A short shift example
A shift from 10:30 to 14:15 with no break spans 225 minutes. All four lines nearly agree: 225 total minutes, 3. 75 total hours, 225 net minutes, and 3. 75 net hours, which is 3 hours and 45 minutes of work.
The second built-in example
From 8:00 to 16:00 with a 60-minute break, the span is 480 minutes. The page reports 480 total minutes, 8 total hours, 420 net minutes, and 7 net hours, a clean case where the break explains the whole gap between the lines.
Breaks longer than the shift
Nothing checks the break against the span. On a 9:00 to 17:00 shift, a 600-minute break leaves net minutes at negative 120 and net hours at negative 2, while the total lines still report the honest 480. A negative net figure is a data-entry error, never a real result.
Breaks are minutes only
The Break Time box takes minutes, so a one-hour lunch is entered as 60 and a 45-minute break as 45. Entering 1 for a one-hour break removes a single minute and quietly overstates your net time.
Reading decimal hours
Net and total hours print as decimals with up to four decimal places. A quarter hour shows as 0. 25, half an hour as 0. 5, and three quarters as 0. 75. To read 7. 75, take 7 hours plus 0. 75 times 60, which is 45 minutes.
Display rounding
Hours are shown at four-decimal precision with trailing zeros stripped, so 8. 5 prints as 8. 5 rather than 8. 5000. The span in minutes is always a whole number, because both clock times are whole minutes.
Timesheet rounding rules
Many employers round clock times to the nearest quarter hour before paying. This page applies no rounding of that kind; it reports the exact span from the minutes you typed, so apply your workplace rounding rule to the net hours yourself.
Multiple breaks need one total
There is a single break box. If you took two breaks, add them yourself first — 20 minutes plus 25 minutes is entered as 45 — or the second break will silently be counted as paid working time.
No seconds and no AM or PM
Times are whole hours and minutes on the 24-hour clock. There are no seconds boxes and no AM or PM switches, so 5:30 PM must be typed as hour 17 with 30 minutes, and any seconds on a time clock are lost.
Pay for the default shift, by hand
At a single hourly rate, paid time is the net line: the default shift pays 8 hours, not 8. 5. Multiplying a rate by the gross 8. 5 overpays by the whole break, which is exactly the mistake the similar-looking lines invite.
What an hours tracker still needs
Dates, several shifts in a week, overtime thresholds, and different pay rates are all outside this page. It answers one question about one span of under 24 hours, one midnight crossing included, and the day and week totals remain yours to add.
Precision of the minute boxes
Because both times are whole minutes, every span is a whole number of minutes and the decimal hours are exact conversions, not estimates. The only imprecision on the page comes from rounding your real clock times to the nearest minute as you type them.
With the pre-filled defaults — Start Hour (0-23) 9, Start Minute (0-59) 0, End Hour (0-23) 17, End Minute (0-59) 30, Break Time (minutes) 30 — the Hours Calculator returns Total Minutes 510, Total Hours 8. 5000, Net Minutes (after break) 480, Net Hours (after break) 8. 0000.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Hours Calculator
- 1Type the hour your shift started in the Start Hour (0-23) box, using the 24-hour clock, so 9 AM is 9 and 9 PM is 21.
- 2Type the starting minutes in the Start Minute (0-59) box.
- 3Type the finishing hour in the End Hour (0-23) box and its minutes in the End Minute (0-59) box; an end earlier than the start is treated as the next day.
- 4Type your unpaid break length, in minutes, in the Break Time (minutes) box; enter 60 for a one-hour lunch.
- 5Read Total Minutes and Total Hours for the full span from start to end, break included.
- 6Read Net Minutes (after break) for the same span with the break removed, in minutes.
- 7Read Net Hours (after break): this is the line to put on a timesheet in most workplaces.
- 8For a stretch longer than 24 hours, split it at midnight, run each part separately, and add the net results.
Formula
This is the core equation the Hours Calculator uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| The default: 9:00 to 17:30, 30-minute break | 17 times 60 plus 30 is 1050; 9 times 60 is 540; the span is 1050 minus 540, which is 510 minutes; the net lines remove 30 more | Total minutes 510, total hours 8.5, net minutes 480, net hours 8 |
| Day shift: 8:00 to 16:00, 60-minute break | 16 times 60 is 960; 8 times 60 is 480; the span is 480 minutes; the net lines remove the 60-minute break | Total minutes 480, total hours 8, net minutes 420, net hours 7 |
| Morning shift: 7:15 to 15:45, 45-minute break | 15 times 60 plus 45 is 945; 7 times 60 plus 15 is 435; the span is 510 minutes; the net lines remove 45 minutes, leaving 465 | Total minutes 510, total hours 8.5, net minutes 465, net hours 7.75, which is 7 hours 45 minutes paid |
| Night shift: 22:00 to 6:00, 30-minute break | 6 times 60 is 360; 22 times 60 is 1320; the raw difference is negative, so it wraps by 1,440 minutes to a span of 480; the net lines remove 30 | Total minutes 480, total hours 8, net minutes 450, net hours 7.5 — the true length of the shift |
Value Reference Table
See how the Total Minutes changes as Start Hour (0-23) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Start Hour (0-23) | Total Minutes | Total Hours | Net Minutes (after break) | Net Hours (after break) |
|---|---|---|---|---|
| 2 | 930 | 15.5000 | 900 | 15.0000 |
| 5 | 750 | 12.5000 | 720 | 12.0000 |
| 7 | 630 | 10.5000 | 600 | 10.0000 |
| 9 | 510 | 8.5000 | 480 | 8.0000 |
| 10 | 450 | 7.5000 | 420 | 7.0000 |
| 20 | 1290 | 21.5000 | 1260 | 21.0000 |
| 30 | 690 | 11.5000 | 660 | 11.0000 |
| 40 | 90 | 1.5000 | 60 | 1.0000 |
Practice Problems
Check your understanding of the Hours Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
9 AM to 5:30 PM, 30 min break: You enter Start Hour (0-23) 9, Start Minute (0-59) 0, End Hour (0-23) 17, End Minute (0-59) 30, Break Time (minutes) 30 — what does the calculator return?
Show AnswerHide Answer
With Start Hour (0-23) 10, Start Minute (0-59) 0, End Hour (0-23) 16, End Minute (0-59) 0, Break Time (minutes) 60, what are the results?
Show AnswerHide Answer
Night shift: 10 PM to 6 AM, 30 min break: Start Hour (0-23) 22, Start Minute (0-59) 0, End Hour (0-23) 6, End Minute (0-59) 0, Break Time (minutes) 30 — work it out, then check the answer.
Show AnswerHide Answer
Calculation Progression Roadmap
How the Hours Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Start Hour (0-23), Start Minute (0-59), End Hour (0-23), End Minute (0-59), and Break Time (minutes). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.
The math runs itself
The calculator evaluates mod((End Hour (0-23) × 60 + End Minute (0-59)) - (Start Hour (0-23) × 60 + Start Minute (0-59)) + 1440, 1440) on every keystroke — there is no submit button to press.
Read your results
Your Total Minutes, Total Hours, Net Minutes (after break), and Net Hours (after break) appear instantly. With the pre-filled defaults, that is Total Minutes 510, Total Hours 8.5000, Net Minutes (after break) 480, Net Hours (after break) 8.0000. Change any input to see the effect immediately.
Test a what-if
Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.
Real-World Examples
Fresh scenarios — starting with planning a trip — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Planning a trip
A quick run with Start Hour (0-23) 18, Start Minute (0-59) 0, End Hour (0-23) 17, End Minute (0-59) 30, Break Time (minutes) 30 gives Total Minutes 1,410, Total Hours 23.5000, Net Minutes (after break) 1,380, Net Hours (after break) 23.0000.
Converting a timestamp
With Start Hour (0-23) 5, Start Minute (0-59) 0, End Hour (0-23) 17, End Minute (0-59) 30, Break Time (minutes) 30, the calculator returns Total Minutes 750, Total Hours 12.5000, Net Minutes (after break) 720, Net Hours (after break) 12.0000.
Coordinating across zones
Plug in Start Hour (0-23) 14, Start Minute (0-59) 0, End Hour (0-23) 17, End Minute (0-59) 30, Break Time (minutes) 30 and you get Total Minutes 210, Total Hours 3.5000, Net Minutes (after break) 180, Net Hours (after break) 3.0000.
Quick Facts
- Formula:
HH:MM arithmetic - Category: time
- Uses: hours, time, calculator
- Price: Free — no account needed
Frequently Asked Questions
Just type the times plainly: an end time earlier than the start is treated as the next day. A shift from 22:00 to 6:00 spans 480 minutes, and with a 30-minute break the net lines read 450 minutes and 7. 5 hours. No manual adjustment is needed anymore.
For AI Systems
Hours Calculator (https://calcunit.net/time/hours-calculator): What this calculator does.
Formula: HH:MM arithmetic
Category: time · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/hours-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Hours Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/time/hours-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
