Day of the year calculator: what day number is today?
See which day of the year today or any other date is, from day 1 on January 1 to day 365 or 366 on December 31, with the days left in the year. Or enter a day number and get its date.
Day of the year calculator
I want to know which day of the year December 5, 2026 is.
Answer
Day 339
Saturday, December 5, 2026 is the 339th day of 2026, day 339 of 365. 26 days are left in the year after it.
- 26 daysLeft in the year
- 92.9%Of the year done
- 26339Julian date (YYDDD)
- 365 daysIn 2026
How we counted the days
The bar is 2026, filled up to day 339. Each segment is one month, from January on the left to December on the right.
- Add the days of the months before December: 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 = 334.
- Add the day of the month: 334 + 5 = day 339.
- Days left: 365 − 339 = 26. 2026 has 365 days.
- Answer: day 339.
Read the table from top to bottom: each row is a month with its first and last day number. Your month is highlighted, with the months around it.
| Month | First day | Last day |
|---|---|---|
| June | 152 | 181 |
| July | 182 | 212 |
| August | 213 | 243 |
| September | 244 | 273 |
| October | 274 | 304 |
| November | 305 | 334 |
| December | 335 | 365 |
How to use the day of the year calculator
- Date format: choose how dates are written, at the top of the calculator. The date field and the answer follow it, and your choice is remembered.
- What do you want to know?: pick Day of a date to get a number from 1 to 366, or Date of a day to turn a number back into a date. Switching keeps the same day.
- Date: today is filled in. Type any date or use the calendar button.
- Year and day number: in the second mode, type the year and the day number, for example 2026 and 100. The calculator checks that the year has that many days.
- Step through the days: tap Previous day or Next day to move one day, or Today to go back to today.
When you need the day of the year
Day numbers are used wherever dates need to be short and easy to sort: Julian or ordinal dates on food packaging, batch and lot codes, military and aviation paperwork, shipping labels, data loggers and scientific records. Decoding a code like 26334 means finding day 334 of 2026.
They also answer everyday questions: how far through the year are we, how many days are left, or when is the 100th or 256th day (Programmers’ Day). To count the days between any two dates, use the days between dates calculator; for the week number, the week number calculator.
Day of the year at a glance
What it does
Gives the day number of any date from 1 to 365 (366 in a leap year), the days left in the year, and the Julian date code, or the date of a day number.
Who it's for
Anyone reading or writing date codes: food and batch codes, logistics, military and aviation, data and science, and anyone curious how far the year has gone.
Watch out for
From March 1 on, leap years add one to every day number. A “Julian date” on a label is year + day number, not the astronomers’ Julian Day.
How the day of the year is counted
The rule: day of the year = the days of all earlier months + the day of the month. January 1 is day 1 and December 31 is day 365, or day 366 in a leap year. A spreadsheet does the same by subtracting December 31 of the year before from the date.
With your date: December 5, 2026 − December 31, 2025 = 339 days, so it is day 339 of 2026.
Leap years add February 29 as day 60, so every date from March 1 on has a day number one higher than in other years: March 1 is day 60 in 2026 and day 61 in 2024. A year is a leap year when it can be divided by 4, except century years, which must be divisible by 400: 2000 was a leap year, 1900 was not.
The day number is also the last three digits of an ordinal or “Julian” date such as 26334 (2026, day 334), printed on food packaging, military paperwork and shipping labels. To count days between any two dates, use the days between dates calculator; for the week instead of the day, the week number calculator; and to count down to a date, days until.
Day of the year: worked examples
What day of the year is November 30, 2026?
The months before November have 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 = 304 days. Add 30: day 334, with 31 days left in 2026.
Common mistake: multiplying the month by 30 (10 × 30 + 30 = 330). Months are 28 to 31 days, so that is off by 4 here.
What date is day 100 of 2026?
January to March have 90 days, so day 100 is 10 days into April: Friday, April 10, 2026. In 2024, a leap year, it was April 9.
Common mistake: forgetting the leap day. In a leap year every day number from 60 on falls one date earlier.
What does the code 24060 on a package mean?
It is a Julian date: year 24, day 060. Day 60 of 2024 is February 29, 2024, the leap day.
Common mistake: reading it as March 1. That is day 60 only in years that are not leap years, such as 2026.
Is December 31 always day 365?
No. It is day 365 in a common year and day 366 in a leap year such as 2024 or 2028.
Common mistake: treating 2000 and 1900 alike. 2000 was a leap year (divisible by 400), 1900 was not.
Day of the year in Excel and Google Sheets
Put a date in A2. Spreadsheets store dates as day numbers, so subtracting the last day of the previous year gives the day of the year. For the other direction, put the year in B2 and the day number in C2 and format the answer as a date.
Read the table row by row: each row is one cell of your sheet, what to put in it and an example.
| Cell | What goes in it | Example |
|---|---|---|
| A2 | Date | =TODAY() |
| C2 | Answer (matches your choice above) | =A2-DATE(YEAR(A2),1,0) |
Day of the year of a date
=A2-DATE(YEAR(A2),1,0) Date of day C2 of year B2
=DATE(B2,1,C2) Days left in the year
=DATE(YEAR(A2),12,31)-A2 Julian date code (YYDDD)
=TEXT(A2,"yy")&TEXT(A2-DATE(YEAR(A2),1,0),"000") Date from a YYDDD code in D2
=DATE(2000+LEFT(D2,2),1,RIGHT(D2,3)) DATE(year,1,0) is December 31 of the year before; DATE accepts a day number larger than the month has and rolls into the later months. Format day numbers as a number, not a date. The last formula assumes the code is from 2000 to 2099.
Day of the year: frequently asked questions
What day of the year is it today?
Today, December 5, 2026, is day 339 of 2026. 26 days are left until the end of the year.
How many days are in a year?
365, or 366 in a leap year. A year is a leap year when it can be divided by 4, except century years, which must be divisible by 400. So 2024 and 2028 are leap years, and so was 2000, but 1900 and 2100 are not.
What is a Julian date on a label?
In food, shipping and military use it is the year followed by the day of the year, such as 26334 for day 334 of 2026 (November 30). Astronomers use “Julian Day” for something else: a count of days since 4713 BC.
What day of the year is the 100th day?
April 10 in a common year and April 9 in a leap year. January to March have 90 days, or 91 with February 29.
Is January 1 day 0 or day 1?
Day 1. The count starts at 1 on January 1 and ends at 365 or 366 on December 31, the same as Excel and Google Sheets with =A2-DATE(YEAR(A2),1,0).
Why does another site show a different percentage of the year?
Day numbers and days left match other calculators. The percentage can differ slightly: this page counts the day itself as done (day 1 is 0.3%), while some sites count only the days before it (day 1 is 0%).
Other date and time calculators
- Age calculator
- Birthday countdown
- Business days calculator
- Date calculator
- Day of the week calculator
- Days ago calculator
- Days between dates
- Days from today
- Days until a date
- Hours between two times
- Hours from now
- Hours worked calculator
- Military time converter
- Minutes to hours converter
- Months between dates
- Months from today
- Overtime calculator
- Time calculator
- Time card calculator
- Week number calculator
- Weeks between dates
- Weeks from today
Report a problem with this calculator · Sponsor this calculator