Minutes Between Two Times Calculator

Find the precise duration between two times of day in minutes, hours, and seconds.

Everyday 12h & 24h formats Crosses midnight Down to the second
Rate this calculator

How many minutes between two times?

Minutes · hours · seconds · 12/24h · crosses midnight

Instructions — Minutes Between Two Times Calculator

1

Pick a time format

Choose 24-hour (00:00–23:59) or 12-hour with AM/PM. The calculator converts internally so the math works the same either way. Toggle seconds on if you need second-level precision.

2

Enter the start and end times

Type each hour and minute in its own field. In 12-hour mode the AM/PM selector appears next to each time. The fields update the result instantly as you type.

3

Decide how to handle overnight spans

If the end time is earlier than the start, choose “Cross midnight” to treat it as the next day (10 PM to 6 AM = 8 h). Pick “Show as negative” to keep the raw signed difference instead.

12:00 is the trap: 12:00 AM is midnight (00:00), 12:00 PM is noon (12:00). The calculator handles the conversion, but spell it out for yourself when entering by hand.
Payroll vs elapsed time: the result is raw duration. If you need worked time, subtract unpaid breaks separately — this calculator doesn't know which slice of the span was a lunch hour.

Formulas

The reliable method is to convert both clock times to seconds since midnight, subtract, then convert back. It avoids the “borrowing” mistakes of digit-by-digit subtraction.

CLOCK TIME TO SECONDS SINCE MIDNIGHT
$$ t_{sec} = h \times 3600 + m \times 60 + s $$
h is the hour in 24-hour form (0–23), m the minute (0–59), s the second (0–59). Noon = 43,200 s. Midnight = 0 s.
RAW DIFFERENCE
$$ \Delta s = t_{end} - t_{start} $$
Subtract start from end in seconds. A negative result means the end clock reads earlier than the start — either an overnight span or an input error.
OVERNIGHT ADJUSTMENT
$$ \Delta s' = \Delta s + 86400 \quad \text{if } \Delta s < 0 $$
86,400 s = 24 × 3600, the seconds in a full day. Adding this rolls a negative difference into the next 24-hour window.
CONVERT BACK TO H:M:S
$$ H = \left\lfloor \tfrac{\Delta s}{3600} \right\rfloor \;,\; M = \left\lfloor \tfrac{\Delta s \bmod 3600}{60} \right\rfloor \;,\; S = \Delta s \bmod 60 $$
Floor-divide by 3600 for full hours, take the remainder, floor-divide that by 60 for minutes, and the remainder is seconds. Total minutes = Δs / 60.

Reference

12-hour to 24-hour conversion
12-hour24-hourNotes
12:00 AM00:00Midnight (start of day)
1:00 AM01:00
6:00 AM06:00Dawn
11:00 AM11:00
12:00 PM12:00Noon
1:00 PM13:00
6:00 PM18:00Dusk
11:00 PM23:00
Time units in one day
UnitPer dayPer hour
Seconds86,4003,600
Minutes1,44060
Hours241
Quarter hours964
Half hours482
Decimal hours24.0001.000
Common shifts: minutes elapsed between start and end (no break deducted)
StartEndHoursMinutesSeconds
9:00 AM5:00 PM848028,800
8:30 AM4:30 PM848028,800
7:00 AM3:00 PM848028,800
10:00 PM6:30 AM8.551030,600
11:00 PM7:00 AM848028,800
12:00 PM12:30 PM0.5301,800
6:15 AM2:45 PM8.551030,600

Article — Minutes Between Two Times Calculator

The minutes between two times equal the end clock minus the start clock, each expressed in 24-hour form and converted to seconds since midnight, then divided by 60. From 9:30 AM to 2:45 PM is 5 hours 15 minutes, or 315 minutes, or 18,900 seconds — one calculation, three ways of stating the same span. The trick is to do the subtraction in seconds rather than juggling hours and minutes by hand, and to add 86,400 seconds whenever the end clock reads earlier than the start (an overnight span).

The minutes-between-two-times calculation underpins payroll, sleep tracking, exercise logs, hospital procedure notes, exam timing, transit schedules, and dozens of other everyday tasks. The math is trivial; the failure modes — the AM/PM swap, the borrowing slip, the missing overnight handling — are where most errors come from.

Minutes between two times, fast

