QuantCalc Retirement Engine

v1.10.0
app.quantcalc/retirement-engine Checked 1 day ago Published 23 days ago

Retirement Monte Carlo, tax-aware withdrawals, 2026 tax calculators, RMD, IRMAA, every-state tax.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run_retirement_projection Run a retirement projection

Runs a Monte Carlo retirement projection on the QuantCalc engine and returns the success rate, the ending-portfolio distribution, and the assumptions that produced them. The result states the return model that ran, the number of paths, and the income assumptions it used, including when there are none. Income tax is not modelled by this tool; run_tax_aware_projection models it.

ParameterTypeDescription
annual_spending *numberPlanned yearly spending in today's dollars, before income tax (this tool runs the standard engine, which does not model tax).
current_age *integerCurrent age of the primary person.
current_savings *numberTotal invested portfolio today, in dollars.
allocationsarrayPercentages summing to 100: [US stocks, international stocks, bonds, real estate, cash]. Default [60,10,25,5,0].
bucket_yearsintegerOnly with withdrawal_strategy bucket: years of spending held in the cash bucket, 1-10.
inflation_ratenumberAnnual inflation as a percent, e.g. 2.5. Default 2.5.
life_expectancyintegerAge the plan must last until. Default 92.
monthly_contributionnumberMonthly savings until retirement. Default 0.
pensionnumberYearly pension income. Default 0.
pension_start_ageintegerAge the pension starts. Default 65.
retirement_ageintegerAge work income stops. Defaults to current age.
return_modelstringHow returns are generated. parametric (default): the forward-looking published assumptions. bootstrap (stationary block bootstrap of historical months) and historical (real months from 1926 replayed i…
returns_sourcestringWhich published return set to use (see list_return_assumption_sources). Default jpmorgan.
social_securitynumberYearly Social Security in today's dollars. Default 0 — and 0 is reported as an explicit assumption, not hidden.
spending_confidenceintegerThe success rate the 'sustainable spending' answer is solved at: the most this plan can spend each year and still succeed on at least this percentage of paths, with the same answer if every balance we…
ss_start_ageintegerAge Social Security starts. Default 67.
withdrawal_strategystringSpending rule. fixed (default): the planned amount, inflation-adjusted, every year. guyton-klinger: guardrails that cut or raise spending as the portfolio moves. vpw: variable percentage withdrawal. b…

run_tax_aware_projection Tax-aware projection with the recommended withdrawal order

Runs the retirement projection with the household's accounts split by tax type and returns the withdrawal order and Roth-conversion programme the engine selected, its present-value advantage and range against drawing traditional first, and the after-tax success rate. Federal and state income tax (50 states and DC), Social Security taxability, required minimum distributions, Medicare IRMAA surcharges and the early-withdrawal penalty are paid from the portfolio year by year; spending is what the household keeps after tax. The result states every assumption it used, including the defaults for inp…

compare_return_assumptions Compare published return assumptions

Runs the same plan against several published capital market assumption sets and returns the success rate and median outcome under each, showing how far the answer moves with the return forecast used. Every input is optional: omitted plan inputs use an illustrative plan, which the reply states in its first line.

ParameterTypeDescription
allocationsarrayPercentages summing to 100: [US stocks, international stocks, bonds, real estate, cash]. Default [60,10,25,5,0].
annual_spendingnumberPlanned yearly spending in today's dollars, before income tax (this tool runs the standard engine, which does not model tax).
bucket_yearsintegerOnly with withdrawal_strategy bucket: years of spending held in the cash bucket, 1-10.
current_ageintegerCurrent age of the primary person.
current_savingsnumberTotal invested portfolio today, in dollars.
inflation_ratenumberAnnual inflation as a percent, e.g. 2.5. Default 2.5.
life_expectancyintegerAge the plan must last until. Default 92.
monthly_contributionnumberMonthly savings until retirement. Default 0.
pensionnumberYearly pension income. Default 0.
pension_start_ageintegerAge the pension starts. Default 65.
retirement_ageintegerAge work income stops. Defaults to current age.
return_modelstringHow returns are generated. parametric (default): the forward-looking published assumptions. bootstrap (stationary block bootstrap of historical months) and historical (real months from 1926 replayed i…
social_securitynumberYearly Social Security in today's dollars. Default 0 — and 0 is reported as an explicit assumption, not hidden.
sourcesarraySource ids to compare. Defaults to all.
spending_confidenceintegerThe success rate the 'sustainable spending' answer is solved at: the most this plan can spend each year and still succeed on at least this percentage of paths, with the same answer if every balance we…
ss_start_ageintegerAge Social Security starts. Default 67.
withdrawal_strategystringSpending rule. fixed (default): the planned amount, inflation-adjusted, every year. guyton-klinger: guardrails that cut or raise spending as the portfolio moves. vpw: variable percentage withdrawal. b…

list_return_assumption_sources List available return assumption sets

Returns the published capital market assumption sets the engine carries, with each set's id, name, date and description.

explain_methodology What the engine models, and what it does not

Returns what the QuantCalc engine models and what it deliberately leaves out, including the tax provisions that are out of scope, and links to the published methodology.

retirement_plan_deferral_savings 401(k), 403(b), 457(b), TSP or SIMPLE IRA deferral limit at an age (2026 or 2027)

Returns the 2026 or 2027 elective-deferral limit for a 401(k), 403(b), governmental 457(b), the TSP or a SIMPLE IRA at an age: the base limit, the age-50 and ages 60-63 catch-ups, the SIMPLE higher limit, a non-governmental 457(b) without a catch-up, the part of the catch-up the Roth catch-up wage rule sends in as Roth, and the amount a deferral is figured on when it is over the limit or over the wages. It states that a deferral saves no Social Security or Medicare tax. The limits are the website's contribution-limit pages' own figures (the 2027 limits are the IRS's published figures, IRS Noti…

ParameterTypeDescription
age *integerYour age on December 31 of the tax year (18-110): sets the catch-up (50+, and the higher catch-up in the years you turn 60 to 63).
plan *stringThe workplace plan: 401(k), 403(b), governmental 457(b), the TSP, or a SIMPLE IRA.
wages *numberYour wages before the contribution (more than 0): the deferral comes out of them.
amountnumberThe pre-tax deferral for the year. Default: your full limit at your age. Over the limit or over your wages it is figured on the lower.
higher_limit_simplebooleansimple only: the employer uses the SECURE 2.0 higher-limit SIMPLE.
non_governmental_457boolean457b only: a tax-exempt (non-governmental) employer's 457(b), which has no catch-up.
roth_catchupbooleanNot for simple: true when your prior-year Social Security wages from this employer were over the year's threshold, so the catch-up must go in as Roth (no tax saved now). Default: whether wages are ove…
tax_yearinteger2026 (default) or 2027. 2027: the limits and phase-out ranges are the IRS's published 2027 figures (IRS Notice 2026-66), as the 2027 pages print them. Stated in the result.

ira_deduction_and_roth_limit Traditional IRA deduction and Roth IRA limit at a modified AGI (2026 or 2027)

Runs IRS Publication 590-A Worksheet 1-2 (the deductible part of a traditional IRA contribution when you or your spouse is covered by a plan at work) and Worksheet 2-2 (the reduced Roth IRA contribution limit) for 2026 or 2027 on a given modified AGI, line by line, with the age-50 catch-up, the compensation cap, the spousal IRA rule and the worksheets' rounding and minimum; returns the deductible and nondeductible parts of a traditional contribution, the Roth IRA limit and the Roth room left. The limits and ranges are the website's IRA and Roth income-limit pages' own figures (the 2027 limit a…

ParameterTypeDescription
age *integerYour age on December 31 of the tax year (18-110): 50 or older adds the catch-up.
filing_status *stringsingle, mfj, hoh, mfs (lived with the spouse at some time in the year) or mfs_apart (married filing separately, lived apart all year: treated as unmarried).
magi *numberModified AGI: the income the worksheets run on.
amountnumberThe contribution for the year. Default: your full limit.
contribution_typestringtraditional (default): the deductible and nondeductible parts of the contribution. roth: your Roth IRA limit at this MAGI.
coveredbooleanYou are covered by a retirement plan at work (the W-2 'Retirement plan' box). Default false.
spouse_coveredbooleanmfj or mfs: your spouse is covered by a plan at work. Default false.
spouse_ira_contributionsnumberJoint return only: the spouse's own IRA contributions (the spousal IRA rule). Default 0.
spouse_wagesnumberJoint return only: the spouse's wages. Default 0.
tax_yearinteger2026 (default) or 2027. 2027: the limits and phase-out ranges are the IRS's published 2027 figures (IRS Notice 2026-66), as the 2027 pages print them. Stated in the result.
wagesnumberYour wages (W-2 box 1): your compensation, which caps the contribution. Default: the MAGI is taken as your compensation.

standard_deduction_vs_itemizing Standard deduction piece by piece (2026 or 2027)

Returns the 2026 or 2027 standard deduction piece by piece: the basic amount for the filing status, the additional amount for each person 65 or older or blind, a dependent's limit, and the rule that a married person filing separately whose spouse itemizes must itemize; with anyone 65 or older it also states the senior deduction's maximum before its phase-out. The amounts are the website's standard deduction pages' own figures (2027: the IRS's published amounts, Rev. Proc. 2026-35). Not tax advice.

ParameterTypeDescription
age *integerYour age on December 31 of the tax year (0-120): 65 or older adds the additional amount and the senior deduction.
filing_status *stringFiling status: single, married filing jointly (mfj), married filing separately (mfs) or head of household (hoh).
blindbooleanYou are blind. Default false.
dependentbooleanNot on a joint return: someone else can claim you as a dependent (the basic amount is limited, IRC 63(c)(5)). Default false.
spouse_ageintegerJoint return only: the spouse's age. Default: the same as age.
spouse_blindbooleanJoint return only: the spouse is blind. Default false.
spouse_itemizesbooleanmfs only: your spouse itemizes on a separate return, so you must too.
tax_yearinteger2026 (default) or 2027. 2027: the IRS's published 2027 standard deduction, additional amounts and dependent limit (Rev. Proc. 2026-35). Stated in the result.
wagesnumberYour wages (a dependent's earned income). Default 0.

calculate_rmd Required minimum distribution (RMD) for 2026 or 2027

Computes the required minimum distribution for 2026 or 2027 from the prior year-end balance and the age or birth year, on the IRS Uniform Lifetime Table, or the Joint and Last Survivor Table when the spouse is the sole beneficiary and more than 10 years younger; returns the divisor, the deadline, the SECURE 2.0 start age (73, or 75 for those born 1960 or later), the first-year April 1 option and the two RMDs it stacks into one year, and a multi-year projection with growth. The same figures as the website's RMD calculator.

ParameterTypeDescription
age *integerThe age the owner reaches by December 31 of the distribution year.
balance_prior_year_end *numberThe traditional IRA (or plan) balance on December 31 of the year before the distribution year.
birth_yearintegerThe owner's birth year; when given it is used instead of age.
growth_rate_percentnumberAnnual growth of the balance for the projection and the delayed-first-RMD figure, in percent (5 = 5%). Default 0.
projection_yearsintegerYears in the projection, 1-30. Default 10.
spouse_ageintegerThe spouse's age reached in the distribution year, for the Joint and Last Survivor Table: read with spouse_sole_beneficiary.
spouse_sole_beneficiarybooleanThe spouse is the sole beneficiary all year: when the spouse is more than 10 years younger the Joint and Last Survivor Table applies. Needs spouse_age. Default false.
yearintegerThe distribution year: 2026 or 2027 (the same Uniform Lifetime Table). Default 2026. Also accepted as tax_year.

irmaa_check Medicare IRMAA tier for a MAGI

Returns the Medicare IRMAA tier a MAGI sets: the official 2026 and 2027 tiers (from 2024 and 2025 MAGI, CMS's tables) and the 2028 tier (from 2026 MAGI) on the table as QuantCalc projects it, labelled projected; with each the monthly Part B and Part D surcharge per person, the annual total for the people on Medicare, and the distance to the next tier. Reads the same CMS tables as the website's IRMAA calculator.

ParameterTypeDescription
filing_status *stringFiling status: single, married filing jointly (mfj), married filing separately (mfs) or head of household (hoh).
magi *numberModified AGI (AGI plus tax-exempt interest) of the 2024 return, which sets the 2026 premiums; also used for 2025 and 2026 unless they are given.
both_spouses_on_medicarebooleanJoint return only: both spouses are on Medicare (the surcharge is per person). Default true, stated.
cpi_assumption_percentnumberThe CPI-U assumption of the projected 2028 floors and amounts (the amounts grown from CMS's 2027 table): 2.0 (default, the rate the website's IRMAA tools use), 2.5, 3.0. The 2027 tiers do not depend o…
magi_2025number2025 MAGI, which sets the 2027 premiums. Default: magi.
magi_2026number2026 MAGI, which sets the 2028 premiums. Default: magi.

aca_premium_tax_credit 2027 ACA marketplace benchmark, poverty line and the 400% cliff

Returns a household's 2027 ACA marketplace position from its state, the ages on the plan, household size and income: the county's benchmark (second-lowest-cost silver) premium from CMS's plan-year-2027 files for the HealthCare.gov states, or a given one; the poverty line that sets 2027 credits (2026 HHS guidelines) and the income as a percentage of it; the 400% cliff income and the headroom below it or the amount over it; and whether the income is below the Medicaid line of an expansion state or below the poverty line. The premium tax credit itself is not figured. Not tax advice.

ParameterTypeDescription
ages *arrayThe ages of the people on the marketplace plan. Ages 21-64 are priced; 65 and over (Medicare) and under 21 are not.
coverage_year *integerThe coverage year: 2027 (the CMS county benchmark, the poverty line, the 400% cliff and the headroom, from published data).
income *numberThe household's modified AGI for the credit: AGI plus tax-exempt interest plus the Social Security not taxed, for the coverage year.
state *stringTwo-letter state of residence, or DC.
benchmark_monthlynumberThe household's own monthly benchmark (second-lowest-cost silver) premium for the people on the plan, from healthcare.gov or the state's marketplace. Default: the county's CMS figure when county is gi…
countystringThe county (name, e.g. Miami-Dade, or 5-digit FIPS code) whose CMS plan-year-2027 benchmark premium is read; published for the HealthCare.gov states. Default: none, stated in the result.
household_sizeintegerTax family size for the poverty line (the filer, a spouse on a joint return, dependents). Default: the number of ages given, stated in the result.