π Week Number Calculator
ISO 8601 week number for any date, with week boundaries.
What Even Is a Week Number? (And Why Nobody Agrees on Which Day the Week Starts)
Here's a scenario: your project deadline is "end of week 26." You open your calendar, start counting from January, and land on a Friday. Your European colleague does the same thing and lands on a completely different date. Nobody made a mistake β you were just using different systems, and that confusion has tripped up international teams for decades.
Week numbers sound simple. They're not. There are at least three different standards for how to count them, and unless you know which one your employer, client, or software is using, you're flying blind. The good news: once you understand ISO week numbering (the dominant international standard), it clicks immediately and you'll never get confused again.
The Three-Way Fight: ISO vs. US vs. Middle Eastern Week Numbering
In the United States, the traditional approach starts weeks on Sunday. Week 1 is whatever week contains January 1st. This sounds reasonable until January 1st falls on a Saturday β now "week 1" only has one day in it, and somehow January 2nd starts "week 2." That's mildly absurd, but Americans have lived with it for so long that it barely registers as odd.
The Middle Eastern calendar, used in countries like Saudi Arabia and the UAE, often starts the week on Saturday. If you're doing business across those time zones, knowing this distinction matters more than you'd expect.
Then there's ISO 8601, the international standard published by the International Organization for Standardization. The ISO system is now used in virtually all European countries, across most of Asia, in business logistics, airline scheduling, manufacturing, and pretty much any software that needs to communicate dates across borders. The European Union mandates it. Your spreadsheet software uses it. So does the freight tracking system for every major shipping company.
The Brilliant (and Slightly Counterintuitive) ISO Rule
ISO weeks start on Monday and end on Sunday. That part is easy. The interesting bit is how ISO 8601 defines Week 1.
The rule is: Week 1 is the week containing the first Thursday of the calendar year.
Why Thursday? Because Thursday is the middle of the ISO week (Monday=1, Thursday=4). A week that contains January 1st might be mostly in December β if January 1st falls on a Friday, Saturday, or Sunday, more than half of that week is technically in the previous year. The ISO standard says that's not really a "new year" week at all, so it gets labeled as the last week of the previous year instead.
Equivalently, Week 1 can also be defined as the week containing January 4th (since January 4th is always in the first ISO week of its year), or the week containing the first Thursday of January. All three descriptions point to the same week. Pick whichever one clicks for your brain.
When January Belongs to Last Year (And December Belongs to Next)
This is the part that trips people up most. The ISO week year and the Gregorian calendar year don't always match for dates near the turn of the year.
Take January 1, 2023. It was a Sunday. That Sunday was part of a week that ran December 26, 2022 through January 1, 2023. Since Thursday of that week was December 29 β firmly in 2022 β the whole week is labeled ISO Week 52 of 2022. So January 1, 2023 technically lived in ISO Year 2022.
The flip side: December 30, 2024 was a Monday. That week ran December 30, 2024 through January 5, 2025. Its Thursday was January 2, 2025, so the entire week is ISO Week 1 of 2025. December 30th belongs to ISO Year 2025 even though the calendar says 2024.
For most of the year this never matters. It only bites you in that narrow window of the last few days of December and the first few days of January. But when it does bite, it bites hard β especially in payroll systems or any software that groups records by ISO week.
The 53-Week Year: A Calendar Quirk That Appears Every 5-6 Years
Most years have exactly 52 ISO weeks. But occasionally a year has 53. This happens when January 1st falls on a Thursday (since that Thursday anchors Week 1, and the math works out to an extra week fitting in), or when it's a leap year and January 1st falls on a Wednesday.
2015 had 53 weeks. 2020 had 53 weeks. 2026 has 53 weeks. If you work in quarterly finance or do any kind of year-over-year comparison by week number, a 53-week year can completely distort your numbers β "Week 53 sales" might look fantastic simply because there was no Week 53 the previous year to compare against.
Retailers and logistics companies often have internal policies for how to handle 53-week years: sometimes they drop Week 53, sometimes they merge it into Week 52, sometimes they adjust the comparison year. There's no universal answer, but knowing when these years occur is the first step.
Where Week Numbers Actually Show Up in Real Life
Manufacturing and supply chains lean on ISO week numbers constantly. A purchase order might say "deliver by W38" β that's an unambiguous target that doesn't require knowing the exact date or dealing with month boundaries. Project managers in construction, software development, and engineering often plan sprints by week number precisely because it removes ambiguity from scheduling.
Payroll departments that run weekly or bi-weekly pay periods sometimes use ISO weeks to define pay periods, especially in multinational companies. HR software exported from Germany or Sweden almost always uses ISO week numbers in date fields.
The European school system uses week numbers extensively. German parents know their kids' school holiday is "Woche 7" (week 7 of the year). Swedes plan their summer vacations around weeks, not month names. If you rent a vacation cottage in Scandinavia, the rental contract will list available weeks by number.
Even your own phone probably uses week numbers somewhere you haven't noticed. iOS and macOS Calendar apps can display week numbers in a setting that's off by default. Google Calendar has the same feature. Once you turn it on, you start seeing them everywhere.
A Quick Mental Check: Which Week Am I In?
If you ever need a rough mental calculation without a tool handy, here's a reliable shortcut: find the most recent Monday. Count how many complete weeks have passed since January 4th (which is always in Week 1). Add one. That's your ISO week number, give or take one for dates very close to the year boundary.
Or better yet, just use a calculator. The math is simple but involves an edge case or two that's easy to fumble when you're doing it mentally at 9am on a Monday.
Why Software Gets This Wrong So Often
A surprising number of applications implement week numbers incorrectly. The most common mistake is using a simple "divide days by 7" approach from January 1st, which gives you a US-style week number rather than ISO. Another frequent bug is ignoring the year-boundary case, so December 31st shows up as "Week 0" or "Week 53" instead of "Week 1 of next year."
Even Excel has historically been inconsistent. The WEEKNUM function in older versions returns US-style week numbers by default. You need ISOWEEKNUM (introduced in Excel 2013) to get ISO 8601 results. If you're collaborating with someone using an older spreadsheet, double-check which function they're using before you trust any week-number calculations.
The calculator above uses the standard ISO 8601 algorithm: it finds the Thursday of your selected week, looks at which year that Thursday belongs to, and counts weeks from January 1st of that year. This is the same algorithm used by Python's isocalendar(), Java's WeekFields.ISO, and the vast majority of enterprise software.
The Bottom Line
Week numbers are one of those small details that seem trivial until they cause a real problem β a missed deadline, a payroll error, a confused client in another country. Understanding that ISO weeks start on Monday, that Week 1 contains the year's first Thursday, and that the ISO year can differ from the calendar year near January 1st covers about 95% of what you'll ever need to know. The other 5% is just knowing when to double-check your tools.