Roth Conversion Calculator

v1.0.0
com.kindoflost.roth-conversion-calculator/roth-conversion-calculator Checked 4 days ago Published 25 days ago

Optimal Roth conversion plan by year: amounts, tax, and after-tax wealth vs no conversion.

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

get_conversion_example Get an example conversion input

Return a complete example input for optimize_roth_conversions with a one-line explanation of every field. No solve. Edit it to the user's situation. kind 'single' (default: a 60-year-old early retiree with a traditional IRA, a brokerage account and Social Security later) or 'married'.

ParameterTypeDescription
kindstring

optimize_roth_conversions Optimize Roth conversions

Find the best Roth conversion amount for each year of a retirement plan, with living expenses funded from the right accounts and tax paid each year. Returns per-year conversions, taxes and balances, the after-tax wealth at the end with vs without conversions, totals, a plain-language plan narrative and the assumptions used. Advanced options (IRMAA, NIIT, real state brackets) are off by default. Runs in 1-3 seconds (up to ~15 with IRMAA/NIIT on a long horizon). All money in today's dollars. Optimal for the stated assumptions; not tax advice. Call get_conversion_example first if unsure of the sh…

ParameterTypeDescription
age *integerYour age this year. The plan starts now (conversions can begin this year).
balances *objectCurrent household balances, dollars. Omitted = 0; at least one must be above 0.
advancedobjectAdvanced layers, all OFF by default exactly like the web tool. IRMAA and NIIT make the solve a MILP (a few seconds longer; each solve is capped at 5 s, best plan found is returned).
assumptionsobjectModeling assumptions; the defaults (same as the web tool) are reported back.
end_ageintegerPlan until this age (default 90; horizon at most 70 years).
filingstringTax filing status. Default 'single'. 'married' = one joint return (both spouses assumed the same age).
find_max_spendingbooleanInstead of fixed spending, solve for the highest constant yearly spending the accounts can fund, ending near $0. Default false.
other_incomeobjectOther steady ordinary income (pension, rental, part-time pay), today's dollars. Omitted = none.
social_securityobjectExpected Social Security (household). Omitted = none.
spending_end_ageintegerAge spending ends (default: end of plan).
spending_per_yearnumberYearly spending the plan must fund, today's dollars, before income tax. Required unless find_max_spending is true.
spending_start_ageintegerAge spending begins (default: now).

check_request Check if a request fits

Say in plain words what the user wants (e.g. 'I'm still working and want to know Roth vs traditional 401k'). Returns whether this optimizer can do it and, if not, the closest thing it can do (or the sister server that can). Fast, no solve.

ParameterTypeDescription
description *stringThe user's question in a sentence or two.