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)/IRAPre-tax (deductible)Tax-deferredFully taxed Roth 401(k)/IRAAfter-taxTax-freeTax-free PensionPre-taxN/AFully taxed Social SecurityN/AN/A0-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 | SingleUnder $25k$25k-$34kOver $34k Married JointUnder $32k$32k-$44kOver $44k
*Based on provisional income (half SS + other income)*
Withdrawal Strategies
StrategyDescriptionBest For Roth firstWithdraw tax-free funds earlyHigh future tax rates expected Traditional firstUse low-tax yearsLower tax brackets now Tax-bracket fillingWithdraw to top of current bracketOptimizing across brackets Roth conversionsConvert traditional to Roth graduallyLong-term tax reduction