Time between two times — hours & minutes calculator

Formula last tested:

Quick answer: subtract the start time from the end time. 9:00 AM to 5:00 PM is 8 hours; 11:00 PM to 7:00 AM (2300 to 0700) is 8 hours overnight.

Enter start, end, and break minutes below. The guide under the calculator shows how shift length is calculated, including a day shift with lunch.

Disclaimer: Results are estimates for planning only. They are not payroll, tax, or legal advice.

← Time card calculator

Start & end

Start time
End time

Duration

Hours and minutes
—
Decimal hours
—
Total minutes
—

Newsletter & API updates

Paid newsletter coming soon. Payment and signup are not live yet. You can also join the API waitlist in the same form.

What would you like?
Cadence

FAQ

How do you calculate the time between two clock times?
Convert both times to minutes from midnight. If the end is before the start, add 24 hours to the end. Subtract the start from the adjusted end to get gross minutes, then subtract unpaid break minutes (never below zero). Example: 9:00 AM to 5:00 PM is eight hours; minus a 30-minute unpaid break leaves 7 hours 30 minutes (7.50 decimal hours).

How this calculator works

A Time Between Calculator measures how long one shift or task lasted between a start time and an end time on a twelve-hour clock. HourPunch returns hours-and-minutes, decimal hours rounded to two places, and total minutes. Enter unpaid break minutes to subtract lunch or other off-the-clock time. When the end time is earlier than the start on the same calendar day, the tool assumes you crossed midnight and adds twenty-four hours before breaks.

Breaks cannot pull net time below zero—if break minutes exceed the gross span, net time shows as zero. This page handles one continuous span; split shifts with long gaps may need two calculations. It does not compute pay or weekly overtime—use the time card for that. When you already clocked in and need the end time for a fixed shift length, use the clock-out time calculator instead.

Field techs measuring travel versus on-site time sometimes run two passes: depot to client, then client back, each as its own start and end pair. Lunch belongs in break minutes only when it is unpaid; paid lunch would follow employer rules not built into this span tool. Copy results into a personal log when the same pattern repeats all week instead of retyping daily.

Decimal hours align with payroll forms; total minutes help compare to union stopwatch rules counted in minutes. Security and healthcare overnight shifts often rely on the automatic plus-twenty-four-hour adjustment when end time is the next morning.

Meeting planners estimating agenda slots use the same math as shift workers checking lunch length—pick start, end, and unpaid break, then read decimal hours for the calendar invite and minutes for verbal handoffs. Repeat for each segment when a day has multiple separate paid blocks.

Worked example

Start at 9:00 AM and end at 5:00 PM with thirty minutes of unpaid break. Gross time is eight hours. Subtract thirty minutes for seven hours thirty minutes net, shown as 7h 30m and 7.50 decimal hours, or four hundred fifty total minutes. An overnight example: 10:00 PM to 6:00 AM with no break is eight hours on the clock.

Day shift with lunch
Input or resultExample
Start / end9:00 AM – 5:00 PM
Unpaid break30 min
Hours and minutes7h 30m
Decimal hours7.50
Total minutes450

Paid breaks and timezone changes are not modeled. Use these spans as estimates for checking a pay stub line or supervisor summary, not payroll or tax advice. Convert schedule notation first with the military time converter if you need to translate roster times before entering them here. Save overnight examples separately when training new hires on how your site handles midnight crossings. Compare decimal hours here to the same shift entered on the weekly time card when totals should match.

People also ask

How do I calculate hours between two times?
Enter start and end on a twelve-hour clock, subtract unpaid breaks, and read hours-and-minutes plus decimal hours. Overnight spans add twenty-four hours automatically.
How long is 9 AM to 5 PM with a 30 minute lunch?
Eight hours on the clock minus thirty unpaid minutes is seven hours thirty minutes (7.50 decimal hours).
How many hours is 10 PM to 6 AM?
Eight hours with no break when the end time is the next morning.
How many hours is 2300 to 0700?
8 hours (23:00 to 07:00 crosses midnight: 1 h to midnight + 7 h).
How many hours is 7:00 AM to 3:30 PM?
8 hours 30 minutes, or 8.5 hours.

Totals shown here are estimates for checking a pay stub or time sheet. They are not official payroll, tax, or legal advice.

Help us improve this page

Is this right?

What's missing? Suggest a calculator or feature