Gregorian Leap Year, Day of Year & ISO Week Calculator

Verify 4/100/400 Gregorian leap-year rules and ordinal day progress.

Days in Selected Calendar Year 366 days
Days Remaining in Year 75 days
ISO 8601 Week Number (of 2028) 42 week
Year Completion Percentage 79.508 %
Inputs
Try:
year
Four-digit Gregorian calendar year (e.g., 2026, 2028, 2100).
day
Ordinal day of the year (1 to 366).
Results & Graph
Days in Selected Calendar Year
366 days
Days Remaining in Year
75 days
ISO 8601 Week Number (of 2028)
42 week
Year Completion Percentage
79.508 %

Days in Selected Calendar Year

Graph 1 • How the inputs feed Leap Year & DOY
Gregorian Leap Year, Day of Year & ISO Week Calculator • Custom Domain Schematic (Calendar & Milestones) T_1T_2T_3T_4Chronological Span & Cadence (Leap Year & DOY) Calendar Year: 2.0k year • Ordinal Day Of Year: 291 day DAYS IN SELECTED CALENDAR 366 days • Days Remaining in Year: 75 days • ISO 8601 Week Number (: 42 week Eq: isLeap = (Y mod 4 == 0 && Y mod
Graph 2 • Days in Selected Calendar Year as Calendar Year changes (40% to 160% of current)
0 days 201.3 days 402.6 days 146.4 811.2year 219.6 1.2kyear 365 1.6kyear 366 2.0kyear 365 2.4kyear 365 2.8kyear 365 3.2kyear
Graph 3 • Calendar Year and Ordinal Day Of Year together Compares Days in Selected Calendar Year when Ordinal Day Of Year is shifted +25% (solid) vs. −25% (dashed).
0 days 261.7 days 523.4 days --- Ordinal Day Of Year @ 75% 256.2 -30% 311.1 -15% 366 +0% 420.9 +15% 475.8 +30%
Summary: 2028 is a 366-day Gregorian leap year. Day 291 is 2028-10-17, in ISO week 42 of 2028, with 75 days remaining.
Summary: 2028 is a 366-day Gregorian leap year. Day 291 is 2028-10-17, in ISO week 42 of 2028, with 75 days remaining.
Interactive chart & math engine powered by CalculatorGraph

Formula: Leap Year & DOY Conversion & Formula

isLeap = (Y mod 4 == 0 && Y mod 100 != 0) || (Y mod 400 == 0)
isLeap = (Y mod 4 == 0 && Y mod 100 != 0) || (Y mod 400 == 0)
  • calendarYear: Calendar Year (year)
  • ordinalDayOfYear: Ordinal Day Of Year (day)

Rounding: Leap years follow the Gregorian 4/100/400 rule; ISO 8601 weeks start on Monday and week 1 holds the first Thursday.

Frequently Asked Questions

Why is 31 December 2024 in week 1 of 2025?

ISO weeks run Monday to Sunday, and week 1 is the week holding the year's first Thursday. 31 December 2024 was a Tuesday, in the same Monday to Sunday week as Thursday 2 January 2025, so that whole week is week 1 of 2025 in ISO terms. The page shows this as week 1 with 2025 in the label, even though the calendar year is still 2024 here.

Why does the page refuse years before the Gregorian calendar?

Before the Gregorian calendar was introduced in the late sixteenth century, dates were kept on the Julian calendar, which has a different leap-year rule. Applying the modern rule backwards would give leap-year answers and weekdays that do not match records of the time. The page accepts only years after the switch, so every result it gives is on a calendar actually in use.

Does days remaining include the day I entered?

No. For day 291 of 2028 the page shows 75 remaining, which is 366 minus 291, so it counts only the days after the one entered. If you treat today as still to come, add one. The completion percentage uses the opposite view and counts the entered day as already done.

How can I tell quickly whether a century year is a leap year?

Divide it by 400 and look for a remainder. If it divides exactly, it is a leap year, like the year two thousand. If not, it is a common year, like nineteen hundred and twenty-one hundred. For years that are not centuries, the simple test of divisibility by 4 is enough. The page applies all three rules automatically, so you can confirm by entering the year.

Why is day 60 a different date in 2028 and 2100?

2028 is a leap year and 2100 is not. In 2028, 29 February is day 60, so the page shows 2028-02-29. In 2100 there is no 29 February, so day 60 is 2100-03-01. Every later ordinal day is likewise one calendar date earlier in a leap year, which is why ordinals only make sense alongside the year.

What happens if I enter a day larger than the year allows?

The page shows a message giving the valid range for that year, such as 1 to 365, instead of a result. It does not shift the day to the nearest valid one. Day 366 is accepted only in leap years like 2024 and 2028, and day 0 or a decimal day is refused in any year. Correct the input and the figures appear.

Which years have 53 ISO weeks?

A year has 53 ISO weeks when 1 January is a Thursday, or when it is a leap year and 1 January is a Wednesday. All other years have 52. 2028 starts on a Saturday, so it has 52 ISO weeks even though it has 366 days. Entering the last day of a year on the page shows which ISO week and year it falls in.

Can I convert a calendar date into an ordinal day with this page?

Not directly, since the input is the ordinal day itself. To find it, add the lengths of the months before your date and then the day of the month, remembering February has 29 days in a leap year. For 17 October 2028 that sum is 291 days. You can then enter it to see the remaining days and percentage.

Why does day 1 show 0.273 per cent complete rather than zero?

The completion line counts the entered day as finished, so day 1 of 2028 is 1 divided by 366, about 0.273 per cent, and the last day reaches 100 per cent. If you want the share of the year elapsed at the start of the day, subtract one from the day before dividing.

Does the leap-year rule ever change?

The Gregorian rule has not changed since it was introduced, and the page applies it to every year it accepts, including far-future ones like 2100 and later. Astronomers note the rule is not perfect over many thousands of years, but no change has been adopted. For practical calendar work the 4, 100 and 400 test is the one to use.

Why does the week line name a year in brackets?

Because the ISO week year can differ from the calendar year for a few days at each end of the year. Day 1 of 2028 is in week 52 of the previous year, and day 366 of 2024 is in week 1 of 2025 instead. Naming the ISO year removes the ambiguity. For most days, like day 291 of 2028, the two years are the same.

Day 291 of 2028: a leap year, 75 days left

Two inputs drive everything here: a year and an ordinal day, the day's position counted from 1 January. The defaults are the year 2028 and day 291 within it. The page reports that 2028 has 366 days, that 75 days remain after day 291, that the date falls in ISO 8601 week 42 of 2028, and that the year is 79.508 per cent complete.

The sentence under the result also gives the calendar date: day 291 of 2028 is 2028-10-17, a Tuesday. Because 2028 is a leap year, 29 February pushes every later date one place along, so in a common year day 291 is 18 October instead. That one-day shift is the main reason ordinal days need the year to be read correctly.

The remaining figure counts the days after the one you entered: 366 minus 291 gives 75. The completion figure treats the chosen day as finished, 291 divided by 366, which is 79.508 per cent. Both conventions are reasonable, but they are not the only ones, so if you are counting down to a deadline decide whether the day itself counts before you quote a number.

The 2100 preset shows a common year. Day 60 of 2100 is 2100-03-01, not 29 February, because 2100 is not a leap year. The page reports 365 days, 305 remaining, ISO week 9 and 16.438 per cent complete. In 2028 the same day 60 is 29 February.

The 4, 100 and 400 rules, checked by hand

The leap test on the page is the full Gregorian rule. A year divisible by 4 is a leap year, except that a year divisible by 100 is not, except that a year divisible by 400 is a leap year after all.

Walk the presets through it. 2028 divides by 4 and not by 100, so it is a leap year with 366 days. 2024 divides by 4 and not by 100, so it is also a leap year, and its day 366 is 31 December. 2100 divides by 100 but not by 400, so it will be a common year, which is what the page reports.

The century years are where people slip. Nineteen hundred divides by 100 but not by 400, so it was a common year, and I confirmed the page gives it 365 days. The year two thousand divides by 400, so it was a leap year, and the page gives it 366 days. 2100 will be common again. Anyone who learned only the every-fourth-year rule gets two of those three wrong.

The rule produces 97 leap years in every 400 years. That is what keeps the calendar year close to the solar year over centuries, where the simpler four-year rule would drift by roughly three days every 400 years.

How the ISO 8601 week and its year are reported

The third line gives a true ISO 8601 week number, and the label names the ISO year it belongs to, which is not always the calendar year you typed. ISO weeks start on Monday, and week 1 of a year is the week that contains its first Thursday. That ties weeks to the weekday pattern, not to the plain day count.

For the default, day 291 of 2028, the line reads week 42 of 2028, no surprises. Most days of the year are this simple: ISO year and calendar year agree, and the week number is what you would expect.

The ends of the year are where it changes. 1 January 2028 is a Saturday, so the page puts day 1 of 2028 in ISO week 52 of the previous year, and the label switches to that year. The 2024 preset shows the opposite end. Day 366 of 2024 is 2024-12-31, a Tuesday, and the line reads week 1 of 2025, because the week that contains that Tuesday also contains the first Thursday of 2025, which makes it week 1.

So always read the year in the label along with the week number. Week 1 on its own is ambiguous at a year boundary; week 1 of 2025 is not. If you are copying an ISO week into a report or a timesheet, copy both parts.

Working out the ISO week number yourself

To check the page's ISO week by hand, there is a short formula. Take the ordinal day, subtract the ISO weekday number (Monday is 1, Sunday is 7), add 10, divide by 7 and drop the fraction.

For day 291 of 2028, a Tuesday, the weekday number is 2. Day 291 minus 2, plus 10, divided by 7 gives 42 and a fraction, so ISO week 42. That matches the page.

For day 1 of 2028, a Saturday, the weekday number is 6. One minus 6 plus 10 is 5, and 5 divided by 7 is less than 1, giving week 0. A zero means the date belongs to the last ISO week of the previous year, which is what the page shows, week 52 of the year before.

For day 366 of 2028, a Sunday, the formula gives 52. If the formula ever gives 53, check whether the year really has 53 ISO weeks. That happens only when 1 January is a Thursday, or when a leap year starts on a Wednesday. Otherwise week 53 is actually week 1 of the next year.

You also need the weekday for the date. The page gives the calendar date in its sentence but not the weekday, so use any calendar or a spreadsheet's weekday function.

Where each year boundary catches people out

ISO week dates exist so that every week belongs wholly to one year, which means the ISO year and the calendar year disagree for a few days at each end of the calendar.

In January, up to three days can belong to the previous ISO year. That happens when 1 January falls on a Friday, Saturday or Sunday. 2028 starts on a Saturday, so 1 and 2 January 2028 sit in week 52 of the year before. 2100 starts on a Friday, so its first three days belong to the last ISO week of the year before it.

In late December, up to three days can belong to week 1 of the next ISO year. That happens when 31 December falls on a Monday, Tuesday or Wednesday. 31 December 2024 was a Tuesday, which is why the 2024 preset reports week 1 of 2025 for that day. A payroll system or project plan keyed to ISO weeks will file those days under the next year.

The day-of-year count on this page has no such ambiguity. Day 1 is always 1 January and the last day is always 31 December, day 365 or 366 depending on the year. That is why ordinal days are handy for data work: they are monotonic within a year and never jump between years.

Week numbering also varies by country and software. Some systems start weeks on Sunday and call the week containing 1 January week 1. Before matching week numbers between two systems, check which rule each one uses.

Valid years and days, and dates before the Gregorian calendar

Both fields take whole numbers only. The day must run from 1 to 366 in a leap year, or 1 to 365 in a common year, and anything outside that range brings up a message naming the valid range for that year instead of a result. Day 366 in a common year is refused, not shifted, which is the behaviour you want: a silent adjustment would give a confident answer to the wrong question.

The year must be a four-digit Gregorian year, starting with the first full year after the calendar was introduced in the late sixteenth century. Earlier years are refused rather than calculated on a calendar nobody used at the time.

That limit matters for history. Before the switch, most of Europe used the Julian calendar, which made every fourth year a leap year, century years included. Nineteen hundred, for example, was a leap year under the Julian rule but not the Gregorian one.

Countries also switched at different times, some centuries after the first adopters. If you are working with historical documents, check which calendar the source used before trusting any leap-year answer or day count.

Using ordinal days in real work

Ordinal dates, written as year and day such as 2028 day 291, turn up in logging, scientific data sets and manufacturing date codes. They sort correctly, they make 'how many days since' arithmetic trivial within a year, and they avoid month-length confusion.

The leap day is the trap. Every day from 1 March onward has an ordinal one higher in a leap year. Day 60 is 29 February in 2028 but 1 March in a common year. If two datasets both say day 291 but one is from a leap year, they describe different calendar dates. When converting ordinals back to dates, always pass the year as well.

For differences across years, add up the year lengths in between. From day 291 of 2028 to the same day of the next year is not 365 days: you count the 75 days left in 2028 plus 291 in the new year.

The percentage line is a quick progress gauge, for example for an annual target. At day 291 of 2028 the year is 79.508 per cent gone. Early in a common year the figure is slightly higher than in a leap year for the same day number, because the year is one day shorter: day 60 is 16.438 per cent of 2100 but slightly less of a leap year.