Skip to content
Monthly-grid calculator|civil + actuarial conventions

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).

Convention
Civil
Avg days/mo
30.4375
Output
M+D
ISO
8601

Quick Conversion

Formula: months = days / 30.4375

Monthly grid

SVG grid of 36 monthly cells. The cells from the start month through 12 whole months are filled in solid emerald. The cell after the last whole month is partially filled to represent 0 leftover days.May2025Jun2025Jul2025Aug2025Sep2025Oct2025Nov2025Dec2025Jan2026Feb2026Mar2026Apr2026May2026Jun2026Jul2026Aug2026Sep2026Oct2026Nov2026Dec2026Jan2027Feb2027Mar2027Apr2027May2027Jun2027Jul2027Aug2027Sep2027Oct2027Nov2027Dec2027Jan2028Feb2028Mar2028Apr2028Start (red dot) -> shaded range covers 12 whole + 0d partial
Result
12 whole months + 0 days
Decimal: 11.992 months (365 total days)
ISO 8601 duration: P12M

Common day-spans converted to months

DaysWhole + leftoverDecimal months
70m 7d0.230
140m 14d0.460
300m 30d0.986
451m 15d1.478
601m 30d1.971
902m 29d2.957
1203m 29d3.943
1805m 28d5.914
2708m 27d8.871
36511m 30d11.992
54017m 23d17.741
73023m 30d23.984
100032m 26d32.854
182559m 29d59.959

Need the other direction? Days between dates.

Formula
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

  1. 1
    Enter the start date in the ISO 8601 picker (YYYY-MM-DD).
  2. 2
    Enter the end date using the second picker.
  3. 3
    Read the 36-cell monthly grid - shaded green cells are complete civil months.
  4. 4
    Read the summary card - whole months plus leftover days and a decimal-month figure.
  5. 5
    Save 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.

Months Between Dates: Frequently Asked Questions

Have more questions? Contact us

Used by HR, accounting, and project teams

4.9
Based on 5,310 reviews

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.

S
Sandra Kowalski
HR analyst at a Chicago manufacturing firm running 48-month vesting cliffs
May 19, 2026

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.

M
Mateus Albuquerque
Project manager on a 14-month infrastructure rollout in Sao Paulo
April 13, 2026

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.

P
Priyanka Lakshminarayanan
Accountant prorating SaaS subscriptions for a Pune startup
March 9, 2026

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.

B
Beatrice Whitfield
Sales ops lead tracking enterprise contract renewal dates in London
February 21, 2026

Love using our calculator?

Related tools

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Months Between Dates Calculator

Loading articles...