Skip to main content

Online Calculator Lab

Hours Calculator

Calculate hours between two times, subtract breaks, add up a full week, and see pay — in h:mm and decimal. Free & instant.

Start Time
End Time
Break (minutes)
Hourly Rate (optional)
0h 00m
Net hours worked
Decimal Hours
--
Total Minutes
--
Break Deducted
--
Gross Pay
--
⚠️ Disclaimer
Pay calculations on this page are estimates only and do not account for taxes, deductions, employer contributions, or jurisdiction-specific labor rules. For payroll compliance and overtime determinations, consult your HR department, a payroll specialist, or your state's Department of Labor. Federal overtime rules are governed by the Fair Labor Standards Act (FLSA).

What Is an Hours Calculator?

An hours calculator finds the difference between a start time and end time, subtracts any unpaid breaks, and converts the result to both hours-and-minutes (h:mm) and decimal format. The decimal format — where 7 hours 30 minutes becomes 7.5 — is what payroll systems actually use when multiplying hours by an hourly rate.

This calculator has three modes: Single Shift for one clock-in/clock-out pair, Weekly Timesheet for entering up to seven days and getting a running total, and Add Time for accumulating multiple time blocks (training sessions, project hours, client calls) into one total.

How to Use This Calculator

  1. Single Shift — Enter start time, end time, and break minutes. Add an hourly rate to see gross pay. The calculator handles overnight shifts automatically.
  2. Weekly Timesheet — Enter start/end/break for each day. The total updates on Calculate. Add a rate and overtime threshold (default 40 hrs) to see regular pay, overtime pay, and total.
  3. Add Time — Enter any number of h:mm pairs and click "Add Up All Times" to sum them. Useful for project billing or tracking scattered daily tasks.
📌 Night shifts: If your end time is earlier than your start time (e.g. 10:30 PM start, 6:15 AM end), this calculator adds 24 hours to the end time automatically — no manual adjustment needed. Result: 7 hours 45 minutes (7.75 decimal hours).

The Formula: How Hours Are Calculated

Step 1 — Convert both times to total minutes since midnight: Start: hours × 60 + minutes End: hours × 60 + minutes (add 1440 if end < start — overnight shift) Step 2 — Subtract: Raw minutes = End minutes − Start minutes Step 3 — Deduct break: Net minutes = Raw minutes − Break minutes Step 4 — Convert to h:mm and decimal: Hours = Net minutes ÷ 60 (floor) Remaining minutes = Net minutes mod 60 Decimal hours = Net minutes ÷ 60 Worked example — 9:00 AM to 5:30 PM, 30-min break: Start: 9×60 + 0 = 540 min End: 17×60 + 30 = 1050 min Raw: 1050 − 540 = 510 min (8h 30m) Net: 510 − 30 = 480 min (8h 00m) Decimal: 480 ÷ 60 = 8.00 hours Pay at $18/hr: 8.00 × $18 = $144.00

Decimal Hours — Why Payroll Uses Them

Payroll software doesn't multiply by "8 hours 30 minutes" — it multiplies by 8.50. Converting minutes to decimals is the step that bridges a time clock and a paycheck. Quarter-hour rounding (to the nearest 0.25) is common under the FLSA, though exact-minute tracking is more accurate for employees:

Time (h:mm)Exact DecimalRounded (0.25 increment)Difference at $20/hr
0h 15m0.250.25$0.00
0h 30m0.500.50$0.00
0h 45m0.750.75$0.00
1h 00m1.001.00$0.00
7h 30m7.507.50$0.00
8h 00m8.008.00$0.00
8h 20m8.3338.25 or 8.50*$0.83–$1.67
8h 45m8.758.75$0.00

*8 hours 20 minutes falls between the 0.25-hr marks. Under FLSA, rounding must be neutral — it can't consistently favor the employer. Many employers now use exact-minute tracking to avoid disputes. This calculator always uses exact minutes, never rounded.

Reference: DOL Fact Sheet #53 — FLSA Timekeeping Requirements

Overtime Rules Under the FLSA

Federal law in the US requires overtime pay (at least 1.5× the regular rate) for non-exempt employees who work more than 40 hours in a workweek. Some states have stricter rules — California, for example, requires daily overtime after 8 hours in a single day, and double time after 12 hours. The federal FLSA threshold is purely weekly:

Hours WorkedPay Rule (Federal FLSA)Example at $20/hr
0–40 hrs/weekRegular rate (1×)40 × $20 = $800
41–45 hrs (5 OT hrs)1.5× for OT portion$800 + 5 × $30 = $950
40 hrs (example above)Regular rate40 × $20 = $800
📌 California daily OT: California requires overtime after 8 hours per day (not just 40 per week). A 10-hour single day = 8 hours regular + 2 hours overtime under CA law, even if the weekly total stays under 40. Check your state's Department of Labor for local rules — federal FLSA is the floor, not the ceiling.

Reference: US Department of Labor — Overtime Pay

Weekly Timesheet — Worked Example

Here's a realistic 6-day schedule with varying hours and breaks. Every row is individually calculated using the same formula as the live calculator above:

