Last verified · v1.0
Calculator · general
Minutes Between Two Times Calculator
Calculate the exact number of minutes between any two times, including overnight shifts and multi-day intervals.
Inputs
Minutes Between Times
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
How the Minutes Between Two Times Calculator Works
The minutes between two times calculator converts any pair of clock times into an exact minute count using a proven arithmetic formula. This tool handles same-day intervals, overnight shifts, and multi-day spans without ambiguity, making it ideal for payroll, clinical scheduling, project tracking, and travel planning.
The Core Formula
The calculator uses the following formula to determine elapsed minutes:
Δm = (h₂ × 60 + m₂) − (h₁ × 60 + m₁) + 1440 × d
Each variable plays a specific role in the calculation:
- h₁ — Start hour in 24-hour format (0 = midnight, 13 = 1:00 PM, 23 = 11:00 PM)
- m₁ — Start minute (0–59)
- h₂ — End hour in 24-hour format (0–23)
- m₂ — End minute (0–59)
- d — Total day offset: 1 when the end time falls on the next calendar day (Crosses Midnight = yes), plus the value of Additional Full Days Between. For a span from Monday to Wednesday, d equals 2.
Step-by-Step Derivation
The formula works by flattening each time into a single integer representing the total minutes elapsed since midnight. The start time becomes h₁ × 60 + m₁ and the end time becomes h₂ × 60 + m₂. Subtracting the start value from the end value gives the raw minute difference.
For overnight or multi-day intervals, the end time expressed as minutes since midnight will be numerically smaller than the start time, producing a negative difference. Multiplying 1440 — the number of minutes in one full 24-hour day — by the day offset d corrects this. According to the REDCap Special Functions documentation (University of Wisconsin), clinical date-time calculations convert timestamps to a shared numeric baseline before computing differences, which is precisely the principle this formula applies. Similarly, the Dates and Times in R guide from UC Berkeley Statistics confirms that statistical software stores times as numeric offsets from a reference point and converts them to human-readable units — a structurally identical approach.
Why 1440?
One full day contains exactly 1,440 minutes: 24 hours × 60 minutes per hour = 1,440. This constant appears across time-arithmetic libraries in R, Python, SPSS, and clinical research platforms. Each full midnight boundary crossed adds one instance of 1,440 to the total.
Worked Examples
Example 1: Standard Workday (Same Day)
Start: 9:15 AM → h₁ = 9, m₁ = 15 → 9 × 60 + 15 = 555 minutes
End: 5:45 PM → h₂ = 17, m₂ = 45 → 17 × 60 + 45 = 1,065 minutes
d = 0 (same calendar day, no midnight crossing)
Δm = 1,065 − 555 + 1,440 × 0 = 510 minutes (8 hours 30 minutes)
Example 2: Overnight Shift
Start: 11:00 PM → h₁ = 23, m₁ = 0 → 23 × 60 + 0 = 1,380 minutes
End: 7:30 AM (next day) → h₂ = 7, m₂ = 30 → 7 × 60 + 30 = 450 minutes
d = 1 (Crosses Midnight = yes, Additional Full Days = 0)
Δm = 450 − 1,380 + 1,440 × 1 = 510 minutes (8 hours 30 minutes)
Example 3: Multi-Day Interval
Start: Monday 8:00 AM → h₁ = 8, m₁ = 0 → 480 minutes
End: Wednesday 10:00 AM → h₂ = 10, m₂ = 0 → 600 minutes
d = 2 (Crosses Midnight = yes adds 1, Additional Full Days = 1)
Δm = 600 − 480 + 1,440 × 2 = 120 + 2,880 = 3,000 minutes (50 hours)
Common Use Cases
- Payroll and shift tracking: Calculate exact minutes worked per shift, including split overnight schedules, for accurate wage computation
- Medical dosing intervals: Determine elapsed minutes between medication administrations to ensure safe timing
- Project and task management: Measure task durations precisely for billing, productivity analysis, and deadline planning
- Travel and logistics: Compute layover durations, transit times, and delivery windows across calendar boundaries
- Sports and fitness: Track training session lengths and recovery intervals between workouts or competitions
Reference