What is the day of the year?
The day of the year (also called the ordinal date, day-of-year number, or in some scheduling contexts the Julian day-of-year) is the sequential count of days within a calendar year, starting at 1 on January 1. It runs up to 365 in a common year and 366 in a leap year. So February 1 is always day 32, March 1 is day 60 in a common year and day 61 in a leap year, and December 31 is day 365 or 366 depending on whether the year has a February 29.
This calculator converts between calendar dates and their day-of-year numbers in both directions. In Date → Day of Year mode, pick any date and see its ordinal position within the year. In Day Number → Date mode, enter a number from 1 to 366 plus a year and get the matching calendar date back. Both modes show the ISO 8601 week number, the calendar quarter, the year progress percentage, and whether the year is a leap year. An interactive year timeline shows exactly where the date falls within the whole year, and a clickable mini calendar lets you pick any date visually.
💡 Why "day of the year" matters: Ordinal dates are compact, sort naturally, and avoid ambiguity between MM/DD and DD/MM conventions. This is why they show up in aviation flight plans, scientific data logging, food expiration codes, government forms, and any system where a date has to be unambiguous and easy to compare.
How to use the day of the year calculator
- Choose a mode. Use Date → Day of Year to convert a calendar date, or Day Number → Date to reverse the lookup.
- Enter your input. In Date mode, pick a date with the picker, tap a day on the mini calendar, or tap a quick preset. In Day Number mode, enter the target year and a day number from 1 to 365 (or 366 in a leap year).
- Read the result. The hero card shows the ordinal day number inside a progress ring. Below it, the interactive year timeline marks exactly where the date falls within the full year, with a "Today" marker for reference.
- Explore context. The quarter breakdown shows how much of each quarter has elapsed. The mini calendar highlights the selected date and shows a day-of-year number in each cell. The full-year chart lets you search or filter by milestones and month starts, and tapping any row jumps to that date.
- Copy or share. Tap any summary card to copy its value. Use the Copy dropdown for ISO ordinal format, Markdown table, JSON, or CSV. Share via URL.
How to calculate the day of the year manually
The manual calculation is straightforward, but it has one trap: leap years shift everything from March onward by a day. Here is the method.
Step 1. Write down the total days in each completed month before your target month. In a common year, that's Jan 31, Feb 28, Mar 31, Apr 30, May 31, Jun 30, Jul 31, Aug 31, Sep 30, Oct 31, Nov 30, Dec 31.
Step 2. Sum all completed months. Step 3. Add the day of the month. Step 4. In a leap year, add 1 more for any date from March 1 onward, because February has 29 days instead of 28.
Worked example — April 10, 2026. The year 2026 is not a leap year. Completed months before April: January (31) + February (28) + March (31) = 90. Add the day of the month: 90 + 10 = day 100.
Worked example — April 10, 2024 (leap year). 2024 is a leap year and April is after February, so we add 1. January (31) + February (29) + March (31) = 91. Add the day: 91 + 10 = day 101. Same calendar date, but one day higher because of the leap day.
Leap years and the day-of-year shift
Under the Gregorian calendar, a year is a leap year if it is divisible by 4, unless it is a century year (divisible by 100) that is not divisible by 400. So 2024, 2028, and 2096 are leap years; 2100 and 2200 are not; but 2000 and 2400 are.
In a leap year, February 29 is inserted as day 60. Every date from March 1 onward has a day-of-year number that is one higher than the same calendar date in a common year. December 31 is day 366 instead of day 365.
Here is the day number of the 1st of each month in both year types:
| Month (1st) | Common year | Leap year | Difference |
|---|---|---|---|
| January 1 | 1 | 1 | — |
| February 1 | 32 | 32 | — |
| March 1 | 60 | 61 | +1 |
| April 1 | 91 | 92 | +1 |
| May 1 | 121 | 122 | +1 |
| June 1 | 152 | 153 | +1 |
| July 1 | 182 | 183 | +1 |
| August 1 | 213 | 214 | +1 |
| September 1 | 244 | 245 | +1 |
| October 1 | 274 | 275 | +1 |
| November 1 | 305 | 306 | +1 |
| December 1 | 335 | 336 | +1 |
⚠ Watch the leap-year edge case: February 29 itself is day 60 in a leap year, and March 1 shifts to day 61. A common year has no February 29, so March 1 stays at day 60.
The ISO 8601 ordinal date format (YYYY-DDD)
The ISO 8601 ordinal date format writes a date as YYYY-DDD, where YYYY is the four-digit year and DDD is the three-digit day-of-year number with leading zeros. For example, January 1, 2026 is 2026-001, April 10 is 2026-100, September 13 (Programmer's Day) is 2026-256, and December 31 is 2026-365.
This format is compact and sorts naturally as a string — 2026-100 comes after 2026-099 and before 2026-101, without any date parsing. That's why it's used in computing, aviation, and logistics.
Day of year vs astronomical Julian Day Number
These two concepts share the word "Julian" and get confused constantly. They are completely different systems.
- Day of the year (Julian day-of-year): A number from 1 to 365/366 that counts a date's position within a single calendar year. January 1 is day 1.
- Astronomical Julian Day Number (JD or JDN): A continuous count of days since noon on January 1, 4713 BC. Used by astronomers to have a single unambiguous day count that doesn't reset at year boundaries.
So when a food package says "Julian date 26100" it means day 100 of year 2026 — that's day-of-year. When an astronomer writes "JD 2461000.5" they mean a specific continuous time coordinate. They are not interchangeable.
Real-world use cases
Scientific data logging
Weather stations, climate datasets, and astronomical observations frequently record dates as day-of-year numbers because they compress a full date into three digits and compare naturally within the same year. A CSV column of day_of_year values sorts correctly without parsing.
Aviation and flight planning
Flight plans, pilot logbooks, and aircraft maintenance records use the ordinal date format (sometimes called "Julian date" in aviation) because it's compact and unambiguous. A takeoff at 2026-100 means April 10, 2026, regardless of what the local date convention is at either end of the flight.
Food and pharmaceutical expiration codes
Packaged food and over-the-counter medicine often carry a Julian-style date code on the package: a two-digit year followed by a three-digit day-of-year number. So 26100 means "year 2026, day 100" — April 10, 2026.
Project and fiscal-year tracking
Project managers and finance teams often count "day 100 of the fiscal year" or "day 250 of the calendar year" when reporting progress. Day-of-year numbers line up cleanly with year-progress percentages, so "60% through the year" and "day 219" refer to the same moment.
Education and academic calendars
School and university calendars sometimes number teaching days, not just calendar days. Knowing that October 15 is day 288 of the year helps plan against a 180-day instructional calendar.
Legal and government forms
Some government forms and legal filings require the ordinal date to avoid ambiguity between American and European date conventions. Writing 2026-100 means the same thing in every country.
Astronomy and space operations
NASA and other space agencies use day-of-year extensively in mission planning. Mission Elapsed Time (MET) is often paired with a day-of-year ground calendar.
Notable day-of-year milestones
| Day | Date (common year) | Significance |
|---|---|---|
| 1 | January 1 | New Year's Day — the first day of the year |
| 60 | March 1 | Start of meteorological spring in the Northern Hemisphere |
| 100 | April 10 (Apr 9 in leap years) | A common milestone in project tracking and academic calendars |
| 172 | June 21 | Summer solstice in the Northern Hemisphere (varies ±1 day) |
| 182 | July 1 | Common fiscal-year start (Australia, many organizations) |
| 256 | September 13 (Sep 12 in leap years) | Programmer's Day — 2⁸ = 256, the number of values one byte can hold |
| 266 | September 23 | Autumn equinox in the Northern Hemisphere (varies) |
| 305 | November 1 | Halfway point between autumn equinox and winter solstice |
| 365 | December 31 | New Year's Eve — the last day of a common year |
| 366 | December 31 (leap year only) | New Year's Eve in a leap year — the extra day exists |
Common mistakes
- Forgetting the leap-year shift. Any date from March 1 onward in a leap year has a day-of-year number that is one higher than the same calendar date in a common year.
- Confusing day of year with Julian Day Number. They share the word "Julian" but are completely different systems.
- Assuming a non-leap year always has 365 days of "year left" on Jan 1. Year progress percentage must be computed against the actual number of days in the year.
- Treating ordinal day numbers as if they map to the same weekday every year. The day-of-year number shifts relative to the day of the week because 365 is not divisible by 7.
- Using the day number as if it were unique across years. The value "day 100" is not unique — it exists in every year.
Limitations
- Date arithmetic uses the proleptic Gregorian calendar for all years, including years before 1582.
- Year progress percentage is computed against the total number of days in that calendar year (365 or 366).
- The calculator does not model different calendar systems. It is a Gregorian-only tool.
- Astronomical Julian Day Number conversion is not included.
- The tool works at day granularity. Time-of-day and time-zone differences are not part of the calculation.
Frequently asked questions
What is the day of the year?
The day of the year (also called the ordinal date or Julian day-of-year) is the sequential count of days within a calendar year, starting at 1 on January 1. It runs up to 365 in a common year and 366 in a leap year.
How do you calculate the day of the year manually?
Sum the total days in each completed month before your target month, then add the day of the month. In a leap year, add 1 more for any date from March onward. Example: April 10, 2026 → 31 + 28 + 31 + 10 = day 100.
What is the difference between day of year and Julian Day Number?
Day-of-year is a number from 1 to 365/366 counting position within a single calendar year. The astronomical Julian Day Number is a continuous count of days since noon January 1, 4713 BC.
What is the ISO ordinal date format?
ISO 8601 ordinal dates are written as YYYY-DDD, where DDD is a three-digit day-of-year number. April 10, 2026 is 2026-100.
How does the day of the year change in a leap year?
In a leap year, February 29 is inserted as day 60. Every date from March 1 onward has a day-of-year number one higher than the same date in a common year. December 31 is day 366 instead of 365.
How many days are left in the year?
Remaining days equal the total days in the year (365 or 366) minus the day-of-year number. If today is day 100 of a common year, there are 265 days left. In a leap year, 266.
What is Programmer's Day?
Programmer's Day is celebrated on day 256 of the year, because 256 = 2⁸ is the number of distinct values one byte can hold. In common years it falls on September 13; in leap years it falls on September 12.
What is the ISO week number?
The ISO 8601 week number is a numbering of weeks within a year where week 1 is the week containing the year's first Thursday, and weeks start on Monday.
Can I convert a day number back to a date?
Yes. Switch to Day Number → Date mode, enter a day number from 1 to 365 (or 366 in a leap year) and the target year. The calculator returns the corresponding calendar date, day of the week, and all associated metadata.
Why is my day-of-year number different from a friend's?
The most common cause is leap year handling. If one of you is calculating "March 1" for 2024 (a leap year) and the other for 2025 (a common year), the day numbers will differ by one.
Does the tool save my data?
No. Everything runs entirely in your browser. Nothing is uploaded, logged, or stored on a server.
Related calculators on AIToolsPros
Sources & methodology
- ISO 8601 — International standard for date and time representation, including ordinal date format (YYYY-DDD) and week numbering rules.
- Gregorian calendar reform of 1582 — establishes the 4/100/400 leap-year rule that this calculator applies.
- U.S. Naval Observatory, Astronomical Applications Department — "Leap Years" reference for the Gregorian leap-year algorithm.
- U.S. Food and Drug Administration — industry guidance on Julian-style date coding for packaged food.
- Federal Aviation Administration — guidance on the Julian date (day-of-year) format used in pilot logbooks.