Days in Month Calculator
Find out how many days are in any month and see detailed breakdown.
Select Month & Year
July 2026
Day Types
Days by Weekday
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
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:
- 12024: divisible by 4? 2024/4 = 506 ✓. Divisible by 100? 2024/100 ≠ integer ✗ (not a century year). Therefore 2024 IS a leap year.
- 2February 2024: 29 days
- 32025: divisible by 4? 2025/4 = 506.25 ✗. Therefore 2025 is NOT a leap year.
- 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:
- 1April 2025: 30 days
- 2May 2025: 31 days
- 3June 2025: 30 days
- 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:
- 12100: divisible by 4? Yes (2100/4 = 525)
- 2Divisible by 100? Yes (2100/100 = 21)
- 3Divisible by 400? No (2100/400 = 5.25) → NOT a leap year
- 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
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.
Formula Source: Standard Mathematical References
by Various