Calculator

Date & Time Calculators Free & instant

Number of Months Between Dates Calculator

October 2026 8 min read

Convert any span into calendar months with leftover days and totals. Free, instant, no sign-up.

Whole months
364
0 y 11 m 30 d
Weeks
52
+0 d
Months
11
calendar months
Total days
Thursday
to Thursday

Live statistics

Whole months

364

0 y 11 m 30 d

Weeks

52

+0 d

Months

11

calendar months

Total days

Thursday

to Thursday

Inputs — Number of Months Between Dates

Start Date
End Date
Include End Date
Results update live as you type
Status:0 y 11 m 30 d364 daysThursday to Thursday

Result Summary

Whole months364
Calendar span0 y 11 m 30 d
Weeks52 w 0 d
Total daysThursday to Thursday
RangeThursday, January 1, 2026 to Thursday, December 31, 2026

Breakdown

MeasureValue
StartThursday, January 1, 2026
EndThursday, December 31, 2026
Total months11
Total hours8,736
Total minutes524,160

Results

Optimal

Whole months

11mo

Whole calendar months

Total days

364days

Exact day count

Calendar Span

0 y 11 m 30 d

Years, months and days

Weeks

52 w 0 d

Whole weeks plus remainder

Total Hours

8,736hrs

Days × 24

UTC calendar arithmetic with automatic leap-year handling. Dates count whole UTC midnights; clock spans wrap modulo 24 hours.

Visualizations

Span in Different Units

364Days
52Weeks
11Months
364Hours ÷24

Year Progress Consumed

Days364d

Span vs One Year

Span364d

Formula

Convert any span into calendar months with leftover days and totals. All arithmetic is UTC-midnight based for dates and modulo-86400 for clock times.

Total = midnights(End) minus midnights(Start) plus include?1:0

Alternative Form

Y/M/D by borrowing; Weeks = floor(days / 7)

Variables

SymbolNameUnitDescription
AAnchordate/timeStarting point of the computation
NSpandays/timeDistance applied or measured
RResultdate/timeComputed endpoint or balance

Explanation

The engine parses inputs strictly, applies calendar or clock rules exactly, and reports both the headline and the audit-friendly breakdown.

Derivation

Parse, validate, apply rule (DATES), then format headline + breakdown.

Step-by-Step Calculation

Follow each step to understand how the result is calculated from your inputs.

Step 1

Parse both dates as UTC midnights so time zones never shift a day.

UTC(date) = Date(YYYY-MM-DD + T00:00:00Z)
Start:Thursday, January 1, 2026
End:Thursday, December 31, 2026
Intermediate: Reversed ranges are swapped, never negative
Result: 364 days in range
Step 2

Take the raw calendar difference in years, months and days with borrowing.

Years = Y2 − Y1; Months = M2 − M1; Days = D2 − D1
Span:0 y 11 m 30 d
Intermediate: Borrow a month when days go negative, a year when months go negative
Result: Calendar span = 0 y 11 m 30 d
Step 3

Fold the day total into weeks and leftover days.

Weeks = floor(days ÷ 7); leftover = days mod 7
Weeks:52
Leftover:0
Intermediate: Exact midnight count, leap days included
Result: 52 w 0 d
Step 4

Convert days to hours and minutes for payroll and billing math.

Hours = days × 24; Minutes = hours × 60
Hours:8,736
Minutes:524,160
Intermediate: Whole-day granularity
Result: 8,736 hours total
Step 5

Read endpoint weekdays for scheduling context.

Weekday = UTC day-of-week of each date
Start:Thursday
End:Thursday
Intermediate: Gregorian calendar, Monday-start ISO weeks
Result: Thursday → Thursday
Final Answer
11

Worked Examples

See how the calculator works with different scenarios.

Scenario

Jan 1 to Jan 31, 2026, end excluded.

Inputs

Note:Range: 2026-01-01 to 2026-01-31

Calculation

30 midnights = 4 w 2 d; Y/M/D 0 y 0 m 30 d

Result

30 days, 720 hours

Interpretation

The midnight count and the calendar read agree on short spans.

Understanding Your Result

Your Result: Whole months: headline result above

Typical range: Short spans run days to weeks; yearly spans hold 365 or 366 days with 52 weeks plus 1–2 days.

What This Means

Convert any span into calendar months with leftover days and totals. The headline shows whole months; the breakdown tables prove every figure.

Why It Matters

A single miscounted day, hour or holiday compounds across payroll, invoices and plans. The step-by-step audit trail removes the dispute surface.

Professional Interpretation

Use the headline for decisions and the midnight-exact totals for money math such as prorating and tenure.

