Days in Month Calculator

Find out how many days are in any month and see detailed breakdown.

Select Month & Year

July 2026

31
days in this month

Day Types

23
Weekdays
8
Weekend Days
5
Weeks (partial)
No
Leap Year

Days by Weekday

4
Sun
4
Mon
4
Tue
5
Wed
5
Thu
5
Fri
4
Sat

All Months in 2026

How Many Days Are in Each Month?

The days-in-month calculator tells you exactly how many calendar days are in any given month and year. While most people know the rough pattern — "30 days has September, April, June, and November; all the rest have 31, except February" — February's count varies between 28 and 29 depending on whether the year is a leap year. This calculator removes all guesswork by giving you the precise day count for any month of any year.

Month lengths in the Gregorian calendar follow a fixed pattern for 11 of the 12 months: January (31), March (31), April (30), May (31), June (30), July (31), August (31), September (30), October (31), November (30), and December (31). The only variable month is February, which has 28 days in common years and 29 days in leap years. The irregular pattern of month lengths was inherited from Roman calendar reforms and has been unchanged since the Gregorian reform of 1582.

Knowing the exact number of days in a month is essential for date arithmetic, billing and payroll calculations, scheduling recurring events, computing monthly averages in data analysis, and financial modeling where daily rates must be multiplied by the correct number of days in each month. This calculator also shows how the current month fits in the year — what fraction of the year the month represents and how many days remain in the year after the month ends.

Leap Year Rule for February

February's day count is determined by the Gregorian leap year rule, which balances the solar year's 365.2425-day length by adding leap days on a regular schedule.

Gregorian Leap Year Rule

Leap year if: (Year mod 4 = 0) AND NOT (Year mod 100 = 0 AND Year mod 400 ≠ 0)

Where:

  • Year mod 4 = 0= Basic 4-year leap year cycle (e.g., 2024, 2028, 2032)
  • Year mod 100 = 0= Century years (1900, 2000, 2100) are NOT leap years...
  • Year mod 400 = 0= ...EXCEPT century years divisible by 400 (2000, 2400) ARE leap years
  • February days= 28 in common years, 29 in leap years
  • Occurrence frequency= 97 leap years in every 400-year cycle (not 100 as many assume)

Why Do Month Lengths Vary?

The irregular month lengths in the Gregorian calendar trace to Roman calendar history. The original Roman calendar had 10 months (304 days), starting in March. Around 713 BC, King Numa Pompilius added January and February at the beginning, extending the year to 355 days (a lunar year). Julius Caesar reformed the calendar in 46 BC to align with the solar year, creating a 365-day year with a leap year every 4 years — this Julian calendar established most of the month lengths we use today.

The modern month name sequence and the 30-31 day pattern were codified in Caesar's reform, though Augustus Caesar later renamed "Sextilis" to August and is often (though possibly incorrectly) credited with rearranging days so August has 31 days rather than 30, taking the extra day from February. The Gregorian reform of 1582 adjusted only the leap year rule (removing some century leap years), leaving month lengths unchanged from the Julian calendar.

Practical Applications

Daily rate calculations in payroll, rent, and interest frequently multiply a monthly rate by the actual days in each month. Dividing an annual salary by 365.25 (average days per year) gives the daily rate; multiplying by the days in a specific month gives that month's gross pay. February's short month means lower total pay in that period, while months with 31 days yield higher pay — a consideration in daily-rate contracting and project billing.

Data analysts computing monthly averages or rates must account for varying month lengths. "Monthly revenue" comparison between February ($950,000 / 28 days = $33,928/day) and March ($975,000 / 31 days = $31,451/day) shows March actually had a lower daily rate despite higher total revenue. Normalizing to a per-day rate requires knowing the exact days in each month. This calculator makes that reference instantly available for any historical or future month.

Month as Fraction of Year

Each month represents a slightly different fraction of the annual year, ranging from February's shortest share (28/365 = 7.67% in common years) to January, March, May, July, August, October, and December's 31/365 = 8.49%. These fractions are used in interest accrual calculations, particularly in the "actual/365" day count convention where each month's interest is the principal × rate × (days in month / 365).

The "actual/actual" interest day count convention uses the actual days in each month and the actual days in each year (365 or 366) — maximally precise but requiring knowledge of both the specific month's length and whether the year is a leap year. This calculator provides both values, making it ideal as a reference for such calculations.

