The day number of the year is the ordinal position of a date within its calendar year: January 1 is day 1, and December 31 is day 365 in a common year or day 366 in a leap year. This value is also called the ordinal day or ordinal date.

The fastest way to find it is to open the Day of Year Calculator. Its date field starts with today selected, and changing the date reveals that date’s day number along with related year and ISO-week information.

day number of year
Day Number of Year: Formula, Outputs, and Checks

What the day number represents

The day number measures a date’s progress through one calendar year. The selected date counts as one day in that year, and the count starts at 1 rather than 0. The sequence resets on January 1, so a date’s value depends on both the month and day you select and the year containing it.

The plain result gives only the ordinal portion, which is useful when a spreadsheet, label, or record already identifies the year. The calculator also provides a padded ISO ordinal date that combines the year with the day number. That complete form is easier to copy when another system expects a year-day code.

Three numbering systems are easy to confuse:

  • Day of the year: the date’s position from January 1 through December 31 in its calendar year.
  • ISO 8601 week number: the date’s position in the ISO Monday-based week system, which can cross calendar-year boundaries.
  • Astronomical Julian Day Number: a separate continuous day count used by astronomers, not the result produced by this calculator.

Find the day number in three steps

  1. Open the date field. The Day of Year Calculator defaults to today, so the current day number is available without changing the selection.
  2. Choose the required date. Select the date from the date field. The day number and days remaining update immediately, with no button to press.
  3. Read and verify the output. Read the main day number and days remaining, then check the ISO 8601 week number, total days in the year, and leap-year status below the day count. Copy either the plain day number or the padded ISO ordinal date, depending on the format required.

All processing takes place in your browser. The entered date does not leave your device, and nothing is uploaded or stored. There is no signup requirement and no limit on how many dates you can check.

Read each result correctly

The calculator presents several related values, but each answers a different question. Reading them together provides a quick consistency check.

Output What it represents Reading rule
Day number The selected date’s ordinal position in its calendar year Starts at 1 on January 1
Days remaining The number of days left after the selected date through the end of the year Total days in the year minus the day number
ISO 8601 week number The date’s position in the ISO week system Weeks start on Monday, and week 1 contains the first Thursday
Total days The length of the selected date’s calendar year 365 in a common year and 366 in a leap year
Leap-year status Whether the selected year follows the Gregorian leap-year rule Century years qualify only when divisible by 400
Padded ISO ordinal date The year and zero-padded day number combined into one code Use when a complete year-day representation is required

The day number and days remaining answer opposite questions: one shows how far the year has progressed, while the other shows how much of the year remains. As a basic validation, add the day number and days remaining. The result should match the displayed total for the year.

Calculate and verify an ordinal day

You can check the calculator manually by adding the lengths of all completed months, adding the day of the selected month, and including February 29 when the date falls after February in a leap year.

Calendar type Total days February length Final day’s ordinal position
Common year 365 28 days 365
Leap year 366 29 days 366

The Gregorian leap-year rule is necessary for this check. A year is normally leap when it is divisible by 4, but a century year must also be divisible by 400. The calculator applies this rule automatically and adjusts the year length and ordinal count together.

For one worked example, take July 6, 2026. The completed months contain 31 + 28 + 31 + 30 + 31 + 30 = 181 days, so the ordinal day is 181 + 6 = 187. The year has 365 days, leaving 365 - 187 = 178 days. The padded ordinal date is 2026-187, and the full ISO week date is 2026-W28-1; the final ISO weekday component identifies Monday.

Why ISO week numbers can cross year boundaries

The day number always belongs to the selected calendar year. An ISO week number can belong to a different week-numbering year because ISO 8601 defines weeks by a continuous Monday-to-Sunday structure rather than by January and December boundaries.

ISO weeks start on Monday. Week 1 is the week containing the year’s first Thursday, which is equivalent to the week containing January 4. As a result, the opening days of January can fall in the final ISO week of the previous week-numbering year, while the closing days of December can fall in week 1 of the next one.

That distinction does not change the ordinal day. A date near the end of December may still have a day number close to 365 or 366 even though its ISO week is numbered as part of the following year. The calculator displays the full ISO week date, including the ISO week-numbering year, so dates at these boundaries remain unambiguous.

Where the result is useful

A day-of-year value supports several date-based workflows:

  • Logistics, aviation, and manufacturing: Year-day codes provide compact date identifiers for labels, production runs, batch stamps, and shipment records. In these industries, the day-of-year number is sometimes called a Julian date, although that name does not mean the astronomical Julian Day Number. For more format context, see year-day codes used in shipping and batch records.
  • Spreadsheets and scientific data: A separate day-of-year field can make time-series records easier to organize, filter, and compare against calendar-year data.
  • ISO-based schedules: European business, payroll, and manufacturing schedules often rely on ISO week numbers rather than simple day-of-year positions.
  • Goals and deadlines: The days-remaining value shows how much time is left in the current year without requiring a separate countdown.
  • Leap-year checks: The total-days and leap-year fields confirm whether February has 28 or 29 days and whether December 31 occupies day 365 or day 366.

Limits of the result

The calculator answers for one selected date at a time. It does not calculate the elapsed time between two dates; use the Date Difference Calculator for that task. It also does not identify the weekday, which is a separate property of the date.

The day-number output should not be substituted for an astronomical Julian Day Number. The latter counts days continuously from a much earlier reference point and serves a different scientific purpose. For business-style year-day codes, the plain ordinal number or padded ISO ordinal date shown here is the relevant result.

For repeated checks, the workflow remains the same: select a date, confirm that the year length matches its leap-year status, and then use the day number, remaining days, ISO week, or padded code required by your records.

Related reading: How to Convert Density to Volume: Formula and Steps.