Time & Hours Calculator — Work Shift Time, Breaks & Gross Pay
Calculate time differences between start and end times with automatic overnight detection, break deductions, and optional gross pay computation.
The formula
Total Time = EndTime − StartTime − Break | Gross Pay = Decimal Hours × Hourly Rate
- T
- Total Time
- GP
- Gross Pay
How Time & Hours Works
Total Time = EndTime − StartTime − Break | Gross Pay = Decimal Hours × Hourly Rate
Calculate the exact time difference between two clock times, deduct unpaid break duration, and optionally compute gross pay based on your hourly rate. The total time is computed in hours and minutes (HH:MM) for timesheet readability and also converted to decimal hours (e.g., 8.5) for payroll multiplication. Gross pay is decimal hours multiplied by the hourly rate.
- T
- Total Time — The time elapsed between the start and end times, minus any unpaid break time. Displayed in both HH:MM and decimal formats.
- GP
- Gross Pay — Total earnings before taxes and deductions. Calculated as decimal hours × hourly rate. Only shown when an hourly rate is provided.
How to Use
- Enter start and end times in 12-hour format with AM/PM (e.g., 9:00 AM, 5:30 PM) or 24-hour format (e.g., 09:00, 17:30).
- Optionally enter your unpaid break duration in minutes (e.g., 30 for a 30-minute lunch break).
- Optionally enter your hourly rate to calculate gross pay.
- View total time in both HH:MM format (for timesheets) and decimal hours format (for payroll systems).
Quick Reference
| 15 minutes | 0.25 decimal hours |
| 30 minutes | 0.50 decimal hours |
| 45 minutes | 0.75 decimal hours |
| 1 hour | 1.00 decimal hours |
| 8 hours | Standard full-time shift |
| 12-hour format | e.g., 9:00 AM, 2:30 PM |
| 24-hour format | e.g., 09:00, 14:30 |
| Overnight detection | Automatic (end < start) |
Understanding the Result
Time calculators are used daily by shift workers, freelancers, contractors, and payroll processors to track hours worked and compute earnings. The tool automatically handles overnight shifts (e.g., starting at 10 PM and ending at 6 AM the next morning = 8 hours) and deducts unpaid break time. Decimal hours (e.g., 8.5 hours) are standard in payroll systems because they simplify wage calculation — just multiply by the hourly rate. HH:MM format (e.g., 8:30) is common on paper timesheets and for human readability. Converting between the two is straightforward: divide the minutes by 60 (e.g., 30 minutes ÷ 60 = 0.5 hours). The calculator performs this conversion automatically.
Worked Examples
Carlos works as a barista at a cafe in Austin, Texas. His shift today runs from 7:00 AM to 3:30 PM with an unpaid 30-minute lunch break. His hourly wage is $18.50. He wants to verify his hours and expected pay for the day.
startTime = 7:00 AM · endTime = 3:30 PM · breakMinutes = 30 · hourlyRate = 18.50
8 hours 0 minutes (8.00 decimal hours); Gross pay: $148.00
Carlos worked 8 hours exactly (7 AM to 3:30 PM = 8.5 hours minus 30 minutes break). His gross pay for the day is $148.00 (8.0 hours x $18.50). The decimal hour format (8.00) is what payroll systems use, while the HH:MM format (8 hours 0 minutes) is what his timesheet shows.
Maria is a night security guard in downtown Chicago. She works from 10:00 PM to 6:00 AM with a 45-minute unpaid break at 2:00 AM. She needs to track her hours for the weekly payroll submission.
startTime = 10:00 PM · endTime = 6:00 AM · breakMinutes = 45 · hourlyRate = 22.00
7 hours 15 minutes (7.25 decimal hours); Gross pay: $159.50
Maria's shift crosses midnight, which the calculator handles automatically. Total elapsed time is 8 hours minus 45 minutes break = 7.25 hours (or 7 hours 15 minutes in HH:MM). Her gross pay is $159.50 (7.25 hours x $22.00). The overnight detection works because 6:00 AM is numerically less than 10:00 PM, signaling a midnight crossing.
David is a freelance graphic designer billing a client for a project. He started at 9:15 AM and finished at 4:45 PM. He took no breaks. His billable rate is $75 per hour.
startTime = 9:15 AM · endTime = 4:45 PM · breakMinutes = 0 · hourlyRate = 75
7 hours 30 minutes (7.50 decimal hours); Gross pay: $562.50
David worked exactly 7.5 hours (9:15 AM to 4:45 PM = 7 hours 30 minutes). At $75/hr, the invoice amount is $562.50. The decimal hours display (7.50) is what he should put on the invoice, making it easy for the client to verify: 7.5 hours x $75/hr = $562.50. Using this calculator before sending invoices prevents billing disputes.
Frequently Asked Questions
- Does it handle overnight shifts?
- Yes. If your end time is earlier than your start time, the calculator automatically detects that the shift crosses midnight. For example, a shift from 10:00 PM to 6:00 AM is correctly calculated as 8 hours. This works with break deductions too — a 10 PM to 6 AM shift with a 30-minute break gives 7.5 hours of paid time.
- Decimal hours vs HH:MM — what is the difference?
- Decimal hours express time as a fraction of an hour. For example, 8 hours and 30 minutes = 8.5 hours (because 30/60 = 0.5). HH:MM format keeps hours and minutes separate (8:30). Payroll systems prefer decimal format because multiplying 8.5 hours by a $20 hourly rate ($170) is simpler than converting 8:30. Timesheet systems often use HH:MM because it is easier for employees to read and verify.
- How is break time deducted?
- Enter your unpaid break duration in minutes. The total number of minutes is subtracted from the raw time difference before converting to hours. For example, an 8-hour shift with a 30-minute break results in 7.5 paid hours (7:30 in HH:MM). If you take multiple breaks, add them together and enter the total.
- Can I use this for calculating overtime?
- This basic calculator handles a single shift at a single rate. It shows the total hours worked and gross pay at the standard rate. For overtime calculations (e.g., 40+ hours per week at 1.5x rate), use the dedicated Time Card calculator which supports multiple daily entries, configurable overtime thresholds, and weekly totals.
- What time formats are accepted?
- Both 12-hour format (e.g., 9:00 AM, 2:30 PM, 11:59 PM) and 24-hour/military format (e.g., 09:00, 14:30, 23:59) are supported. The calculator automatically detects which format you are using. Hours and minutes are required; seconds are optional and will be ignored if provided.
Pro Tips
- →For the fastest input, use 24-hour format (e.g., 14:30 instead of 2:30 PM). It avoids AM/PM ambiguity and is the format most scheduling and payroll software uses. The calculator accepts both formats equally.
- →If you take multiple breaks during a shift (e.g., a 15-minute coffee break and a 30-minute lunch), add them up and enter the total. For example, 15 + 30 = 45 minutes in the break field. The calculator deducts break time before computing pay.
- →The decimal hours output is the key number for payroll. For example, 7 hours 45 minutes = 7.75 in decimal. Multiply this by your hourly rate to get your gross pay. Most payroll software and accounting spreadsheets expect decimal hours, not HH:MM.
- →When calculating pay for a 40+ hour workweek with overtime, use the Time Card calculator instead. This single-shift calculator uses only the standard rate. Overtime requires tracking hours across multiple days at different rates.
- →For shifts that start and end in different time zones (e.g., a flight crew crossing zones), first convert both times to the same zone using the Time Zone calculator, then use this calculator for the duration.
Limitations to Know
- •This calculator handles single shifts at a single pay rate. It does not account for overtime premiums (1.5x or 2x rates), shift differentials (night/weekend premium pay), or multiple shifts in a day. For weekly time tracking with overtime, use the Time Card calculator.
- •Break deductions assume the break is a single continuous period — if breaks are split, add the durations and enter the total. Paid breaks should be entered as 0 minutes.
- •The calculator uses browser time parsing and may not handle historical date boundaries or leap seconds. For critical payroll calculations, always verify results against your employer's official timekeeping system.
- •The calculator operates on clock times only and does not factor in calendar dates — use the Time Duration calculator for date-spanning calculations (e.g., multi-day projects spanning weeks or months).
Cite this calculator
TheCalcUniverse. "Time & Hours Calculator — Work Shift Time, Breaks & Gross Pay." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/time-calculator/. Accessed July 24, 2026.
Embed this calculator on your site
You may also like
-
Time Duration
Calculate the exact duration between two dates and times down to the second. Supports business days mode and m…
-
Time Card Calculator
Track weekly work hours with day-by-day entries. Calculates regular and overtime hours, handles 12hr/24hr time…
-
Time Zone Calculator
Convert time between 24 time zones worldwide with business hours overlay. Green-yellow-gray color-coded grid s…
-
Date Calculator
Add or subtract years, months, weeks, and days from any date. Includes a business-days-only mode that skips we…