Hours Between Times Calculator | CalcFinity

Hours Between Times Calculator

Elapsed Time
Enter a start and end time to see the result.

1Start Time

Day Starts
Night Starts

2End Time

Day Ends
Night Ends
Results assume a 12-hour clock. If the end time is at or before the start time, the calc rolls to the next day (overnight shift).

Why Time Math Trips People Up

Subtracting 9:00 AM from 5:00 PM looks easy, but hours and minutes are base-60, not base-10, and that is where errors creep in. 8:45 AM to 5:15 PM is not eight and a half hours, it is eight hours and thirty minutes. Flip in an overnight shift (11:00 PM to 7:00 AM) and you have to add 24 hours somewhere in your head. This calculator handles all of that automatically. Enter a start time and end time, and you get the precise elapsed hours and minutes, including overnight wrap-around, without having to do the carry-and-borrow math yourself.

How the Math Works

Under the hood, each time is converted to minutes-since-midnight, then the difference is computed and converted back to hours and minutes:

elapsed = (endMinutes − startMinutes), add 1440 if negative (overnight)

The "add 1440" step (1440 minutes in a day) is what handles an overnight shift. If you started at 11:00 PM and ended at 7:00 AM, the raw subtraction gives you negative 960 minutes, which is obviously wrong. Adding 1440 gets you to 480 minutes, or exactly 8 hours. The calculator does this check automatically so you do not have to think about whether you crossed midnight.

For payroll and billing, elapsed time is often needed in decimal hours rather than hours and minutes. Decimal hours come from dividing minutes by 60, so 8 hours 30 minutes becomes 8.50, and 8 hours 15 minutes becomes 8.25. This is the format almost every payroll system wants.

Worked Examples

Three common scenarios, handled the same way by the calculator:

  • Standard shift: 9:00 AM to 5:30 PM. Elapsed: 8 hours 30 minutes, or 8.50 decimal hours.
  • Split with a lunch: 8:00 AM to 12:00 PM, then 1:00 PM to 5:00 PM. Run each leg and add. Elapsed: 4 hours plus 4 hours equals 8 hours on the clock, with an hour unpaid for lunch.
  • Overnight shift: 10:30 PM to 6:45 AM. The calculator detects the overnight crossing and adds 24 hours. Elapsed: 8 hours 15 minutes, or 8.25 decimal hours.

For shifts that run past 24 hours (unusual but possible in on-call situations or travel), treat the start and end as part of the same day and add an explicit 24-hour block for every full day.

Rounding for Payroll and Billing

Most employers do not pay down to the minute. Common rounding conventions you will see on paystubs and timesheets:

  • Quarter-hour rounding (the "7/8 rule"): Round to the nearest quarter-hour. Clocking in from 7:53 to 8:07 all counts as 8:00. This is allowed under the federal Fair Labor Standards Act as long as it averages out over time.
  • Tenth-hour rounding: Common in legal and consulting billing. Every 6 minutes is 0.1 hours. A 37-minute task rounds to 0.6 hours.
  • Down-to-the-minute: Increasingly common with digital time-tracking apps. Pays exactly what you worked, eliminating edge-case disputes.
  • 5-minute rounding: Less common but some older time-clock systems use this.

If you are the one doing the math, pick one convention and apply it consistently. Mixing methods within a single timesheet is a red flag in a wage-and-hour audit.

Common Mistakes to Avoid

  • Treating minutes as decimals. 8:30 is not 8.30 hours. It is 8.50 decimal hours. This is the single most common payroll error and it always favors the employer (shorting the employee).
  • Forgetting the overnight wrap. If you start at 11:00 PM and subtract from 7:00 AM as if both were the same day, you get negative 16 hours. Always check whether the end time is earlier than the start time and add 24 hours if it is.
  • Double-counting lunch. If you clock out for lunch and back in, compute each segment separately and sum. Do not subtract lunch from a single gross span unless you are confident the clock-in/clock-out times are clean.
  • Using the wrong AM/PM. Sounds obvious, but 12:00 AM is midnight and 12:00 PM is noon. Mixing these up flips a shift by 12 hours.
  • Applying rounding selectively. Rounding should be symmetrical (both up and down). Only rounding down cheats workers and is a common wage-and-hour lawsuit theme.
  • Ignoring daylight saving time. Twice a year, a shift that spans the DST change is either 23 hours or 25 hours long, not 24. If you track worked hours across a time change, be aware.

Frequently Asked Questions

How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add to the whole hours. So 7 hours 45 minutes becomes 7 + (45 ÷ 60) = 7.75 decimal hours. A quick reference: 15 minutes = 0.25, 30 minutes = 0.50, 45 minutes = 0.75. The calculator above produces both formats automatically.
Does this handle overnight shifts?
Yes. If the end time is earlier than the start time (like 11:00 PM to 7:00 AM), the calculator automatically treats the shift as crossing midnight and adds 24 hours to the elapsed calculation. You do not have to flag it.
Is quarter-hour rounding legal?
Under the federal Fair Labor Standards Act, yes, as long as the rounding is applied neutrally (sometimes up, sometimes down) and averages out over time so employees are not systematically underpaid. Some states have stricter rules. California, for example, has tightened rounding rules significantly and some employers there have moved to minute-by-minute tracking to avoid wage claims.
How do I handle unpaid breaks in my calculation?
Calculate the total span from clock-in to clock-out, then subtract the unpaid break duration. If you took a 30-minute unpaid lunch, work 8:30 elapsed time minus 0:30 equals 8:00 paid time. Alternatively, compute the morning segment and afternoon segment separately and sum them. Same answer, cleaner audit trail.
What is the difference between 12:00 AM and 12:00 PM?
12:00 AM is midnight (the start of a new day) and 12:00 PM is noon. The AM/PM naming breaks down at exactly 12 because "ante meridiem" and "post meridiem" mean "before noon" and "after noon," neither of which applies at noon itself. To avoid confusion in scheduling or contracts, many people write "12:00 midnight" or "12:00 noon" explicitly.
Can I use this for billable-hours tracking?
Yes. Enter the start and end time of a task and convert the result to tenths of an hour for legal or consulting billing. Most firms bill in 0.1-hour increments, which is 6-minute blocks. A 22-minute task rounds to 0.4 hours, a 38-minute task rounds to 0.6 hours. Always follow your firm's specific rounding convention.

This calculator is for general use with timesheets, scheduling, and billable-hours math. For payroll disputes or wage-and-hour questions, consult your payroll administrator or an employment attorney in your state.

About the Author

By the CalcFinity Team

CalcFinity is an independent publisher of free online calculators built to make the math behind real-life decisions simple. Calculator inputs stay in your browser and never touch our servers. No logins, no paywall.

Spotted an issue or have a calculator request? Email us at hello@calcfinity.com. We read every message.

Scroll to Top