Calculation Number Of Days

Instant date span, business days & live distribution

Days in a Month Calculator

Find the length of any month.

Result
—

How the Days in a Month Calculator Works

The Days in a Month Calculator returns the number of calendar days in a chosen month and year: 28, 29, 30 or 31 days.

  1. Enter the year

    Enter the year. The year matters for February only.

  2. Pick the month

    Select the month from January to December.

  3. Find the last date

    The calculator finds day 0 of the next month, which equals the last day of the chosen month.

  4. Read the day count

    The result shows the month length, such as 31 days for January.

How the Count Is Calculated

The Days in a Month formula uses fixed lengths for 11 months and a leap-year rule for February.

31 days: Jan, Mar, May, Jul, Aug, Oct, Dec
30 days: Apr, Jun, Sep, Nov
Feb = 29 days, if the year is a leap year; otherwise 28 days
Leap year
Divisible by 4, except century years not divisible by 400.
31-day months
7 months a year.
30-day months
4 months a year.

Example: February 2026 has 28 days. 2026 is not divisible by 4. February 2028 has 29 days.

Worked Examples

The table lists every month length with the equivalent weeks and hours.

MonthDaysWeeks + daysHours
January314 w 3 d744
February (common)284 w 0 d672
February (leap)294 w 1 d696
March314 w 3 d744
April304 w 2 d720
May314 w 3 d744
June304 w 2 d720
July314 w 3 d744
August314 w 3 d744
September304 w 2 d720
October314 w 3 d744
November304 w 2 d720
December314 w 3 d744

What the Tool Measures

A Days in a Month Calculator is a calendar tool that tells you how many days a given month holds.

Gregorian months hold 28 to 31 days. The 12 months add up to 365 days in a common year and 366 days in a leap year, for an average month of 30.44 days.

The "knuckle rule" works for memory: months on a knuckle (January, March, May, July, August, October, December) hold 31 days.

When to Use This Tool

There are 5 main uses of the Days in a Month Calculator, including rent proration and daily budgets.

  • Rent proration

    Landlords divide monthly rent by the month length for partial months.

  • Daily budgets

    Households split a monthly budget into a daily spending limit.

  • Data validation

    Developers reject invalid dates such as 31 April.

  • Interest calculation

    Banks use the actual month length for daily interest.

  • Habit trackers

    Planners draw the right number of boxes for each month.