ToolNestr

Day of Year Calculator

Select any date to see its day of the year, remaining days, week number, quarter and other calendar statistics.

Reviewed by the ToolNestr Editorial Team — July 2026

Day of Year
Days Remaining
Week Number
Quarter
Month
Days in Month
Leap Year?
Day of Week

Progress through the year

Year progress0.0%
📋

Project Manager

Track project milestones by day of year. Know exactly which day your deliverable falls on and how many days remain until the deadline.

🍎

Teacher

Plan lesson schedules and semester calendars using day numbers. Easily determine the school day count for curriculum planning.

📅

Event Planner

Calculate days until an event and track the ordinal date for invitations, countdowns, and coordination with vendors.

💻

Developer

Use day of year for date serialization, logging with ordinal dates, and implementing custom date-based features.

Day of year milestones

DescriptionDayDate
First day of year1Jan 1
100th day100Apr 10 (common) / Apr 9 (leap)
200th day200Jul 19 (common) / Jul 18 (leap)
300th day300Oct 27 (common) / Oct 26 (leap)
Last day (common)365Dec 31
Last day (leap)366Dec 31

How day-of-year calculation works

The day-of-year (ordinal date) is calculated by summing the total days in all preceding months and adding the current day of the month. For non-leap years, January has 31 days, February has 28, March has 31, and so on. In leap years, February has 29 days, shifting all subsequent dates by one day.

Worked example

Date: March 15, 2026 (non-leap)
January: 31 days
February: 28 days
Day of year: 31 + 28 + 15 = day 74

How to use the day of year calculator

1

Select a date

Click the date picker and choose any date from any year.

2

View statistics

See day number, week number, quarter, days remaining, and more.

3

Track progress

Use the progress bar to visualize how far through the year you are.

Day of year tips

Leap years shift dates

In leap years, all dates after February 28 shift by one day. Day 100 is April 9 instead of April 10. Always check if the year is a leap year when comparing ordinal dates.

Week number vs day of year

Week number (ISO 8601) does not align perfectly with day of year. Week 1 can start in December of the previous year, and week numbers reset each year.

Ordinal suffix rules

The suffix is "st" for numbers ending in 1 (except 11), "nd" for 2 (except 12), "rd" for 3 (except 13), and "th" for everything else. For example: 1st, 2nd, 3rd, 4th, 11th, 12th, 13th, 21st.

What is day of year?

The day of year (also called ordinal date) is a sequential number assigned to each day of the year. January 1 is always day 1, and December 31 is day 365 (or 366 in a leap year). This system ignores month boundaries, making it useful for date arithmetic, scientific data, and programming.

Leap years

Leap years add an extra day (February 29) to keep the calendar year synchronized with the astronomical year. The Earth takes approximately 365.242 days to orbit the Sun, so we add a leap day every 4 years, except on century years not divisible by 400. This means 2000 was a leap year, but 1900 was not.

Ordinal dates

An ordinal date combines the year and day of year into a compact format like 2025-150 or 2025150. This format is popular in logistics, inventory systems, and data science because it provides a monotonic date representation that is easy to sort and compare.

Uses in programming

Day of year is used extensively in software development for date comparison, calculating date differences, implementing recurring schedules, and sorting data chronologically. Languages typically provide built-in functions (like JavaScript's getDay() for week day or custom logic for day of year) making it straightforward to implement.

When to use day of year calculations

Day of year calculations are useful across many professional and personal scenarios. Project managers track milestones by day number to measure progress independent of month boundaries. Knowing that a deliverable falls on day 200 provides a clearer picture of annual progress than saying it is in late July. Event planners use the day number to calculate precise intervals between dates, such as the number of days until a conference or the elapsed time since a project kickoff. In education, teachers and administrators track school days using ordinal dates to plan curriculum pacing and ensure required instructional hours are met. Software developers use day of year extensively for date serialization, log file naming, and implementing recurring schedules. The ordinal date format YYYY-DDD is compact and sortable, making it ideal for data storage and comparison. Scientists and researchers working with time-series data often use day of year as the temporal axis, simplifying analysis of seasonal patterns and annual cycles without dealing with varying month lengths. In logistics and supply chain management, ordinal dates appear on shipping labels, inventory tracking systems, and production schedules. Farmers and agricultural planners track growing degree days and planting schedules using day of year for precise timing. The common thread is that day of year provides a monotonic, month-independent count that simplifies date arithmetic and comparison across different years.

Limitations and considerations

Day of year calculations have several important limitations to keep in mind. The most significant is the leap year effect. A date like March 1 corresponds to day 60 in a common year but day 61 in a leap year because February has 29 days instead of 28. This shift affects all dates after February 28 and must be accounted for when comparing ordinal dates across different years. Simple day number comparisons between a leap year and a common year will be off by one day for all dates after February 28. The ISO week number shown alongside the day of year follows a different system. Week 1 is defined as the week containing the first Thursday of the year, which can start in late December of the previous year. This means the week number and day of year do not align neatly, and week 53 may occur in some years. Day of year calculations also depend on accurate date input. Timezone differences can shift the date boundary, particularly for users near the International Date Line. The tool uses the local date selected by the user, but if the date is interpreted differently due to timezone settings, the day of year value may differ from what another observer would calculate. For global teams working across timezones, it is important to agree on a reference timezone when sharing ordinal dates to avoid off-by-one discrepancies.

Frequently asked questions

What is the day of year?

The day of year (ordinal date) is a number from 1 to 365 (or 366 in leap years) representing the sequential day count starting from January 1 as day 1.

How is day of year calculated?

It is simply the count of days from January 1 to the selected date, inclusive. For example, February 1 is day 32 (31 days of January + 1 day of February).

What is a leap year?

A leap year occurs every 4 years (except century years not divisible by 400). It has 366 days because February has 29 days instead of 28.

How do I know if a year is a leap year?

A year is a leap year if it is divisible by 4 but not by 100, unless it is also divisible by 400. 2024 and 2000 are leap years; 1900 is not.

What is week number?

Week number follows the ISO 8601 standard where the week containing the first Thursday of the year is week 1. Week 1 can start in late December of the previous year.

What is the ordinal suffix?

The ordinal suffix is the "st", "nd", "rd", or "th" appended to a number. For day of year: 1st, 2nd, 3rd, 4th, 11th, 12th, 13th, 21st, etc.

Why is day of year useful in programming?

Day of year is used in date arithmetic, file naming conventions, scientific data processing, and any application that needs to track day-by-day progress without month boundaries.

Is day 60 always March 1?

In non-leap years, day 60 is March 1. In leap years, day 60 is February 29 (since February has 29 days, so March 1 becomes day 61).

What is the maximum day of year?

The maximum is 365 in a common year and 366 in a leap year. December 31 is always the last day of the year.

What is an ordinal date?

An ordinal date is a date format that combines the year and the day of year, e.g., 2025-150 for May 30, 2025 (the 150th day of the year). It is commonly used in logistics and programming.

All tool categories

Time & Date (15 tools)
🌐 Networking & IP Tools (36 tools)
🧮 Everyday (26 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
⚛️ Physics (48 tools)
🧪 Chemistry (50 tools)
🧬 Biology (50 tools)
🏠 Construction & Home Improvement (105 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)