What is the Days Left in the Year Calculator?
This calculator tells you exactly how many days remain in the calendar year from any date you choose. Whether you are counting down to New Year's Eve, planning a year-end deadline, or tracking annual goals, it gives an instant, accurate answer that correctly handles leap years.
How to use it
Enter a year, pick a month, and enter a day. The calculator finds the day-of-year number for that date (January 1 is day 1) and subtracts it from the total number of days in that year. The result is the number of full days remaining after the date you entered.
The formula explained
The core equation is:
$$\text{daysLeft} = (365 + \text{leap}) - \text{dayOfYear}$$
Here leap is 1 if the year is a leap year and 0 otherwise, so a leap year has 366 total days. The dayOfYear is the sequential position of your date in the year. A leap year is any year divisible by 4, except century years which must also be divisible by 400 — so 2000 and 2024 are leap years, but 1900 and 2100 are not.
Worked example
Take December 25, 2023. That year is not a leap year, so total days = 365. December 25 is day 359 of the year (\(31+28+31+30+31+30+31+31+30+31+30 = 334\) days through November, plus 25). So $$\text{daysLeft} = 365 - 359 = 6 \text{ days}$$ remaining.
FAQ
Does it count the entered date itself? No. The result is the number of days after the date you enter, ending on December 31.
How are leap years handled? In a leap year, February has 29 days and the total becomes 366, so dates from March onward shift by one day-of-year.
What if I enter an invalid day for the month? The tool clamps results to stay within the valid range of the year, so the day-of-year never exceeds the total days in the year.