๐๏ธ Day of the Year Calculator
Find out which day of the year any date is, and how many days are left in the year.
What day of the year is it? The Day of the Year Calculator answers this instantly. Enter any date and you get the ordinal position of that date within its year โ January 1 is day 1, February 1 is day 32, and December 31 is day 365 (or 366 in a leap year). The tool also tells you the weekday, how many days are left in the year, and whether the year is a leap year.
Knowing the day of the year (also called the ordinal date or day number) is useful far more often than you might think. It is used in academic calendars, sports seasons, production and manufacturing schedules, farm and garden planning, financial reporting windows, and anywhere a year is treated as a numbered sequence of days instead of a list of month names. Government agencies, logistics systems and software logs routinely refer to "day 245" rather than "September 2".
For example, if you enter September 2, 2026 the tool shows it is day 245 of the year, a Wednesday, with 120 days left until January 1. And if you enter March 1, 2028 it reports day 61 of a leap year, with 305 days remaining. Every calculation runs locally in your browser โ nothing you type ever leaves your device.
How Does the Calculation Work?
This calculator works entirely in UTC to keep the result stable no matter where you are or whether your region uses daylight-saving time. It takes the date you pick, pins it to midnight UTC, and counts the whole days back to January 1 of the same year using a timestamp difference. One is added to that count because January 1 itself is day 1, not day 0 โ so February 1, exactly 31 days after January 1, is reported as day 32.
The leap-year check follows the standard Gregorian rule: a year is a leap year when it is divisible by 4, except that century years are leap years only when they are also divisible by 400. So 1900 was not a leap year, 2000 was, and 2028 will be. In a leap year, February 29 exists as an extra day after day 59, which pushes every later date one position higher and makes the year 366 days long instead of 365.
Practical Examples
A school year that runs from September 1 to June 15 spans day 244 to day 166 of the following year โ useful when a syllabus references "week 8" by day number. A manufacturing batch planned for day 300 of the year gives logistics staff an exact calendar date without a month table: in a common year it is October 27, and in a leap year October 26. Payroll departments that report in fiscal day numbers use the same logic to close periods on a fixed ordinal date, so the check always happens after midnight UTC on the same calendar day everywhere.
As a real-world anchor: July 4 is day 185 in a common year and day 186 in a leap year. December 25 is day 359 (or 360 in a leap year). And today is always easy to confirm โ press "Use Today" and the tool shows the current day number immediately.
Edge Cases and Common Pitfalls
The single most common confusion is the leap-year shift between January 1 and February 29. From March 1 onward, every date in a leap year is one day higher than in a common year, and the year itself has one extra day. A second pitfall is off-by-one counting: some systems number January 1 as day 0, which makes them report February 1 as day 31 instead of day 32. This calculator uses the standard convention where January 1 is day 1.
A third edge case appears in software and spreadsheets. Excel's DATE and DATEDIF functions can produce a "serial day" that counts differently depending on the date system chosen, and some programming environments number days in a year starting from zero. When you compare a day number from this tool with one from another source, always confirm which convention that source uses โ the difference is exactly one day.
Day of the Year vs. Julian Day
The day of the year should not be confused with the Julian Day, a continuous count of days used mainly in astronomy. The Julian Day number starts at noon on January 1, 4713 BC and counts every day since without ever resetting at New Year, so the value for 2026 is in the millions. In contrast, the day of the year is a compact ordinal that resets to 1 every January 1. This tool reports the ordinary calendar day of the year โ the version used in planning, logistics and everyday reference โ not the astronomical Julian Day count.