Skip to content
UseCalcNow
Education

Hours Between Two Times Calculator — Work Duration

Calculate exact hours and minutes between two times with break deductions. Perfect for timesheets, payroll, and shift planning.

About This Calculator

This calculator measures the exact hours and minutes between a start time and end time, then subtracts any break duration you specify. The result shows both clock format (hours and minutes) and decimal hours — the format most payroll systems use. Enter times in 24-hour format for the most accurate results, especially for overnight shifts that cross midnight.

The Formula Behind This Calculator

The calculator converts both the start and end times into total minutes since midnight. It subtracts the start minutes from the end minutes to get the raw duration. If the result is negative (meaning the shift crossed midnight), it adds 24 hours worth of minutes to correct the calculation. Break minutes are then subtracted from the gross duration to get net work time. The final step converts back to hours and minutes for display, and also provides decimal hours by dividing total minutes by 60.

Understanding the math helps you verify results and make better decisions for your project.

How to Use

  1. 1Enter the start hour (0-23) and start minute (0-59) using 24-hour format. For example, 9:00 AM is 9:00, and 5:00 PM is 17:00.
  2. 2Enter the end hour and end minute the same way. The calculator handles overnight shifts automatically — just enter the actual clock times.
  3. 3Set the break or lunch duration in minutes. Enter 0 if no break applies.
  4. 4Read the result: you get both the clock format (e.g., 7h 30m) and decimal hours (e.g., 7.5) for payroll purposes.

When to Use

  • Calculating daily work hours for timesheet entries and payroll submissions
  • Tracking billable hours for freelance or consulting work with break deductions
  • Planning shift schedules and verifying total coverage across employees
  • Measuring event or meeting durations that span across lunch or rest breaks
  • Logging volunteer hours or community service time with accurate net durations

Tips

  • Use 24-hour format to avoid AM/PM confusion. A quick reference: add 12 to any PM hour except 12 PM itself. So 3 PM becomes 15:00, and 9 PM becomes 21:00.
  • Subtract all unpaid breaks — lunch, rest breaks, personal time — to get net payable hours for payroll accuracy.
  • For overnight shifts, simply enter the actual end time. The calculator adds 24 hours automatically when end time is earlier than start time.
  • Decimal hours (7.5) are what most payroll software expects. Use the decimal result for timesheet entry, not the hours-and-minutes format.
  • Keep a daily log rather than trying to reconstruct hours at the end of the week. Small rounding errors compound across multiple days.

Understanding Time Duration Calculations

Calculating the hours between two times sounds simple, but edge cases make it error-prone. The core operation — subtracting start time from end time — breaks down when shifts cross midnight, when breaks split the day into segments, or when times span multiple days. A reliable hours calculator handles these cases by converting everything to a common unit (minutes) before doing arithmetic, then converting back for display.

The approach used here is the same one built into scheduling software. Total minutes since midnight gives a single comparable number for each timestamp. Subtracting break time from the gross duration produces net work time — the figure that matters for payroll, billing, and labor compliance. For broader time analysis, the elapsed time calculator extends this concept to multi-day spans.

How 24-Hour Time Format Simplifies Duration Math

The 24-hour clock removes the AM/PM ambiguity that causes most time-calculation errors. When 3:00 could mean morning or afternoon, subtraction requires extra logic. In 24-hour format, 15:00 is unambiguously afternoon, and the math becomes straightforward: 15 minus 9 equals 6 hours. The military time calculator converts 12-hour times to 24-hour format if you need help with the translation.

For scheduling across teams, 24-hour format also prevents data-entry mistakes in timesheets and scheduling tools. A shift entered as 3:00 instead of 15:00 shifts the entire calculation by 12 hours. Using the clock duration calculator alongside this tool provides a second check for complex schedules that mix day and evening shifts.

Accounting for Breaks and Lunch Periods

Break deductions are where most manual time calculations go wrong. A standard 30-minute unpaid lunch on an 8-hour schedule reduces payable time to 7.5 hours. Two additional 15-minute paid rest breaks do not reduce payable time, but they do affect coverage planning. Entering only unpaid break minutes in this calculator gives you the net figure for payroll.

For shift workers, the 8 hour shift calculator breaks down a standard workday into specific start, lunch, and end times. Pair that with this calculator to verify total hours when breaks vary day to day. A compressed 4-day schedule with 10-hour shifts and 45-minute lunches yields 9.25 net hours per day — a figure that is easy to verify here.

Overnight Shifts and Cross-Midnight Calculations

