Intermediate

Minutes Between Two Dates

Find the exact number of minutes between any two dates and times, plus the equivalent in seconds, hours, and days.
Any format the browser recognizes, e.g. 2026-01-01T09:00 or Jan 1 2026 9:00 AM
Order does not matter — the difference is absolute
Total minutes between the two dates
510min

Whole minutes elapsed (rounded down)

Formula
minutes = |t2 - t1| / 60000
Total seconds
30,600 s
Decimal hours
8.5 h
Decimal days
0.3542 d
2026-01-01T09:002026-01-01T17:30510 minDuration between the two dates
Step by step
  1. 1

    Elapsed seconds

    30,600
    Absolute difference between the two timestamps divided by 1000.
  2. 2

    Total minutes

    floor(30,600 ÷ 60) = 510
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

To find the minutes between two dates, convert both to timestamps, take the absolute difference in milliseconds, and divide by 60000, rounding down. For example, 09:00 to 17:30 on the same day is 510 minutes. The tool also reports the gap in seconds, decimal hours, and days.

Formula
minutes = |t2 - t1| / 60000
How this is calculated

Enter two points in time in the first and second date-time fields. Each value is parsed as a calendar date with an optional time of day; if you omit the time, midnight (00:00) is assumed. The ISO-style format YYYY-MM-DDTHH:MM is the most reliable, but most human-readable formats your browser understands also work.

Both dates are converted to milliseconds since the Unix epoch (1970-01-01). The calculator takes the absolute difference of these two timestamps, so the order of the inputs does not matter — the result is always non-negative. Dividing that millisecond gap by 60000 gives minutes (60000 ms = 60 s = 1 minute), which is rounded down to whole minutes. Seconds use 1000 ms per second, hours use 3600000 ms per hour, and days use 86400000 ms per day; these last two are reported as exact decimals.

The arithmetic is based on absolute elapsed time. Because timestamps are absolute instants, this correctly accounts for crossing midnight, month ends, and leap years. Note that browser date parsing applies the local time zone, so daylight-saving transitions can shift a wall-clock difference by an hour; for time-zone-independent results, supply both values in the same explicit offset (for example, append Z for UTC).

Frequently asked questions

No. The calculator uses the absolute difference, so swapping the first and second date-time gives the same number of minutes.

Minutes are floored to whole minutes, matching how elapsed-time counters work. If you need fractional precision, use the decimal hours figure or divide the total seconds by 60.

YYYY-MM-DDTHH:MM (for example 2026-01-01T09:00) is the most reliable. If you leave out the time, midnight is assumed. Append Z to treat the value as UTC.

Also known as

minutes between dates
minutes between two times
total minutes calculator
minute difference
elapsed minutes
how many minutes between
minutes apart
count minutes between

APA

TG we-Calculate Editorial Team. (2026). Minutes Between Two Dates [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/minutes-between-dates

Chicago

TG we-Calculate Editorial Team. "Minutes Between Two Dates." TG we-Calculate. 2026. https://we-calculate.com/calculator/minutes-between-dates.

IEEE

TG we-Calculate Editorial Team, "Minutes Between Two Dates," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/minutes-between-dates

BibTeX

@misc{wecalculate_minutes_between_dates, title = {Minutes Between Two Dates}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/minutes-between-dates}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?