Date Calculator
Find the exact difference between two dates.
About this calculator
A date difference calculator tells you how much time lies between two calendar dates. This one gives the answer two ways at once: as a breakdown in years, months, and days, the way people usually describe ages and anniversaries, and as a single total number of days, the way contracts, deadlines, and countdowns are often measured. Common uses include working out someone's exact age, how long you have been in a job or a relationship, how many days remain until a holiday or a due date, how long a project or lease ran, and whether a warranty or return window has passed.
How to use this calculator
Pick a start date and an end date using the two date fields. When the page first opens, the start date is set to one year ago and the end date to today, so you see a one-year example straight away. The results update the moment you change either date. Four cards show Years, Months, Days, and Total Days, and a sentence underneath spells out the answer in words, such as "From Mar 15, 2024 to Oct 31, 2026 is 2 years, 7 months, and 16 days." The dates are saved in the page address, so you can bookmark the result or share a link that opens with the same two dates already filled in.
The order of the dates does not matter. If the end date is earlier than the start date, the calculator simply swaps them and measures from the earlier date to the later one, so every result is shown as a positive number. It does not label the answer as being in the past or the future, which means you can use it equally for "how long ago" and "how long until" questions.
How total days are counted
The total is the number of days that pass between the two dates. In practice this counts the end date but not the start date, which is the same as counting how many midnights you cross. Two identical dates give 0 days, and a Monday to the following Tuesday gives 1 day. Leap years are handled automatically because the count follows the real calendar: January 1, 2024 to January 1, 2025 is 366 days because 2024 contained February 29, while January 1, 2026 to January 1, 2027 is 365 days. Both are shown as exactly 1 year in the breakdown.
How the years, months, and days breakdown works
The calculator steps forward from the start date in whole years as far as it can without passing the end date. From there it steps forward in whole calendar months, again stopping before it would overshoot, and whatever is left over is the number of days. Because calendar months have 28, 29, 30, or 31 days, the breakdown follows the actual months between your dates rather than assuming every month is 30 days long.
Worked example one, a duration. From March 15, 2024 to October 31, 2026, stepping forward whole years lands on March 15, 2026, which is 2 years. Stepping forward whole months from there lands on October 15, 2026, which is 7 more months. That leaves 16 days to reach October 31. The calculator shows 2 years, 7 months, and 16 days, with a total of 960 days.
Worked example two, an exact age. For someone born on June 15, 1990, entering that birth date as the start and October 31, 2026 as the end gives 36 years, 4 months, and 16 days. The total is 13,287 days, a fun figure to know for milestone celebrations such as a 10,000th or 15,000th day.
Worked example three, a school year. From September 2, 2025 to June 26, 2026 the calculator shows 0 years, 9 months, and 24 days, or 297 days in total. Every one of these results was produced by the same calculation that runs on this page.
Interpreting the results
The breakdown and the total describe the same span in different units, so use whichever suits the question. Ages, tenure, and anniversaries are usually quoted as years, months, and days. Notice periods, visa stays, interest calculations, and countdowns are usually quoted in days. To turn the total into weeks, divide by 7: 960 days is 137 weeks and 1 day. To estimate years from a day count, divide by about 365.25.
Tips
Decide whether you need to include both the first and the last day. The total here excludes the start date, which matches how hotel nights or days elapsed are counted. If you need an inclusive count, such as the number of calendar days a festival or a trip runs including both the first and last day, add 1 to the total. For an age, put the date of birth in the start field and today's date, or the date you care about, in the end field. When a legal or financial deadline is involved, check whether the rule counts calendar days or business days, and whether the starting day counts, because the rules vary.
Limitations
This calculator works with whole dates only, so it does not account for times of day, hours, minutes, or time zones of the events themselves. It counts calendar days, not business days, and it does not skip weekends or public holidays. It measures the gap between two dates but does not add or subtract a number of days from a date to find a new one. When the start date falls on the 29th, 30th, or 31st, stepping forward a month can land in a shorter month. In that case the calculator uses the last day of the shorter month, so one month after October 31 is November 30, and October 31 to December 25 is 1 month and 25 days. Other tools sometimes use a different rule for these month-end dates, so their months-and-days split can differ by a day; the Total Days figure is the same under every rule. Both date fields need a value for the results to be calculated.