Skip to content
ENExplore Calculators

Days in Month

Find the number of days in any month of any year.

About Days in Month

Subtracting the first day of the following month from the first of this month yields the exact number of days. Month lengths vary and February depends on leap years, so the difference method stays accurate for every case.

Formula

Days in Month

Days in month = first day of next month - first day of this month

first day of next month
Difference reveals the month length including leap February

Worked example

With the default values below, Days in Month returns Days in Month of 29. Change any input above and every figure here is recalculated in your browser.

Inputs used

Year
2,024
Monthaccepts 1–12
2

Results

Days in Month
29
First Day Number
29
Last Day Name
Thursday

Step by step

  1. 1Values used
  2. 2Days in Month
  3. 3Days in Month= 29
  4. 4First Day Number= 29
  5. 5Last Day Name= Thursday

Assumptions and limits

  • The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

How is Days in Month calculated?

Days in month = first day of next month - first day of this month Subtracting the first day of the following month from the first of this month yields the exact number of days.

Why does Days in Month matter?

Month lengths vary and February depends on leap years, so the difference method stays accurate for every case.

What values do I need to enter?

This calculator takes 2 inputs: Year, Month. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Days in Month – Calculate Days in Month & First Day Number