Worked Examples

February Day Count in 2024 vs 2025

Problem:

How many days does February have in 2024 and 2025?

Solution Steps:

  1. 12024: divisible by 4? 2024/4 = 506 ✓. Divisible by 100? 2024/100 ≠ integer ✗ (not a century year). Therefore 2024 IS a leap year.
  2. 2February 2024: 29 days
  3. 32025: divisible by 4? 2025/4 = 506.25 ✗. Therefore 2025 is NOT a leap year.
  4. 4February 2025: 28 days

Result:

February 2024 has 29 days; February 2025 has 28 days.

Days in Q2 2025

Problem:

How many total days are in Q2 2025 (April, May, June)?

Solution Steps:

  1. 1April 2025: 30 days
  2. 2May 2025: 31 days
  3. 3June 2025: 30 days
  4. 4Q2 total: 30 + 31 + 30 = 91 days

Result:

Q2 2025 (April through June) contains 91 days.

Year 2100 — Not a Leap Year

Problem:

How many days does February 2100 have?

Solution Steps:

  1. 12100: divisible by 4? Yes (2100/4 = 525)
  2. 2Divisible by 100? Yes (2100/100 = 21)
  3. 3Divisible by 400? No (2100/400 = 5.25) → NOT a leap year
  4. 4February 2100: 28 days (despite being divisible by 4)

Result:

February 2100 has only 28 days — century years not divisible by 400 are not leap years.

Tips & Best Practices

  • Use the knuckle trick to quickly identify 31-day months: knuckles = 31 days, gaps = 30 (or 28/29 for February).
  • For daily rate calculations: multiply the daily rate by the exact days in the month for that specific year, not an approximation.
  • Year 2100 is NOT a leap year — it's divisible by 4 and 100 but not 400. Plan your leap-year-dependent systems accordingly.
  • Financial models that assume '30.5 average days per month' can accumulate errors of 1-3 days per year — use actual month lengths.
  • February 29 birthdays: people born on leap day typically celebrate on February 28 or March 1 in non-leap years.
  • The 'actual/365' interest convention requires looking up the actual days in each month — this calculator provides that reference.

Frequently Asked Questions

February's shorter length is an artifact of Roman calendar history. When the original 10-month calendar was extended to 12 months, February was added at the end of the year (the Roman year started in March). As the shortest and least desirable month, it received the leftover days needed to complete the annual cycle. Even after the calendar was reformed and January was moved to the front, February retained its historically shorter length.
Yes, 2000 was a leap year with 29 days in February. The year 2000 is divisible by 400 (2000/400 = 5), making it a leap year under the Gregorian rule. This was a notable exception to the pattern that century years are not leap years — many people in 2000 incorrectly believed it was not a leap year because it was a round century year.
Seven months always have 31 days: January, March, May, July, August, October, and December. A memory trick: make a fist and count the knuckles (31-day months) and the valleys between them (30-day months and February). Starting from the index finger knuckle as January: knuckle=31, valley=February, knuckle=31 (March), valley=30 (April), knuckle=31 (May), valley=30 (June), knuckle=31 (July), then wrap back: knuckle=31 (August), valley=30 (September), knuckle=31 (October), valley=30 (November), knuckle=31 (December).
For any annual amount (salary, rent, interest), the daily rate is Annual / 365 (or 366 in leap years). The monthly amount at the daily rate varies: a 31-day month earns 31/365 of the annual total, while a 28-day February earns only 28/365. For a $60,000 annual salary at daily rate: January gets $5,096 (31×$163.93/day), February gets $4,603 (28×$163.93/day), and December gets $5,096. Some billing agreements specify "monthly" as exactly 1/12 of annual to avoid these variations.
Leap years occur in 2024, 2028, 2032, 2036, 2040, 2044, 2048, 2052, 2056, 2060, 2064, 2068, 2072, 2076, 2080, 2084, 2088, 2092, 2096, then skip 2100 (not a leap year), resuming in 2104. From the current date (2026), the next leap year is 2028.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Days in Month Calculator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.

Privacy choices

MyCalcBuddy uses necessary storage for the site to work. Optional analytics, notifications, and future advertising features stay off unless you allow them.