Menu
Advertisement

Age Calculator by Date of Birth

Find your exact age, or anyone's age on any date, in years, months and days. Your date of birth stays in your browser.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How old am I, exactly?

An exact age counts whole years first, then whole months, then the days left over. Months have 28 to 31 days, so the tool steps through the real calendar instead of dividing by an average. Someone born on May 15, 1990 is 36 years, 6 months and 6 days old on November 21, 2026: 36 years to May 15, 2026, six months to November 15, then six days. The count works the way Python's dateutil library does, so one month after January 31 is February 28, and a February 29 birthday falls on February 28 in other years.

Under the age you get the next birthday, with its date, the age it brings and the days to go, or a happy birthday line on the day itself. The tool also names the weekday you were born on, your star sign and your Chinese zodiac animal. The animal follows the lunar year, which begins at Lunar New Year in late January or February, so a baby born on January 25, 1990 is a Snake, not a Horse. Versions of this page in other languages add the ways of counting age used there, such as the Korean and Japanese counting ages.

Everything is calculated in your browser, so the date of birth you type is not sent anywhere. Any date from 1900 to 2100 works. For ages by birth year, a child's age on a test date or the gap between two people, use the age chart, the chronological age calculator and the age difference calculator.

What you will learn while calculating an age

  • An age is a count of calendar units, not days divided by 365. Months run from 28 to 31 days, so two people who are the same number of days old can show different months and days.
  • Leap years add February 29 every four years, except century years that do not divide by 400. 2000 was a leap year; 1900 and 2100 are not. The day count includes every leap day in between.
  • The weekday of any date is pure arithmetic: count the days from a date whose weekday you know and take the remainder after dividing by 7.
  • The Chinese zodiac is a cycle of 12 animals, and its year begins at Lunar New Year, which falls between January 21 and February 20.
  • Date arithmetic is a classic first coding project. In Python, relativedelta from the dateutil library gives the years, months and days between two dates in one call, and subtracting two dates gives the days. This tool counts the same way.

How to calculate your age

  1. Enter the date of birth

    Choose the month and the day, and type the year. Any year from 1900 to 2100 works.

  2. Check the date to count to

    Age on this date starts on today, from your device's clock. Change it to see the age on a past or future date, and press Today to go back.

  3. Read the age

    The big line is the age in years, months and days. Below it are the same age in months, weeks, days and hours.

  4. See the birthday facts

    The next birthday shows its date, the age it brings and the days to go. Then come the weekday you were born on, your star sign and your Chinese zodiac animal.

How ages are counted

Worked cases, including the ones that are easy to get wrong by hand. Each row is what the tool shows.

Date of birthAge onAge shownWhy
May 15, 1990November 21, 202636 years, 6 months, 6 days36 years to May 15, 2026, 6 months to November 15, then 6 days
March 10, 2026March 9, 202711 months, 27 daysThe first birthday is the next day. An age is never rounded up
January 31, 2026March 1, 20261 month, 1 dayOne month after January 31 is February 28, then 1 more day
January 31, 2024February 29, 20241 monthIn a leap year, one month after January 31 is February 29
February 29, 2000February 28, 202626 yearsWith no February 29 that year, the birthday falls on February 28
February 29, 2000February 28, 202827 years, 11 months, 30 days2028 has a February 29, so the birthday is the next day

Age calculations to try

Your age in every unit

Paste a small example into the tool and change one part at a time.

The tool shows 36 years, 6 months, 6 days, which is 438 months, 1,905 weeks, 13,339 days or 320,136 hours. The next birthday is May 15, 2027, when the age becomes 37, with 175 days to go. May 15, 1990 was a Tuesday, the star sign is Taurus and the animal is the Horse.

A January birthday and the zodiac

Copy the original value, run the tool, then compare the result.

Lunar New Year 1990 fell on January 27, so the tool names the Snake, the animal of the lunar year before. For a birth two days later, on January 27, 1990, it names the Horse.

A leap day birthday

Take a value from your own work and use this tool to inspect or prepare it.

2027 has no February 29, so the birthday counts on February 28. The tool shows 23 years and the line Happy birthday! This is birthday number 23.

The same age in Python

dateutil
from datetime import datefrom dateutil.relativedelta import relativedelta
birth = date(1990, 5, 15)on = date(2026, 11, 21)age = relativedelta(on, birth)print(f"{age.years} years, {age.months} months, {age.days} days")print(age.years * 12 + age.months, "months")

relativedelta counts whole years, then months, then days, like the tool, and prints 36 years, 6 months, 6 days. The second line turns it into whole months: 438 months, the same as In months.

Common age calculation mistakes

  • Subtracting the birth year from the current year. Until the birthday comes round, that answer is one year too high.
  • Dividing a day count by 365. Leap days make the result drift, and you get a decimal instead of months and days.
  • Leaving Age on this date on another day and reading the result as today's age. Press Today to reset it.
  • Reading In hours as exact to the hour. It is the day count times 24 and does not know the time you were born.
  • Expecting the zodiac animal to change on January 1. It changes at Lunar New Year, so check January and February birthdays with the tool.

Age calculator FAQ

How do I calculate my age from my date of birth?

Count the whole years to your last birthday, then the whole months since it, then the days left. Enter your date of birth here and the tool does all three steps.

How old am I in days?

Enter your date of birth and read In days under the age. It counts every day from your birth to the chosen date, leap days included.

How many days until my next birthday?

The tool shows it as Days to go, next to the date of your next birthday and the age you will turn. On the birthday itself you get a happy birthday line instead.

How is age counted for someone born on February 29?

In years without a February 29, the birthday falls on February 28, so the new age starts that day. In leap years it starts on February 29.

Why is January 31 to March 1 one month and one day?

One month after January 31 is the last day of February, since February has no 31st. From there to March 1 is one more day. Python's dateutil counts the same way.

Can I find someone's age on a past or future date?

Yes. Change Age on this date to any day from 1900 to 2100 and the tool shows the age on that day. Press Today to go back.

Is my date of birth sent or stored anywhere?

No. The age is calculated in your browser, and the date you type is not sent to a server or saved.

Which dates does the star sign use?

The usual tropical dates printed in newspapers, such as Aries from March 21 to April 19 and Taurus from April 20 to May 20. Only the day and month matter.

Why is my Chinese zodiac animal not the one for my birth year?

The animal changes at Lunar New Year, between January 21 and February 20, not on January 1. If you were born before Lunar New Year, your animal is the one for the year before.

Learn more

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started