Day of Year Calculator
Today is day 1 of 365 in 2026, with 364 days remaining. We count the ordinal date from January 1 and mark today on a 365-cell heat-strip — leap-year aware, so the count tops out at 365 or 366.
Day number
1
Days remaining
364
Year length
365
Through year
0.3%
Quick Conversion
Formula: % = (day-of-year ÷ year-length) × 100
The Ordinal Counter & Heat-Strip
January 1, 2026
Day 1
of 365 · 0.27% through the year
Ordinal-Day Converter
Day 159 falls on
June 8
206 days remain in the year
Notable Day Numbers (Common Year)
The ordinal day for common landmarks. Add 1 to any date after February 28 in a leap year.
Month Start → Day-of-Year
| Month (1st) | Common year | Leap year | Days left (common) |
|---|---|---|---|
| January 1 | 1 | 1 | 365 |
| February 1 | 32 | 32 | 334 |
| March 1 | 60 | 61 | 306 |
| April 1 | 91 | 92 | 275 |
| May 1 | 121 | 122 | 245 |
| June 1 | 152 | 153 | 214 |
| July 1 | 182 | 183 | 184 |
| August 1 | 213 | 214 | 153 |
| September 1 | 244 | 245 | 122 |
| October 1 | 274 | 275 | 92 |
| November 1 | 305 | 306 | 61 |
| December 1 | 335 | 336 | 31 |
Prefer a percentage? Try the Year Progress thermometer, or group these days into ISO weeks with the Week of Year wheel.
The Day-of-Year Formula
DOY = floor((midnight today − Jan 1 00:00:00) ÷ 86,400,000 ms) + 1equivalently: DOY = (sum of lengths of months before) + day-of-monthWorked example: for June 8 in a common year, the months before June total 31 + 28 + 31 + 30 + 31 = 151 days, plus 8 = day 159. In a leap year February adds one more day, so June 8 becomes day 160. December 31 is day 365 in a common year and day 366 in a leap year.
Year-Length Reference
| Year | Max DOY | Feb 29? | Type |
|---|---|---|---|
| 2023 | 365 | no | Common |
| 2024 | 366 | yes | Leap |
| 2025 | 365 | no | Common |
| 2026 | 365 | no | Common |
| 2027 | 365 | no | Common |
| 2028 | 366 | yes | Leap |
| 2000 | 366 | yes | Leap |
| 1900 | 365 | no | Common |
| 2100 | 365 | no | Common |
Your Saved Lookups
No lookups saved yet. Tap "Save to history" to record today's ordinal day and revisit it later.
How to Read the Ordinal Counter
- Open the page — the big counter shows today's ordinal day number out of 365 or 366, with the date label above it.
- Find today on the heat-strip: it is the single bright cyan cell with a white ring. Warm cells to its left are days already passed; dark cells to its right are days still ahead.
- Use the ordinal-day converter to type any day number (1–365/366) and read the calendar date, toggling leap year if needed.
- Read the days-remaining figure (year length minus today's number) to know how much of the year is left; the counter rolls forward at local midnight.
- Tap Save to history to store the lookup in localStorage and compare ordinal days across visits.
A Brief History of the Ordinal Date
In 2026, a data engineer writing a partition key for a time-series table needs to know that today is, say, day 159 of the year — a single integer from 1 to 365 (or 366 in a leap year) that uniquely names the date within the year. Day of Year answers that instantly with a big ordinal counter and a 365-cell heat-strip in which exactly one cell — today — glows. The number is the ordinal date defined by the international standard ISO 8601, and it is leap-year aware, so December 31 reads 365 in a common year and 366 in a leap year.
The ordinal date has deep roots. Astronomers have counted days within the year for centuries, and the related Julian Day Number — a continuous count of days since noon Universal Time on January 1, 4713 BCE — was devised by Joseph Scaliger in 1583 and named in honour of his father Julius Caesar Scaliger. While the astronomical Julian Day is a running tally across all of history, the ordinal day-of-year resets each January 1 and is the figure most spreadsheets, databases, and aviation systems mean when they say 'day of year' or 'DOY'.
Whether the year tops out at 365 or 366 is governed by the Gregorian leap rule, introduced by Pope Gregory XIII in 1582. A year is a leap year if it is divisible by 4, except for century years, which must also be divisible by 400. So 2024 and 2000 had 366 days (with February 29 inserted as day 60), while 1900 and 2100 have 365. This calculator detects the rule and the heat-strip draws the correct number of cells, so the ordinal number never drifts.
The leap day shifts every ordinary date after February 28. In a common year, March 1 is day 60 and the Fourth of July is day 185; in a leap year those become day 61 and day 186 because February 29 (day 60) pushes everything after it forward by one. The conversion table on this page shows both columns so you can read the ordinal number for any date in either kind of year without arithmetic.
Day-of-year numbering is quietly everywhere. NASA and the aviation industry stamp the DOY onto telemetry and flight logs; the GPS system counts days within its own epoch; manufacturers print a three-digit Julian date code on perishable goods so a tin stamped 159 was packed on day 159 — June 8 in a common year. Meteorologists average climate data by day-of-year to build the smooth seasonal curves you see in temperature normals.
Knowing the ordinal day turns date math into simple subtraction. The number of days between two dates in the same year is just the difference of their day-of-year numbers; the days remaining in the year is 365 (or 366) minus today's number. That is why this counter pairs naturally with the Year Progress thermometer, which expresses the same position as a percentage, and the Week of Year wheel, which groups these days into ISO weeks.
Everything is computed client-side from a single new Date() call on a one-second interval, so the counter and heat-strip reflect your own time zone and update live as midnight rolls the number forward. The ordinal-day converter lets you turn any day number into a calendar date and back, and a small localStorage history panel stores your saved lookups.
Trusted by data engineers, pilots, and QA inspectors
“I partition tables by ordinal day, and this is my quick sanity-check that day 159 really is June 8 in a non-leap year. The leap column in the conversion table has saved me from off-by-one bugs more than once.”
“Aviation logs and telemetry use DOY constantly. The big ordinal counter plus the strip showing exactly where today sits in the year is a far nicer reference than counting on a paper calendar.”
“Decoding the three-digit pack code on a tin is instant with this — I type the day number into the converter and it tells me the calendar date, leap-year aware. Indispensable on the line.”
“We bin decades of weather data by ordinal day to build seasonal curves. Having a clean tool that respects the leap-year shift after day 60 keeps my February-29 handling honest.”
Love using our calculator?
Related Tools
Related Articles
Dive deeper with our expert guides and tutorials related to Day of Year Calculator