Day Of Year Calculator
Find a date’s ordinal position within its year.
--
How Day Of Year Calculator Works?
The Day of Year Calculator works by adding the days of every full month before the date to the day of the month, returning the ordinal day from 1 to 365 (or 366).
- 1
Enter the date
Pick any date between January 1 and December 31.
- 2
Sum earlier months
The calculator adds the lengths of all months before the date's month.
- 3
Add the day of month
The day number within the month adds to that sum.
- 4
Read the ordinal day
January 1 is day 1, and December 31 is day 365 or day 366.
Day Of Year Calculator Formula
The Day of Year formula is DOY = Σ days in months before M + D, plus 1 for dates after February in a leap year.
DOY = cumulative days before month M + D Add 1 if month > February and the year is a leap year
- M:
- Month of the date
- D:
- Day of the month
Example: Nov 25, 2026: January–October hold 304 days in 2026, so the day of year is 304 + 25 = day 329. In leap year 2028, November 25 is day 330.
Day Of Year Calculator Conversion Table
The table lists the day of year for the 1st of each month in a common year (2026) and a leap year (2028).
| Date | Common Year (2026) | Leap Year (2028) |
|---|---|---|
| January 1 | 1 | 1 |
| February 1 | 32 | 32 |
| March 1 | 60 | 61 |
| April 1 | 91 | 92 |
| May 1 | 121 | 122 |
| June 1 | 152 | 153 |
| July 1 | 182 | 183 |
| August 1 | 213 | 214 |
| September 1 | 244 | 245 |
| October 1 | 274 | 275 |
| November 1 | 305 | 306 |
| December 1 | 335 | 336 |
What is Day Of Year Calculator?
A Day of Year Calculator is a tool that returns a date's position in its year as a number from 1 to 366. Another name for the number is the ordinal date.
ISO 8601 writes ordinal dates as YYYY-DDD. November 25, 2026 is written 2026-329.
Leap years shift every date after February 28 by 1. March 1 is day 60 in a common year and day 61 in a leap year.
What are the uses of Day Of Year Calculator?
There are 5 main uses of the Day of Year Calculator, including batch codes, scientific data and 100-day goals.
-
Batch codes
Food and drug makers print ordinal dates as lot codes.
-
Scientific data
Researchers record weather and satellite data by day of year.
-
100-day goals
People track progress on day 100 of the year (April 10 in a common year).
-
Military dates
Logistics systems use ordinal dates in records.
-
Programming
Developers check day-of-year values in code.
Related Calendar & Leap Years Tools
View All 141 Tools →Day Of Year To Date Converter
Convert a year and ordinal day into a date.
Days In Month Calculator
Find the length of a selected month.
Days In Year Calculator
Find the length of a selected year.
Leap Year Checker
Check whether a Gregorian year is a leap year.
Leap Years Between Dates Calculator
List leap years within a selected interval.
Leap Days Between Dates Calculator
Count February 29 dates within a range.