Days in a Month Calculator

Days in a Month Calculator provides an accurate, transparent result with clear inputs, a documented method, and practical verification guidance.

Date & Time Calculators

Find whether a selected month contains 28, 29, 30, or 31 days.

About the Days in a Month Calculator

This calculator returns the actual length of a Gregorian calendar month, including the leap-year rule for February.

Formula and method

The last day of a month is found by taking day zero of the following month. February has 29 days in years divisible by 4, except century years not divisible by 400.

Worked example

February 2024 has 29 days because 2024 is divisible by 4. February 2100 has 28 days because 2100 is not divisible by 400.

Common mistakes

  • Assuming February has 29 days every four years without the century exception.
  • Confusing the month number with a zero-based programming index.
  • Entering a two-digit year.
  • Assuming every other month alternates perfectly after July.

How to calculate manually

  1. Identify the selected month.
  2. Use 30 days for April, June, September, and November.
  3. Use 31 days for the remaining months except February.
  4. Apply the leap-year rule to February.

Frequently asked questions

Is this calculator free?

Yes. It is free to use online.

How is a leap year determined?

A year divisible by 4 is a leap year, except a century year must also be divisible by 400.

Does the calculator use the Gregorian calendar?

Yes. Results follow modern Gregorian leap-year rules.

Days in a Month Calculator: accurate method and practical guide

Days in a Month Calculator supports reliable time and date by showing the inputs, method, and result clearly. Enter the requested values, choose the relevant options, and select Calculate or Convert. Review the formula and interpretation as well as the final number.

Days in a Month Calculator visual guide
Input, verified method, and result.

How to use the Days in a Month Calculator

  1. Read every label and enter values in the requested format.
  2. Select the correct units, date convention, mode, or precision.
  3. Run the calculation; the result remains hidden until requested.
  4. Compare the result with the formula and worked example.
  5. Repeat with a known value when accuracy is important.

Calculation method

The Days in a Month Calculator follows the documented formula and keeps full precision during intermediate steps. Only the displayed answer is rounded when appropriate. When calculating manually, keep extra digits until the final step to reduce cumulative rounding error.

For independent definitions and conventions, consult NIST time and frequency guidance. The reference explains standards; this page provides a convenient implementation for practical use.

Accuracy checklist

  • Confirm all inputs, units, signs, dates, and selected options.
  • Do not confuse a rounded display with the full internal value.
  • Use consistent units and convert only at clearly identified steps.
  • Check unusually large, small, negative, or zero answers manually.
  • Record inputs with the result so another person can reproduce it.

Verification example

Begin with a simple value whose answer you can estimate. Run the Days in a Month Calculator, compare the output with your estimate, and use the inverse operation when available. A tiny last-decimal difference usually reflects rounding; a large difference normally indicates a wrong input, unit, sign, or convention.

Common questions about the Days in a Month Calculator

Can I enter decimal values?

Yes when the field accepts decimals. Use a period as the decimal separator and do not type unit symbols inside numeric fields.

Why can two calculators differ?

They may use different precision, definitions, constants, calendar conventions, or inclusivity rules. Compare assumptions before judging either answer.

Is the answer professional advice?

No. It is an educational planning result. Verify high-stakes medical, financial, engineering, legal, or compliance decisions with a qualified professional.

Best practices for dependable results

Estimate first, calculate second, and verify third. Use realistic values, preserve original units, and record every option. This workflow makes the Days in a Month Calculator useful for both learning and quick problem solving.

Recalculate whenever an input changes. If the result will be shared, include units, selected precision, and assumptions so the calculation remains understandable outside this page.