Recommendations

  • •State inclusive vs exclusive in writing on every run
  • •Verify holiday counts against the observed calendar
  • •Reconcile weeks x 7 plus remainder against total days
  • •Archive the printed breakdown with your records

Learn — date & time math, deeply

Convert any span into calendar months with leftover days and totals. This page computes the auditor's way so every figure reconciles.

1 · The work-hour pipeline (how every answer is built)

Calendar days

walk UTC midnights

Start → end, one midnight at a time. Reversed dates are swapped, never negative.

Workdays

keep selected weekdays

Mon–Fri by default. Weekends and unchecked weekdays fall out here.

− Holidays

subtract weekday holidays

Only weekday holidays inside the span. Weekend holidays cost nothing.

Gross hours

× hours per day

Workdays × scheduled h/day. Breaks still inside at this stage.

Net + OT

− breaks, split weeks

Unpaid breaks removed, then each ISO week split at the 40h threshold.

2 · Conventions that change the answer (state yours in writing)

  • Inclusive vs exclusive end date — payroll ranges usually include both endpoints; SLA/delivery math usually excludes the end. One day of difference on every run.
  • Holiday-observed rules — US federal holidays falling on Saturday are observed Friday; Sunday → Monday. Enter the observed weekday date.
  • Half-day holidays — enter whole-day equivalents (two half days = 1). The calculator counts whole workdays only.
  • Leap days — Feb 29 exists when (year % 4 == 0 and year % 100 != 0) or year % 400 == 0. UTC-midnight walking counts it automatically.
  • ISO 8601 — always write and store dates YYYY-MM-DD. It sorts, it never swaps month/day, and every converter on this site parses it.
  • Week numbering — overtime splits use ISO weeks (Monday start). A US Sunday-start payroll week can shift 1 day of OT across the boundary — reconcile once, then stay consistent.

DST & time zones — when day counts lie

  • • Day counts are DST-proof (UTC midnights). Shift lengths are not: a 00:00–08:00 night shift on spring-forward Sunday is 7 paid hours.
  • • Always store the calendar date; convert to local time only for display and shift math.
  • • Cross-timezone teams: anchor deadlines in UTC (e.g. 2026-09-14T15:00Z), never “EOD Friday”.
  • • Fall-back Sunday has 25 hours — overnight OT that night needs local timestamps, not date subtraction.

Gregorian & history notes

  • • Results are exact for 1900–2100. Outside that, rules are applied proleptically (the 1582 Julian→Gregorian 10-day skip is not modelled).
  • • Average-month (30.44 d) and average-year (365.25 d) figures are labelled approximate — calendar Y/M/D plus exact day totals are the precise pair.
  • • Fiscal/quarter/academic variants start on local rules (Oct 1, Jul 1, Sep 1…) — confirm the year-start before comparing across calculators.
  • • Julian dates, Unix epoch and RFC 3339 converters live in Unix / Computer Time for machine-handoff work.

3 · Overtime & compliance context (US-focused, educational — not legal advice)

RuleThresholdWhat it means here
FLSA federal overtime40 h / 7-day workweekNet hours above 40 in any single ISO week count as OT. Biweekly totals do not average out.
California / Alaska / Nevada daily OT8 h / day (CA: 2× after 12 h)Long-shift plans (4×10, 12 h shifts) earn daily OT even in a 40 h week — verify with the payroll checklist.
Colorado overtime40 h week OR 12 h dayEither trigger fires. 12 h shift workers hit the daily trigger on every shift.
Record-keeping (FLSA)3 years of daily hoursKeep the per-day time records, not just totals — the week-by-week diagram is your audit trail.
Child-labour / minor hour capsVaries by state & schoolSchool-days and teen schedules cap daily/weekly hours — pair with Academic & School Dates.

4 · Audit like a pro (the 3-way cross-check)

  1. Hand-estimate first: workdays ≈ calendar days × days-per-week ÷ 7, then × hours/day. Within 5% before trusting the screen.
  2. Reconcile the diagram: the week-by-week bars must sum to net hours. A mismatch means a holiday or toggle error, not a math error.
  3. Re-run with the end date flipped inclusive/exclusive — the difference must be exactly one workday of hours (or zero on an off-day).
  4. Export/print the breakdown for payroll: range, plan, holidays, breaks, weekly OT split — the five numbers an auditor asks for.
  5. For cross-border teams, confirm the holiday calendar (US federal ≠ UK bank ≠ company) before locking the run.

Practical Tips

  • •Estimate first, then compare
  • •Use sensible defaults, then refine
  • •Flip inclusive/exclusive to prove the boundary
  • •Copy the breakdown before closing the page
  • •Re-run at milestones to track drift

