Skip to content
Calcipedia
Days in Month Calculator instructional illustration

Days in Month Calculator

Find how many days are in any month and year, including leap-year February rules, 30-day and 31-day month tables, weekday/weekend counts.

Last updated

Quick presets

Gregorian calendar rule February has 29 days in leap years. Leap years are divisible by 4, except century years unless they are also divisible by 400.
Select a valid month and year Choose a calendar month and enter a Gregorian year from 1 to 9999 to see the full month breakdown.
← All Calendar Reference calculators

Calendar Tool

Days in a month calculator: how many days in any month and year

The days-in-month calculator tells you exactly how many days are in any month of any year, accounting for February's varying length in leap years.

How the day count is determined

Eleven months have fixed day counts: January (31), March (31), April (30), May (31), June (30), July (31), August (31), September (30), October (31), November (30), December (31). February is the exception: it has 28 days in a common year and 29 days in a leap year. The leap year rule is: divisible by 4, except century years not divisible by 400.

A handy mnemonic for the fixed months is the knuckle rule: make a fist and count knuckles and valleys starting from the index-finger knuckle. Knuckles are 31-day months (January, March, May, July, August, October, December) and valleys are 30-day months or February.

February days = 29 if leap year, else 28

All other months are fixed: Jan/Mar/May/Jul/Aug/Oct/Dec = 31; Apr/Jun/Sep/Nov = 30.

Weekdays in month = Total days − Saturdays − Sundays

Varies by month and by which day of the week the month starts.

Why this matters for planning and finance

Billing and payroll cycles that run on a monthly basis must account for variable month lengths. A monthly salary divided by the number of days in the month gives the daily rate for prorated calculations. February is frequently the source of proration errors because many people assume it always has 28 days.

Project managers scheduling deliveries at the end of each month — known as end-of-month or EOM scheduling — need to know the exact last day of each month. Adding one month to 31 January should land on 28 or 29 February (not 31 February, which does not exist). The days-in-month calculator prevents these off-by-one scheduling errors.

Why February keeps getting special treatment

Most month-day questions are really leap-year questions in disguise. The Gregorian calendar adds February 29 in most years divisible by 4, skips it in century years divisible by 100, and restores it in years divisible by 400. That is why 2000 was a leap year but 2100 will not be.

This rule matters in date calculators because many users expect a simple every-four-years pattern. That shortcut works often enough to feel true, but it fails at century boundaries. A reliable month-length calculator needs the full Gregorian rule, not the simplified version.

Worked example: February 2028 versus April 2026

Suppose you need to prorate a monthly charge, plan staffing, or confirm the last business day of a billing month. February 2028 has 29 days because 2028 is divisible by 4 and is not a century year. The month starts on a Tuesday and ends on a Tuesday, so the full month spans 4 weeks and 1 day, with 21 weekdays and 8 weekend days before any public-holiday adjustment.

Compare that with April 2026. April is always a 30-day month, so you do not need leap-year logic at all. April 2026 starts on a Wednesday and ends on a Thursday, which changes the weekday/weekend split even though the month length itself is fixed. This is why a month-length calculator is most useful when it shows both the headline day count and the supporting calendar context rather than only the single number.

Which months have 30 days or 31 days

Users often search for how many days are in each month because they do not actually need only one month. They need a quick check across the whole year. The 30-day months are April, June, September, and November. The 31-day months are January, March, May, July, August, October, and December. February is the only month that changes between 28 and 29 days.

The old rhyme 'Thirty days hath September, April, June, and November' is still useful, and the knuckle method works well if you prefer a visual memory aid. Those reminders are practical, but they do not replace an exact calculator when you also need the first weekday, last weekday, or the exact number of weekdays in the selected month.

  • 30-day months: April, June, September, November.
  • 31-day months: January, March, May, July, August, October, December.
  • February: 28 days in a common year, 29 days in a leap year.

Using the full year overview

Several month-day questions are easier to answer when the calculator shows the whole selected year. A single result can tell you that August 2026 has 31 days, but a full month table also confirms which nearby months have 30 days, whether February has 28 or 29 days, and how the selected month fits into its quarter.

The day-of-year range is useful for schedules, subscriptions, project windows, and spreadsheet checks. If a month covers day 91 through day 120 of a 365-day year, for example, you can see how many calendar days came before it and how many remain afterward without opening a separate day-of-year calculator.

