Days in any month

Includes leap-year February handling.

The days in month calculator returns how many calendar days a given month contains — 28, 29, 30, or 31 — for any year you enter. That count drives interest accruals, prorated rent, sprint capacity, school lesson plans, and any formula that divides by month length instead of assuming every month is 30 days.

Why month length is not obvious

Rhymes help children learn 30-day months, but adults still mis-key February in spreadsheets or use 30-day factors in financial models when the contract says actual days. Leap years add a single day every four years with century exceptions — easy to forget when copying last year's template into 2026.

Software libraries usually compute month length correctly, yet human-entered forms do not. A quick lookup before publishing a billing table prevents off-by-one errors that show up only at month end.

How to use this calculator

Choose a month and year, then calculate. The result states the day count and names the month. No toggle is required for leap years — February adjusts automatically when the year qualifies.

Pair the count with first day of month and last day of month when you need boundary weekdays, not just the length.

The 28 / 29 / 30 / 31 pattern

January, March, May, July, August, October, and December have 31 days. April, June, September, and November have 30. February has 28 days, or 29 when the year is a leap year under Gregorian rules: divisible by 4, except years divisible by 100 unless also divisible by 400.

The 30/31 alternation is not perfectly regular — August breaks the short-long rhythm people memorize from knuckle counting. When accuracy matters, compute rather than recall.

Leap years in plain language

Leap day keeps the calendar aligned with seasons over centuries. For month-length math, the only practical effect is whether February has 28 or 29 days. Whole-year totals — 365 or 366 — appear on the yearly 2026 calendar and leap year checker.

Birthdays on February 29 create scheduling jokes, but month-length tools simply report 29 for that February. Age and birthday tools handle anniversaries separately.

Proration and interest

Daily proration divides a monthly fee by the actual days in that month. Using 30 regardless of month understates February and overstates 31-day months. Enter the real count from this page into your spreadsheet denominator before rounding cents.

Some loans use 360-day years with 30-day months — a banking convention this civil calendar tool does not emulate. Read the contract; if it says actual/actual, use the true month length here.

Worked examples

A teacher planning daily readings for March 2026 confirms 31 sessions. For April they confirm 30 before printing the assignment sheet from monthly calendars.

A data engineer validating cron schedules that run on day 31 lists months where day 31 exists. Months with 30 days or February skip that trigger — knowing the count explains silent non-runs.

Day-of-year connection

Month lengths stack into day-of-year totals. The day numbers 2026 table shows each day's ordinal position from 001 through 365 or 366. Summing month lengths manually should match that grid — a useful cross-check when building import files.

Julian YYDDD codes on packaging use day-of-year, not month-day. Month length still matters when converting between formats in spreadsheets.

Teaching and curriculum pacing

Instructional designers split textbooks into one lesson per day. February's shorter length means spring-semester pacing must slow or compress compared with 31-day months. Publishing the official day count beside the syllabus prevents teachers from assuming 30 everywhere.

Online course platforms that drip content daily should skip nonexistent February 30 entries in templates — a surprisingly common copy-paste error when authors duplicate April into February.

API validation rules

REST validators should reject impossible dates like February 30 before they reach business logic. Month-length lookup is the first gate: accept day 29 in February only when the year passes leap rules. Document those rules in OpenAPI examples referencing 28 versus 29 explicitly.

Batch importers that default missing days to month end still need the true count so day 31 requests in April fail loudly instead of rolling silently into May.

Comparing month length across years

February length toggles every four years with century exceptions, but 31-day months never change count. Planners building three-year budgets should recompute February each year instead of copying 28 into every model. A small lookup table for 2026 and adjacent years prevents systematic February errors in multi-year forecasts.

Hotel and venue contracts priced per night multiply nightly rate by month-length when quoting full-month blocks. Quoting 30 nights for January undercharges one day every year — use the actual count before signing.

Historical consistency checks

Data archaeology projects comparing decade-old extracts to modern calendars should recompute month lengths rather than trusting memorized 30-day shortcuts. Leap century exceptions matter for historical datasets even when 2026 follows ordinary rules.

Utility billing cycles that true-up on month length should publish the official day count in customer FAQs each January so ratepayers understand why February notices list fewer daily charges than March.

Subscription and SaaS billing

Monthly SaaS plans billed on signup day need true month length when the product charges daily overage — February subscribers see fewer days than January subscribers at the same monthly rate unless the product uses flat thirty-day months by contract.

Annual contracts expressed as per-day rates should recompute denominators each month rather than storing January's day count for the whole term.

Insurance and actuarial tables

Actuarial models using daily exposure sometimes prorate monthly premiums by true month length — lookup February before assuming thirty-day factors in sensitivity analyses.

Claims adjusters counting inpatient days in a month still use inclusive day counts from days-between tools; month length here validates whether day thirty-one exists in the billing month.

Mortgage and rent proration

Closing statements prorate daily using actual month length—February in 2026 needs this lookup, not a 30-day assumption. Subscription trials ending on the 31st should clamp in months with fewer days; confirm vendor policy before disputing charges.

Related tools

Browse date tools for days between dates, days until end of month, and date calculator when you shift dates by N days.

Frequently asked questions

How many days are in each month?

Thirty-one days in January, March, May, July, August, October, and December; thirty in April, June, September, and November; twenty-eight or twenty-nine in February when the year is or is not a Gregorian leap year under standard four-hundred-year rules. Always confirm edge cases against primary sources when results affect legal, medical, or financial decisions.

How does the calculator handle leap years?

Choose month and year, then calculate. February returns twenty-nine when the year passes leap tests; otherwise twenty-eight. You do not toggle leap manually. Other months stay fixed regardless of year except February length changing the quarter-one day total. Always confirm edge cases against primary sources when results affect legal, medical, or financial decisions.

Why not assume thirty days every month?

Rent proration, interest accrual, and lesson pacing need true month length. Assuming thirty days everywhere understates February and overstates thirty-one-day months, producing cent-level billing errors, wrong sprint capacity, and silent cron failures on day thirty-one triggers. Always confirm edge cases against primary sources when results affect legal, medical, or financial decisions.

How is this related to day-of-year?

Month lengths sum to three hundred sixty-five or three hundred sixty-six for the year. Day-number tables list each ordinal day; summing month counts from this tool should match that grid when building import files or validating warehouse production calendars. Always confirm edge cases against primary sources when results affect legal, medical, or financial decisions.

Does this show first or last weekday?

No. This page returns day count only. Use first day of month and last day of month when you need boundary weekdays for scheduling banners, payroll cutoffs, or aligning printable monthly calendar grids with week columns. Always confirm edge cases against primary sources when results affect legal, medical, or financial decisions.

What about thirty-day bond conventions?

Some banking uses thirty-day months inside three-hundred-sixty-day years. This tool reports actual Gregorian month length. Read contracts carefully: actual/actual proration needs true counts here; thirty/360 conventions follow separate banking math not emulated on this page. Always confirm edge cases against primary sources when results affect legal, medical, or financial decisions.

Processing, please wait...