Everyday Life

Age in Days Calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is an age in days calculator?

An age in days calculator turns two dates — a birth or start date and a target date — into a single whole number: how many complete days separate them. Instead of rounding to years or months, it keeps the answer in the smallest everyday unit of the calendar, the day.

Counting in days is surprisingly useful. Days do not vary in length the way months do (28 to 31 days) or the way years do (365 or 366 days), so a day count is an honest, unit-consistent way to compare two spans. It is the natural measure for milestones such as “10,000 days old,” for tracking how long a project has run, or for any situation where a precise, whole-day figure matters more than an approximate “about three years.”

When you need an age in days

Milestones and celebrations

Many people enjoy marking unusual anniversaries — a 1,000-day relationship, a 10,000th day of life, or a pet’s day count. Because these milestones fall on a plain number of days rather than a calendar date, a day counter is the only practical way to find them.

Tracking and analysis

Day counts are the backbone of duration tracking: how long since an account opened, since a medication started, or since a record was last updated. Working in days avoids the ambiguity of “months,” which have no fixed length, and keeps spreadsheets and models consistent.

How does the calculator work?

You provide a date of birth (or start date) and a calculate age on date, which defaults to today. The calculator measures the gap between the two dates and reports the number of whole days, plus the same span expressed in total weeks and in approximate hours.

  • Days is the count of complete 24-hour calendar days between the two dates.
  • Weeks divides the day count by seven and keeps the whole-week part.
  • Hours multiplies the day count by 24 to give an approximate number of hours.

If either date is missing, the calculator shows no number. If the target date falls before the birth date, the calculator uses the absolute span, so the order of the two dates never produces a negative result.

Formula

Let the birth date be DbD_b and the target date be DtD_t, expressed as timestamps in milliseconds.

The number of whole days is:

Days=DtDb86400000\text{Days} = \left\lfloor \frac{D_t - D_b}{86\,400\,000} \right\rfloor

where 8640000086\,400\,000 is the number of milliseconds in one day (24×60×60×100024 \times 60 \times 60 \times 1000).

The total weeks and approximate hours follow directly:

Weeks=Days7Hours=Days×24\text{Weeks} = \left\lfloor \frac{\text{Days}}{7} \right\rfloor \qquad \text{Hours} = \text{Days} \times 24

Examples

  1. Example 1 — a leap year, January to December.

    • Date of birth: January 1, 2000
    • Target date: December 31, 2000
    • Days: 365365 (the span from Jan 1 to Dec 31 is 365 days)
    • Weeks: 52, Hours: 8760
  2. Example 2 — one calendar month.

    • Date of birth: January 1, 2024
    • Target date: February 1, 2024
    • Days: 3131 (January has 31 days)
    • Weeks: 4, Hours: 744
  3. Example 3 — a full leap year.

    • Date of birth: January 1, 2020
    • Target date: January 1, 2021
    • Days: 366366 (2020 is a leap year)
    • Hours: 8784

Notes

  • The day count is based on calendar dates and is independent of time zones and daylight-saving changes.
  • The hours figure is an approximation that assumes every day is exactly 24 hours; it does not adjust for the one-hour shifts that occur when clocks change.
  • Because a day is a fixed length, day counts are exact and can be compared directly, unlike months or years.

FAQs

How many days are in a year?

A common year has 365 days and a leap year has 366. From January 1 to December 31 of the same year is always 365 days, because December 31 is the 365th day counted from January 1.

What happens if the target date is before the birth date?

The calculator uses the absolute difference between the two dates, so it returns the same positive day count regardless of which date is earlier.

Why are the hours approximate?

The hours value is the day count multiplied by 24. On days when clocks shift for daylight saving, the real day is 23 or 25 hours, so the multiplication is a close estimate rather than an exact total.

Can I calculate a future day count?

Yes. Set the “calculate age on” field to a future date to find how many days there will be until then.

Report a bug

This field is required.