Week Number Calculator – ISO Week from Any Date

Week number calculator

ISO 8601 week number and ISO week-year for the date you enter.

Date

Enter the date and tap Calculate.

Week Number Calculator – ISO Week from Any Date

  • ISO week numbers run from 1 to 52 (or 53 in leap configurations), letting teams worldwide anchor schedules to a single, unambiguous reference point.
  • Week 1 is always the week containing the first Thursday of the year — a rule defined by ISO 8601 that prevents the confusion caused by simple January 1 counting.
  • A year can have 53 ISO weeks roughly every five or six years, so checking the exact count matters for payroll, project sprints, and fiscal reporting.
  • This tool instantly converts any calendar date into its ISO week number, week year, and the Monday–Sunday boundaries of that week.
  • Results update in real time, making it easy to cross-reference multiple dates without manual recalculation.

What Is an ISO Week Number?

Every date on the Gregorian calendar belongs to exactly one ISO week. The International Organization for Standardization codified this system in ISO 8601, published in 1988 and revised most recently in 2019. The standard defines a week as running Monday through Sunday, and it assigns Week 1 to the seven-day period that contains the year's first Thursday.

That Thursday-anchor rule has a practical consequence: the first few days of January can legally belong to Week 52 or 53 of the previous year, and the last few days of December can belong to Week 1 of the next year. This is not a bug — it is a deliberate design choice that keeps every ISO week exactly seven days long and prevents partial weeks from distorting comparisons.

The Thursday Rule Explained

Why Thursday? The ISO committee chose the midpoint of the traditional work week so that the majority of days in Week 1 always fall in the new year. Specifically:

  • If January 1 is Monday, Tuesday, Wednesday, or Thursday, it falls in Week 1 of the current year.
  • If January 1 is Friday, Saturday, or Sunday, it falls in Week 52 or 53 of the previous year.

This guarantees that Week 1 always contains at least four days in January, giving it a clear "majority" claim on the new year.


How the Calculation Works

Understanding the math behind ISO week numbering helps you audit results and build your own formulas when needed.

Step-by-Step Formula

  1. Find the day of the week for the target date, where Monday = 1 and Sunday = 7 (ISO day numbering).
  2. Shift the date to the nearest Thursday by adding (4 − day_of_week) days. This gives you the Thursday of the same ISO week.
  3. Identify January 4 of the year in which that Thursday falls — January 4 is always in Week 1 by definition.
  4. Calculate the ordinal difference: subtract the ordinal day number of January 4's Monday from the ordinal day number of your Thursday's Monday.
  5. Divide by 7 and add 1: week_number = (difference ÷ 7) + 1.

Most programming languages expose this directly. In Python, datetime.date.isocalendar() returns a named tuple of (iso_year, iso_week, iso_weekday). In JavaScript, you replicate the steps above because the Date object does not natively expose ISO weeks.

Quick Reference: Key Formula Variables

VariableMeaningExample (2025-03-15)
dISO day of week (Mon=1, Sun=7)6 (Saturday)
thursdayDate + (4 − d) days2025-03-13
jan4January 4 of thursday's year2025-01-04
week_numberfloor((thursday − jan4_monday) / 7) + 111
iso_yearYear of the Thursday, not the input date2025

Notice that iso_year can differ from the calendar year of the original date — a subtlety that trips up many manual calculations.


Why Week Numbers Matter Across Industries

ISO week numbers are not an academic curiosity. They are deeply embedded in operational workflows across dozens of sectors.

Manufacturing and Supply Chain

Factories schedule production runs by week number. A purchase order might read "deliver by W38" — meaning the week starting on the Monday of ISO Week 38. Because every supplier and logistics partner uses the same ISO standard, there is no ambiguity about which seven days are meant, even across country borders.

Project Management and Agile Sprints

Scrum teams commonly run two-week sprints anchored to even or odd ISO weeks. Saying "Sprint 14 covers W22–W23" is far more precise than "the sprint starting around late May," especially when team members are spread across time zones and national holidays vary by country.

Finance and Payroll

Many European payroll systems pay employees on a weekly or bi-weekly cycle keyed to ISO weeks. Accountants use week numbers to reconcile timesheets, calculate overtime thresholds, and produce weekly P&L snapshots. A mismatch between the week number on a timesheet and the one in the accounting system can cause payment delays or audit flags.

Retail and Merchandising

Retailers track same-store sales by week number to enable year-over-year comparisons. Because ISO weeks always start on Monday and end on Sunday, comparing "Week 12 of 2024" with "Week 12 of 2025" is an apples-to-apples comparison of the same seven-day structure — unlike comparing arbitrary calendar ranges that might include different numbers of weekend days.

Agriculture and Seasonal Planning

