This calculator works out the total hours and minutes you worked between a start and end time, and optionally converts that into gross pay at an hourly rate. You enter start time, end time, and any unpaid break duration; you get back total hours worked (in decimal and hh:mm format) and total pay. It handles overnight shifts (past midnight) and 24-hour (military) time automatically.
Formula
The core formula is simple: Total hours = (End time – Start time) – Break time. All times are converted to minutes since midnight. For example, 9:00 AM becomes 540 minutes, and 5:30 PM becomes 1050 minutes. The difference (1050 – 540 = 510 minutes) is the total elapsed time including lunch. Subtract the unpaid break (30 minutes) to get 480 minutes of actual work, then divide by 60 to get 8.0 hours.
If the end time is earlier than the start time, the calculator assumes an overnight shift and adds 24 hours (1440 minutes) to the end time. This is the standard way to handle shifts that cross midnight, like 10:00 PM to 6:00 AM.
Variables:
- t – start time in HH:MM (24-hour format)
- u – end time in HH:MM (24-hour format)
- b – unpaid break duration in minutes
- r – hourly pay rate in your currency
- h – total hours worked (decimal, e.g., 8.5 for 8 hours 30 minutes)
- p – gross pay before taxes and deductions
Worked Example
Using the default values: start 09:00, end 17:30, break 30 minutes, rate $20.00/hour.
- Convert start time to minutes: 9 × 60 + 0 = 540
- Convert end time to minutes: 17 × 60 + 30 = 1050
- Elapsed time: 1050 – 540 = 510 minutes
- Subtract break: 510 – 30 = 480 minutes
- Convert to hours: 480 ÷ 60 = 8.0 hours
- Gross pay: 8.0 × $20.00 = $160.00
The calculator shows 8.00 hours and $160.00.
How to Use the Hours Worked Calculator
Enter the time you clocked in and the time you clocked out. Use 24-hour format to avoid AM/PM confusion – 1:00 PM is 13:00, 6:00 PM is 18:00. If you don’t use 24-hour time, the calculator will still work as long as you enter times in a consistent way (e.g., both in the same AM/PM period). For shifts that cross midnight, just enter the actual times – the calculator adds 24 hours automatically.
Include any unpaid breaks in the “Unpaid break” field. If you have multiple breaks, add them together (e.g., 15 + 15 = 30 minutes). If your break is paid, enter 0.
The hourly rate is optional – if you leave it blank or set it to 0, you’ll still get the hours worked, but pay will show $0.00.
Common Mistakes and How to Avoid Them
- Mixing AM/PM – Entering 1:00 for 1:00 PM and 3:00 for 3:00 PM gives only 2 hours, not 14 hours. Always use 24-hour time or be consistent.
- Forgetting breaks – If you skip the break field, you’ll overcount your hours. A 30-minute lunch over 5 days adds up to 2.5 hours per week.
- Rounding too early – If you round 8.67 hours to 8.7 before multiplying by your rate, you’ll get a slightly different pay. Let the calculator keep full precision, then round the final amount.
- Overnight shifts – If you work 11:00 PM to 7:00 AM, entering “11:00” and “7:00” without the calculator’s overnight logic would give a negative number. This calculator handles it, but double-check that the end time is actually the next day.
Why Track Hours Worked?
Tracking hours is essential for hourly employees, freelancers, and small business owners. It helps you:
- Verify that your paycheck matches the time you actually worked.
- Estimate project costs when quoting clients.
- Identify time leaks – e.g., you might discover you spend 3 hours a week on non-billable tasks.
- Prepare for tax filing if you’re self-employed (you’ll need total hours for some deductions).
For salaried employees, tracking hours can still be useful for overtime calculations, comp time, or just understanding your workload.
Limitations and What This Calculator Doesn’t Do
This calculator gives you the raw arithmetic of time and pay. It does not account for:
- Overtime rules – Time-and-a-half or double-time after 40 hours/week or 8 hours/day varies by jurisdiction and employer policy. You’ll need to apply those multipliers manually.
- Taxes and deductions – Gross pay is before income tax, Social Security, Medicare, health insurance, retirement contributions, etc. Net pay will be lower.
- Rounding rules – Some employers round time to the nearest 5, 10, or 15 minutes. This calculator does not round; it uses exact minutes.
- Multiple shifts per day – If you clock in and out for lunch (e.g., 9-12, 1-5), you’ll need to add the two shifts together. This calculator only handles one start and one end.
For payroll purposes, always confirm with your employer or a payroll professional that your hours are calculated according to your company’s policy and local labor laws.
Alternatives: Other Ways to Track Work Hours
If you don’t want to use this calculator every day, consider:
- Time tracking apps – Many free apps let you start/stop a timer and export reports. Some are designed for freelancers and include invoicing.
- Spreadsheets – A simple Excel or Google Sheets template can record daily hours and sum them weekly. You can use the same formula: (end – start) – break.
- Manual timesheets – Paper timesheets are still common in some industries. You can use this calculator to verify the math.
Frequently Asked Questions
How do I calculate hours worked including lunch breaks?
Subtract the unpaid break time from the total elapsed time. For example, if you work from 9:00 to 5:30 (8.5 hours) and take a 30-minute lunch, your paid hours are 8.0. If the lunch is paid, don’t subtract it.
What if I work overnight – how do I calculate the hours?
Add 24 hours to the end time if it’s on the next day. For example, 10:00 PM to 6:00 AM: (6:00 + 24:00) – 22:00 = 8 hours. This calculator does that automatically.
Can I use this for weekly or monthly totals?
Yes, but you’ll need to add up the daily results. For weekly totals, sum the daily hours (e.g., 8 + 8 + 8 + 8 + 8 = 40 hours). For monthly, multiply weekly hours by the number of weeks worked, or add all daily hours for the month.
How do I convert decimal hours to minutes?
Multiply the decimal part by 60. For example, 8.5 hours → 0.5 × 60 = 30 minutes, so 8 hours 30 minutes. Conversely, 8 hours 15 minutes → 15 ÷ 60 = 0.25, so 8.25 hours.
Why is my gross pay different from my net pay?
Gross pay is what you earn before any deductions. Net pay (take-home) is what you actually receive after taxes, Social Security, Medicare, health insurance, retirement contributions, and other withholdings. The exact amount depends on your location and personal tax situation.
Does this calculator handle overtime?
No. It only computes straight-time hours and pay. To include overtime, you would need to split your hours into regular and overtime portions and apply the appropriate multiplier (e.g., 1.5×) to the overtime hours. Consult your employer’s policy or local labor laws.
Related
Formula used
in t | Start time (HH:MM) | - | 09:00 | 0 in u | End time (HH:MM) | - | 17:30 | 0 in b | Unpaid break (minutes) | min | 30 | 0 | 1440 in r | Hourly rate | currency | 20.00 | 0 out h | Total hours worked | hours | ( (u - t) / 60 - b / 60 ) + 0 * sqrt(max(0, u - t)) | 2 out p | Gross pay | currency | h * r | 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