Minutes Between Two Dates
Find the exact number of minutes between any two dates and times, plus the equivalent in seconds, hours, and days.
Whole minutes elapsed (rounded down)
- 1
Elapsed seconds
30,600Absolute difference between the two timestamps divided by 1000. - 2
Total minutes
floor(30,600 ÷ 60) = 510
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
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
TG we-Calculate Editorial Team. (2026). Minutes Between Two Dates [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/minutes-between-dates
TG we-Calculate Editorial Team. "Minutes Between Two Dates." TG we-Calculate. 2026. https://we-calculate.com/calculator/minutes-between-dates.
TG we-Calculate Editorial Team, "Minutes Between Two Dates," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/minutes-between-dates
@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?