Common Mistakes

Typing DD-MM-YYYY into a YYYY-MM-DD field
Use the picker or ISO order 2026-09-14 so month and day never swap.
Counting the end date twice
Decide inclusive vs exclusive once and state it in writing.
Entering weekend holidays as weekday holidays
Count only observed weekdays inside the span.
Mixing paid rests with unpaid lunch
Only unpaid meal minutes go in the break field.

Assumptions

This calculator makes the following assumptions to provide estimates:

UTC Midnights: Dates are 00:00 UTC; DST never changes a day count.
Gregorian Rules: Leap years follow divisible-by-4 except centuries unless divisible by 400.
Whole Units: Partial days and minutes are floored, never rounded up.

Limitations

Be aware of these limitations when using this calculator:

No Holiday Picker: Regional calendars are not built in — verify counts against the observed list.
Whole Days: Start/end mid-day times need an hour-level tool.

Frequently Asked Questions

Answers to common questions about this calculator.

How is the number of months between dates calculator computed?
By counting exact UTC midnights between the two dates. Convert any span into calendar months with leftover days and totals. Calendar spans borrow across real month lengths; totals in days, weeks, hours and minutes come from the midnight count.
How accurate are these date calculations?
All math uses UTC midnight-to-midnight day arithmetic, so daylight-saving shifts never add or remove an hour from a day count. Results are exact for the Gregorian calendar for any date from 1900 through 2100.
Do leap years affect the result?
Yes, automatically. February 29 exists in leap years (divisible by 4, except centuries unless divisible by 400), and every total-days figure counts it exactly.
Why do months give uneven results?
Months are 28 to 31 days long, so converting days to months is approximate. Calendar spans use exact Y/M/D borrowing; totals in days, weeks and hours stay exact.
Which time zone is used?
Dates are parsed and compared in UTC to keep results identical in every time zone. Enter the calendar date as written; the exact hour of day is not modelled unless a time field is shown.
What date format should I enter?
Use the date picker or YYYY-MM-DD format, for example 2026-09-14. The calculator validates impossible dates like February 30.
Can the end date be before the start date?
Yes. Reversed ranges are swapped internally and reported as a positive span, so the breakdown always describes the true distance between the two dates.
Should the end date be included?
Payroll ranges usually include both endpoints; SLA and delivery math usually excludes the end. Toggle it where shown — the steps display the one-day difference so auditors can follow.
How do weekends and holidays work?
Business-day modes keep Monday to Friday and subtract the weekday-holiday count you enter. Weekend holidays cost nothing and must not be entered twice.
How do I prove the result to payroll or a client?
Reconcile three numbers: hand-estimate days times hours, flip inclusive/exclusive once to prove the one-day delta, and check weeks times 7 plus remainder equals total days. Copy the breakdown into your records.
What about overnight times?
Time spans that end earlier than they start are treated as overnight (past midnight) and add 24 hours automatically, with the overnight flag shown.
Does daylight saving change the answer?
Day counts never change — UTC has no DST. Clock-time conversions carry a ±1 hour DST caveat: verify spring-forward and fall-back weeks against the local observed calendar.
What is the difference between total days and calendar Y/M/D in the Number of Months Between Dates Calculator?
Total days is the exact midnight count, while Y/M/D is the borrowed calendar read like 1 y 2 m 5 d. Use total days for prorating and money math, and Y/M/D for birthdays, tenure and anniversary wording in the Number of Months Between Dates Calculator.
How does the Number of Months Between Dates Calculator handle February 29 birthdays and leap days?
February 29 is counted exactly whenever it falls inside the span, and Feb 29 birthdays roll to Feb 28 in common years for anniversary math. The leap rule is divisible by 4, except centuries unless divisible by 400.
How does month-end clamping work, for example Jan 31 plus one month?
Adding months keeps the same day number when possible and clamps to the last valid day otherwise, so Jan 31 plus one month becomes Feb 28 or Feb 29 in a leap year. The result keeps the correct weekday and month length context.
What is the difference between ISO week numbers and US week numbers?
ISO weeks start Monday and week 1 contains the first Thursday, so Jan 1 can belong to the prior year week 52 or 53. US week counting often starts Sunday and labels Jan 1 as week 1. The Number of Months Between Dates Calculator uses ISO Monday-start logic for consistency.
How is day-of-year computed and does it include Feb 29?
Day-of-year counts Jan 1 as 1 through Dec 31 as 365 or 366, with Feb 29 included as day 60 in leap years. Days remaining and percent elapsed are derived from 365 or 366 accordingly.
Can I use historic dates before 1900 or far-future dates after 2100?
Yes for planning math, with proleptic Gregorian rules extended backward and forward. Results before the 1582 Gregorian reform are arithmetic rather than historical, so cite them as calculated rather than observed for legal history.
What is the difference between Julian dates and Gregorian calendar dates?
Julian dates count continuous days from noon Jan 1, 4713 BC for astronomy, while Gregorian dates are civil month/day/year. The Number of Months Between Dates Calculator uses Gregorian civil dates; convert separately if you need Julian day numbers for astronomical work.
How do results compare with Excel DAYS, DATEDIF or Google Sheets?
Excel DAYS matches the exclusive midnight count, and DATEDIF Y/M/D matches borrowed subtraction when both use the same inclusive setting. If you see a one-day gap, check inclusive versus exclusive first, then 1900 versus 1904 date systems in Excel.
What does the Number of Months Between Dates Calculator show when start and end are the same date?
An exclusive same-date span reads 0 days, while inclusive reads 1 day, because inclusive counts the endpoint itself. This is correct for empty versus single-day ranges like same-day deadlines.
How can I print, save or share my calculation?
Use the copy and print controls to archive the headline plus breakdown with inputs and the inclusive setting noted. Paste into payroll, HR or client records so the one-day boundary choice is auditable later.
How are weekdays and weekend flags determined?
Weekdays come from the UTC day-of-week for each date, with Monday to Friday treated as workdays in business modes. The Number of Months Between Dates Calculator never shifts a weekday for time zones because dates are fixed at UTC midnight.
Why does 1582 or very old dates sometimes look odd?
The Gregorian calendar skipped 10 days in October 1582 when adopted, and Britain and others adopted later. The calculator applies uniform proleptic rules, which is exact for modern planning but not a historical record for those transition years.
Can I chain add and subtract steps, like plus 90 days then plus 6 months?
Yes. Take the result ISO date from step one as the anchor for step two, keeping the same month-end clamping rule each time. Chaining preserves weekday accuracy better than adding a single averaged day total.
Is the Number of Months Between Dates Calculator free on mobile and without sign-up?
Yes. Every Atlascalcs date tool runs instantly in the browser on phone, tablet or desktop with no account and no fee. Results update live as you change dates.
How do I choose inclusive versus exclusive for contracts and payroll?
Use inclusive when both endpoints are worked or billed, such as a rental from Mar 1 to Mar 3 counting 3 days. Use exclusive for elapsed time like SLAs and delivery windows, where Mar 1 to Mar 3 is 2 midnights.
What should I check if my hand count differs by one day?
Recheck three things in order: inclusive versus exclusive, whether you counted the start day by hand, and Feb 29 inside the span. Flipping the include toggle once proves the one-day delta in the step trace.

