Find the day number (1–365 or 1–366) for any date in any year.
How It Works
This calculator determines the day of the year by first checking whether the selected year is a leap year (divisible by 4, but not by 100 unless also divisible by 400). It then sums the days in all months preceding the target month using a cumulative days table — January has 31, February 28 or 29, and so on. Finally, it adds the day of the month to get the sequential day number from 1 to 365 (or 366 in leap years). The days remaining until December 31st are calculated by subtracting this value from the total days in that year.
Frequently Asked Questions
What is the day of the year?
The day of the year (also called the day of year or DOY) is the sequential number of a day within a given year, starting at 1 for January 1st. In a common year it ranges from 1 to 365, and in a leap year it ranges from 1 to 366. It is also referred to as the ordinal date or year-day number.
How do you calculate the day number of a year?
To calculate the day of the year, add together the total number of days in all the months that come before your target month, then add the day of the month. For example, March 15th equals 31 (January) + 28 or 29 (February, depending on leap year) + 15 = day 74 or 75. Leap years occur when the year is divisible by 4, except for years divisible by 100 unless also divisible by 400.
Is 2025 a leap year and how many days does it have?
No, 2025 is not a leap year. It has 365 days. The last leap year was 2024 and the next leap year will be 2028. A leap year occurs every 4 years when the year number is evenly divisible by 4, with the exception of century years that are not divisible by 400.