Maximum contribution by age, year and plans
calculate_max_contributionCalculates the most a person can contribute for a year given age (on Dec. 31), plans held (401k, 403b, 457b, tsp, simple, ira, hsa_self, hsa_family) and optional wages. Applies the age 50+ catch-up, the SECURE 2.0 age 60-63 super catch-up (eligible only if age 60, 61, 62 or 63 at year end; 64 drops back), the HSA $1,000 catch-up at 55, the shared 402(g) limit across 401(k)/403(b)/TSP/SIMPLE, the separate 457(b) limit, and the compensation cap. With prior_year_fica_wages it tells whether catch-ups must be Roth under SECURE 2.0 section 603 (2026: over $150,000 of 2025 FICA wages).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Age on December 31 of the year. | |
| year | Yes | Calendar year: 2025, 2026 or 2027. | |
| plans | Yes | Plans the person contributes to, e.g. ["401k","ira","hsa_family"]. | |
| wages | No | Compensation for the year in USD, used to cap deferrals and IRA contributions. | |
| simple_higher_limits | No | True if the SIMPLE plan uses the higher small-employer limits. | |
| prior_year_fica_wages | No | Prior-year FICA wages (W-2 box 3) from the plan sponsor, for the Roth catch-up rule. | |
| plan_offers_super_catch_up | No | False if the employer plan does not offer the age 60-63 catch-up. Default true. |