Earn $25 CASH per qualified ChartSnap Founder referral ยท Unlimited referrals ยท No purchase required โ€”Join the Affiliate Program

Back to Articles

Why Months Have Different Numbers of Days

Months range from 28 to 31 days, and the pattern seems irregular. Here is the history behind the uneven month lengths and why it matters for date calculations.

Last reviewed: August 2026 ยท 6 min read

Why Months Have Different Numbers of Days

If you have ever tried to memorize which months have 30 days and which have 31, you know the pattern is not obvious. Months range from 28 days (February in a common year) to 31 days, and the sequence seems almost random. The reason is historical โ€” the month lengths we use today come from the Roman calendar, modified over centuries by political decisions, astronomical reality, and a desire for even-numbered months. Understanding why months differ in length also explains why date calculations that involve months are more complex than they appear.

The Month Lengths

Here are the standard month lengths in the Gregorian calendar:

  • 31 days: January, March, May, July, August, October, December (7 months)
  • 30 days: April, June, September, November (4 months)
  • 28 days (29 in a leap year): February (1 month)

This gives a common year 365 days (31ร—7 + 30ร—4 + 28 = 365) and a leap year 366 days (with February at 29). The total always works out to match the solar year, but the distribution across months is uneven.

The familiar knuckle mnemonic helps remember which months are long: if you count months across your knuckles and the gaps between them, the knuckle months (January, March, May, July, August, October, December) have 31 days, and the gap months have 30 (or 28 for February).

The Roman Origins

The uneven month lengths come from the Roman calendar, which originally had only 10 months totaling 304 days. The Romans added January and February around 700 BCE, creating a 12-month year of 355 days. This was about 10 days short of the solar year, and the Romans periodically inserted an extra "intercalary" month to realign the calendar with the seasons.

The month lengths we recognize today were largely set by Julius Caesar's calendar reform in 45 BCE, which established the 365-day year with a leap day every four years. The Julian calendar assigned 31 days to seven months, 30 days to four months, and 28 or 29 to February.

Why February Is Short

February has only 28 days because it was the last month added to the Roman calendar, and it was given whatever days remained after the other months received their allocations. In the early Roman calendar, the year began in March, making February the final month โ€” a natural place for the leftover days.

Under the Julian reform, February kept its 28 days while the other months were set to 30 or 31. Augustus later took a day from February to make August 31 days long (to match July, which was named after Julius Caesar and already had 31 days). This is why July and August are the only two consecutive 31-day months, and why February is even shorter than it might otherwise have been.

The Leap Year Adjustment

Because the solar year is approximately 365.2422 days โ€” not exactly 365 โ€” the calendar would drift without periodic adjustment. The leap year system adds one extra day to February every four years, bringing the average year length to 365.25 days. The Gregorian refinement (from 1582) adds the century exception: years divisible by 100 are not leap years unless also divisible by 400. This fine-tunes the average to 365.2425 days, accurate to within about 26 seconds per year.

The leap day always falls on February 29, which is why February is the only month whose length varies. Check any year with our Leap Year Calculator.

Why This Matters for Date Math

The uneven month lengths create a specific challenge for date calculations: you cannot simply add a fixed number of days to represent "one month." One month might be 28, 29, 30, or 31 days, depending on which months the range spans.

Adding months to a date

When you add one month to January 31, the result is not February 31 (which does not exist) โ€” it is February 28 (or 29 in a leap year). The Date Calculator handles this by "capping" at the end of the target month when the target month is shorter than the starting month. This is the standard convention, but it means that adding a month to a date near the end of a long month can produce a result that is less than a full month later.

Counting months between dates

When you count the months between two dates with the Months Between Dates Calculator, the tool counts calendar months โ€” the period from a date in one month to the same date in the next month โ€” rather than a fixed day count. This is more accurate than multiplying weeks or using a 30-day approximation, because it reflects the actual calendar structure.

Duration calculations

For duration calculations that span months, the Years Between Dates Calculator breaks the total into years, months, and days, using actual calendar month lengths. This gives a result like "3 months and 12 days" that reflects the real calendar, not an average.

The 30-Day Approximation (and Why It Is Wrong)

A common shortcut in quick mental math is to treat every month as 30 days. This is the basis of the "30/360" day count convention used in some financial calculations. While convenient, it is an approximation: a 12-month period treated as 30 days per month gives 360 days, which is 5 or 6 days short of the actual year. Over multi-year spans, the error accumulates.

For any calculation that needs to be precise โ€” age, contract duration, tenure, billing โ€” use actual calendar months rather than the 30-day approximation. Our calculators work in real calendar days and months, so they produce accurate results without the approximation error.

Months and the Calendar Year

The month structure also underpins how we organize the calendar year into reporting periods. Quarters (three-month periods) and the fiscal year all depend on the month definitions. For more on how months relate to quarters and fiscal years, read our guide on Fiscal Years, Quarters, and Reporting Periods.

Key Takeaways

  • Months have 28, 29, 30, or 31 days because of Roman calendar history, not astronomical necessity.
  • February is shortest because it was the last month added and received the leftover days.
  • The leap year system compensates for the fact that the solar year is not exactly 365 days.
  • Date calculations must use actual calendar month lengths, not a fixed 30-day approximation, to be accurate.
  • Our calculators handle the uneven month lengths automatically, so you get correct results for any date range.

The uneven month lengths are a quirk of history, but they are a quirk that every accurate date calculation must respect. By understanding where the pattern comes from and how it affects date math, you can interpret calculator results correctly and avoid the errors that come from assuming all months are the same length.

Mike Starr

Founder, DateWizardTools ยท M.S. Organizational Management

Last reviewed: August 2026

Frequently Asked Questions

Related Tools

Related Articles

We use cookies

We use cookies for analytics and to display personalized ads via Google AdSense. Your date calculations always stay private and in your browser. See our Privacy Policy for details.