Hours Between Times Calculator
1Start Time
2End Time
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:
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?
Does this handle overnight shifts?
Is quarter-hour rounding legal?
How do I handle unpaid breaks in my calculation?
What is the difference between 12:00 AM and 12:00 PM?
Can I use this for billable-hours tracking?
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.
