CalcSeed

Days in a Month Calculator

Find how many days are in any month of any year, including leap-year February.

=
Quick answer: with the default inputs (2,026, 2), the days in month is 28. Change any input to update the result.
Days in month
—

What the calculator answers

Pick a year and a month and the tool returns the number of days in that month, plus a note on whether the year is a leap year. At the defaults — February 2026 — the answer is 28 days in a common year. The same month in 2028 would return 29, because 2028 passes the leap-year test that 2026 fails.

Month lengths in the Gregorian calendar

Seven months have 31 days, four have 30, and February has 28 — or 29 in a leap year. Only February varies; the other eleven lengths are fixed for every year from 1 to 9999, which is what makes date arithmetic possible at all.

Feb=28+(leap?1:0)Feb = 28 + (leap \,?\, 1 : 0)

Month lengths

MonthsDays
January, March, May, July, August, October, December31
April, June, September, November30
February (common year)28
February (leap year)29

The knuckle mnemonic

Make two fists and count the months across your knuckles and the valleys between them. Every knuckle is a 31-day month, every valley is 30 days — except February. Starting on the left-hand index knuckle (January = 31), you hit the valley for February (28/29), then March on the next knuckle (31). When you reach the last knuckle (July), start over on the first knuckle for August, which is why July and August both land on knuckles.

February across the years

February’s length follows the three-tier leap rule exactly: divisible by 4, except century years, except those divisible by 400. The near-term sequence shows where the rule bites:

YearFebruaryWhy
202429Divisible by 4, not a century year
202628Not divisible by 4
202829Divisible by 4, not a century year
210028Divisible by 100, not by 400

The 2100 row is the one that catches people: despite following 2096, a leap year, February 2100 has 28 days because century years must also divide by 400. The next 29-day February after 2096 belongs to 2104.

Why February is the short one

The modern calendar descends from the Roman calendar, which left February short and assigned it the leftover days after the longer months. Julius Caesar’s reform of 45 BC fixed the eleven months at their current lengths and placed the intercalary leap day in February, keeping it the only variable month. Later emperors renamed months after themselves (July, August) without changing the totals, which is why the 31-day months cluster around summer: the pattern, odd as it looks, has survived essentially unchanged for two millennia.

Every month of 2026

MonthDaysMonthDays
January31July31
February28August31
March31September30
April30October31
May31November30
June30December31

The 2026 columns sum to 365, and the quarters come out at 90, 91, 92 and 92 days — the second quarter is one day longer than the first, and the two final quarters share the maximum. In leap years the first quarter stretches to 91 and the total to 366.

Prorating across February

Month length decides money whenever a charge is prorated by days. Rent of $1,200 a month is $40 per day under a flat 30-day convention but $1,200 ÷ 28 = $42.86 per day in February 2026 on an actual-days basis — a 7% difference for the same calendar month. Lease agreements usually name one convention; when they name none, landlords often bill February at the flat rate, which quietly charges $286 for 28 days of occupancy. The same math governs parking passes, software seats and per-diem interest, so check which February your contract assumes before disputing a charge.

Where month length matters

  • Billing cycles. A fixed monthly price covers 28, 29, 30 or 31 days of service depending on the month; prorating by days needs this number.
  • Interest and rent. Daily-rate rent over February saves a day’s charge in common years — 28 ÷ 365 of the annual sum instead of 31 ÷ 365.
  • Deadlines. A “within one month” deadline set on 31 January lands on 28 February in 2026 but 29 February in 2028.
  • Payroll. Semimonthly pay periods assume 2 pay dates per month regardless of length, so February pays the same as March — a fact that surprises hourly workers paid per diem.

Common mistakes

  • Applying the every-4 rule to 2100. February 2100 has 28 days; century years need the 400 test.
  • Assuming all months have 30 days. Eleven of the twelve months are 30 or 31 days; only February breaks the pattern.
  • Forgetting which year it is. The same date, 29 February, exists in 2028 but not in 2026 — always pair the month with its year.

Frequently asked questions

How many days are in each month?

January, March, May, July, August, October and December have 31 days. April, June, September and November have 30. February has 28, or 29 in a leap year.

How many days are in February 2026?

28, because 2026 is a common year. February 2028 has 29 days instead.

Why does February have fewer days?

The modern calendar descends from the Roman calendar, which left February short and assigned it the leftover days after the longer months.

Will February 2100 have 29 days?

No. 2100 is divisible by 100 but not by 400, so it is a common year and February keeps 28 days.

Which months have 31 days in a row?

July and August are consecutive 31-day months, and December and January are as well across the year boundary — the only two such pairs in the calendar.

How many days are in a year?

365 in a common year (seven 31s, four 30s and one 28) and 366 in a leap year, when February gains its 29th day.

How does the knuckle trick handle February?

February falls in a valley, meaning a short month; the trick flags it as the exception rather than giving the exact 28-or-29 answer, which depends on the year.

Does a leap February affect monthly billing?

It adds one day of service to February 2028-style months. Fixed monthly prices absorb the difference, but daily-rate charges — rent, interest, storage — bill for the extra day.

What is the shortest possible month?

February in a common year, at 28 days. No other month ever deviates from its fixed 30 or 31 days.

How long are the quarters of 2026?

Q1 has 90 days (31 + 28 + 31), Q2 has 91, and Q3 and Q4 have 92 each, summing to 365. In leap years Q1 stretches to 91 and the year to 366.

Method and sources

Calculation basis

Calendar logic follows the proleptic Gregorian calendar (ISO 8601) with correct leap-year handling.

Last updated: November 17, 2026
Formula & data sources
  • Gregorian calendar month-length table.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Days in a Month Calculator. https://calcseed.com/c/date/days-in-month-calculator/
MLA 9"Days in a Month Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/date/days-in-month-calculator/.
ChicagoCalcSeed. "Days in a Month Calculator." Last modified November 17, 2026. https://calcseed.com/c/date/days-in-month-calculator/

Related calculators