dash–calculator

04 Numbers and Counting

How to Calculate Days Old

Readout 04-0172 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This calculator works out exactly how many days old you (or anything else) are, based on a start date and today’s date. You enter the birth date and the end date (usually today), and you get the total number of days, plus the equivalent in weeks, months, and years. It’s useful for age milestones, pet ages, or counting days between two events. All you need are the two dates.

Formula

The core calculation is simple: subtract the start date from the end date. The difference is measured in days, accounting for leap years automatically because the calculator uses calendar dates.

Days old = End date − Start date

Where:

  • Start date – the birth date or the earlier date (e.g., 2000-01-01).
  • End date – the later date, typically today (e.g., 2025-06-15).

For the derived units:

  • Weeks = Days ÷ 7
  • Months = Days ÷ 30.44 (average days per month over a year)
  • Years = Days ÷ 365.25 (average days per year including leap years)

These conversions use averages because months and years vary in length. For exact calendar months or years, you would need to count month boundaries, which this calculator does not do – it gives a decimal approximation.

Worked Example

Using the default values from the calculator: start date = 2000-01-01, end date = 2025-06-15.

  1. Count the days from January 1, 2000, to June 15, 2025.
  2. From 2000-01-01 to 2025-01-01 is 25 years. That includes leap years 2000, 2004, 2008, 2012, 2016, 2020, 2024 – 7 leap years. So days = 25 × 365 + 7 = 9125 + 7 = 9132 days.
  3. From 2025-01-01 to 2025-06-15: January has 31, February 28 (2025 not a leap year), March 31, April 30, May 31, June 15. That’s 31+28+31+30+31+15 = 166 days.
  4. Total days = 9132 + 166 = 9298 days.
  5. Weeks = 9298 / 7 = 1328.29 weeks (rounded to 1 decimal).
  6. Months = 9298 / 30.44 = 305.45 months (rounded to 1 decimal).
  7. Years = 9298 / 365.25 = 25.46 years (rounded to 2 decimals).

The calculator shows: 9298 days, 1328.3 weeks, 305.5 months, 25.46 years. That matches the manual calculation.

When to Use This Calculation

You would use this when you need the exact number of days between two dates. Common uses include:

  • Calculating a person’s age in days for a milestone (e.g., 10,000 days old).
  • Determining a pet’s age in human-equivalent days.
  • Counting how many days since a historical event or a personal anniversary.
  • Calculating the duration of a project or a rental period.

The result is a precise integer for days, and decimal approximations for weeks, months, and years. For legal or medical contexts, always use the exact day count and consult a professional if needed.

Common Mistakes

  • Mixing up date formats: The calculator expects YYYY-MM-DD. If you enter MM/DD/YYYY, the result will be wrong or the calculator may reject it.
  • Reversing start and end: If the start date is after the end date, the result will be negative. The calculator will show “Cannot compute” because of the formula guard, but always double-check your dates.
  • Assuming months are exactly 30 or 31 days: Using 30 days for a month gives a rough estimate but is not accurate. The calculator uses 30.44 as an average, which is better but still approximate.
  • Ignoring leap years: If you are calculating manually, forgetting leap years will underestimate the day count. The calculator handles this automatically.

Tips

  • For a precise age in years and months, use a date difference calculator that counts calendar months, not this one. This calculator gives a decimal year, which is fine for many purposes.
  • If you want to know how many days until a future date, just set the start date as today and the end date as the future date.
  • Remember that the day count includes the start date but not the end date? Actually, the calculator counts the difference as the number of midnights between the two dates. For example, from Jan 1 to Jan 2 is 1 day. If you need to include both endpoints, add 1 to the result.
  • For very old dates (before 1900), the calculator may not work due to the date range limits. Use a different tool if you need to go further back.

Troubleshooting

Problem: The calculator shows “Cannot compute” or a negative number.

This means the start date is later than the end date. Check your dates and swap them if necessary.

Problem: The result seems off by one day.

This can happen if you are expecting the day count to include the start day. For example, from Jan 1 to Jan 2 is 1 day, not 2. If you want to count both days, add 1 to the result.

Problem: The date won’t enter correctly.

Make sure you are using the format YYYY-MM-DD. Some browsers may have a date picker that uses your local format; the calculator will still interpret it as YYYY-MM-DD. If you type manually, use hyphens, not slashes.

Problem: The months or years look wrong.

Remember that months and years are averages. If you need exact calendar months, use a different method. For example, from Jan 31 to Feb 28 is 28 days, but the average month would say about 0.92 months, which is not intuitive. The calculator is for day counts, not calendar month counts.

Frequently Asked Questions

Q: How do I calculate my exact age in days?

Enter your birth date as the start date and today’s date as the end date. The calculator gives you the exact number of days.

Q: Does the calculator account for leap years?

Yes, because it uses actual calendar dates, it includes leap days automatically. The years conversion uses 365.25 days per year, which is the average including leap years.

Q: What if I want to calculate days until my birthday?

Set the start date to today and the end date to your next birthday. The result is the number of days until that date.

Q: Can I calculate the age of something in days, like a building or a product?

Yes, just use the construction or production date as the start date and the current date as the end date.

Q: Why is the months value not a whole number?

Because months have varying lengths (28 to 31 days), the calculator uses an average month of 30.44 days. So the result is a decimal approximation, not a count of calendar months.

Q: Is there a way to get the age in years and months exactly?

This calculator only gives decimal years and months. For exact calendar years and months, you would need to count month boundaries, which is a different calculation. You can do that manually by counting years and months from the start date to the end date.

Related

Formula used
in start | Start date | - | 2000-01-01 | 1900-01-01 | 2100-12-31
in end | End date | - | 2025-06-15 | 1900-01-01 | 2100-12-31
out days | Days old | days | (end - start) | 0
out weeks | Weeks | weeks | (end - start) / 7 | 1
out months | Months (30.44-day avg) | months | (end - start) / 30.44 | 1
out years | Years (365.25-day avg) | years | (end - start) / 365.25 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this panel

The whole Numbers and Counting panel →