For most everyday spans the answer fits one sentence. Take the end clock, subtract the start clock, and if the result is negative add a full day (24 hours). Here are the spans that come up most often:

  • 9:00 AM to 5:00 PM — 8 hours = 480 minutes = 28,800 seconds
  • 9:30 AM to 2:45 PM — 5 h 15 min = 315 minutes = 18,900 seconds
  • 10:00 PM to 6:30 AM — 8 h 30 min = 510 minutes = 30,600 seconds (crosses midnight)
  • One full day — 24 hours = 1,440 minutes = 86,400 seconds
  • One full week — 168 hours = 10,080 minutes = 604,800 seconds

The seconds-since-midnight method

Schoolbook subtraction of clock times works, but it forces “borrowing” whenever the end minute is smaller than the start minute. A more reliable method is to convert both times to seconds since midnight, subtract once, then convert back. Computers always do it this way; humans should follow.

Convert each time with the formula seconds = hours × 3600 + minutes × 60 + seconds. So 9:30:15 AM becomes 9×3600 + 30×60 + 15 = 34,215 seconds. 2:45:30 PM is 14×3600 + 45×60 + 30 = 53,130 seconds. The difference is 53,130 − 34,215 = 18,915 seconds — or 5 hours 15 minutes 15 seconds when broken back down.

Did you know

The base-60 system for time comes from ancient Babylon, roughly 4,000 years ago. 60 was chosen because it has more whole-number divisors than any smaller number: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60 itself. That divisibility made it convenient for the geometry and astronomy the Babylonians cared about — and we are still locked into the system today.

Spans that cross midnight

If a shift runs from 10:00 PM to 6:30 AM the next morning, the raw subtraction returns a negative number: 06:30 minus 22:00 is −15 hours 30 minutes. That is mathematically correct — the end clock really is 15.5 hours behind the start — but it isn't what most people mean by the question.

The fix is to add a full day (86,400 seconds, or 1,440 minutes, or 24 hours) whenever the raw difference is negative. −15:30 + 24:00 = 8:30, which is the answer anyone working that shift expects. The calculator above does this automatically when the “Cross midnight” option is on. Switch to “Show as negative” only when you specifically want the signed difference (for example, to test whether a time falls before or after a deadline).

Daylight Saving Time is not handled by this method

The 86,400-second day applies in standard local time without clock changes. If a span crosses a DST transition, the actual elapsed time is 23 hours (spring forward) or 25 hours (fall back) instead of 24. For payroll spanning a DST weekend, calculate the two halves separately, or work in UTC. The NIST time-and-frequency division publishes the exact transition rules for the U.S.

12-hour vs 24-hour clocks

Most of the world uses the 24-hour clock for any task where precision matters: military operations, aviation, hospitals, transport timetables, scientific logs. The United States and a handful of other countries default to 12-hour for everyday conversation. Both notations describe the same instant; only the labelling differs.

The conversion: AM hours 1–11 stay the same, 12 AM becomes 00 (midnight), and PM hours 1–11 add 12. 12 PM is the historical oddity — it becomes 12 (noon), not 00 or 24. The U.S. National Institute of Standards and Technology recommends 24-hour notation for any context where ambiguity would cost real money or safety.

  • 12:00 AM — midnight, start of the day (00:00 in 24-hour)
  • 12:00 PM — noon (12:00 in 24-hour)
  • 11:59 PM — one minute before midnight (23:59 in 24-hour)
  • Midnight ambiguity — “12:00 AM Monday” usually means the start of Monday, but contracts sometimes write “midnight Sunday” for the same instant
  • Aviation standard — 24-hour UTC (“Zulu time”) everywhere, no AM/PM
Did you know

The ISO 8601 international standard recommends 24-hour format with a colon separator (14:30:00) for all electronic time exchanges. Most database systems store time internally in seconds or milliseconds since a reference instant (typically the 1970 Unix epoch) and only convert to clock notation for display. That is why time-difference math is rock-solid in software but error-prone on paper.

Real-world uses for time-difference math

Payroll and shift work. The U.S. Fair Labor Standards Act requires accurate recording of worked time to the minute. Most timeclock systems convert in-and-out punches to seconds since midnight and subtract to compute the day's hours.

