IRA Contribution Calculator Formula
Understand the math behind the ira contribution calculator. Each variable explained with a worked example.
Formulas Used
Maximum IRA Contribution
max_contribution = magi <= phase_out_start ? base_limit : (magi >= phase_out_end ? 0 : base_limit * (phase_out_end - magi) / phase_out_range)Catch-Up Amount (50+)
catch_up = age >= 50 ? 1000 : 0Variables
| Variable | Description | Default |
|---|---|---|
age | Your Age | 35 |
magi | Modified Adjusted Gross Income(USD) | 120000 |
filing_status | Filing Status (1=Single, 2=Married) | 1 |
base_limit | Derived value= age >= 50 ? 8000 : 7000 | calculated |
phase_out_start | Derived value= filing_status == 1 ? 150000 : 236000 | calculated |
phase_out_end | Derived value= filing_status == 1 ? 165000 : 246000 | calculated |
phase_out_range | Derived value= phase_out_end - phase_out_start | calculated |
How It Works
IRA Contribution Limits
The IRS sets annual IRA contribution limits that depend on your age and income. Roth IRA contributions phase out at higher incomes.
Phase-Out Ranges (2026 estimates)
If your income is below the phase-out start, you can contribute the full amount. Above the end, you cannot contribute directly to a Roth IRA.
Worked Example
Age 35, single, $120,000 MAGI.
age = 35magi = 120000filing_status = 1
- 01Base limit for under-50 = $7,000
- 02Single phase-out range: $150,000 − $165,000
- 03MAGI $120,000 is below $150,000
- 04Full contribution allowed: $7,000
Ready to run the numbers?
Open IRA Contribution Calculator