As of today, the number of days remaining in the year depends on the current date and whether it is a leap year. For a non-leap year, there are 365 days total; for a leap year, 366. To find the exact count, subtract today’s day-of-year from 365 (or 366). Use the calculator below to instantly compute the days left from any date.
Formula
The calculator uses two steps. First, it determines the day-of-year (the ordinal date) for the entered date. For example, January 1 is day 1, February 1 is day 32 in a common year (31 days in January + 1), and December 31 is day 365 (or 366 in a leap year). The formula for day-of-year is:
Day of year = day + sum of days in all previous months
Where the month lengths are: Jan 31, Feb 28 (or 29 in leap year), Mar 31, Apr 30, May 31, Jun 30, Jul 31, Aug 31, Sep 30, Oct 31, Nov 30, Dec 31.
Then, the days left is simply:
Days left = Total days in year − Day of year
Where total days is 365 for a common year and 366 for a leap year. The leap year rule is: a year is a leap year if it is divisible by 4, except if it is divisible by 100 unless it is also divisible by 400. So 2000 was a leap year, 1900 was not, and 2024 is a leap year.
Worked Example
Using the default values: month = 1, day = 1, year = 2024. Since 2024 is divisible by 4 and not by 100, it is a leap year, so total days = 366. The day of year for January 1 is 1. Therefore:
Days left = 366 − 1 = 365 days.
That means on January 1, 2024, there are 365 days remaining in the year. The calculator shows 365, matching this result.
Why the Count Changes
The number of days left in the year changes every day, decreasing by 1 each midnight (except when a leap day is added, which shifts the count by one for the whole year). The count also depends on whether the year is a leap year. For example, on March 1 in a common year, there are 305 days left (365 − 60). In a leap year, March 1 is day 61, so there are 305 days left (366 − 61). The difference appears after February 29.
This count is useful for planning deadlines, tracking progress toward annual goals, or simply knowing how much of the year remains.
How to Use the Calculator
Enter the month (1–12), day (1–31), and year (any year from 1583 onward, when the Gregorian calendar was introduced). The calculator will output the number of days left in that year. If you enter an invalid date like February 30, the calculator will show “Cannot compute” because the day-of-year calculation fails. The calculator assumes the Gregorian calendar, which is the standard today.
For example, to find days left on your birthday, enter your birth month and day with the current year. To find days left for a project deadline, enter that date.
Common Mistakes
- Forgetting leap years: Many people assume every year has 365 days. If you’re counting days left in February of a leap year, you must add one day.
- Off-by-one errors: Some count the current day as “remaining.” The calculator counts the current day as already used, so days left = total − day of year. If you want to include today, add 1.
- Using the wrong calendar: The Gregorian calendar is used almost everywhere today, but historical dates before 1582 might use the Julian calendar, which has different leap year rules.
Leap Year Rules in Detail
The Gregorian calendar was introduced in 1582 to correct drift in the Julian calendar. The rules are:
- A year is a leap year if it is divisible by 4.
- However, if the year is divisible by 100, it is not a leap year, unless it is also divisible by 400.
This means 2000 was a leap year (divisible by 400), 1900 was not (divisible by 100 but not 400), and 2100 will not be a leap year. This system keeps the calendar year aligned with the tropical year (about 365.2422 days).
Alternatives to This Calculator
If you need to count days between two specific dates, you can use a date difference calculator. If you need to find the day of the week for a date, that’s a separate calculation. This calculator focuses solely on the days left in a year, which is simpler than full date arithmetic.
Frequently Asked Questions
How many days are left in the year right now?
As of today, the answer depends on today’s date. For example, if today is October 15, 2024 (a leap year), the day of year is 289 (31+29+31+30+31+30+31+31+30+15). Days left = 366 − 289 = 77 days. Use the calculator with today’s date to get the exact number.
Does the count include today?
No, the calculator counts today as already past. If you want to include today as a remaining day, add 1 to the result. For example, on January 1, the calculator says 364 days left (in a common year) if you count from tomorrow, but many people say “365 days left” including today.
What is the day of the year today?
The day of the year is the ordinal number of the date. For example, February 1 is day 32 in a common year (31+1) and day 32 in a leap year as well, because February 29 comes later. The calculator can be adapted to show day of year, but this page focuses on days left.
Why does February have 28 or 29 days?
February was the last month in the original Roman calendar, and it was given 28 days. When the Julian calendar added a leap day, it was added to February. The Gregorian calendar kept this tradition, so February 29 appears only in leap years.
What happens if I enter an invalid date like April 31?
The calculator will show “Cannot compute” because the day-of-year calculation would produce a number greater than the total days in the year. This is a safety check to prevent nonsensical results.
Is the Gregorian calendar used everywhere?
Most countries use the Gregorian calendar for civil purposes, but some use other calendars for religious or traditional dates. For example, the Islamic calendar is lunar and has 354 or 355 days. This calculator only works with the Gregorian calendar.
Related
Formula used
in month | Month | - | 1 | 1 | 12 in day | Day | - | 1 | 1 | 31 in year | Year | - | 2024 | 1583 | 9999 out days_left | Days left | days | (365 + (1 if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0) else 0)) - (day_of_year(month, day, year)) | 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.
- How Many Days to End of Year?
- How Many Days Till Valentine’s Day? Countdown
- Days Till End of Year: Countdown & How to Calculate
- Days Until End of Year: Countdown & Facts
- Days Since Last Friday: Count & Calculate
- How Many Days Off in a Year? Typical Counts28 days