Crop planting and harvest schedules, particularly in Northern Europe, are often published as week-number calendars. Farmers know that certain varieties should be sown in W14–W16 and harvested in W36–W40, regardless of the exact calendar dates in any given year.


Using the Tool Effectively

The platform is designed for both quick lookups and bulk analysis. Here is how to get the most out of it.

Single-Date Lookup

  1. Open the tool and locate the date input field.
  2. Type or select your target date using the date picker.
  3. The display immediately shows:
    • ISO Week Number (e.g., W11)
    • ISO Year (which may differ from the calendar year)
    • Week Start — the Monday of that week
    • Week End — the Sunday of that week
  4. Copy the result or note it for your records.

Finding the Date Range for a Known Week Number

Sometimes you know the week number and need the actual dates. Use the reverse lookup:

  1. Switch to "Week → Date" mode if the tool offers it, or enter the Monday of the desired week manually.
  2. Enter the ISO year and week number (e.g., 2026, Week 1).
  3. The platform returns January 5, 2026 (Monday) through January 11, 2026 (Sunday) — confirming that Week 1 of 2026 starts on January 5.

Checking 53-Week Years

Not every year has 53 ISO weeks. A year contains 53 weeks only when January 1 falls on Thursday, or when it is a leap year and January 1 falls on Wednesday or Thursday. You can verify this quickly:

YearJan 1 Day53 Weeks?
2015Thursday✅ Yes
2020Wednesday (leap)✅ Yes
2026Thursday✅ Yes
2027Friday❌ No
2032Thursday (leap)✅ Yes

Entering December 31 of any year into the week number calculator will immediately tell you whether that year ends in W52 or W53.


ISO 8601 vs. Other Week-Numbering Systems

ISO 8601 is the dominant international standard, but it is not the only system in use. Knowing the differences prevents costly data mismatches.

US Week Numbering (WEEK_OF_YEAR in SQL / Excel)

The United States traditionally starts weeks on Sunday and counts January 1 as part of Week 1, regardless of the day it falls on. This means:

  • US Week 1 can be a partial week of just one or two days.
  • The US week count can run ahead of or behind the ISO count by one week.
  • Excel's WEEKNUM function defaults to this Sunday-start convention (mode 1). To get ISO weeks in Excel, use ISOWEEKNUM(date) or WEEKNUM(date, 21).

Middle Eastern and Some Asian Calendars

Several countries define the week as starting on Saturday or Sunday for cultural or religious reasons. These systems are entirely separate from ISO 8601 and require explicit conversion when collaborating internationally.

Fiscal Week Calendars (4-4-5)

Retailers and consumer goods companies sometimes use a 4-4-5 fiscal calendar, where months are grouped into 4-week, 4-week, and 5-week periods. This is not ISO-compliant but is internally consistent. When converting 4-4-5 week numbers to ISO weeks, always map through actual calendar dates rather than assuming a 1:1 correspondence.


Practical Examples

Example 1 — New Year's Edge Case

Date: January 1, 2016 (Friday)

Because January 1, 2016 is a Friday, the first Thursday of 2016 is January 7. Therefore, January 1 belongs to the last week of 2015. The ISO result: W53 of 2015, not Week 1 of 2016.

Example 2 — Late December in the New Year

Date: December 31, 2018 (Monday)

December 31, 2018 is a Monday. The Thursday of that week is January 3, 2019 — which falls in 2019. Therefore, December 31, 2018 belongs to W1 of 2019.

Example 3 — Standard Mid-Year Date

Date: July 4, 2025 (Friday)

