Day of the Year Calculator

Find the day number for any date in the year, from 1 to 365 or 366.

--
Day of the Year
-- Days Remaining
-- Year Type
-- % Complete

What Is a Day of the Year Calculator?

A day of the year calculator converts any calendar date into its corresponding ordinal day number. This number represents the date's position within the year, starting from 1 for January 1st and ending at 365 (or 366 in a leap year) for December 31st. This tool handles the calculation automatically, accounting for leap years and varying month lengths.

How the Day Number Is Calculated

The calculation sums the total number of days in all preceding months, then adds the day of the current month. For example, March 10th is calculated as:

Days in January (31) + Days in February (28 or 29) + 10 = Day number 69 or 70.

The tool automatically determines whether the year is a leap year. A year is a leap year if it is divisible by 4, except for century years not divisible by 400. This means the year 2000 was a leap year, but 1900 was not.

How to Use the Calculator

  1. Select the month from the dropdown menu.
  2. Enter or select the day of the month.
  3. Enter the year.
  4. The day number is displayed instantly.

Understanding the Result

The result is a single integer between 1 and 365 (or 366). This number is often referred to as the "ordinal date" or "Julian day number" in some contexts, though it is distinct from the astronomical Julian Day Number used for continuous day counting across years.

For example, December 31st in a non-leap year returns 365. In a leap year, it returns 366. February 1st always returns 32, regardless of the year.

Common Use Cases

  • Project planning: Tracking days elapsed or remaining in a fiscal or calendar year.
  • Data logging: Recording dates as ordinal numbers for simplified sorting or analysis.
  • Agriculture and gardening: Calculating growing degree days or planting schedules based on day numbers.
  • Education: Teaching students about calendar structure and date arithmetic.
  • Software development: Converting user input dates into ordinal format for backend processing.

Limitations

This calculator provides the day number within a single year. It does not calculate the number of days between two dates, nor does it account for historical calendar changes such as the switch from the Julian to the Gregorian calendar. The calculation assumes the modern Gregorian calendar rules for leap years.

FAQ

What is the day number of today?

Enter today's date into the calculator to see the current day number. The result updates instantly based on the date you provide.

Does the calculator work for leap years?

Yes. The calculator automatically detects leap years based on standard Gregorian calendar rules. February 29th will return day number 60 in a leap year.

What is the difference between day of the year and Julian date?

Day of the year (ordinal date) counts days from January 1st within a single year. A Julian date, in astronomical contexts, is a continuous count of days since January 1, 4713 BC. These are different systems.

Can I use this for historical dates before 1582?

The calculator uses modern Gregorian leap year rules. Dates before the adoption of the Gregorian calendar (1582 in some countries) may not reflect the calendar system actually in use at that time.

What day number is December 31st?

In a common year, December 31st is day 365. In a leap year, it is day 366.