How to use the elapsed time calculator
- Enter the start date and time.
- Enter the end date and time. Seconds are optional.
- Read the breakdown and the totals. If the end is earlier than the start, the result is shown as negative.
How the calculation works
Totals are the exact difference between the two moments in seconds, converted to minutes, hours and days. The calendar breakdown first counts whole calendar months from the start (so leap years and month lengths are handled exactly), then expresses the remainder as days, hours, minutes and seconds.
Time zones: both times are treated as the same local “wall clock” time with no time-zone or daylight-saving changes. Every day is exactly 24 hours. If a daylight-saving change occurs between your dates in your location, the real elapsed time differs by one hour.
Month ends: adding a month to the 31st lands on the last day of a shorter month, so January 31 to February 28 (in a non-leap year) counts as 28 days rather than a full month.
Formula
Worked examples
January 15, 2026 08:30:00 to March 2, 2026 17:15:30
Whole months: January 15 → February 15 (1 month). February 15 → March 2 = 15 days, plus 8 h 45 min 30 s.
Result: 1 month, 15 days, 8 hours, 45 minutes, 30 seconds, or 46.3649 days in total.
Across a leap day
February 28, 2028 to March 1, 2028 is 2 days, because 2028 is a leap year with a February 29.
Assumptions and limitations
- Daylight-saving changes and different time zones are not applied (see above).
- Leap seconds are ignored, as in most computer systems.
- Dates use the proleptic Gregorian calendar.
Frequently asked questions
How do I calculate the time between two dates?
Subtract the start from the end. For a calendar breakdown, count whole months first, then the remaining days and time.
Does this count the end date?
It measures the exact time between the two moments. From Monday 00:00 to Tuesday 00:00 is 1 day. If you want to count both dates inclusively, add one day.
How are leap years handled?
Exactly: February has 29 days in leap years (divisible by 4, except century years not divisible by 400).