Day Number Calculator

Convert between dates and day-of-year numbers (Julian day numbers).

Day Number Calculator

📆

Enter a date or day number to convert

What Is a Day Number Calculator?

A day number calculator finds the sequential number of a specific date within its year, counting from January 1 as day 1 through December 31 as day 365 (or 366 in a leap year). This ordinal day count is also known as the Julian day of the year, the day of the year, or the day number. It provides a simple single-integer identifier for any date within a year, which is useful for scheduling, data analysis, and date comparison tasks.

Day numbers are widely used in agriculture, meteorology, and phenology (the study of seasonal biological events). Farmers track planting dates, flowering times, and harvest dates as day numbers to make year-over-year comparisons easier: "wheat first emerged on day 95 last year versus day 103 this year" is more compact and comparable than citing specific calendar dates. Meteorologists use day-of-year numbers to create climatological averages.

In computing and scientific contexts, the day number (together with the year) provides a compact date representation that is easy to sort and compare numerically. A date on day 200 of 2025 comes before day 200 of 2026, and within the same year, higher day numbers are always later dates — a property that simplifies date comparison in data analysis pipelines.

This calculator shows the day number for any date you select, the total days in the year, the days remaining in the year, and the percentage of the year elapsed — all metrics useful for progress tracking and planning.

Day Number Formula

The day number is computed by summing the days in all complete months before the current month and adding the day of the current month.

Day of Year Formula

Day Number = Σ(days in months 1 to m-1) + day_of_month

Where:

  • m= The current month number (1=January through 12=December)
  • days in months 1 to m-1= Sum of days in all months before the current month (accounting for leap year in February)
  • day_of_month= The day within the current month (1-31)
  • Leap year adjustment= February has 29 days in leap years (divisible by 4, except century years not divisible by 400)

Cumulative Day Offsets by Month

The cumulative day number at the start of each month in a standard (non-leap) year: January starts at day 1, February starts at day 32, March starts at day 60, April starts at day 91, May starts at day 121, June starts at day 152, July starts at day 182, August starts at day 213, September starts at day 244, October starts at day 274, November starts at day 305, and December starts at day 335.

In leap years, all months from March onward are shifted by one day: March starts at day 61 (not 60), and December 31 is day 366 (not 365). The breakpoint always occurs in February — the extra leap day is February 29, which is day 60, shifting all subsequent months by one position.

Memorizing a few key offsets enables quick mental calculation: mid-year (day 182) is July 1, day 100 is April 10, and the final day of each month is a known offset. These mental anchors are useful for quick estimation when a calculator is not available.

Applications of Day Numbers

Agricultural planning uses growing degree day (GDD) accumulations that start from a fixed day number each year. Crop models track heat accumulation from planting day (e.g., day 120) forward, comparing current-year accumulations with historical averages. The day-number format makes these comparisons tabular and sortable across years.

In military operations, day numbers (also called "Julian dates" in operational contexts, though this is different from astronomical Julian dates) are used in logistics and operations orders to specify timing without ambiguity. "Load by Day 45 of Operation X" is clear regardless of the calendar month in which day 45 falls. This absolute day numbering eliminates the ambiguity of relative dates ("three weeks after D+7") in complex multi-phase operations.

Days Remaining in the Year

Days remaining in the year (total year days minus current day number) is a useful planning metric. On day 200, there are 165 days remaining in a standard year (200 days elapsed = 54.8% complete). This directly answers planning questions: "Do I have enough days left in the year to complete this annual goal?" Dividing the remaining work by the remaining days gives a required daily rate to hit year-end targets — a calculation used in personal goal tracking, annual business planning, and production scheduling.

The percentage-of-year-elapsed is also a useful financial metric: companies tracking annual revenue targets can compare actual revenue against the percentage of the year elapsed to assess whether they are on pace. Being at 45% of annual target on day 182 (50% of the year) indicates a behind-schedule run rate that requires attention.

Worked Examples

Day Number for April 15

Problem:

What is the day number for April 15 in a standard (non-leap) year?

