QuantCalc Retirement Engine
v1.10.0Retirement 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.
| Parameter | Type | Description |
|---|---|---|
annual_spending * | number | Planned yearly spending in today's dollars, before income tax (this tool runs the standard engine, which does not model tax). |
current_age * | integer | Current age of the primary person. |
current_savings * | number | Total invested portfolio today, in dollars. |
allocations | array | Percentages summing to 100: [US stocks, international stocks, bonds, real estate, cash]. Default [60,10,25,5,0]. |
bucket_years | integer | Only with withdrawal_strategy bucket: years of spending held in the cash bucket, 1-10. |
inflation_rate | number | Annual inflation as a percent, e.g. 2.5. Default 2.5. |
life_expectancy | integer | Age the plan must last until. Default 92. |
monthly_contribution | number | Monthly savings until retirement. Default 0. |
pension | number | Yearly pension income. Default 0. |
pension_start_age | integer | Age the pension starts. Default 65. |
retirement_age | integer | Age work income stops. Defaults to current age. |
return_model | string | How 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_source | string | Which published return set to use (see list_return_assumption_sources). Default jpmorgan. |
social_security | number | Yearly Social Security in today's dollars. Default 0 — and 0 is reported as an explicit assumption, not hidden. |
spending_confidence | integer | The 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_age | integer | Age Social Security starts. Default 67. |
withdrawal_strategy | string | Spending 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.
| Parameter | Type | Description |
|---|---|---|
allocations | array | Percentages summing to 100: [US stocks, international stocks, bonds, real estate, cash]. Default [60,10,25,5,0]. |
annual_spending | number | Planned yearly spending in today's dollars, before income tax (this tool runs the standard engine, which does not model tax). |
bucket_years | integer | Only with withdrawal_strategy bucket: years of spending held in the cash bucket, 1-10. |
current_age | integer | Current age of the primary person. |
current_savings | number | Total invested portfolio today, in dollars. |
inflation_rate | number | Annual inflation as a percent, e.g. 2.5. Default 2.5. |
life_expectancy | integer | Age the plan must last until. Default 92. |
monthly_contribution | number | Monthly savings until retirement. Default 0. |
pension | number | Yearly pension income. Default 0. |
pension_start_age | integer | Age the pension starts. Default 65. |
retirement_age | integer | Age work income stops. Defaults to current age. |
return_model | string | How 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_security | number | Yearly Social Security in today's dollars. Default 0 — and 0 is reported as an explicit assumption, not hidden. |
sources | array | Source ids to compare. Defaults to all. |
spending_confidence | integer | The 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_age | integer | Age Social Security starts. Default 67. |
withdrawal_strategy | string | Spending 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…
| Parameter | Type | Description |
|---|---|---|
age * | integer | Your 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 * | string | The workplace plan: 401(k), 403(b), governmental 457(b), the TSP, or a SIMPLE IRA. |
wages * | number | Your wages before the contribution (more than 0): the deferral comes out of them. |
amount | number | The 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_simple | boolean | simple only: the employer uses the SECURE 2.0 higher-limit SIMPLE. |
non_governmental_457 | boolean | 457b only: a tax-exempt (non-governmental) employer's 457(b), which has no catch-up. |
roth_catchup | boolean | Not 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_year | integer | 2026 (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…
| Parameter | Type | Description |
|---|---|---|
age * | integer | Your age on December 31 of the tax year (18-110): 50 or older adds the catch-up. |
filing_status * | string | single, 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 * | number | Modified AGI: the income the worksheets run on. |
amount | number | The contribution for the year. Default: your full limit. |
contribution_type | string | traditional (default): the deductible and nondeductible parts of the contribution. roth: your Roth IRA limit at this MAGI. |
covered | boolean | You are covered by a retirement plan at work (the W-2 'Retirement plan' box). Default false. |
spouse_covered | boolean | mfj or mfs: your spouse is covered by a plan at work. Default false. |
spouse_ira_contributions | number | Joint return only: the spouse's own IRA contributions (the spousal IRA rule). Default 0. |
spouse_wages | number | Joint return only: the spouse's wages. Default 0. |
tax_year | integer | 2026 (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. |
wages | number | Your 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.
| Parameter | Type | Description |
|---|---|---|
age * | integer | Your age on December 31 of the tax year (0-120): 65 or older adds the additional amount and the senior deduction. |
filing_status * | string | Filing status: single, married filing jointly (mfj), married filing separately (mfs) or head of household (hoh). |
blind | boolean | You are blind. Default false. |
dependent | boolean | Not on a joint return: someone else can claim you as a dependent (the basic amount is limited, IRC 63(c)(5)). Default false. |
spouse_age | integer | Joint return only: the spouse's age. Default: the same as age. |
spouse_blind | boolean | Joint return only: the spouse is blind. Default false. |
spouse_itemizes | boolean | mfs only: your spouse itemizes on a separate return, so you must too. |
tax_year | integer | 2026 (default) or 2027. 2027: the IRS's published 2027 standard deduction, additional amounts and dependent limit (Rev. Proc. 2026-35). Stated in the result. |
wages | number | Your 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.
| Parameter | Type | Description |
|---|---|---|
age * | integer | The age the owner reaches by December 31 of the distribution year. |
balance_prior_year_end * | number | The traditional IRA (or plan) balance on December 31 of the year before the distribution year. |
birth_year | integer | The owner's birth year; when given it is used instead of age. |
growth_rate_percent | number | Annual growth of the balance for the projection and the delayed-first-RMD figure, in percent (5 = 5%). Default 0. |
projection_years | integer | Years in the projection, 1-30. Default 10. |
spouse_age | integer | The spouse's age reached in the distribution year, for the Joint and Last Survivor Table: read with spouse_sole_beneficiary. |
spouse_sole_beneficiary | boolean | The 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. |
year | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
filing_status * | string | Filing status: single, married filing jointly (mfj), married filing separately (mfs) or head of household (hoh). |
magi * | number | Modified 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_medicare | boolean | Joint return only: both spouses are on Medicare (the surcharge is per person). Default true, stated. |
cpi_assumption_percent | number | The 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_2025 | number | 2025 MAGI, which sets the 2027 premiums. Default: magi. |
magi_2026 | number | 2026 MAGI, which sets the 2028 premiums. Default: magi. |