Running, cycling, swimming. Personal bests, split times, and pace calculations all reduce to (end − start) in seconds. A 5K runner who starts at 18:42:30 and crosses the line at 19:04:11 covered the distance in 21 minutes 41 seconds — 1,301 seconds total.

Medical procedures. Hospital records log start and end of surgeries, medication administration, and observation windows to the minute. The American Medical Association style guide requires 24-hour time in clinical records to prevent AM/PM transcription errors.

Cooking and baking. Long fermentation and braising times are usually given as durations (8 hours, 36 hours) but executed against clock times. A sourdough bulked from 6:30 PM to 8:00 AM has had 13 hours 30 minutes of fermentation — long enough to overproof at room temperature for most flours.

Time differences are not the same as worked hours

If a shift runs 9:00 AM to 5:00 PM with a 30-minute unpaid lunch, the elapsed clock duration is 8 hours but the worked time is 7.5 hours. Calculators of this type report the raw span; payroll systems then deduct breaks. Always confirm which figure your employer or HR system needs before submitting timesheets.

Mistakes that throw off the count

Confusing 12 AM with 12 PM

12 AM is midnight; 12 PM is noon. Half of online timezone errors trace back to this confusion. Many style guides now recommend writing “12:00 midnight” or “12:00 noon” explicitly in legal or contractual text. NIST recommends switching to 24-hour notation entirely whenever the difference between midnight and noon would affect a real decision.

Forgetting the overnight rollover

10:00 PM to 6:00 AM is 8 hours, not −16. Always check whether the calculator or spreadsheet you are using handles the rollover. In Microsoft Excel, the safe pattern is =MOD(end - start, 1) on serial time values — the MOD wraps negatives back into the 0–1 day range.

Mixing time zones without converting

The minutes between “9:00 AM in New York” and “9:00 AM in London” on the same date is not zero — it is 5 hours year-round when both regions observe DST; for two short transition windows in March and October/November the gap briefly shrinks to 4 hours when one side has shifted and the other hasn't. For cross-time-zone math, convert both times to UTC first, then subtract.

FAQ

Convert both times to minutes since midnight (hours × 60 + minutes), subtract the start from the end, and if the result is negative add 1,440 to handle an overnight span. For example, 9:30 AM to 2:45 PM = 885 − 570 = 315 minutes.
That signals an overnight interval. Add 24 hours (86,400 seconds or 1,440 minutes) to the raw difference. So 10:00 PM to 6:00 AM = (06:00 − 22:00) + 24:00 = 8 hours. The calculator’s “Cross midnight” setting does this automatically.
Yes. Toggle “Include seconds” on and the inputs gain a seconds field. The result shows total minutes (to two decimals), total hours, total seconds, and a clean H:MM:SS breakdown.
AM hours 1–11 stay the same. 12 AM becomes 00 (midnight). PM hours 1–11 add 12. 12 PM stays at 12 (noon). So 3:45 PM = 15:45 in 24-hour notation. The calculator does this conversion when 12-hour mode is selected.
The 12-hour clock counts from 12, not 0, so the moment after noon is “12:00 PM” and the moment after midnight is “12:00 AM.” Many style guides and the U.S. National Institute of Standards and Technology recommend writing “noon” or “midnight” explicitly in formal documents to avoid confusion.
1,440 minutes (24 hours × 60 minutes). That is also 86,400 seconds. The calculator caps overnight spans at this value: anything labelled an overnight interval will never exceed 23:59:59.
No — it works in plain local clock time. If your span crosses a DST transition, the real elapsed time is one hour shorter (spring forward) or one hour longer (fall back) than what the calculator reports. For DST-sensitive work, compute the two halves separately or use UTC.
This calculator reports raw elapsed time between two clock readings. A payroll calculator goes further: it deducts unpaid breaks, applies overtime rules, rounds to the nearest quarter hour for billing, and so on. Use this tool first to get the span, then apply your payroll rules separately.
Yes. Switch to “Show as negative” instead of “Cross midnight.” A negative result means the end time falls before the start — useful for “how many minutes until 9 AM if it is currently 11 AM” (answer: −120 minutes, or 1,320 minutes if you mean tomorrow).
Convert each time to seconds since midnight (hours × 3600 + minutes × 60 + seconds), subtract once, then convert the result back to hours, minutes, and seconds. This avoids the borrowing errors of digit-by-digit subtraction and is the same method every spreadsheet and database uses internally.