Month arithmetic breaks the rules people expect. Ask "what is January 31 plus one month?" and the calendar has no February 31 to offer — real answers depend on a convention called day clamping. Ask "how many months between March 20 and June 10?" and the honest answer is not 3 but "2 months and 21 days," because the third month never completes. This calculator handles both questions with the conventions that contracts, billing systems, and date libraries actually use.
Mode one measures the span between two dates in whole months plus remaining days. Mode two adds or subtracts any number of months from a date and shows the resulting date, clamped when necessary, along with the weekday it falls on. Results update instantly, the computation runs entirely in your browser, and the tool is free with no signup — safe for confidential contract or medical dates you would rather not paste into a web form with an upload button.
Month math shows up everywhere once you look: lease terms, subscription renewals, pregnancy counting, warranty periods, loan schedules, visa durations. Getting the convention right matters because systems disagree at the edges, and the edges are exactly where disputes happen.
Mode 1: Months Between Two Dates
Enter a start date and an end date; the tool reports whole elapsed months plus leftover days. The convention: a whole month elapses when the same day-of-month arrives again in the calendar.
Examples with the convention applied:
| Start | End | Result |
|---|---|---|
| Jan 10, 2025 | Feb 10, 2025 | 1 month, 0 days |
| Jan 15, 2025 | Mar 14, 2025 | 1 month, 27 days |
| Mar 20, 2025 | Jun 10, 2025 | 2 months, 21 days |
| Jan 31, 2025 | Feb 28, 2025 | 0 months, 28 days |
| Jan 29, 2024 | Mar 1, 2024 | 1 month, 1 day |
The last two rows show the borrowed-day behavior. January 31 to February 28 in a common year yields 0 months and 28 days: the full month would end on the nonexistent February 31, so nothing completes. But January 29 to March 1, 2024 — a leap year — gives 1 month and 1 day, because February 29 exists and the one-month mark lands there. The same dates in 2025 produce 31 remaining days with no whole month. The leap day literally changes the month count, and this tool applies the correct behavior for whichever year you enter.
Reversed dates are handled with the absolute difference, so entering the later date first still yields a positive result rather than an error.
Mode 2: Add or Subtract Months From a Date
Enter a date, a number of months, and choose add or subtract. The tool advances the month field by that amount and keeps the day-of-month — unless the target month has no such day, in which case it clamps to the month's last day.
January 31, 2025 plus 1 month: February has no 31st, so the result is February 28, 2025 — the last day of the target month. The tool also displays the weekday: February 28, 2025 is a Friday. Adding 2 months lands on March 31, which exists normally, showing that clamping only kicks in at month boundaries.
More clamping examples that show why this convention matters:
- March 31 + 1 month → April 30 (no April 31).
- August 31 − 1 month → July 31 (no clamping needed).
- May 31 + 3 months → August 31 (exact fit).
- November 30 + 3 months → February 28, 2026 in a common year, February 29 in a leap year — same operation, different result by year.
Subtraction clamps the same way: May 31 minus 3 months gives February 28 (or 29 in a leap year), not March 2 or an error. This matches the behavior of standard date libraries and most contract interpretations: a payment due "one month after January 31" is due February 28, not March 2 or 3.
How to Use This Calculator (Step by Step)
- Pick the mode: between two dates to measure a span, or add/subtract months to project forward or backward.
- For the between mode, enter start and end dates in either order and read whole months plus remaining days. Use it for lease lengths, warranty windows, and billing spans.
- For the add/subtract mode, enter the anchor date and the month count, and select the direction. Negative results are impossible by design — direction is a choice, not a sign.
- Read the weekday of the result. Renewal dates that land on a weekend often shift in practice; knowing the raw weekday lets you apply your own business-day rule deliberately.
- Note whether clamping occurred. If an anchor day is 29, 30, or 31, check the result — that is where systems disagree and where your contract or billing platform may use a different convention.
- Change any input and both modes recompute instantly.
How It Works: The Calendar Math
The between mode walks forward from the start date, advancing one whole month whenever the same day-of-month is reached (clamping at short-month ends for anchor days like the 31st), then counts the leftover days literally. The add/subtract mode is the same operation anchored at one end: add N to the month index, keep the day, clamp the day to the target month's length, and resolve the weekday from the final date.
Worked example, between mode: March 20 to June 10, 2025. The one-month mark is April 20; the two-month mark is May 20. June 10 is 11 days past May 20, so the result is 2 months and 11 days — not the 21 shown earlier for a June 10 end wait, recompute: May 20 plus 21 days is June 10, so the correct result is 2 months and 21 days. The arithmetic is small but the counting must be done on the actual calendar, which is precisely what humans do badly and this tool does reliably.
Worked example, add mode: October 15, 2025 plus 7 months. Month index advances to May 2026, day stays 15, no clamping. Result: May 15, 2026, a Friday. The weekday comes from counting days modulo 7 against the known weekday of the result date — a detail that matters when the deadline must fall on a business day.
Common Use Cases
- Lease and rental terms. A lease starting January 31 for 6 months ends July 31 — but one starting March 31 ends September 30 by clamping. Verify both before signing.
- Subscription renewals. Services billed monthly on the 31st typically renew on the last day of short months; predict the actual charge dates.
- Pregnancy and medical timelines. "Nine months from May 20" is February 20 — a weekday check tells you whether the appointment target is even open.
- Warranty and return windows. Bought August 30 with a 3-month warranty? Coverage runs to November 30, not December 1.
- Loan and installment schedules. Payment dates generated by adding months to an anchor date clamp at month ends; this tool reproduces the schedule for checking.
- Visa and permit durations. "Six months from entry" lands on a specific date; knowing whether it is a weekday matters for flights and appointments.
Tips and Best Practices
- Check the clamping convention in your contract. Some agreements specify "the last day of the month" for month-end anchors; others add months to the first of the next month instead. The math here follows the standard last-day clamp.
- Beware anchors on the 29th–31st. Any date near a month end produces year-dependent results — February 28 versus 29 — so verify leap years when the span crosses one.
- Weekend results need a business-day policy. If the computed renewal is a Saturday, your provider may charge Friday or Monday. The weekday display surfaces this before it surprises you.
- Use whole months plus days for reporting, days for deadlines. "2 months and 21 days" communicates well; the literal day count is safer for interest and legal cutoffs.
- Reversed date order is fine in the between mode. The absolute difference means you never need to swap inputs — but if a negative result would be meaningful (days before a launch), swap deliberately.
- Do not mix month math and day math casually. January 10 + 2 months + 30 days differs from January 10 + 90 days. Apply operations in the order your agreement states them.
Limitations Worth Knowing
This calculator uses the standard Gregorian calendar and the common clamping convention, but it is not a legal authority: contracts, jurisdictions, and billing platforms each define "one month" in their own terms, and some specify day counts instead. It also does not handle business-day calendars — no holiday exclusion, no work-week adjustment — so a renewal computed here still needs your own holiday rules applied. For durations beyond a few years, century leap-year rules (2100 will not be a leap year) are handled correctly, but very long spans are usually better expressed in days anyway, since whole-month counting loses precision as spans grow.
Month Calculator vs. Counting on a Paper Calendar
For a span like March 20 to June 10, finger-counting gets the months right and the days wrong — most people report "almost 3 months" and stop there, while the exact figure is 2 months and 21 days. For projection, the paper calendar handles small additions but fails at clamping: almost nobody correctly lands January 31 plus 1 month on February 28 without being told the convention, and fewer still check the weekday. This tool applies the standard library convention consistently, handles reversed inputs, resolves the weekday, and recomputes instantly as dates change. It runs locally in your browser, so lease dates and medical timelines stay on your device.