Enter dates
Results
Month-by-month list
Batch mode (CSV)
Paste rows with headers: start,end,basis,inclusive,rounding. Basis: calendar|actact|act365|act360|30360us|30360e. Inclusive: strict|includeStart|includeEnd|includeBoth. Rounding: floor|ceil|nearest|fractional.
| # | Start | End | Basis | Inclusive | Rounding | Months |
|---|
Examples
How it’s calculated
“Months between” can be defined in multiple ways depending on context (calendar vs finance). This tool supports inclusive/exclusive boundaries, end‑of‑month (EOM) rules, rounding modes, and day‑count conventions used in lending and bonds.
- Calendar (EOM‑aware): Counts whole calendar months between the two dates and applies an EOM rule: if start and end are both at their month’s end, the span of an exact number of months is treated as whole months. Partial months can be floored/ceiled/rounded or shown as fractional using the chosen basis.
- Actual/Actual, /365, /360: Compute actual days between the dates; convert to fractional years by the selected basis; multiply by 12 to express fractional months.
- 30/360 US (NASD) and 30E/360: Transform both dates per the convention, get a 30‑day month grid, then convert to years×12.
Tip: For HR/payroll tenure, “Include end month” often matches expectations. For loans/bonds, pick the standard used in your documentation (30/360, Actual/Actual, etc.).
FAQ
Do you count the start month?
Use the Inclusion rule. “Strict gap” excludes both; you can include the start, the end, or both months explicitly.
How are partial months handled?
Select Floor/Ceil/Nearest for whole months, or Fractional months to show decimal months (based on the selected day‑count basis).
What is end‑of‑month (EOM) logic?
When both dates are the last day of their months, EOM logic treats the span as an integer number of months (e.g., Jan 31 to Feb 29 is 1 month in leap years).
Why do finance answers differ?
Day‑count conventions define how many days constitute a year (360 or 365) and how months roll. 30/360 methods use a 30‑day grid that changes results slightly.
Related tools
Instant result
Embed & API
Use query params to prefill and auto‑calculate:
?start=2022-01-31&end=2025-09-01&basis=calendar &inclusive=includeEnd&rounding=fractional&autocalc=1
Embed as iframe:
<iframe src="https://example.com/months_between.html?start=2022-01-31&end=2025-09-01&autocalc=1" width="100%" height="780" style="border:0"></iframe>