DayStartEndBreakNet HoursDecimal
Monday9:00 AM5:30 PM30 min8h 00m8.00
Tuesday9:00 AM6:00 PM30 min8h 30m8.50
Wednesday8:30 AM5:00 PM30 min8h 00m8.00
Thursday9:00 AM5:00 PM0 min8h 00m8.00
Friday9:00 AM4:30 PM30 min7h 00m7.00
Saturday10:00 AM2:00 PM0 min4h 00m4.00
Total43h 30m43.50

At $18/hr with a 40-hour OT threshold: regular pay = 40 × $18 = $720.00, overtime = 3.5 hrs × $27 = $94.50, total = $814.50 gross (before deductions). The 3.5 OT hours come from 43.50 − 40 = 3.50.

Night Shifts and Crossing Midnight

When a shift starts in the evening and ends the next morning, the end time is numerically smaller than the start time — which would give a negative result without adjustment. The fix is adding 24 hours (1,440 minutes) to the end time whenever end < start:

Night shift example — 10:30 PM to 6:15 AM: Start: 22×60 + 30 = 1,350 min End: 6×60 + 15 = 375 min → but 375 < 1350, so add 1440 Adjusted end: 375 + 1440 = 1,815 min Raw: 1,815 − 1,350 = 465 min = 7h 45m = 7.75 decimal hours
📌 Shifts over 24 hours: This calculator handles shifts crossing midnight but is designed for single-day shifts (typically under 24 hours). For multi-day shifts exceeding 24 hours, use the Add Time mode and enter each day separately, then sum the totals.

5 Tips for Accurate Time Tracking

  • Always enter break time separately — never subtract it from your clock-out. Clocking out 30 minutes early to compensate for a break inflates your start or end time and makes your daily records inconsistent. Enter the real clock-out and enter the break separately. For the 9:00 AM–5:30 PM example with a 30-minute break: gross is 8h 30m, net is 8h 00m (8.00 decimal hours). The difference matters at $18/hr — 0.5 hour = $9.00 per day, $45 per week.
  • 40 hours per week = 2,080 hours per year — which is why annual salary ÷ 2,080 gives your effective hourly rate. A $52,000 salary works out to $25.00/hr. Tracking your actual hours against this benchmark shows whether you're working your contracted load or consistently over it.
  • Use decimal hours for invoicing, not h:mm. When sending a client invoice for "7:45 of consulting," they'll calculate 7.45 hours × your rate — which is wrong. 7h 45m = 7.75 decimal hours. Always convert to decimal before multiplying by your rate: 7.75 × $150/hr = $1,162.50, not 7.45 × $150 = $1,117.50 (a $45 error per invoice).
  • For overtime purposes, the workweek is a fixed 7-day period — not rolling. Under the FLSA, your employer defines a specific start day for the workweek (often Sunday or Monday). Hours don't carry over between workweeks — 38 hours one week and 42 the next means 2 hours of OT in week two, not zero OT averaged across both weeks. Source: DOL FLSA Overview
  • Track unpaid break time consistently. A 30-minute lunch break deducted every day adds up to 2.5 hours per week, 130 hours per year. At $18/hr, that's $2,340/year in deductions. If your employer requires you to remain on-call during lunch, that time may be compensable under the FLSA — the break must be truly free from work duties to be unpaid.

Frequently Asked Questions — Hours Calculator

Convert both times to minutes since midnight, subtract, then deduct break time. For 9:00 AM to 5:30 PM: start = 9×60 = 540 min, end = 17×60+30 = 1,050 min, difference = 510 min = 8h 30m. Subtract a 30-minute break: 510−30 = 480 min = 8h 00m = 8.00 decimal hours. Enter any two times in the Single Shift tab above and the calculator does all of this instantly.
Nothing — they're the same duration expressed two ways. 30 minutes ÷ 60 = 0.5, so 8h 30m = 8.50 decimal hours. The decimal form is what payroll software uses: 8.50 × $20/hr = $170. If you use "8:30" as a decimal (8.30 hours), you'd calculate $166 — a $4 error per shift. Always convert minutes to decimal before multiplying.
Yes. When the end time is earlier than the start time, the calculator adds 24 hours (1,440 minutes) to the end time. A 10:30 PM to 6:15 AM shift: start = 1,350 min, end = 375 min + 1,440 = 1,815 min, difference = 465 min = 7h 45m = 7.75 hours. No manual adjustments needed — just enter your actual clock-in and clock-out times.
Under federal FLSA, overtime (1.5× your regular rate) applies after 40 hours in a fixed 7-day workweek. Some states have stricter rules: California requires daily overtime after 8 hours per day, and double time after 12 hours in a day or after 8 hours on the 7th consecutive day in a workweek. The weekly timesheet above defaults to 40 hours but you can change the OT threshold to match your state or contract.
Switch to the "Add Time" tab, enter each time block (in hours and minutes), and click "Add Up All Times." The total appears in both h:mm and decimal. This is useful for freelancers tracking billable hours across several tasks, or for adding up training sessions, travel time, and project work that happened at different points in the day.
Salaried exempt employees are generally not entitled to overtime under FLSA, so tracking hours for pay purposes may not apply. However, many employers track salaried hours for project costing, client billing, and productivity analysis — all valid uses of this calculator. For salaried non-exempt employees (paid a salary but still eligible for overtime), the hourly rate is calculated as weekly salary ÷ hours expected to work, and overtime applies to hours above 40. Always verify classification with your HR team or labor counsel.