Toolstia / Age and date difference calculator
Calculate age or the time between two dates
There are many reasons to want an exact age or an exact gap between two dates: a form that asks for age in years and months, a child's age for a school cutoff, the length of a contract, a notice period, the number of days until a deadline, or simply how long you have been at a job. This calculator takes a start date and an end date and returns the difference as years, months and days, plus total months, total weeks, total days and the days left until the next birthday.
The end date is filled in with today by default, so entering a date of birth is usually the only step. The tool compares calendar dates rather than clock times, which means the result is the same wherever you are and at whatever hour you check.
Dates are compared as calendar dates, so time zones and clock times do not affect the result.
How it works
- Choose the start date, for example a date of birth.
- Leave the end date as today, or choose another.
- Read the result and the extra counts below it.
How the difference is worked out
The tool counts complete years, then complete months, then the days left over, using the real length of each month. Total days are counted exactly on the calendar.
Birthdays on 29 February
In years that are not leap years, a 29 February birthday is counted on 28 February for the countdown. Legal systems differ on which day applies, so check local rules if it matters.
Other uses
Any two dates work: the length of a project, time since an event, or days until a deadline if the end date is in the future.
Time zones
Only calendar dates are used, so the result does not change with your time zone or the time of day.
A worked example
Take a birth date of 15 May 1990 and an end date of 14 November 2026. The calculator reports 36 years, 5 months and 30 days, which is 437 months in total, 13,332 days and 1,904 whole weeks. The day count is simply the number of calendar days between the two dates, with 9 leap days included over the period.
The remaining 30 days arise because the end day, 14, is earlier than the start day, 15, so the tool borrows the length of the month before the end month, October's 31 days, and the months count drops from 6 to 5.
Why the years, months and days breakdown can look odd
Months are different lengths, so splitting a span into years, months and days is a convention rather than a physical fact. This tool counts full years, then full months, then the leftover days, borrowing from the month before the end date. Other calculators may borrow from a different month and give an answer that differs by a day or two, especially when the start date is near the end of a month such as the 29th, 30th or 31st.
The total days figure does not have this ambiguity. It is a straight count of calendar days and is the number to use when precision matters, for example in a contract that says 90 days.
Counting days: exclusive versus inclusive
The total counts the days between the dates, not both end dates. From 1 January 2026 to 31 December 2026 the result is 364 days. If a rule counts both the first and last day, as some leave policies and legal deadlines do, add one. Check the wording of the rule you are applying instead of assuming either style.
People born on 29 February
For the birthday countdown, a 29 February birthday is treated as 28 February in years with no leap day. Someone born on 29 February 2000, checked on 14 November 2026, has 106 days until the next birthday, which falls on 28 February 2027. For the age itself, on 28 February 2026 the same person shows 25 years, 11 months and 30 days, turning 26 on the next day. Different jurisdictions treat the legal birthday in non-leap years differently, so check local rules if it matters for something like a legal age.
Using it beyond birthdays
Any pair of dates works. You can find the length of a project, the time since an event, or the distance to a future date by setting the end date ahead. The start date has to be on or before the end date; if it is later, the tool asks you to correct it instead of showing a negative result. The date fields use your browser's date picker, and a date that does not exist, such as 31 April, is rejected.
What it leaves out
It does not take time of day, time zone or daylight saving into account, and it does not count only working days or exclude holidays. For business-day deadlines, use the total days only as a starting point and adjust for weekends and public holidays by hand.
Questions
Is my date of birth stored?
No. It is used only in your browser to work out the answer and is never sent or saved.
Can the end date be in the future?
Yes. You can count how long until an event. The start date just has to be earlier than the end date.
Why does it fill in today's date after the page loads?
The page is built in advance, so today's date is added by your browser when it opens.
How does it handle a birthday that is today?
The countdown shows Today and the label changes to Birthday. The age shown already includes the new year, since the full year is complete on the day.
Why is the end date empty for a moment when the page loads?
Today's date is filled in by your browser after the page opens, so the page can be prepared in advance without showing a stale date. You can type over it at any time.
Can I work out my age on a specific past date?
Yes. Set the end date to that day, such as the date of an application, and the age on that date is shown.
Is the total in weeks rounded?
It is rounded down to whole weeks. 13,332 days is 1,904 weeks and 4 days, and only the 1,904 is shown.
Does it work for dates before 1970 or far in the future?
Yes. It uses calendar arithmetic, not timestamps, so old birth dates and distant future dates are handled the same way, within the range your browser's date picker allows.