Week Number Calculator

What week of the year is it?

Time & Date ISO 8601 + US Two modes
Rate this calculator · 4.3 (4)

Week number & weeks between dates

ISO 8601 standard · US system · 53-week year aware

Instructions — Week Number Calculator

1

Pick the mode

"Week number" finds which week of the year a given date falls in - useful for project timelines, retail planning, payroll cycles, and pregnancy tracking. "Weeks between dates" counts how many weeks (and decimal weeks) separate two dates.

2

Choose ISO or US

ISO 8601 is the international standard - week starts Monday, week 1 contains the first Thursday of the year. Used across Europe, in international business, and as the SQL/JSON standard. US treats Sunday as the start, and week 1 always contains January 1. Excel uses US by default.

3

Read the results

The week number, the day-of-week index, the dates the week starts and ends, and how many weeks the full year contains (52 or 53 under ISO). In the "between dates" mode you get full weeks, decimal weeks, and total days.

Format: ISO weeks are written YYYY-Www, so 2026-W19 means week 19 of 2026. ISO 8601 also supports YYYY-Www-D, where D is 1 (Mon) through 7 (Sun). 2026-W19-3 is the Wednesday of week 19.
53-week years: a year has 53 ISO weeks when it starts or ends on a Thursday. 2026, 2032 and 2037 are the next examples. About 71 years out of every 400 have 53 weeks.

Formulas

There are two systems in common use. ISO 8601 is the international standard defined by the International Organization for Standardization; the US version is older and is what Excel uses by default. The two systems disagree by one or two weeks at the start and end of every year.