Solution Steps:

  1. 1January: 31 days; February: 28 days; March: 31 days
  2. 2Cumulative to April 1: 31 + 28 + 31 = 90
  3. 3Add the day of month: 90 + 15 = 105
  4. 4April 15 is day 105 of 365 in a standard year

Result:

April 15 is day 105 of 365 in a non-leap year (day 106 of 366 in a leap year).

Converting Day Number Back to Date

Problem:

Day 200 of 2025 — what calendar date is that?

Solution Steps:

  1. 12025 is not a leap year. January: 31 (running total: 31), February: 28 (59), March: 31 (90), April: 30 (120), May: 31 (151), June: 30 (181), July: 31 (212)
  2. 2Day 200 falls in July (181 < 200 ≤ 212)
  3. 3Day within July: 200 - 181 = 19
  4. 4Day 200 of 2025 = July 19, 2025

Result:

Day 200 of 2025 is July 19, 2025.

Percentage of Year Elapsed

Problem:

What percentage of the year has elapsed by June 7, 2026?

Solution Steps:

  1. 1Day number for June 7, 2026 (non-leap year): Jan 31 + Feb 28 + Mar 31 + Apr 30 + May 31 + 7 = 158
  2. 2Total days in 2026: 365 (non-leap year)
  3. 3Percentage: 158 / 365 × 100 = 43.3%
  4. 4Days remaining: 365 - 158 = 207 days

Result:

June 7, 2026 is day 158 of 365 — 43.3% of the year elapsed, with 207 days remaining.

Tips & Best Practices

  • Day 100 is April 10 in standard years and April 9 in leap years — a useful mental reference point.
  • Day 182 (or 183 in leap years) is July 1 — the midpoint of the year.
  • Agricultural planting zones often specify planting dates as day numbers — convert to your local calendar date with this tool.
  • For year-over-year data analysis, using day numbers instead of calendar dates automatically aligns seasonal patterns across years.
  • The percentage-of-year metric is ideal for checking run rates against annual targets in business planning.
  • In software, the day-of-year is easily computed as the floor of (date - startOfYear) / milliseconds-per-day + 1.

Frequently Asked Questions

There are two different concepts called 'Julian date.' The day-of-year number (what this calculator computes) is sometimes called the 'Julian day' or 'Julian date' in military and some commercial contexts. However, in astronomy and science, the Julian Date (JD) is a completely different system that counts days continuously from January 1, 4713 BC — a single large number like 2460000. The astronomiocal Julian Date is computed by a different algorithm entirely. This calculator computes the day-of-year (1-365 or 1-366), not the astronomical Julian Date.
Yes. The day-of-year number runs from 1 (January 1) to 365 (December 31 in a standard year) or 366 (December 31 in a leap year), then resets to 1 on the following January 1. This is different from the astronomical Julian Date, which is a continuous count that never resets. For cross-year comparisons, you need both the year and the day number — or use the continuous Julian Date instead.
In a standard year, day 60 is March 1. In a leap year, day 60 is February 29 (the leap day), and March 1 shifts to day 61. All dates from March 1 onward have day numbers that are one higher in leap years than in standard years. This shift affects any system that uses day numbers for cross-year comparison — algorithms must account for whether each year in the comparison is a leap year.
The maximum day number is 365 for a standard year and 366 for a leap year. December 31 is always the last day of the year. Leap years occur in years divisible by 4, except century years (e.g., 1900, 2100) which are only leap years if also divisible by 400. So 2000 was a leap year (366 days) but 2100 will not be (365 days).
Start with the day number and subtract the days in each month sequentially until you find the month where the running total exceeds zero but doesn't go below zero. The remaining days (after subtracting all complete months) gives the day of that month. For example, day 200: subtract 31+28+31+30+31+30=181 (through June), leaving 19 days into July = July 19. This calculator does this reverse lookup automatically.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Day Number Calculator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.

Privacy choices

MyCalcBuddy uses necessary storage for the site to work. Optional analytics, notifications, and future advertising features stay off unless you allow them.