Last verified · v1.0
Calculator · general
Days Old Calculator
Calculate exactly how many days old you are by entering your birth date and a target date. Uses the Julian Day Number formula for precision.
Inputs
Days Old
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
How the Days Old Calculator Works
The days old calculator determines the exact number of days between a birth date and any chosen target date. Rather than manually counting months, years, and leap days, the calculator converts each date into a Julian Day Number (JDN) — a single integer representing that date's position in a continuous day sequence — then subtracts to find the difference. The result is an unambiguous elapsed-day count, accurate across centuries and correct for every leap-year and century-boundary rule in the Gregorian calendar.
The Julian Day Number Algorithm
The algorithm derives from the compact integer formula published by Fliegel and Van Flandern (1968) and validated independently by the U.S. Naval Observatory Julian Date Converter. For a given date (Y, M, D), two intermediate quantities are computed first:
- a = floor((14 − M) / 12) — equals 1 for January and February, 0 for all other months.
- y = Y + 4800 − a — shifts the year origin so that leap-year correction terms align correctly.
- m = M + 12a − 3 — rebases the month count so that March is numbered 0, simplifying the irregular lengths of January and February around leap years.
With those intermediates defined, the Julian Day Number formula is:
JDN(Y, M, D) = D + floor((153m + 2) / 5) + 365y + floor(y / 4) − floor(y / 100) + floor(y / 400) − 32045
The floor((153m + 2) / 5) term accumulates the day count for months 0 through 11 (March through February), exploiting the pattern that consecutive month pairs sum to exactly 61 days. The three floor(y / ...) correction terms together implement the full Gregorian leap-year rule. Once both dates are converted, age in days follows directly:
Days Old = JDN(As-Of Date) − JDN(Birth Date)
Variable Definitions
- Birth Year (Y1): The four-digit Gregorian year of birth, such as 1985 or 2003.
- Birth Month (M1): The month of birth as an integer from 1 (January) to 12 (December).
- Birth Day (D1): The day of the birth month, from 1 to 31.
- As-Of Year (Y2): The four-digit target year against which to measure age. Defaults to the current year.
- As-Of Month (M2): The target month, 1 through 12. Defaults to the current month.
- As-Of Day (D2): The target day of the month, 1 through 31. Defaults to today.
Worked Example
Consider someone born on January 15, 1990, computing their age as of June 25, 2026.
Step 1 — Birth date JDN. M1 = 1, so a = 1, y = 1990 + 4800 − 1 = 6789, m = 1 + 12 − 3 = 10. Substituting: JDN = 15 + floor(1532 / 5) + 365 × 6789 + floor(6789 / 4) − floor(6789 / 100) + floor(6789 / 400) − 32045 = 15 + 306 + 2,477,985 + 1,697 − 67 + 16 − 32,045 = 2,447,907.
Step 2 — As-of date JDN. M2 = 6, so a = 0, y = 6826, m = 3. Substituting: JDN = 25 + floor(461 / 5) + 365 × 6826 + floor(6826 / 4) − floor(6826 / 100) + floor(6826 / 400) − 32045 = 25 + 92 + 2,491,490 + 1,706 − 68 + 17 − 32,045 = 2,461,217.
Step 3 — Subtract. 2,461,217 − 2,447,907 = 13,310 days old.
Leap Year Handling
The Gregorian calendar uses a three-layer leap-year rule: years divisible by 4 are leap years; century years (divisible by 100) are not; years divisible by 400 are leap years after all. The terms floor(y / 4) − floor(y / 100) + floor(y / 400) encode exactly those three layers. The year 2000 qualifies under the 400-year rule and is a leap year; 1900 is excluded by the century rule and is not. No separate leap-year check is ever required because the correction is embedded inside every JDN computation.
Common Use Cases
- Personal milestones: Find the exact calendar date for 10,000, 15,000, or 20,000 days of life. Someone born January 1, 2000 reaches 10,000 days on May 19, 2027.
- Neonatal and pediatric medicine: Clinicians express newborn and premature infant age in days during the first weeks of life to enable precise medication dosing and developmental assessment.
- Legal and financial deadlines: Loan amortization schedules, statutes of limitation, and insurance policy terms often specify exact day counts rather than calendar months.
- Astronomy and historical research: Julian Day Numbers underpin ephemeris calculations, orbital mechanics, and cross-calendar date conversions spanning millennia.
Reference