dash–calculator

04 Numbers and Counting

Days Until End of Year: Countdown & Facts

Readout 04-0373 · 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.

As of today, the number of days until the end of the year depends on the current date. If today is January 1, there are 364 days left (365 in a leap year). If it’s December 31, there is 0 days left. Use the calculator below to find the exact count for any date.

Formula

The number of days until the end of the year is simply the difference between December 31 of the current year and today’s date. In mathematical terms:

Days left = (Date of Dec 31) − (Today’s date)

Where both dates are expressed as timestamps (e.g., milliseconds since epoch). The result is a whole number of days. For example, if today is June 1, 2025, the difference is 213 days (since Dec 31, 2025 minus Jun 1, 2025). This count includes today? No—it counts full 24-hour periods from the start of today to the start of Dec 31. So if today is Dec 30, the result is 1 day left, not 2.

Worked Example

Using the default date of June 1, 2025:

  1. Identify the end date: December 31, 2025.
  2. Count the days remaining in June: June has 30 days, so from June 1 to June 30 is 29 days left in June.
  3. Add the full months: July (31), August (31), September (30), October (31), November (30) = 153 days.
  4. Add December days: 31 days in December (since we count up to Dec 31).
  5. Total: 29 + 153 + 31 = 213 days.

The calculator gives 213 days, matching the manual count.

Why the Count Varies

The number of days left changes daily, but the total days in a year is either 365 (common year) or 366 (leap year). Leap years occur every 4 years, except for century years not divisible by 400 (e.g., 1900 was not a leap year, 2000 was). So if you’re counting from January 1, a leap year gives you 366 days to the next January 1, but the end of the year (Dec 31) is still day 366.

Some people count “days until the end of the year” as including today, others as excluding. The calculator here counts full days remaining after today, so if today is Dec 30, it shows 1 day left (Dec 31). If you want to include today, add 1.

Common Mistakes

  • Mixing up inclusive/exclusive counting: If you say “3 days until Friday” on a Tuesday, some mean Tuesday, Wednesday, Thursday (3 days), others mean Wednesday, Thursday, Friday (also 3 days). The calculator uses exclusive of today, so on Tuesday it would show 2 days until Thursday.
  • Ignoring leap years: If you manually count days for a leap year, you must add one extra day in February.
  • Using the wrong year: If you’re counting to the end of a different year (e.g., next year), the count changes.

How to Use This Count

People often want to know days left for planning: setting New Year’s resolutions, scheduling project deadlines, or counting down to holidays. For example, if you have a goal to read 12 books by year-end, and there are 213 days left, you need to read one book every 17.75 days. The count also helps for financial planning (e.g., tax deadlines) or personal milestones.

To get the count for a specific date, simply enter that date in the calculator. The default is set to today’s date (June 1, 2025) for demonstration, but you can change it to any date within the current year.

Alternatives to a Manual Count

If you don’t have a calculator, you can count on your fingers using the knuckle method: assign months to knuckles and valleys. But for accuracy, especially with leap years, a calculator is best. You can also use online date difference tools, but they often require two dates; this calculator simplifies it by fixing the end date to Dec 31.

Another alternative is to use spreadsheet formulas like =DATE(YEAR(TODAY()),12,31)-TODAY() in Excel or Google Sheets, which gives the same result.

Frequently Asked Questions

Does the count include today?

No, the calculator counts full days remaining after today. If today is Dec 30, it shows 1 day left (Dec 31). If you want to include today, add 1.

What if today is Dec 31?

The calculator shows 0 days left, because the end of the year is today. Some might say “1 day” if they count the whole day, but the standard countdown to midnight is 0 days.

How many days are in a leap year?

366 days. The extra day is February 29. So from Jan 1 to Dec 31 in a leap year is 366 days.

Why does the count sometimes seem off by one?

It’s usually due to inclusive vs. exclusive counting. For example, from Dec 30 to Dec 31 is 1 day if you count full 24-hour periods, but 2 days if you count both dates as “days”. The calculator uses the former.

Can I use this for a different year?

Yes, but the calculator is fixed to the current year (2025). For other years, you’d need to adjust the end date. For a general formula, use the difference between the target year’s Dec 31 and today.

What is the maximum days left in a year?

On Jan 1, there are 364 days left in a common year (365 days total minus 1), and 365 days left in a leap year. The calculator’s max input is Dec 31, but for Jan 1 you’d get 364.

Limitations

This calculator assumes the Gregorian calendar, which is the standard in most of the world. It does not account for time zones; the count is based on the date you enter, not the time. If you enter a date with a time, the calculator ignores the time and treats it as midnight. Also, it doesn’t handle dates before 2024 or after 2025 because the input limits are set to Jan 1, 2024 to Dec 31, 2025. For other years, use a general date difference tool.

Related

Formula used
in date | Current date | - | 2025-06-01 | 2024-01-01 | 2025-12-31
out days | Days until Dec 31 | days | (date(2025,12,31) - date) / 86400000 | 0

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 →