July 4, 2025 is a Friday. The Thursday of that week is July 3, 2025, which is firmly in 2025. Counting from January 4, 2025 (Saturday, so its week's Monday is December 30, 2024), the calculation yields W27 of 2025.


Integrating Week Numbers into Spreadsheets and Code

Microsoft Excel

=ISOWEEKNUM(A1)          ' Returns ISO week number
=WEEKNUM(A1, 21)         ' Alternative: mode 21 = ISO 8601

To get the Monday of a given ISO week:

=DATE(B1,1,4)+((A1-1)*7)-(WEEKDAY(DATE(B1,1,4),3))

Where A1 = week number and B1 = ISO year.

Google Sheets

Google Sheets supports ISOWEEKNUM natively, identical to Excel's implementation.

Python

import datetime
d = datetime.date(2025, 7, 4)
iso_year, iso_week, iso_weekday = d.isocalendar()
print(iso_year, iso_week)  # 2025 27

JavaScript

function isoWeekNumber(date) {
  const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
  const dayNum = d.getUTCDay() || 7;
  d.setUTCDate(d.getUTCDate() + 4 - dayNum);
  const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
  return Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
}

Tips for Avoiding Common Mistakes

  • Always record the ISO year alongside the week number. Writing "W1" without a year is ambiguous, especially for dates in late December or early January.
  • Do not assume the ISO year equals the calendar year. For dates in the first or last week of January/December, they frequently differ.
  • Verify 53-week years before building annual templates. A payroll template built for 52 weeks will break in a 53-week year if not designed to handle it.
  • Use ISOWEEKNUM in Excel, not the default WEEKNUM. The default mode starts weeks on Sunday and does not comply with ISO 8601.
  • When sharing week numbers internationally, specify the standard. A US colleague's "Week 1" and a European colleague's "Week 1" can refer to different date ranges.

Frequently Asked Questions

What is a week number and how is it defined?

A week number is a numeric label assigned to each seven-day period within a calendar year, typically running from 1 to 52 or 53. The most widely used standard, ISO 8601, defines Week 1 as the week containing the year's first Thursday, meaning weeks always start on Monday.

Which standard does the Week Number Calculator follow?

The calculator follows the ISO 8601 international standard, which is the default in most European countries and widely adopted in business and logistics worldwide. Under this system, a year can have either 52 or 53 numbered weeks depending on how January 1 falls.

Why does a year sometimes have 53 weeks instead of 52?

A year has 53 ISO weeks when January 1 falls on a Thursday, or when it falls on a Wednesday in a leap year. This extra week occurs roughly every five to six years and ensures the ISO week cycle stays aligned with the Gregorian calendar.

How do I find the current week number quickly?

Simply open the Week Number Calculator and it will automatically detect today's date using your device's local clock and display the current ISO week number instantly. No manual date entry is required unless you want to look up a specific date.

What is the difference between ISO week numbering and the US week numbering system?

The US system, used in North America, typically starts weeks on Sunday and defines Week 1 as the week containing January 1, regardless of the day. ISO 8601 starts weeks on Monday and anchors Week 1 to the first Thursday of the year, which can cause the two systems to differ by one week number for dates near the start or end of a year.

Can a date in December belong to Week 1 of the following year?

Yes, under ISO 8601, the last few days of December can fall in Week 1 of the next year if those days belong to the week that contains the next year's first Thursday. For example, December 29, 30, or 31 may be labeled as Week 1 of the upcoming year.

Can a date in January belong to Week 52 or 53 of the previous year?

Absolutely. If January 1, 2, or 3 fall on a Monday, Tuesday, or Wednesday, those days are part of the final ISO week of the preceding year. The calculator handles this edge case automatically and displays the correct year alongside the week number.

How is the Week Number Calculator useful for project management?

Project managers use week numbers to schedule sprints, set milestones, and communicate deadlines in a compact, universally understood format. Referencing "Week 14" instead of a full date range reduces ambiguity across international teams working in different time zones.

Does the calculator work for any historical or future date?

Yes, the Week Number Calculator supports a wide range of dates, both historical and future, as long as they fall within the Gregorian calendar system. This makes it useful for auditing past records, planning future events, or verifying week numbers in contracts and reports.

How do businesses and industries commonly use week numbers?

Retail, manufacturing, logistics, and healthcare sectors rely on week numbers for inventory cycles, production scheduling, and reporting periods. Many enterprise resource planning (ERP) systems and supply chain platforms natively use ISO week numbers as a standard reference unit.

How do I convert a week number back to a specific date range?

To reverse-calculate, identify the Monday of the desired ISO week by finding the date of the first Thursday of that year and counting back to Monday of that week. The calculator can display the full Monday-to-Sunday date range for any week number you enter, eliminating the need for manual arithmetic.

Are week numbers the same across all countries?

Not always. While ISO 8601 is the international standard, the United States, Canada, and some other countries use a Sunday-start, January-1-anchored system that can produce different week numbers for the same date. Always confirm which standard applies when sharing week numbers with international partners.

Why do some calendars show Week 0 at the start of the year?

Some non-ISO calendar implementations label the partial week before the official Week 1 as Week 0. ISO 8601 does not recognize Week 0; instead, those days are assigned to the last week of the previous year. The Week Number Calculator strictly follows ISO 8601 and will never display Week 0.

How accurate is the Week Number Calculator for leap years?

The calculator fully accounts for leap years when computing week numbers, ensuring that the extra day in February does not cause any offset errors. Leap years can influence whether a year ends up with 53 ISO weeks, and the tool handles that determination automatically.

Can I use week numbers for personal scheduling and productivity?

Week numbers are an excellent tool for personal productivity systems, habit tracking, and goal setting because they provide a consistent, numbered framework across the entire year. Many planners and bullet journal enthusiasts use ISO week numbers to organize tasks, review progress, and set weekly intentions with precision.