BCBetter Calculators

Time Between Times Calculator

Find the time difference between two clock times, with optional overnight handling.

🧮

Enter your values and click Calculate

How It Works

Each time is first converted to minutes since midnight: hours are converted using the AM/PM value (adding 12 for PM hours, and handling the edge cases of 12 AM as 0 and 12 PM as 12 correctly), then the minute component is added. The difference is end minutes minus start minutes. If the result is negative and overnight mode is off, an error is shown because the end is before the start. If the overnight toggle is enabled and the result is zero or negative, 1,440 minutes (24 hours) is added to wrap correctly across the midnight boundary — for example, a shift from 10:00 PM to 6:00 AM correctly computes 8 hours. Total minutes are divided by 60 to produce decimal hours (useful for billing), and the same total is also formatted as hours and minutes (H:MM) for readability on timesheets.

Examples

Standard workday
From 9:00 AM to 4:45 PM — a typical office shift.
Result: 7h 45m (7.75 hours, 465 total minutes).
Overnight shift
From 10:30 PM to 2:15 AM the next morning with overnight enabled.
Result: 3h 45m (3.75 hours).
Meeting duration
From 1:15 PM to 3:45 PM — a two-and-a-half-hour meeting.
Result: 2h 30m (2.5 hours, 150 total minutes).

Frequently Asked Questions

What if the end time is earlier than the start time?
Enable the overnight option to treat the end time as belonging to the next day. For example, a shift from 10:00 PM to 6:00 AM should have overnight enabled to produce the correct 8-hour result.
Why show decimal hours?
Decimal hours make it easy to multiply directly by an hourly rate for billing or payroll calculations. For example, 7.75 hours × $40/hr = $310. The H:MM format is better for timesheets that require hours and minutes as separate fields.
Does this account for breaks?
No — this calculator measures the total elapsed time between two clock times. If you want to subtract break time from the result, use the Work Hours Calculator, which has a dedicated break duration input.
Is this affected by daylight saving time?
No. This calculator converts clock times to minutes since midnight and does not use calendar dates or timezones, so daylight saving changes have no effect. If you need to account for timezone-aware differences across date boundaries, use a date-based calculator instead.

Related Calculators