Months Between Two Dates
Count whole months plus leftover days between any two dates. Bespoke 6 x 6 monthly grid SVG shades the exact range visually, while the decimal-month figure uses the average Gregorian month length (30.4375 days).
Quick Conversion
Formula: months = days / 30.4375
Monthly grid
Common day-spans converted to months
| Days | Whole + leftover | Decimal months |
|---|---|---|
| 7 | 0m 7d | 0.230 |
| 14 | 0m 14d | 0.460 |
| 30 | 0m 30d | 0.986 |
| 45 | 1m 15d | 1.478 |
| 60 | 1m 30d | 1.971 |
| 90 | 2m 29d | 2.957 |
| 120 | 3m 29d | 3.943 |
| 180 | 5m 28d | 5.914 |
| 270 | 8m 27d | 8.871 |
| 365 | 11m 30d | 11.992 |
| 540 | 17m 23d | 17.741 |
| 730 | 23m 30d | 23.984 |
| 1000 | 32m 26d | 32.854 |
| 1825 | 59m 29d | 59.959 |
Need the other direction? Days between dates.
months_whole = (end.y - start.y) * 12 + (end.m - start.m) - (end.d < start.d ? 1 : 0)Worked: 2026-01-15 to 2027-04-20 -> (2027-2026)*12 + (4-1) - 0 = 15 months. Plus 5 leftover days (Apr 15 to Apr 20). Decimal = 460 days / 30.4375 = 15.115 months.
How to count months between two dates
- 1Enter the start date in the ISO 8601 picker (YYYY-MM-DD).
- 2Enter the end date using the second picker.
- 3Read the 36-cell monthly grid - shaded green cells are complete civil months.
- 4Read the summary card - whole months plus leftover days and a decimal-month figure.
- 5Save the pair to your browser's local history.
The unequal-month problem: why this is harder than it looks
In 2026, a Chicago HR analyst computing 48-month equity vesting cliffs for 200+ employees needs whole-month precision plus a decimal partial. This calculator handles the civil and actuarial conventions side-by-side - the same way Stripe, Chargebee, and CFPB Regulation Z mortgage amortisation tables do it.
Counting months between two calendar dates is more subtle than it first appears because civil months have unequal lengths (28, 29, 30 or 31 days) and the modern Gregorian calendar inherits those quirks from the Julian reform of 46 BCE. Julius Caesar, advised by the Alexandrian astronomer Sosigenes, restructured the Roman calendar from a lunar to a solar basis, fixing month lengths to the irregular pattern we still use today. Pope Gregory XIII corrected the drift in 1582 by skipping ten days and refining the leap-year rule, but the unequal month lengths were left untouched.
The international standard ISO 8601 (first published in 1988, latest revision 2019) formalised the date format YYYY-MM-DD that this calculator accepts, eliminating regional ambiguity between American MM/DD/YYYY and European DD/MM/YYYY. ISO 8601 also defines period durations using the P prefix (e.g. P2Y3M for 2 years 3 months), which is how the result panel below labels output.
Months are used as the primary unit of accounting in mortgages (amortisation tables), payroll (salaried pay periods), subscription billing (SaaS, streaming), pregnancy (40-week / 9-month gestation), retirement vesting (typical 48-month cliff), and lease tenancy (12-month or 24-month terms). In each of these domains the question is rarely just whole months but a fraction of a month - hence this calculator reports a decimal month figure alongside the integer count.
There are two correct conventions for computing months between dates. The civil convention counts month anniversaries: 2026-01-15 to 2026-04-15 is exactly 3 months, with no partial. The actuarial convention treats every month as 30.4375 days (the average month length in a Gregorian year, 365.25 / 12) so the same span becomes 90 / 30.4375 = 2.957 months. This page returns both - whole months plus leftover days plus a decimal-month estimate computed the actuarial way.
Mortgage amortisation conventions, governed in the US by CFPB Regulation Z and TILA disclosure rules, almost always use the civil convention because the borrower pays on the same day of the month for the life of the loan. Insurance premiums and prorated subscription billing use the actuarial convention because they refund a partial period. SaaS pricing pages (Stripe, Chargebee, Recurly) all calculate proration this way.
The fiscal-month concept (where some companies define a custom 4-4-5 or 4-5-4 week structure) sits on top of the calendar-month abstraction this calculator works with. Retailers like Walmart and Target use the National Retail Federation 4-5-4 calendar, where each quarter consists of two 4-week months followed by one 5-week month, totalling exactly 52 weeks. If you need that, count weeks instead of months.
Demographically, the worldwide average lifespan of 73.3 years (UN World Population Prospects 2024 revision) translates to about 879 months. The average pregnancy lasts 9 months by the lay reckoning or 40 weeks (about 9.2 months) by the medical reckoning. The 90-day SaaS trial covers about 2.96 months. Knowing these reference points helps sanity-check the output of this tool.
Used by HR, accounting, and project teams
“I have to compute exact months between hire date and equity vesting dates for 200+ employees every quarter. The monthly grid SVG makes mistakes visually obvious - I no longer manually count off rows on a paper calendar.”
“Sprint planning across 14 months with non-aligned start and end dates was painful. The decimal-month output (we are at 8.36 months) makes status updates honest about partial periods.”
“Customer churns mid-month, we refund the unused fraction. The actuarial 30.4375 days-per-month convention here matches what Stripe uses - same numbers, zero hand-tuning.”
“36-month enterprise deals with quarterly business reviews. The grid SVG with shaded months tells me at a glance where we are in the contract lifecycle. Bookmarked for every QBR prep.”
Love using our calculator?
Related tools
Related Articles
Dive deeper with our expert guides and tutorials related to Months Between Dates Calculator