Age Calculator (Gregorian and Hijri)

Work out your exact age in years, months and days in both the Gregorian and Hijri calendars, plus your next birthday.

Enter the values to see the result here.

Formula

Age is a calendar subtraction, not a division by 365. With birth date (y1,m1,d1)(y_1, m_1, d_1) and as-of date (y2,m2,d2)(y_2, m_2, d_2):

Y=y2−y1,M=m2−m1,D=d2−d1Y = y_2 - y_1,\quad M = m_2 - m_1,\quad D = d_2 - d_1

If D<0D < 0, one month fewer has elapsed, so subtract 1 from MM and count the days from the previous month-anniversary; if M<0M < 0, subtract 1 from YY and add 12 to MM. Month steps clamp to the last day of short months, so 31 January plus one month is 28 February.

Total days is the difference between the two day counts since 1 January 1970, which is exact across leap years.

Worked example

Born 20 November 1992, as of 5 March 2025.

  • Y=2025−1992=33Y = 2025 - 1992 = 33, M=3−11=−8M = 3 - 11 = -8, D=5−20=−15D = 5 - 20 = -15.
  • D<0D < 0: M=−9M = -9, and February 2025 has 28 days, so D=−15+28=13D = -15 + 28 = 13.
  • M<0M < 0: Y=32Y = 32, M=−9+12=3M = -9 + 12 = 3.

Result: 32 years, 3 months, 13 days. The next birthday is 20 November 2025, 260 days away.

Common mistakes

  • Dividing the number of days by 365. Over 30 years that drifts by about a week because of leap days.
  • Forgetting that a person born on 29 February has no anniversary in three out of four years.
  • Reading the Hijri age as an official figure. Documents that ask for Hijri age usually specify the calendar variant.
  • Entering a birth date in the future. The tool rejects it rather than showing a negative age.

Frequently asked questions

How is the age worked out when I was born on the 31st?

Month steps clamp to the last day of a shorter month. Someone born on 31 January turns 1 month old on 28 February in a common year (29 February in a leap year), and the leftover days are counted from that date.

Why is my Hijri age higher than my Gregorian age?

A Hijri year has 354 or 355 days, about 11 days shorter than a Gregorian year, so you collect Hijri years about 3% faster. After 33 Gregorian years you are roughly 34 Hijri years old.

When is a Feb 29 birthday celebrated in a common year?

This tool treats 1 March as the anniversary in years without a 29 February, which is the usual legal rule in many countries. Some places use 28 February instead, so check local rules if the exact day matters.

Is the Hijri result the same as an official Saudi calendar?

It uses the Umm al-Qura calendar built into your browser (Intl, islamic-umalqura). That is the civil calendar of Saudi Arabia, but local moon-sighting can move a date by a day.

Related calculators