Months Between Two Dates Calculator

Accurate months between two dates for HR finance leases and planning Choose inclusive or exclusive boundaries apply end of month logic and select rounding or fractional months Compare day count bases Actual Actual Actual 365 Actual 360 or 30 360 Get batch calculations CSV PDF exports examples timeline and shareable links built for speed

Enter dates

Accepts time too (e.g., 2025-01-15 14:30)
Normalize both dates to a specific zone for consistency, if needed.
For reporting outputs.

Results

Total months
Years + months
Months + days
Business days & full weeks
Timeline
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.

    Instant result

    Enter dates to see results.

    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>

    Detailed guide and formulas

    This calculator measures the number of months between two dates with the precision you need for payroll, leases, warranties, interest calculations, or planning. Unlike basic tools that assume every month behaves the same, this implementation gives you control over inclusive versus exclusive boundaries, end of month rules, rounding strategies, and professional day count conventions. By combining a calendar aware method with financial standards, the output aligns with real world expectations across industries and jurisdictions.

    Start by entering a start date and an end date using the format you prefer. You can type dates or paste values such as 2025 01 15 or 15 01 2025 or 01 15 2025. Optionally include time of day to normalize across time zones. Choose whether to include the start month, the end month, both, or neither. For many tenure and HR use cases include end month mirrors how people speak about worked months.

    End of month logic is essential for edge cases like January thirty one to February twenty eight or February twenty nine. When both dates fall on their month ends the calculator treats the span as an integer number of months. This mirrors how billing cycles and coupon periods are defined in many contracts. When only one boundary is at month end the tool still reports partial months according to your rounding choice or via fractional months.

    Rounding controls change how partial months are presented. Floor rounds down to the previous whole month, ceil rounds up, and nearest selects the closest whole month. Fractional months expose precision by converting remaining days into a fraction using a chosen basis. Calendar fractional months scale the remainder by the number of days in the anchor month, while financial bases convert actual days into years and then multiply by twelve to express months.

    Financial professionals often require specific day count conventions. Actual Actual divides by the real number of days in each year spanned. Actual 365 uses a fixed three hundred sixty five day denominator. Actual three hundred sixty uses a three hundred sixty day year. Thirty three sixty US and Thirty E three sixty European transform dates to a thirty day grid. These methods can produce slightly different months for the same pair of dates and the Compare methods panel helps document the reason.

    To speed analysis the results card summarizes total months, years plus months, months plus days, business days, and full weeks. A month by month list shows every month crossed, and a compact timeline provides quick visual context. You can download a calculation receipt as CSV or PDF, copy a shareable link containing all inputs, and run batch calculations by pasting rows with headers. These features make the tool practical for documentation, reviews, and audits.

    As a rule of thumb choose calendar basis with fractional months for general planning and reports. Switch to Actual Actual for bonds and long spans where leap years matter. Select Thirty three sixty methods when your loan note, lease, or policy explicitly specifies them. Document your choices alongside the output so a later reader understands why the figure appears slightly different from a naive wall calendar count.

    SettingPurposeTypical use
    Inclusive ruleControl whether boundary months countHR tenure, subscription proration
    EOM logicTreat month-end to month-end as whole monthsBilling cycles, bond coupons
    RoundingFloor, ceil, nearest, or fractionalReports, statements, audits
    BasisDenominatorNotes
    Calendar fractionalDays in anchor monthGeneral planning
    Actual/ActualVaries by yearPrecise over long spans
    Actual/365365Banking and UK contexts
    Actual/360360Money markets
    30/360 US360US corporate bonds
    30E/360360Eurobonds

    Related Calculators

    30 Min Calculator90 Day CalculatorAdd Days CalculatorAdding Hours and Minutes CalculatorAge in Minutes CalculatorAge in Years CalculatorBirthday Countdown CalculatorCalendar Countdown Calculatorcm to mm Ring Size ConverterCountdown Calculator

    Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.