A working hours calculator takes your start time, end time, and unpaid break length, then returns the total hours and minutes you actually worked. You enter the times in a 24-hour or AM/PM format, and the calculator subtracts the break automatically to give a clean daily total. This is the same arithmetic a timesheet does by hand, but without the counting errors.
Formula
The calculator uses the simplest possible time arithmetic:
Worked time = (End time − Start time) − Break length
In the block above, the first output converts the difference between two clock times into minutes, subtracts the break minutes, and displays the result as hours and minutes (h:mm). The second output gives the same value as a decimal number of hours, which is what many payroll systems expect.
Variables and units:
- Start time – the clock time you began work, in HH:MM (24-hour format).
- End time – the clock time you finished work, in HH:MM (24-hour format).
- Break length – total unpaid break time in minutes (e.g., 30 for a half-hour lunch).
- Worked time – the result, shown as hours and minutes (e.g., 7:30) or as a decimal (7.50).
The block uses (end - start) * 24 * 60 because the time inputs are internally treated as fractions of a day. For example, 17:00 minus 9:00 gives 0.3333 days, which multiplied by 24 and 60 equals 480 minutes. Then the break is subtracted.
Worked Example
Using the default values from the calculator block:
- Start time = 9:00
- End time = 17:00
- Break = 30 minutes
Step 1: Find the raw difference between end and start.
17:00 − 9:00 = 8 hours = 480 minutes.
Step 2: Subtract the break.
480 − 30 = 450 minutes.
Step 3: Convert to hours and minutes.
450 minutes ÷ 60 = 7.5 hours = 7 hours 30 minutes.
The calculator shows 7:30 as the main answer and 7.50 as the decimal equivalent. This matches the default output exactly.
Why Use a Working Hours Calculator?
People use these calculators for three main reasons: filling out timesheets, checking a pay stub, or tracking time for personal projects. Manual subtraction is easy to get wrong, especially when a shift crosses noon or involves a 45-minute lunch that you forget to deduct. A calculator removes that mental load and gives you a consistent number you can copy into a spreadsheet or an HR system.
Another common use is comparing your recorded hours against your contract. If your contract says 37.5 hours per week, you can add up five daily totals to see whether you are under, over, or exactly on target. Some calculators also let you add multiple days together, but this one focuses on a single day because that is the building block for any weekly or monthly total.
How to Read the Result
The main result appears as h:mm (e.g., 7:30). This is the format most people expect when they talk about their shift length. The second output, decimal hours (e.g., 7.50), is what many payroll systems use for calculating wages. To convert decimal hours to minutes, multiply the decimal part by 60. For example, 7.50 hours means 7 full hours plus 0.50 × 60 = 30 minutes.
If you need a weekly total, add the decimal hours from each day. For instance, if you worked 7.50, 8.25, and 6.75 hours over three days, the total is 22.50 hours. Then multiply by your hourly rate to get gross pay before taxes and deductions.
Common Mistakes and How to Avoid Them
- Forgetting the break – The most frequent error is entering only start and end times, then reporting 8 hours when you actually worked 7.5. Always include unpaid breaks.
- Mixing AM and PM – If you enter 9:00 for 9 AM and 5:00 for 5 PM in a 12-hour system, you must specify AM/PM. In a 24-hour format, 5 PM is 17:00. This calculator assumes 24-hour input, so double-check that your end time is larger than your start time.
- Overnight shifts – If you start at 22:00 and end at 06:00 the next day, a simple subtraction yields a negative number. Add 24 hours to the end time first: (06:00 + 24:00) − 22:00 = 8 hours. This calculator does not handle overnight shifts automatically, so you would need to add 24 hours manually or split the shift into two entries.
- Rounding too early – If you round 7.6667 hours to 7.7 before multiplying by your hourly rate, you may get a slightly different pay amount. Keep the full decimal until the final calculation.
How to Choose a Working Hours Calculator
Not all time calculators are the same. Look for one that:
- Accepts both 12-hour and 24-hour formats, or clearly states which one it uses.
- Allows you to enter break time in minutes, not just in hours.
- Shows the result in both h:mm and decimal hours, so you can use it for timesheets and payroll.
- Handles overnight shifts, or at least warns you when the end time is earlier than the start time.
- Is free and does not require an account or installation.
For most people, a simple single-day calculator like the one above is enough. If you need to track a whole week, you can either use a weekly calculator or add the daily results yourself in a spreadsheet.
Alternatives to a Manual Calculator
If you do not want to type times into a web page, there are other ways to track working hours:
- Spreadsheet formulas – In Excel or Google Sheets, you can use
=TEXT(end-start-break,"h:mm")to get the same result. This is useful if you already keep a digital timesheet. - Time tracking apps – Apps like Toggl or Clockify let you start and stop a timer, then generate reports automatically. They are more convenient for freelancers who switch between tasks.
- Physical timesheets – If you prefer paper, write the start and end times, then subtract the break using the same formula. A calculator just speeds this up.
- Payroll software – Many employers use systems that calculate hours automatically from clock-in/out data, so you may not need to do any math yourself.
Each method has trade-offs. A web calculator is fast and free, but it does not store your history. A spreadsheet gives you a permanent record but requires setup. Apps offer automation but may have subscription costs.
Limits of the Formula
The formula assumes a single continuous shift with one break. It does not account for:
- Multiple breaks of different lengths (e.g., a 15-minute coffee break plus a 30-minute lunch). You would need to add them together first.
- Overtime rules, such as time-and-a-half after 8 hours. That is a payroll policy, not a mathematical calculation.
- Rounding rules that some employers use (e.g., rounding to the nearest quarter hour). The calculator gives exact minutes; you would apply any rounding policy afterward.
- Time zones or daylight saving time changes, which can make an 8-hour shift feel like 7 or 9 hours on transition days. For payroll, employers usually use the actual elapsed time, not the wall clock.
For most standard day shifts, the formula is exact. For overnight shifts, add 24 hours to the end time before subtracting. For split shifts, treat each part as a separate calculation and add the results.
Frequently Asked Questions
How do I calculate my working hours if I have an unpaid lunch break?
Subtract the break length from the total time between start and end. For example, if you work from 9:00 to 17:00 with a 30-minute lunch, you worked 7 hours and 30 minutes. Enter the break in minutes (30) into the calculator to get the correct result.
What is the difference between h:mm and decimal hours?
h:mm shows hours and minutes (e.g., 7:30), while decimal hours show hours as a fraction (e.g., 7.50). To convert h:mm to decimal, divide the minutes by 60 and add to the hours. To convert decimal to h:mm, multiply the decimal part by 60 to get minutes.
Can this calculator handle overnight shifts?
No, because a simple subtraction would give a negative number. For a shift from 22:00 to 06:00, add 24 hours to the end time (so 06:00 becomes 30:00) and then subtract the start time. The result is 8 hours minus any break.
How do I calculate weekly working hours from daily totals?
Add the decimal hours for each day. For example, if you worked 7.5, 8.0, 8.5, 7.75, and 6.5 hours from Monday to Friday, the total is 38.25 hours. This matches the sum of the daily h:mm values when converted to decimals.
Why does my pay stub show a different number of hours than my timesheet?
Employers often round time to the nearest quarter hour (e.g., 7:28 becomes 7:30) or use a different definition of a break. Some also exclude unpaid training or travel time. Compare your raw hours with the pay stub and ask your HR department about their rounding policy if the difference is consistent.
Is a working hours calculator accurate enough for payroll?
Yes, the arithmetic is exact. However, payroll systems may apply rounding rules or require specific formats (e.g., decimal hours with two digits). Always check your employer’s timekeeping policy and use the calculator as a verification tool, not as the final authority.
Related
Formula used
in start | Start time (HH:MM) | - | 9:00 | 0 | 23:59 in end | End time (HH:MM) | - | 17:00 | 0 | 23:59 in break | Unpaid break (minutes) | min | 30 | 0 | 600 out worked | Worked time | h:mm | (end - start) * 24 * 60 - break | time out worked_h | Worked hours (decimal) | h | (end - start) * 24 - break / 60 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Measuring Light Speed & Wavelength: How It Works
- Draco Race Blox Fruits: How to Get It
- ES File Explorer Tips & Tricks That Actually Work
- Remove Google FRP Lock on Oppo: Step-by-Step
- Forza Horizon 6: Unlock Legend Island & Earn Horizon Legend
- Clean Hair Dryer Filter: Improve Airflow