Related Calculators

Explore more calculators related to this topic.

Related Guides

Deepen your understanding with these educational resources.

Glossary

Technical terms used in mortgage calculations explained in plain language.

UTC midnight
00:00 on the Coordinated Universal Time clock — the day boundary used for exact day counts.
Business day
A weekday (usually Mon–Fri) minus observed holidays; the workable subset of calendar days.
Gross hours
Workdays × scheduled hours per day, before unpaid breaks are removed.
Net hours
Gross hours minus unpaid break time — the payable-hour figure.
FTE week
One 40-hour full-time-equivalent week. Net hours ÷ 40 = FTE weeks.
Inclusive vs exclusive
Whether the end date itself is counted. SLAs usually exclude it; payroll ranges often include it.
Observed holiday
A holiday moved to the nearest weekday when it falls on a weekend (e.g. July 4 → July 3, 2026).
ISO week
Week-numbering where week 1 contains the first Thursday; weeks start Monday (2026-W01 starts Dec 29, 2025).
DST transition
Spring-forward / fall-back clock change. Day counts are unaffected (UTC); shift-length math needs local time.
Proleptic Gregorian
Gregorian leap rules extended before their 1582 adoption — fine for math, not history.
Total days
Exact UTC-midnight count between two dates.
Calendar span
Years, months and days via borrowed subtraction.

Authoritative References

Trusted sources and standards referenced by this calculator.

Applicable Standards

ISO 8601 — Date and time format (YYYY-MM-DD, week dates)FLSA — Fair Labor Standards Act: 40-hour overtime threshold (US)UCC § 2-206 / contract timing — business-day performance conventionsNIST Time & Frequency — UTC, leap seconds, traceable timeIETF RFC 3339 — Internet date/time profile of ISO 8601

Was This Calculator Helpful?

Page Information

Last Updated:

2026-10-05

Version:

2.0.0

License:

Free to use for educational and professional purposes.