Roth Conversion Calculator
v1.0.0Optimal 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'.
| Parameter | Type | Description |
|---|---|---|
kind | string |
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…
| Parameter | Type | Description |
|---|---|---|
age * | integer | Your age this year. The plan starts now (conversions can begin this year). |
balances * | object | Current household balances, dollars. Omitted = 0; at least one must be above 0. |
advanced | object | Advanced 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). |
assumptions | object | Modeling assumptions; the defaults (same as the web tool) are reported back. |
end_age | integer | Plan until this age (default 90; horizon at most 70 years). |
filing | string | Tax filing status. Default 'single'. 'married' = one joint return (both spouses assumed the same age). |
find_max_spending | boolean | Instead of fixed spending, solve for the highest constant yearly spending the accounts can fund, ending near $0. Default false. |
other_income | object | Other steady ordinary income (pension, rental, part-time pay), today's dollars. Omitted = none. |
social_security | object | Expected Social Security (household). Omitted = none. |
spending_end_age | integer | Age spending ends (default: end of plan). |
spending_per_year | number | Yearly spending the plan must fund, today's dollars, before income tax. Required unless find_max_spending is true. |
spending_start_age | integer | Age 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.
| Parameter | Type | Description |
|---|---|---|
description * | string | The user's question in a sentence or two. |