Shifts that cross midnight require special handling. A shift starting at 22:00 and ending at 06:00 spans 8 hours, but naive subtraction (6 minus 22) gives a negative number. This calculator detects the negative difference and adds 24 hours automatically, producing the correct 8-hour result. Break time is then subtracted from that corrected gross duration.

Night shift workers should verify their times carefully, especially around daylight saving transitions. When clocks spring forward, an overnight shift may be 7 hours instead of 8. When clocks fall back, the same shift could be 9 hours. The adding hours and minutes calculator can help reconcile these edge cases by adding segments manually when automated tools get confused.

Common Work Schedule Scenarios

Different work patterns produce different calculation needs. A standard 9-to-5 with a 60-minute lunch gives 7 payable hours. A retail shift from 11:00 to 19:00 with a 30-minute break gives 7.5 hours. A split shift — morning block 06:00-10:00, afternoon block 14:00-18:00 — requires two separate calculations and the results added together.

For employees working variable schedules, the count hours calculator aggregates weekly totals across multiple days. That tool pairs well with this one: calculate each day's net hours here, then sum them for the weekly total. This two-step approach catches errors that a single weekly calculation might miss.

Time Tracking for Payroll and Billing

Payroll systems require decimal hours, not hours-and-minutes notation. Entering 7:30 (meaning 7 hours 30 minutes) into a payroll system that expects 7.5 will either cause an error or record 7 hours and 30 decimal hours — which is 30 hours. This calculator outputs both formats to prevent that conversion mistake. Use the decimal figure for timesheet entry and the clock format for human review.

Freelancers and consultants billing by the hour face the same conversion problem. A 90-minute consultation is 1.5 billable hours, not 1:90. Running each client session through this calculator produces clean decimal hours ready for invoicing. For projects that span multiple time units, the time unit converter calculator converts between hours, minutes, seconds, and larger units.

Converting Between Hours and Decimal Format

Decimal hours are calculated by dividing total minutes by 60. So 7 hours 15 minutes equals 435 minutes, divided by 60 gives 7.25 decimal hours. This is the number you enter into ADP, QuickBooks, Gusto, or any other payroll platform. The conversion is deterministic, but doing it mentally for unusual minute values (37 minutes, 43 minutes) is where mistakes creep in.

The reverse conversion — decimal hours back to clock format — matters when reviewing payroll reports. 7.75 decimal hours equals 7 hours and 45 minutes (0.75 times 60 equals 45). The adding hours calculator can verify these conversions when you need to audit timesheet entries against actual clock times.

Legal and Practical Considerations for Employers

Federal wage and hour laws require accurate tracking of all hours worked, including pre-shift preparation and post-shift cleanup in many cases. Breaks shorter than 20 minutes are generally considered paid work time under FLSA rules. Meal breaks of 30 minutes or more can be unpaid if the employee is completely relieved of duties. This calculator helps quantify those distinctions precisely.

State laws add another layer. California requires a paid 10-minute rest break for every 4 hours worked, and a 30-minute unpaid meal break for shifts exceeding 5 hours. Oregon, Washington, and several other states have similar requirements. Using this calculator to model different break scenarios helps ensure compliance without overpaying or underpaying staff. Keeping documented time records also protects employers in case of wage disputes or Department of Labor audits.

FAQ

How does the calculator handle overnight shifts?

If the end time is earlier than the start time (e.g., start at 22:00, end at 06:00), the calculator automatically adds 24 hours to the end time before computing the difference. This means you enter actual clock times and the overnight handling happens behind the scenes.

Why do I get decimal hours and clock format?

Most payroll systems like ADP, QuickBooks, and Gusto require decimal hours (e.g., 7.5 instead of 7h 30m). The calculator provides both formats so you can use whichever your system needs. Clock format is easier for human verification, while decimal format is for data entry.

Should I include paid breaks in the calculation?

If breaks are paid, set the break duration to 0 since those minutes count as work time. Only subtract unpaid breaks. For example, a 30-minute unpaid lunch on an 8-hour shift gives 7.5 payable hours, but a paid 15-minute rest break stays in the total.

Can I use this for billable hours tracking?

Yes. Set the break field to any non-billable time within a session — phone calls, admin tasks, or interruptions. The net result is your billable time for that block. Many freelancers run the calculator per client or per project throughout the day.

What happens if the break is longer than the total time?

The calculator clamps the result to zero rather than returning a negative number. This prevents accidental negative-hour entries on timesheets. If you see 0 hours, double-check that your start and end times are correct.

Is this calculator accurate for part-time schedules?

The math works the same regardless of shift length. A 3-hour part-time shift with a 15-minute break yields 2.75 decimal hours. The calculator handles any duration from a few minutes to a full 24-hour period.

Related Calculators