Day of the Year Calculator

Every date has a number. January 1 is day 1, and December 31 is day 365 in a normal year. A day of the year calculator tells you exactly which number any date holds, so you never have to count through the months yourself.

This days into the year calculator is handy for planning, journaling, and tracking goals. People ask what day of the year is it when they set New Year resolutions, follow a 365 day challenge, or work with systems that use ordinal dates. Pick a date above and the tool gives you the number right away, along with how many days are left in the year.

How to use the day of the year calculator

Finding your day number takes just a few seconds:

  1. Choose a date in the date field. Use the calendar picker or type the date in directly.
  2. Press calculate. The tool shows the day number for that date, counting January 1 as day 1.
  3. Check the extra details. You will also see the weekday, whether the year is a leap year, and how many days remain after your date.
  4. Try the reverse lookup if you need it. Enter a day number and a year to find which calendar date it falls on.

The calculator works for past and future years too, which makes it useful for historical dates, birthdays, and planning ahead. Leap years are handled automatically, so dates after February 29 get the correct number.

How the day of the year calculation works

The day number, also called the ordinal date, is simply a count of days from the start of the year. The calculator adds up the lengths of all the full months before your date, then adds the day of the month. January contributes 31 days, February contributes 28 or 29, and so on through the year.

The formula looks like this:

Day of year = days in all previous months + day of the month.

For example, March 1, 2026 falls after January (31 days) and February (28 days), so its day number is 31 + 28 + 1 = 60. In 2024, a leap year, February had 29 days, so March 1, 2024 was day 61 instead. That one day shift is exactly the kind of detail the calculator keeps track of so you do not have to.

Ordinal dates show up in more places than you might expect. Manufacturing, shipping, and food packaging often use day numbers in lot codes. Programmers meet them in date libraries. And anyone doing a daily challenge, from photos to workouts, uses the day number to stay on track.

Day of the year examples

Here are some familiar dates and their day numbers. Notice how the leap year column shifts after February:

DateDay number in 2026Day number in 2024 (leap year)Days left in 2026
January 111364
March 16061305
July 4185186180
December 253593606
December 313653660

Independence Day, July 4, is day 185 of 2026. That means 184 full days of the year pass before it, and 180 days remain after it. In a leap year, July 4 becomes day 186 because of the extra February day.

ISO week numbers explained

Along with the day number, many calendars show a week number. The international standard is ISO 8601, and its rules differ from the week numbers used in the United States. ISO weeks start on Monday. Week 1 of a year is the week that holds the first Thursday of that year, which is the same as the week that holds January 4. Most years have 52 ISO weeks, but some have 53. The year 2026 has 53 ISO weeks, because January 1, 2026 falls on a Thursday.

The boundary cases cause most of the confusion. Dates from December 29 to 31 can belong to week 1 of the next ISO year. Dates from January 1 to 3 can belong to the last week of the previous ISO year. US style week numbers often start weeks on Sunday and put January 1 in week 1, so the same date can carry two different week numbers in the two systems. When a document gives a week number, check which system it uses. The ISO 8601 date and time format page sets out the standard. For spans measured in weeks, the weeks between dates calculator counts whole weeks and leftover days between two dates.

Why use a day of the year calculator?

Adding up month lengths by hand is slow, and one wrong month length throws the whole count off. A day of the year calculator removes that risk. It knows every month length, applies the leap year rule for the year you pick, and returns the ordinal number instantly. Whether you are labeling products, planning a 365 day project, or simply curious about what day of the year is it today, the answer is one click away.

Practical tips

  • Track year long goals by number. If you are doing a daily habit or a 365 day project, the day number tells you exactly how far along you are and how much is left.
  • Watch the leap year shift. Any date from March 1 onward has a day number one higher in a leap year. The calculator adjusts for this, but keep it in mind when comparing dates across years.
  • Use the reverse lookup for planning. If a plan calls for something on day 200 of the year, enter 200 and the year to get the calendar date instantly.
  • Pair it with a weekday check. The result includes the weekday, which helps when a day numbered deadline needs to land on a working day.
  • Know the format used in your field. Ordinal dates are often written as year then day number, such as 2026-185 for July 4, 2026. This format appears in logistics, aviation, and some government systems.

Frequently asked questions

What is a day of the year calculator?

A day of the year calculator converts any calendar date into its ordinal number within the year. January 1 is day 1, February 1 is day 32, and December 31 is day 365 in a normal year or 366 in a leap year. It removes the need to add up month lengths by hand.

What day of the year is it today?

Enter today date in the calculator above and it will show the current day number, plus how many days remain in the year. For reference, July 4, 2026 is day 185, and the number rises by one each day until it reaches 365 on December 31, 2026.

How do leap years affect the day number?

In a leap year, February has 29 days instead of 28, so every date from March 1 onward shifts up by one. March 1 is day 60 in 2026 but day 61 in 2024. Dates in January and February keep the same number in both kinds of years.

Can I find a date from a day number?

Yes. The reverse lookup takes a day number and a year and returns the matching calendar date. For example, day 185 of 2026 is July 4, 2026, and day 366 only exists in leap years, where it falls on December 31.

Where are day numbers used in real life?

Day numbers, or ordinal dates, appear in manufacturing lot codes, food packaging, shipping labels, and some computer systems. They are also popular for personal tracking, such as daily photo projects, fitness challenges, and reading goals that run across the whole year.

What is the Julian day number?

In logistics and manufacturing, the day of the year is often called the Julian date, written as the year followed by the day number, such as 2026-185 for July 4, 2026. That is the number this calculator gives. Astronomers use a different Julian Day count that runs from a fixed point in 4713 BC and includes fractions of a day. The two share a name but not a scale, so check which one your document means.

How many days are left in the year?

Subtract the current day number from the length of the year. In 2026, a normal year of 365 days, July 4 is day 185, so 180 days remain after it. The calculator shows the days remaining next to the day number for any date you enter. For a countdown to a specific date, the countdown calculator counts the wait directly.

How we calculate and sources

The day number adds the lengths of all full months before your date, then adds the day of the month, using the Gregorian calendar and the full leap year rule. Ordinal dates and week numbers follow the ISO 8601 standard. Results can be cross checked against any printed calendar, since January 1 is always day 1 and December 31 is day 365 in a normal year or 366 in a leap year.

Last reviewed: November 27, 2026

From daily challenges to professional date codes, knowing the day number makes the calendar easier to work with. Writers and planners often open a day of the year calculator when they set quarterly goals, since the day number shows exactly how much of the year is gone and how much remains. Teachers use it for classroom countdowns too. To count the gap between two dates, see the days between dates calculator. Pick a date above and get its day of the year number right away.

Related Calculators