Hours Between Two Times Calculator
Calculate exact hours and minutes between any two clock times. Handles overnight shifts automatically, deducts break time, and shows results in decimal hours, HH:MM, and total minutes — free and instant.
See step-by-step calculation
Just pick your start time and end time from the dropdowns. Have an unpaid lunch or rest period? Drop those minutes into the break field and they're automatically deducted from your total. Results appear instantly in three formats: decimal hours (ideal for payroll and invoicing), HH:MM (great for schedules and readability), and total minutes (useful for fitness tracking, study logs, and productivity apps).
One of the most common headaches in manual time math is the overnight shift — when your end time is earlier than your start time. The calculator detects this automatically and adds the correct 24-hour offset, so a 10:00 PM to 6:00 AM shift correctly returns 8 hours without any workarounds.
Break deductions follow FLSA logic: under US federal law, rest breaks of 20 minutes or fewer are generally compensable, while bona fide meal periods (typically 30 minutes or more, with no work duties) may be unpaid. Enter only your unpaid break time in the break field to get your compensable hours.
When to use this calculator
- Hourly Payroll — Standard Office Shift — An administrative assistant works 8:30 AM to 5:00 PM with a 30-minute unpaid lunch. The calculator returns 8.00 decimal hours (480 minutes). At $22/hr, gross pay for the day is $176.00 — ready to plug directly into the payroll system without any manual conversion.
- Overnight Nursing Shift — A hospital RN clocks in at 7:00 PM and out at 7:30 AM, with two 15-minute paid breaks (not deducted). The overnight logic kicks in automatically: the result is 12.50 hours (12:30). At an hourly rate of $38, that's $475.00 gross before overtime calculations.
- Freelance Consultant Billing — A UX consultant runs a client workshop from 9:00 AM to 1:45 PM with no breaks. The calculator returns 4.75 decimal hours. At a billing rate of $150/hr, the invoice line reads $712.50 — no rounding disputes, no ambiguous 'approximately 5 hours' language.
- Split-Shift Restaurant Worker — A server works 10:00 AM–2:00 PM (lunch rush) and returns for 5:00 PM–10:30 PM (dinner). Running the calculator twice yields 4.00 + 5.50 = 9.50 hours. With a $15/hr base wage, that's $142.50 for the day before tips — clear documentation for the weekly timesheet.
- Truck Driver Hours-of-Service Log — A CDL driver departs at 5:45 AM and completes a run at 2:15 PM with a 45-minute DOT-mandated rest break. Net driving/on-duty time: 7.50 hours (7:30). This stays within the FMCSA 11-hour driving limit and the 14-hour on-duty window.
- Study Session Tracker — A college student studies from 6:30 PM to 11:15 PM and takes a 20-minute phone break. Net focused time: 4.42 hours (4:25). Logging this over a week reveals an average of 4–5 productive hours per evening — useful data for adjusting study habits before finals.
- Event Production Scheduling — A venue manager calculates crew time: load-in starts at 7:00 AM, doors open at 6:00 PM, and the show ends at 11:30 PM. Two calculations — setup (11.00 hrs) and show (5.50 hrs) — total 16.50 hours of staffed event time.
- Security Guard Overnight Patrol — A security officer starts at 11:00 PM and ends at 7:00 AM, with a 30-minute unpaid break at 3:00 AM. The overnight offset is applied automatically; deducting the break returns 7.50 net hours (7:30). At $18/hr, the shift costs $135.00.
Common Shift Durations: Hours & Minutes Reference
| Start | End | Break | Decimal Hours | HH:MM | Total Minutes |
|---|---|---|---|---|---|
| 6:00 AM | 2:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 7:00 AM | 3:30 PM | 30 min | 8.00 | 8:00 | 480 |
| 8:00 AM | 4:00 PM | 0 min | 8.00 | 8:00 | 480 |
| 9:00 AM | 5:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 9:00 AM | 5:30 PM | 30 min | 8.00 | 8:00 | 480 |
| 12:00 PM | 8:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 2:00 PM | 10:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 7:00 PM | 7:00 AM | 0 min | 12.00 | 12:00 | 720 |
| 10:00 PM | 6:00 AM | 30 min | 7.50 | 7:30 | 450 |
| 11:00 PM | 7:00 AM | 30 min | 7.50 | 7:30 | 450 |
Fuente: U.S. Department of Labor, Wage and Hour Division — FLSA Hours Worked (2026). Break deductions reflect unpaid meal periods per FLSA guidelines; rest breaks of 20 min or fewer are generally compensable and should not be entered as breaks.
How it works
How to Calculate Hours Between Two Times
To find the hours between two times, convert both to minutes from midnight, subtract, apply an overnight correction if the result is negative, subtract any unpaid break, then divide by 60.
Formula:
startMinutes = startHour × 60 + startMin
endMinutes = endHour × 60 + endMin
diffMinutes = endMinutes − startMinutes
IF diffMinutes < 0 THEN diffMinutes += 1440 // overnight: add 24 h
netMinutes = diffMinutes − breakMinutes
decimalHours = netMinutes ÷ 60The constant 1,440 equals 24 × 60 — adding it when the difference is negative handles any shift crossing midnight without needing a date.
Quick-Reference: Common Shift Durations
| Start | End | Break | Net hours (decimal) | Net (HH:MM) | Minutes |
|---|---|---|---|---|---|
| 6:00 AM | 2:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 7:00 AM | 3:30 PM | 30 min | 8.00 | 8:00 | 480 |
| 8:00 AM | 4:00 PM | 0 | 8.00 | 8:00 | 480 |
| 9:00 AM | 5:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 9:00 AM | 5:30 PM | 30 min | 8.00 | 8:00 | 480 |
| 12:00 PM | 8:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 2:00 PM | 10:00 PM | 30 min | 7.50 | 7:30 | 450 |
| 7:00 PM | 7:00 AM | 0 | 12.00 | 12:00 | 720 |
| 10:00 PM | 6:00 AM | 30 min | 7.50 | 7:30 | 450 |
| 11:00 PM | 7:00 AM | 30 min | 7.50 | 7:30 | 450 |
Overnight Shift — Step-by-Step Example
Converting Decimal Hours to Pay
Multiply decimal hours directly by the hourly rate — no conversion needed:
Decimal Hours ↔ HH:MM Conversion
To convert decimal hours to HH:MM manually: take the decimal part and multiply by 60 to get minutes.
Reverse: divide minutes by 60 and add to whole hours → 4h 45m = 45 ÷ 60 = 0.75 → 4.75 hrs.
Limitations
Frequently asked questions
How do I calculate hours between two times?
How does the overnight shift calculation work?
What break time should I enter — paid or unpaid?
What is the difference between decimal hours and HH:MM format?
How do I manually convert decimal hours to hours and minutes?
Can I use this calculator for payroll purposes?
Does this calculator account for Daylight Saving Time (DST)?
What if my start and end times are exactly the same?
How do I calculate hours for a split shift?
What is the maximum shift duration this calculator handles?
Can I calculate hours across different time zones?
Why does the result show 8.00 instead of just 8?
Sources & references
- FLSA Hours Worked — U.S. Department of Labor — U.S. Department of Labor, Wage and Hour Division (2026)
- Time and Pay Records — IRS Publication 15 (Circular E) — Internal Revenue Service (2026)
- Daylight Saving Time — NIST — National Institute of Standards and Technology (2026)
Methodology & trust
Calculadora de matemática revisada por el equipo editorial de Hacé Cuentas, contrastada con FLSA Hours Worked — U.S. Department of Labor, según nuestra política editorial y metodología.
Última revisión: June 20, 2026. Los parámetros se verifican periódicamente con las fuentes citadas.
Calculations run 100% in your browser. We do not store or transmit your data.
Indicative results. For critical decisions, consult a professional.
Rodríguez, M. (2026). Hours Between Two Times Calculator. Hacé Cuentas. https://hacecuentas.com/hours-between-times-calculator
Contenido bajo licencia CC-BY 4.0 — reutilizable citando la fuente con enlace a Hacé Cuentas.