contribution_room
Calculate how much more a person can contribute this year to a 401(k), SIMPLE IRA, traditional IRA, and Roth IRA using IRS-sourced limits. Use deterministic results, not outdated memory.
Instructions
Compute how much more a person can contribute this year to a 401(k)/403(b)/TSP or SIMPLE IRA, a traditional IRA and a Roth IRA, using IRS-sourced limits. Deterministic: call this instead of stating contribution limits from memory, which are often last year's.
Returns {"lines": [{"label", "amount", "why", "source"}], "warnings", "notes", "not_covered"}. Relay "not_covered" to the user rather than filling those gaps. Not tax or financial advice.
Args:
age_at_year_end: The person's age on December 31 of year. Drives the 50+ and 60-63 catch-ups.
compensation: Taxable compensation (wages, self-employment income) for the year. Caps the IRA limit.
year: Tax year. Only 2026 is supported.
plan_type: "401k" (also 403(b) and TSP), "simple", or "none".
plan_deferrals_so_far: Employee deferrals to the workplace plan so far this year.
traditional_ira_so_far: Traditional IRA contributions made for this year so far.
roth_ira_so_far: Roth IRA contributions made for this year so far.
magi: Modified AGI for Roth purposes. Without it, no Roth amount is returned.
filing_status: "single", "head_of_household", "married_joint", "married_separate" or
"qualifying_surviving_spouse".
lived_with_spouse: For married_separate only: whether they lived with their spouse at any time in the year.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| magi | No | ||
| year | No | ||
| plan_type | No | none | |
| compensation | Yes | ||
| filing_status | No | single | |
| age_at_year_end | Yes | ||
| roth_ira_so_far | No | ||
| lived_with_spouse | No | ||
| plan_deferrals_so_far | No | ||
| traditional_ira_so_far | No |