How it works
This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.
Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.
Formulas used by this calculator
The Roth IRA calculator works with 14 quantities and 5 relations between them. Enter the values you know, leave the one you want to find blank, and press Calculate. Blank fields are never treated as zero. Each formula below is solved for one quantity.
- Contribution years (
contribution_years) = (-age + retirement_age)
- Ineligible percent (
ineligible_percent) = (magi - threshold_level)/(phaseout_level - threshold_level)
- Threshold level (
threshold_level) = (ineligible_percent × phaseout_level - magi)/(ineligible_percent - 1)
- Phaseout level (
phaseout_level) = (ineligible_percent × threshold_level + magi - threshold_level)/ineligible_percent
- Magi (
magi) = ineligible_percent × phaseout_level - ineligible_percent × threshold_level + threshold_level
Inputs
| Field | Name in formulas | Can be solved for |
| Age | age | Input only |
| Magi | magi | Yes |
| Tax rate | tax_rate | Input only |
| Tax Filing | taxFiling | Input only |
| Return rate | return_rate | Input only |
| Phaseout level | phaseout_level | Yes |
| Retirement age | retirement_age | Input only |
| Threshold level | threshold_level | Yes |
| Max contribution | max_contribution | Input only |
| Contribution years | contribution_years | Yes |
| Ineligible percent | ineligible_percent | Yes |
| Eligible contribution | eligible_contribution | Input only |
| Rothira fv annuitydue | rothira_fv_annuitydue | Input only |
| Eligible contribution after tax | eligible_contribution_after_tax | Input only |
Limitation: 4 of the 9 underlying relations rely on lookup tables or helper routines that run only on the original source calculator, so this page skips them. Quantities that depend on those relations are not solved here.