Retirement Tax Calculator
Calculate taxes on retirement income from 401(k), IRA, pension, and Social Security. Plan withdrawals to minimize lifetime tax burden.
Taxation by Retirement Account Type
| Account Type | Contributions | Growth | Withdrawals |
|---|---|---|---|
| Traditional 401(k)/IRA | Pre-tax (deductible) | Tax-deferred | Fully taxed |
| Roth 401(k)/IRA | After-tax | Tax-free | Tax-free |
| Pension | Pre-tax | N/A | Fully taxed |
| Social Security | N/A | N/A | 0-85% taxed |
| Taxable Brokerage | After-tax | Capital gains | Capital gains rates |
Retirement Tax Calculator
``javascript
function calculateRetirementTax(income) {
const { traditional401k, rothIra, pension, socialSecurity, otherIncome } = income;
const filingStatus = income.filingStatus || 'single';
// Taxable income calculation
let taxableIncome = traditional401k + pension + otherIncome;
// Social Security taxation (0%, 50%, or 85%)
const provisionalIncome = taxableIncome + (socialSecurity * 0.5);
const ssThresholds = { single: [25000, 34000], married: [32000, 44000] };
const thresholds = ssThresholds[filingStatus];
let taxableSS = 0;
if (provisionalIncome > thresholds[1]) {
taxableSS = socialSecurity * 0.85;
} else if (provisionalIncome > thresholds[0]) {
taxableSS = socialSecurity * 0.50;
}
taxableIncome += taxableSS;
// Roth distributions are tax-free
// rothIra: not added to taxable income
const standardDeduction = filingStatus === 'married' ? 29200 : 14600;
const finalTaxable = Math.max(0, taxableIncome - standardDeduction);
const federalTax = calculateFederalTax(finalTaxable, filingStatus);
return {
grossRetirementIncome: traditional401k + rothIra + pension + socialSecurity,
taxableIncome: taxableIncome.toFixed(2),
taxableSocialSecurity: taxableSS.toFixed(2),
federalTax: federalTax.toFixed(2),
effectiveRate: ((federalTax / (taxableIncome + rothIra)) * 100).toFixed(2) + '%'
};
}
``
Social Security Taxation Thresholds
| Filing Status | 0% Taxed | 50% Taxed | 85% Taxed |
|---|---|---|---|
| Single | Under $25k | $25k-$34k | Over $34k |
| Married Joint | Under $32k | $32k-$44k | Over $44k |
Withdrawal Strategies
| Strategy | Description | Best For |
|---|---|---|
| Roth first | Withdraw tax-free funds early | High future tax rates expected |
| Traditional first | Use low-tax years | Lower tax brackets now |
| Tax-bracket filling | Withdraw to top of current bracket | Optimizing across brackets |
| Roth conversions | Convert traditional to Roth gradually | Long-term tax reduction |