DateBuffet

ISO Week Numbers Explained (Week 1 to Week 53)

5 min readUpdated September 2026
Calendar grid of weeks

If your team says "let's ship in week 32", they are almost certainly using ISO week numbers. It is the numbering built into most European calendars and business software — and it has a couple of rules worth understanding.

Weeks start on Monday

Under ISO-8601, every week starts on Monday and ends on Sunday. This differs from the United States, where calendars often start the week on Sunday. If you compare a US calendar with a European one, the same date can appear in different columns.

The standard numbers the days as well: Monday is day 1 and Sunday is day 7. That clashes with several programming languages, where Sunday is 0 and Saturday is 6, and the mismatch is a reliable source of off-by-one bugs whenever a weekday index is used to find the start of a week. Convert between the two scales deliberately instead of assuming they agree.

Week 1 holds the first Thursday

Week 1 is defined as the week that contains the year's first Thursday — equivalently, the week containing January 4. This means the first few days of January can belong to the last week of the previous year, and the last days of December can belong to week 1 of the next year.

The rule has several equivalent forms, and it helps to know them all: week 1 is the week holding the first Thursday, the week holding January 4, and the first week with at least four of its days in the new year. They always agree. One practical consequence is that January 1 belongs to week 1 only when it falls on a Monday, Tuesday, Wednesday or Thursday; on a Friday, Saturday or Sunday it belongs to the previous year's final week.

Week-year vs calendar year

Because of that rule, a date carries a "week-year" that can differ from its calendar year at the boundaries. December 31, 2026 might report as week 53 of 2026 or week 1 of 2027 depending on the weekday. A year has 52 or 53 ISO weeks. DateBuffet's week-number tool shows the week, the week-year, the day of the year and the quarter so nothing is ambiguous.

Which years are long is entirely predictable. A year has 53 ISO weeks when it starts on a Thursday, or when it is a leap year starting on a Wednesday — equivalently, when December 31 falls on a Thursday. That makes 2015, 2020, 2026, 2032 and 2037 long years, and 71 of every 400 years long in total. Every other year has 52.

Writing a week date

ISO 8601 gives these values a written form: 2026-W32 is the thirty-second week of week-year 2026, and 2026-W32-3 is the Wednesday of that week. The week number always takes two digits, so the fifth week is W05, never W5. The same standard defines an ordinal date as well — 2026-241 — counting days from the start of the year.

Both forms sort correctly as plain text, which is why they turn up in file names, build identifiers and report titles. The one thing to keep beside them is the year. A bare "week 1" is ambiguous every January, because the days it covers can sit in two different calendar years, and dropping the week-year is what turns a tidy label into a support ticket.

Other week numbering systems

ISO weeks are not the only scheme in use. North American broadcast and retail calendars commonly start the week on Sunday and treat the week containing January 1 as week 1, which can put the same date one number ahead of its ISO value. Parts of the Middle East and North Africa start the week on Saturday, and many retailers run a 4-5-4 fiscal calendar whose weeks are aligned to their financial year rather than to January.

So "week 32" only means something once everyone agrees on the system. Spreadsheets make the choice explicit: Excel's WEEKNUM function takes a return-type argument in which 21 selects the ISO definition, while ISOWEEKNUM always uses it. In SQL, MySQL's WEEK() has numbered modes and WEEKOFYEAR() is the ISO one. Picking the wrong variant shifts an entire report by a week without producing any visible error.

The 53rd week in payroll and reporting

A long year is an operational event, not a curiosity. Weekly payroll runs 53 times instead of 52, and fortnightly payroll occasionally runs 27 times, which changes annual totals, accruals and the per-period deductions that were sized for a normal year. Retail and manufacturing calendars built from 52 weeks have to insert the extra week somewhere, usually at the end of the fiscal year.

It also breaks year-on-year comparisons. A 53-week year contains about two per cent more trading days than a 52-week one, so revenue grows without anything actually improving, and the following year shrinks for the same reason. Reports that compare week 32 with week 32 stay honest; reports that compare whole years across such a boundary need the extra week stripped out first.

Where week numbers go wrong in software

The most common bug is pairing a week number with the wrong year. Formatting December 31, 2018 as a week date produced "2018-W01" in a great deal of software, because the code asked for the calendar year alongside the ISO week instead of the week-year. In Java and the formats derived from it, uppercase YYYY means week-year and lowercase yyyy means calendar year — one character apart, and wrong for a few days every January.

Two habits prevent it. Derive the week and the week-year from the same call rather than from two separate ones, and round-trip the output: converting a week date back into a calendar date and comparing it with the original exposes the mismatch immediately. Test cases dated December 29 to January 4 are worth keeping permanently, because those are the only days on which the error shows up.

The takeaway

ISO weeks start on Monday, week 1 contains the first Thursday, and the week-year can differ from the calendar year at year boundaries. Check any date in the week-number tool.

Related tool
Week Number

ISO week number, day of the year, quarter and leap-year facts.