This is different from converting months to days by using an average month length such as 30.44 days. Average-month conversion can be useful for rough duration estimates, but billing, payroll, deadline, and calendar work usually needs the actual month length for the exact month and year.

Day-of-year start = 1 + days in earlier months

This places the selected month inside the chosen year.

Day-of-year end = day-of-year start + days in month - 1

This gives the final ordinal day covered by the selected month.

Calendar scope and common limitations

This calculator follows the modern Gregorian calendar. That is the correct practical choice for almost all current scheduling, billing, payroll, and planning work, but it means the page is not trying to reconstruct every historical regional calendar transition. Countries adopted the Gregorian calendar at different times, so very old historical dates may need specialist treatment instead of a modern online month calculator.

It is also worth separating calendar length from business-day rules. A month can contain 20, 21, 22, or 23 weekdays depending on where the weekends fall, but statutory holidays, bank holidays, and country-specific non-working days are not built into the raw month count. For business deadlines, payroll proration, or legal notice periods, always confirm the governing policy after using the headline result.

Frequently asked questions

How many days does February have in 2024?

2024 is a leap year (divisible by 4 and not a century year), so February 2024 has 29 days. The next time February has 29 days is 2028.

Which months have 30 days?

April, June, September, and November each have 30 days every year. All other months (except February) have 31 days. February has 28 days in common years and 29 days in leap years.

How many weekdays are in a month?

A month with 31 days contains either 21 or 23 weekdays, depending on which day of the week the month starts. Most months contain 21 or 22 weekdays. February can have as few as 20 weekdays. The calculator shows the exact weekday count for any month and year.

Why does February have 28 days or 29 days?

February is the only month whose length changes because the Gregorian calendar inserts an extra day into February during leap years to keep the civil calendar aligned with the solar year. Most years divisible by 4 are leap years, but century years must also be divisible by 400. That is why 2000 had a February 29 but 2100 will not.

Is 2100 a leap year?

No. A year divisible by 100 is not a leap year unless it is also divisible by 400. The year 2100 fails that final test, so February 2100 will have 28 days. This is one of the most common mistakes people make when they rely on the simplified 'every four years' shortcut.

Do all months have exactly four weeks?

No. Four weeks is only 28 days, so every 30-day and 31-day month extends beyond four full weeks, and leap-year February does too. A 31-day month spans 4 weeks and 3 days, a 30-day month spans 4 weeks and 2 days, a common-year February spans exactly 4 weeks, and a leap-year February spans 4 weeks and 1 day.

Which months have 31 days?

January, March, May, July, August, October, and December each have 31 days. April, June, September, and November each have 30. February is the only variable month, with 28 days in a common year and 29 in a leap year.

Can I use this for billing, payroll, or monthly proration?

Yes, as a first step. A days-in-month calculator is useful for daily-rate proration because it gives the exact number of calendar days in the month, which is often the base for rent, salary, subscription, or service-charge calculations. However, you should still check whether the governing policy uses calendar days, business days, inclusive counting, or a fixed 30-day convention before relying on the result operationally.

What day of the year does a month start and end on?

It depends on the year and the selected month. The calculator now shows the selected month's day-of-year range by adding the days in all earlier months, then adding the selected month's length. That makes it easier to place the month inside a yearly project, subscription, or reporting calendar.

Is a month always 30 or 31 days?

No. Seven months have 31 days, four months have 30 days, and February has either 28 or 29 days. You may see an average month length such as 30.44 days in duration converters, but that average is not the right value when you need the exact number of days in a specific calendar month.

Does the calculator account for public holidays?

No. The page can tell you how many weekdays and weekend days fall in the selected month, but public holidays vary by country, region, and employer policy. Use the weekday count as a raw planning figure, then subtract the holidays that apply to your jurisdiction or contract.

Can I use this for historical dates before the Gregorian calendar?

Not as a specialist historical-calendar tool. This page uses the modern Gregorian calendar rules because they are appropriate for present-day planning and most modern dates. If you are working with very old dates, local historical records, or countries that adopted the Gregorian calendar later, you may need a dedicated historical calendar reference instead of a modern month-length calculator.

Also in Calendar Reference

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.