What is an hours calculator?
An hours calculator works out how many paid hours sit inside a shift: you give it a start time, an end time and the length of your unpaid break, and it returns the hours for that day as a clock reading such as 8:00, as a decimal such as 8.00, and, when you repeat the shift across a week, as a weekly total, with gross pay if you add an hourly rate. People also search for the same tool as a time card calculator, a work hours calculator or a shift hours calculator, because the job is the same in every case: turning two clock readings and a break into a number a timesheet, a rota or a payslip can use.
The arithmetic sounds simple until you try to do it in your head at the end of a shift. Clock subtraction borrows in sixties rather than tens, breaks rarely line up neatly with the hour, and a night shift finishes at a clock time that looks earlier than the time it started. Each of those is a small trap, and together they explain why hand-added time cards so often come out a quarter of an hour out, usually in the same direction every week. A calculator removes the traps by doing the subtraction one careful way, the same way every time, and showing its working in units you can check.
This page is built around three worked examples so you can verify everything before trusting it with your own times. The calculator opens pre-filled with 09:00 to 17:30 and a 30 minute break, which gives exactly 8.00 hours a day, 40.00 hours over five days and $800.00 of gross pay at $20.00 an hour. The guide also works an overnight example, 22:00 to 06:00 with a 30 minute break giving 7.50 hours, and a quarter-hour example, 08:45 to 17:15 with a 45 minute break giving 7.75 hours. If all three check out by hand, the method is doing what it claims.
How this hours calculator works
The engine follows the method a careful person would use on paper, in four steps. First, both times are converted into minutes since midnight: the hour multiplied by 60, plus the minutes. Second, the overnight rule is applied: if the end time is earlier than the start time, a full day of 1,440 minutes is added to the end time, because that finish belongs to the next day. Third, the start is subtracted from the adjusted end, and the unpaid break minutes are subtracted from the result, leaving the paid minutes for the day. Fourth, those paid minutes are read back in every useful form: as hours and minutes, as decimal hours, multiplied by the days per week for the weekly total, and multiplied by the hourly rate for gross pay.
Because every output comes from that one subtraction, the outputs can never contradict each other. If the day shows 7 hours 45 minutes, the decimal must show 7.75 and a five-day week must show 38.75 hours, because they are the same quantity wearing different units. Tools that calculate each figure separately can drift apart through rounding; this one cannot, and that is a deliberate design choice rather than an accident.
Everything runs in your own browser. No time, break or rate you type is sent anywhere, stored anywhere or attached to any account, because there is no account and no server-side step in the calculation at all. The page works the same offline as online once it has loaded, which is as it should be for arithmetic this simple, and it means your pay rate stays exactly as private as it should be.
The method, worked step by step
Worked example one: 09:00 to 17:30 with a 30 minute unpaid break. Convert 09:00 to minutes since midnight: 9 times 60 is 540 minutes. Convert 17:30 the same way: 17 times 60 is 1,020, plus 30 is 1,050 minutes. Subtract: 1,050 minus 540 is 510 minutes, the full span of the shift. Now subtract the break: 510 minus 30 is 480 paid minutes. Read 480 minutes back as a clock length: 480 divided by 60 is exactly 8 hours, written 8:00, or 8.00 in decimal form. Over five days that is 40.00 hours, and at $20.00 an hour the gross pay is $160.00 a day and $800.00 a week. Every figure on the results panel for this example is one of those numbers.
Worked example two: 22:00 to 06:00 with a 30 minute break, the standard night shift. The same-day method fails here because 06:00 is earlier than 22:00, so the overnight rule adds a day to the end: 06:00 becomes 30:00 in extended hours, which is 1,800 minutes since the start of the previous day. Subtract the start, 22:00, which is 1,320 minutes: the span is 480 minutes. Subtract the 30 minute break and the paid time is 450 minutes, which is 7 hours 30 minutes, or 7.50 decimal hours. Split at midnight if you prefer to check it by hand: 22:00 to midnight is 2 hours, midnight to 06:00 is 6 hours, the span is 8 hours, and the break brings it to 7.50 paid hours. Two routes, one answer.
Worked example three: 08:45 to 17:15 with a 45 minute break. In minutes, 08:45 is 525 and 17:15 is 1,035, so the span is 510 minutes. Minus the 45 minute break gives 465 paid minutes. 465 divided by 60 is 7 hours with 45 minutes left over, written 7:45, and because 45 minutes is three quarters of an hour, the decimal form is 7.75. Quarter hours like this one are the friendliest case in time card arithmetic; the conversion table in the next section shows why, and what happens with less tidy minutes such as 10 or 20.
Worked examples and decimal conversion table
The first table collects the shift patterns people most often need, each worked with exactly the method above, including the three guide examples. Find the row nearest your own pattern to sanity-check a result, or read the decimal column straight onto a timesheet. Every row already has its unpaid break subtracted, so the figures are paid hours, not spans. The second, shorter table is the conversion crib for minutes into decimal hours, the step that causes most hand-calculation errors.
| Start | End | Unpaid break | Hours per day (h:mm) | Decimal hours | 5-day week |
|---|---|---|---|---|---|
| 09:00 | 17:30 | 30 min | 8:00 | 8.00 | 40.00 |
| 09:00 | 17:00 | 30 min | 7:30 | 7.50 | 37.50 |
| 08:45 | 17:15 | 45 min | 7:45 | 7.75 | 38.75 |
| 08:00 | 16:00 | 30 min | 7:30 | 7.50 | 37.50 |
| 07:00 | 19:00 | 60 min | 11:00 | 11.00 | 55.00 |
| 22:00 | 06:00 | 30 min | 7:30 | 7.50 | 37.50 |
| 19:00 | 07:00 | 60 min | 11:00 | 11.00 | 55.00 |
| 06:00 | 14:30 | 30 min | 8:00 | 8.00 | 40.00 |
| 14:00 | 22:30 | 30 min | 8:00 | 8.00 | 40.00 |
| 09:00 | 13:00 | 0 min | 4:00 | 4.00 | 20.00 |
| 17:30 | 21:45 | 15 min | 4:00 | 4.00 | 20.00 |
| 23:00 | 07:30 | 30 min | 8:00 | 8.00 | 40.00 |
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
| 30 | 0.50 | 60 | 1.00 |
Two patterns are worth noticing. First, the classic patterns repeat: an eight-hour paid day appears as a day shift with a half-hour break, as an early shift, as a late shift and as a night shift, because paid hours depend on the span and the break, not on where the shift sits in the day. Second, only quarter hours convert cleanly. Fifteen, 30 and 45 minutes give exact decimals of 0.25, 0.50 and 0.75, while 10 and 20 minutes give repeating decimals that this calculator rounds to two places, 0.17 and 0.33. That rounding is why a week of ten-minute fragments can differ by a minute or two from a hand total; the exact h:mm figure is always shown beside the decimal so you can see both.
Reading your result: h:mm, decimal hours and gross pay
The headline result is the decimal hours per day, because that is the figure everything else is built from. Under it sit the same day written as h:mm, the weekly total, and the gross pay for the week. Each format has its own job. The h:mm form is the human check: it is how you would say the shift out loud, and it is the fastest way to spot a typing error, because a day that reads 9:45 when you expected about eight hours announces its own mistake. The decimal form is the working number: it can be added across days and multiplied by a rate without borrowing in sixties. The weekly total is the figure rotas, contracts and payslips are usually argued about, and the gross pay figures translate hours into money at the single rate you entered.
A useful habit is to read at least two of the formats before using any of them. They are conversions of one another, so they act as a built-in check: 7 hours 45 minutes, 7.75 hours a day and 38.75 hours over five days all describe the same pattern, and if a figure you copied into a timesheet does not convert back to the clock reading you remember, the copying went wrong somewhere. Catching that here is cheaper than catching it on a payslip, where the conversation is slower and the correction takes a pay cycle.
Overnight shifts: when the end time is before the start time
Midnight is where time card arithmetic earns its keep. A span that crosses it has an end time that looks earlier than its start time, and any method that simply subtracts will produce a negative answer or, worse, a quietly wrong positive one. The rule on this page is stated openly rather than hidden in a setting: an end time earlier than the start time is treated as falling on the next day, and a full 24 hours is added before the subtraction happens. That single rule covers every ordinary night shift, from a short evening-to-early-hours pattern to a full 19:00 to 07:00 duty.
Night work is the everyday case. Nurses, security staff, bakers, drivers, warehouse teams and carers routinely work spans like 22:00 to 06:00 or 23:00 to 07:30, and their hours are the ones most likely to be mis-added by hand, because tired people at the end of a night shift are doing borrowing-in-sixties arithmetic at the worst possible moment. The examples table above includes the standard night patterns so a result can be checked against a known row in seconds, and the worked example in the method section shows the split-at-midnight check anyone can do on paper.
Two cautions belong here. First, the rule assumes the shift is under 24 hours, which every real shift is; a span of more than a day is not a shift and needs a different tool. Second, this calculator measures the difference between clock readings. On the two nights a year when the clocks themselves change for daylight saving, the clock-reading difference and the truly elapsed time differ by an hour, and no subtraction of readings can paper over that. For payroll on a clock-change night, follow your employer policy and your local rules; for every ordinary night, the overnight arithmetic here is exact.
Breaks: paid, unpaid and why they matter
The break field is where honest time cards are won and lost, so the rule is simple: enter only the break time you are not paid for, in minutes. A paid rest break should not be entered at all, because the field is subtracted. The common pattern in many jobs is a 30 or 60 minute unpaid meal break plus shorter paid rest breaks; in that case enter only the meal break. If part of a longer break is paid and part is not, enter the unpaid part. If you work through your meal break, enter 0 for that day and calculate it separately, because a worked break is paid time however it was scheduled.
Breaks matter beyond arithmetic because they are regulated in many places. Employment standards in Canadian provinces such as Ontario, in US states, and in many other jurisdictions set minimum meal and rest breaks, thresholds for when they apply, and rules on whether they can be paid or unpaid. Those rules vary by jurisdiction and sometimes by industry and shift length, which is why this page links to official guides in its sources rather than summarising law it cannot keep current for every reader. What the calculator needs from you is only the fact of your own arrangement: how many minutes of your shift are unpaid.
If the break you enter is as long as or longer than the whole shift, the calculator refuses to show a result and asks you to check the entries instead. That guard exists because the usual cause is a slip, such as entering the break in hours, typing 30 into the wrong field, or pairing a start and end time from different shifts. A tool that silently displayed zero or negative hours at that point would be helping an error onto a time card.
Weekly totals and days per week
The weekly total is the daily paid hours multiplied by the days per week you enter, from one to seven. Five is the default because it is the most common full-time pattern, and it turns the opening example into the familiar 40.00 hour week. Part-time patterns work identically: the same 8.00 hour day over three days is 24.00 hours, and over four days it is 32.00 hours. Longer rosters of six or seven days are handled the same way, and the gross pay for the week follows by multiplying the weekly hours by the rate.
The assumption underneath is stated plainly: the calculator repeats one shift pattern across every day counted. Real weeks are often less tidy, with a long day, a short day and a night shift in the same week. The honest way to handle a mixed week is to run the calculator once for each distinct pattern, note each daily figure, and add them yourself. Three quick runs, one per pattern, give an exact weekly total; a single run with averaged times gives a plausible-looking number that is quietly wrong, and plausible-looking wrong numbers are the ones that survive onto payslips.
12-hour and 24-hour input
The world splits into two clock notations, and this calculator accepts both. The 24-hour clock runs from 00:00 to 23:59 and is the notation of timetables, hospitals, the military and most of Europe and Asia. The 12-hour clock runs from 1 to 12 twice a day and needs AM and PM to say which half of the day a time belongs to; it is the everyday notation in Canada, the United States, India, Pakistan, the Philippines and much of the English-speaking world. The format selector switches the input between the two, and in 12-hour mode each time carries its own AM or PM selector, so the opening example is entered as 09:00 AM to 05:30 PM.
Two moments cause almost all 12-hour mistakes. Noon is 12 PM, not 12 AM, and midnight is 12 AM, not 12 PM. The rule that makes it memorable is that 12 AM is the start of the day and 12 PM is its middle. This calculator converts 12 AM to 00 and 12 PM to 12 internally, the standard convention, so a shift from 12:00 AM to 12:00 PM measures 12 hours before any break, as it should. Overnight shifts in 12-hour mode follow the same stated rule as in 24-hour mode: an end reading earlier than the start reading, with its AM or PM set correctly, is treated as the next day.
What this calculator cannot do: taxes, deductions and overtime
Honesty about limits is part of the tool, so here they are in one place. This calculator shows gross figures only. It does not calculate income tax, payroll taxes, pension or retirement contributions, benefits premiums, union dues or any other deduction, and it does not estimate take-home pay. Those amounts depend on where you live, your total income, your allowances and your employer scheme, none of which a time calculator can know. The gross hours and gross pay here are the correct starting point for checking a payslip, not a prediction of the amount that will reach your bank account.
It also does not work out legal overtime entitlement, and it never applies an overtime premium. Overtime rules vary by jurisdiction: the weekly or daily threshold, the premium rate, the averaging rules and which workers are covered or exempt differ between countries, states and provinces, and they change when governments amend them. A page that quietly labelled some of your hours as overtime would be guessing at law that may not be yours. Instead, this page totals your hours honestly and leaves the premium where it belongs: if you need pay at time and a half or double time on hours you have already totalled, use the Overtime Pay Calculator, and for what you are legally entitled to, check the official employment standards guide for your own jurisdiction, two of which are listed in the sources below.
Finally, it does not round to an employer time-clock policy, judge whether a shift pattern is lawful or safe, or know your contract. Some employers round clock-ins to the nearest quarter hour or pay in set increments; apply your employer rule to the exact figures shown here, not the other way round. The measurement this page gives, exact paid hours from stated times and a stated break, is the right foundation for every one of those human decisions.
Sources and References
- Ontario Ministry of Labour - Your Guide to the Employment Standards Act: Hours of work, daily and weekly limits and rest periods in Ontario, Canada
- Ontario Ministry of Labour - Your Guide to the Employment Standards Act: Overtime pay, the Ontario threshold and premium rate
- USA.gov - Overtime pay, the official United States guide to overtime rules and who is covered
- National Institute of Standards and Technology (NIST) - Time and Frequency Division, the United States time standards authority
- timeanddate.com - Time, clock and calendar information resources
- Wikipedia - 12-hour clock, AM and PM conventions including noon and midnight
- Wikipedia - 24-hour clock, the notation this calculator uses internally
Every figure in this guide was calculated with this page own stated method of minutes-since-midnight arithmetic with the overnight rule and break subtraction described above, so you can reproduce each one exactly by entering the same times above. All seven sources above were verified as reachable with an HTTP 200 response when this page was published, and exactly seven sources are listed. No source substitution was needed.