Strip a date of its months and you are left with a single number: the day of year, a plain count of how far through the year today sits. It runs from 1 on 1 January to 365 on 31 December, or to 366 when a leap year adds 29 February. Astronomers, agronomists, pilots and programmers all reach for it, because a single ordinal number is far easier to subtract than a date made of three separate units.

This article explains how the ordinal date is calculated, how leap years shift every value after February, and how the day of year differs from the superficially similar Julian day number used in astronomy. The current value is on the day of year page, alongside the rest of what a date tells you.

What Is The Day Of Year?

The day of year, also called the ordinal date, is the position of a date within its calendar year expressed as a number from 1 to 365, or to 366 in a leap year. 1 January is always day 1 and 31 December is always the last day, whatever the year's length.

ISO 8601 gives this a formal notation, writing the year and the ordinal number together as 2024-060 rather than 2024-02-29. The format is compact, unambiguous and sorts correctly, and it appears in aviation records, satellite telemetry and scientific data files where days are the natural unit and months are simply noise. The Gregorian calendar's uneven month lengths make ordinary date arithmetic fiddly; the ordinal date removes them from the problem entirely.

How Do You Work Out The Day Of Year?

Add the lengths of every completed month, then add the day of the current month. For 15 March in a common year that is 31 for January plus 28 for February plus 15, giving day 74.

Doing this repeatedly is tedious, so it helps to memorise the running totals at the end of each month in a common year. Add one to every value after February in a leap year.

  • End of January: day 31, and the end of February is day 59.
  • End of March: day 90, with April closing at 120 and May at 151.
  • End of June: day 181, the halfway point of a common year falling on 2 July.
  • End of September: day 273, with October closing at 304 and November at 334.
  • End of December: day 365, or 366 in a leap year.

The reward for this bookkeeping is that gaps become subtraction. Two dates in the same year are separated by the difference between their ordinal numbers, which is the whole basis of the method described in days between two dates.

How Leap Years Shift The Day Of Year

A leap year inserts 29 February as day 60, so every subsequent date moves one place later than it would otherwise sit. 1 March is day 60 in a common year and day 61 in a leap year, and that one-day offset persists all the way to 31 December.

Only dates from 1 March onward are affected; January and February keep the same ordinal numbers in every year. This is precisely why day-of-year comparisons across different years need care. A satellite pass logged as day 200 does not fall on the same calendar date in a leap year as in a common year, and reports that quietly compare ordinal numbers year on year will drift by a day for ten months out of twelve. The rule that decides which years get the extra day, including the awkward century exception, is set out in leap years explained.

What Is A Julian Day Number?

A Julian day number is a continuous count of days that never resets at the end of a year. Day zero is fixed at noon on 1 January 4713 BC in the proleptic Julian calendar, so every date since then has a unique number in the millions.

The system was devised in the sixteenth century by the scholar Joseph Scaliger, who chose an epoch far enough in the past that no historical record would need a negative value. Astronomers adopted it because observations must be compared across centuries and across calendars, and a single running count sidesteps every calendar reform, leap year rule and local convention along the way. A Julian date, as opposed to a Julian day number, includes a fraction for the time of day, and it begins at noon rather than midnight so that a night of observing falls entirely within one number. Astronomers who prefer a midnight start use the Modified Julian Date, which is the Julian date less 2,400,000.5.

Day Of Year Versus Julian Day Number

The two are often confused, partly because some fields loosely call the day of year a "Julian day". They answer different questions.

  • Range: the day of year runs 1 to 365 or 366 and resets each January; the Julian day number runs continuously into the millions and never resets.
  • Epoch: the ordinal date has no epoch beyond the current year, while the Julian day number counts from a single fixed epoch in 4713 BC.
  • Day boundary: an ordinal date changes at midnight; a Julian date changes at noon.
  • Purpose: the day of year is for position within a year, the Julian day number for measuring long intervals without calendar arithmetic.
  • Naming: neither has any real connection to the Julian calendar that the 1582 reform replaced, despite the shared adjective.

Where The Day Of Year Is Used

Agriculture and climate science use ordinal dates to compare seasons between years, since "day 120" describes a point in the growing cycle more directly than a calendar date. Aviation and logistics stamp them on records for the same reason. Manufacturers print them on packaging as date codes, and computer systems store them because one integer is cheaper to compare than three.

They also pair naturally with other year-relative measures. Subtracting today's ordinal from the year's length gives the answer explored in how many days are left in the year, and the parallel week-based position within the year is given by the ISO week number. For arithmetic that crosses year boundaries the date calculator handles the leap days for you, while the today's date page shows the ordinal value beside the calendar date.

Conclusion

The day of year is the simplest useful thing you can say about a date: a number from 1 to 365, or 366 when 29 February intervenes, that makes intervals a matter of subtraction. Remember that only dates from March onward shift in a leap year, and that a Julian day number is a different instrument entirely, counting days continuously from an epoch in 4713 BC for the benefit of astronomers. Check the current figure on the day of year page, or browse the other calendar tools at datetoday.now.