ISO 8601 week number
$$ W = \left\lceil \frac{D - d + 10}{7} \right\rceil $$
D = day of the year (1-366), d = ISO day of the week (1=Mon, 7=Sun). Adds 10 because of the Thursday-anchor rule (week 1 contains the year's first Thursday).
US week number
$$ W = \left\lceil \frac{D + j}{7} \right\rceil $$
D = day of the year, j = the day-of-week (0=Sun) for January 1. Always assigns week 1 to the week containing January 1.
Total weeks per year (ISO)
$$ N = \begin{cases} 53 & \text{if year starts or ends on Thursday} \\ 52 & \text{otherwise} \end{cases} $$
52 weeks of 7 days is only 364 days. The leftover 1 or 2 days accumulate every 5-6 years and create a 53-week ISO year. Exactly 71 in any 400-year cycle.
Weeks between two dates
$$ W_{between} = \frac{|d_2 - d_1|}{7} $$
Full weeks = floor of the result; remainder days = mod 7. 45 days between two dates is 6 weeks and 3 days, or 6.43 weeks as a decimal.
ISO date format
$$ \text{YYYY-Www-D} $$
2026-W19-4 means: ISO year 2026, week 19, day 4 (Thursday). The hyphens can be omitted: 2026W194. Defined in ISO 8601 part 1.
Days in 52 vs 53 ISO weeks
$$ 52 \times 7 = 364 \;\;\; 53 \times 7 = 371 $$
A 52-week ISO year has 364 days; the real year has 365 or 366. The "missing" 1-2 days are absorbed when the next ISO year begins, which is why ISO 1 January is not always January 1.

Reference

53-week years (ISO 8601)
YearWeeksJan 1 falls inDec 31 falls in
2020532020-W012020-W53
2021522020-W532021-W52
2025522025-W012026-W01
2026532026-W012026-W53
2027522026-W532027-W52
2032532032-W012032-W53
2037532037-W012037-W53

ISO 8601 vs US week numbering

The two systems differ at year boundaries and on the start-of-week day. They never agree perfectly across a full year.

ISO 8601
PropertyValue
First day of weekMonday (day 1)
Last day of weekSunday (day 7)
Week 1 anchorContains first Thursday
Min days in week 14
Year-boundary weeksBelong to one year only
Total weeks/year52 or 53
Used byEurope, SQL, JSON, ISO standards
US system
PropertyValue
First day of weekSunday (day 1)
Last day of weekSaturday (day 7)
Week 1 anchorContains January 1
Min days in week 11
Year-boundary weeksCan be partial
Total weeks/yearUp to 54 (rare)
Used byUSA, Excel WEEKNUM default

Note: Excel's WEEKNUM defaults to system 1 (US, Sunday start). For ISO-8601 weeks in Excel, use ISOWEEKNUM() or WEEKNUM(date, 21).

Article — Week Number Calculator

Week numbers explained: ISO 8601, the US system, and the 53-week year

There are two common ways to number weeks. ISO 8601, the international standard, puts Monday at the start and defines week 1 as the week containing the year's first Thursday. The US system puts Sunday at the start and says week 1 always contains January 1. Most years have 52 weeks; under ISO, 71 years out of every 400 have 53. The calculator above runs the math in both systems, and also counts weeks between any two dates.

If you only want today's week number, pick "Week number" mode, leave the date at today, and switch between ISO and US to see how the two answers differ. For project planning, payroll, retail, or pregnancy tracking, the "Weeks between dates" mode gives total weeks, decimal weeks, days, and approximate months in a single pass.

What week of the year is it?

The answer depends on both the date and which numbering system you use. In ISO 8601 the year runs from the Monday of week 1 to the Sunday of week 52 (or week 53 in some years). In the US system the year matches the calendar - week 1 always contains January 1, and the final week ends on December 31 even if that means the last week is only 1 day long.

On a Tuesday in mid-May 2026, ISO says "2026-W21-2" (week 21, day 2). The US system says "week 20" - one off, because the US calendar already passed January 1 into a partial first week, while ISO started counting from a complete Monday-to-Sunday week.

Did you know

ISO 8601 was first published in 1988, drawing on European and military date conventions that go back to the early 20th century. The standard is now used in SQL date literals, JSON Schema, RFC 3339, and the date-time fields of HTTP headers. It is the closest thing the world has to a universal date format - and the week-numbering rules are part of the same document.

ISO 8601 versus the US system

The two systems differ on two things: which day starts the week, and how week 1 is identified.

ISO 8601
Mon to Sun
Week 1 = first with Thursday
US (Excel default)
Sun to Sat
Week 1 contains Jan 1

ISO 8601 is the standard for any international software, scientific data, business reporting across borders, and modern programming languages. The US system is what you get if you do nothing in Excel and what most American payroll systems use.

  • ISO 8601 = Monday-start, first Thursday rule, format YYYY-Www
  • US = Sunday-start, week 1 contains January 1, partial weeks allowed
  • Middle East variant = Saturday-start (Sunday is the start of the work week)
  • Excel default = US (WEEKNUM with no system argument)
  • ISO in Excel = ISOWEEKNUM() or WEEKNUM(date, 21)

How ISO week 1 is determined

The simplest rule: ISO week 1 is the week containing the first Thursday of the year. Equivalently, it is the week containing January 4. Equivalently again, it is the first week that has at least 4 days in the new year. All three statements identify the same week.

The choice of Thursday is mathematically convenient. A week's "year" under ISO is the year of its Thursday. Since Thursday is the middle day of a Monday-to-Sunday week (day 4 of 7), every Thursday in the Gregorian year unambiguously belongs to one and only one ISO year. Counting Thursdays in a year tells you whether the year has 52 or 53 ISO weeks: years with 53 Thursdays are 53-week years.

ISO week 1 alternative rules (all equivalent)
Week containing the first Thursday = Thursday rule
Week containing January 4 = Jan 4 rule
First week with ≥4 days in the new year = Majority rule
Week of the year-start Monday closest to Jan 1 = Closest Monday rule

Why some years have 53 weeks

The arithmetic is simple. 52 weeks of 7 days is 364 days, but a Gregorian calendar year is 365 (or 366 if it is a leap year). The leftover 1 or 2 days accumulate. After about 5 or 6 years, those leftovers add up to enough that the next year contains 53 Thursdays, which under ISO 8601 means it has 53 weeks.

In a 400-year Gregorian cycle there are exactly 71 ISO years with 53 weeks and 329 with 52. The ratio matches the formula: 400 normal-week years times 364 days = 145,600 days, plus 71 extra weeks times 7 days = 497 days, giving 146,097 days - the exact length of the Gregorian 400-year cycle (with 97 leap days). The mathematics ties out to the day.

Tip

Retail and finance software needs to know about 53-week years. Stores running a "52 weeks of sales" report break when they hit one - they suddenly have an extra week to allocate. The 4-5-4 retail calendar used by NRF members handles this by inserting a 53rd week every 5-6 years to keep quarterly periods aligned with the Gregorian year.

The January 1 puzzle

Under ISO 8601, January 1 is not always in week 1. If January 1 falls on a Friday, Saturday, or Sunday, it belongs to the last week of the previous ISO year - week 52 or 53. This is a regular source of confusion and bugs.

ISO year vs calendar year

The "year" part of an ISO week date is not always the calendar year. January 1, 2023 was a Sunday - it belongs to ISO week 52 of 2022. The full ISO date is 2022-W52-7. Software that parses ISO weeks while assuming the year matches the calendar year will get this wrong about three years out of seven. Always extract the year, week, and day-of-week from the ISO date as a unit.

The reverse case is also possible. If January 1 falls on a Monday, Tuesday, Wednesday, or Thursday, it is the start of ISO week 1 of the new year and matches the calendar year. So in any given year the ISO and calendar years agree at the boundaries about four times out of seven.

Excel and the WEEKNUM trap

Excel's WEEKNUM function has two return modes. Mode 1 (the default) is the US system - Sunday-start, week 1 contains January 1. Mode 2 is also US but starts the week on Monday. Mode 21 is the true ISO 8601 system. For ISO output, the cleaner option is the dedicated ISOWEEKNUM(date) function, available since Excel 2013.

The default behaviour is the source of countless silent errors in international spreadsheets. A European payroll spreadsheet imported into a US-based Excel install will quietly shift its week numbers by one. Project plans built around "week 1 of January" will not line up between a US and a European team. The fix is always the same: use ISOWEEKNUM() or specify mode 21 in WEEKNUM().

Weeks between two dates

For "how many weeks until" or "how many weeks since" calculations, the math is just total days divided by 7. The whole-number part is full weeks; the remainder is extra days. For pregnancy tracking, project planning, and pet vaccination schedules, decimal weeks - days divided by 7 with no rounding - is usually the most useful form.

Common reference points: a typical full-term pregnancy is 40 weeks (280 days) from the last menstrual period. A standard quarter is 13 weeks (91 days). A US fiscal year often runs 52 weeks (364 days) with a 53rd week inserted every five or six years. A typical mortgage is 360 monthly payments, equivalent to 1,560 weeks at 4.33 weeks per month.

The 4-5-4 retail calendar

Walmart, Target, Macy's, and most large US retailers do not use the standard Gregorian calendar internally. They use a 4-5-4 calendar: each quarter contains 13 weeks split as 4 weeks, 5 weeks, 4 weeks. Every "month" starts on a Sunday and ends on a Saturday. The whole year is exactly 52 or 53 retail weeks.

The point is to make year-over-year comparisons clean. February 2025 and February 2026 in a Gregorian calendar contain different numbers of weekends and may include different holidays - so sales numbers are not directly comparable. February in a 4-5-4 calendar is always the same 4 or 5 weeks, starting on a Sunday, ending on a Saturday. Two equivalent periods, week for week, day-of-week for day-of-week. The National Retail Federation publishes the 4-5-4 calendar template that hundreds of US chains use. Every five or six years it adds a 53rd week to absorb the Gregorian drift.

FAQ

It depends on the date you check and which system you use. Type today's date into the calculator above and switch between ISO 8601 (international, Monday start) and US (Sunday start, Excel default) to see both numbers. The two systems can disagree by one or two weeks at the start and end of every year.
Most years have 52 weeks plus 1 or 2 extra days. Under ISO 8601, a year has 53 weeks if it starts or ends on Thursday. Out of every 400-year Gregorian cycle, 71 years have 53 ISO weeks and 329 have 52. The next 53-week years are 2026, 2032, and 2037.
The international standard for week dates, published by ISO. The week starts Monday, the first week of the year is the one containing the year's first Thursday (which is also the week containing January 4). Format is YYYY-Www, so 2026-W19 means the 19th week of 2026.
Monday is the start of the work week in most of the world, and ISO 8601 was designed for international business and scientific data exchange. The Monday start also makes the weekend (Saturday + Sunday) fall at the end of the week, which simplifies workweek reporting. The standard was first published in 1988.
Because 52 weeks of 7 days is only 364 days, but a calendar year has 365 or 366 days. The leftover 1 or 2 days build up across years. A year has 53 ISO weeks whenever 1 January falls on Thursday, or 31 December falls on Thursday (for a leap year). Both conditions are equivalent to the year containing 53 Thursdays.
Subtract the dates to get total days, then divide by 7. The whole-number part is full weeks; the remainder is extra days. 45 days = 6 weeks and 3 days = 6.43 decimal weeks. The calculator above does this automatically in the “weeks between dates” mode.
Excel's WEEKNUM() function defaults to the US system - Sunday-start, week 1 always contains January 1. For ISO 8601 weeks in Excel, use ISOWEEKNUM(date) or WEEKNUM(date, 21). The mismatch is responsible for many spreadsheet bugs in international payroll and project tracking.
In the US system, January 1 is always in week 1. In ISO 8601 it depends on which day of the week January 1 falls on. If January 1 is Monday, Tuesday, Wednesday, or Thursday, it is in week 1 of the new year. If it is Friday, Saturday, or Sunday, it belongs to the last week (52 or 53) of the previous ISO year.