Tax-Aware Retirement Calculator

Optimized
MC Sims
R
Plan Your Retirement
Enter your information to calculate your retirement projections
The Math
Understanding the calculations behind your retirement projections

Overview

This calculator uses a comprehensive, tax-aware simulation to project your retirement finances. It models two distinct phases: the accumulation phase (from now until retirement) and the drawdown phase (from retirement until age 95). All calculations account for compound growth, inflation, taxes, and required minimum distributions.

Accumulation Phase (Pre-Retirement)

Growth Calculation

Each year, your account balances grow according to the selected return model:

  • Fixed Return: All accounts grow by a constant rate (e.g., 9.8%) each year: Balanceyear+1 = Balanceyear × (1 + r)
  • Random Walk: Returns are randomly sampled from historical S&P 500 data (1975-2024), using a seeded pseudo-random number generator for reproducibility. Each year gets a different historical return, bootstrapped with replacement.

Mid-Year Contributions

Annual contributions are assumed to occur mid-year on average. To account for partial-year growth, contributions are multiplied by (1 + (g - 1) × 0.5), where g is the year's growth factor. This gives contributions roughly half a year of growth, which is more realistic than assuming all contributions happen at year-end or year-start.

Contribution Increases

If enabled, annual contributions increase by the specified percentage each year to model salary growth and increasing savings capacity: Contributionyear+1 = Contributionyear × (1 + increase_rate).

Account Types

The calculator tracks three separate account types:

  • Taxable (Brokerage): Subject to long-term capital gains tax on withdrawals. We track your cost basis (total contributions) and only the gains are taxed.
  • Pre-Tax (401k/Traditional IRA): Contributions grow tax-deferred. All withdrawals are taxed as ordinary income. Subject to Required Minimum Distributions (RMDs) starting at age 73.
  • Post-Tax (Roth): Contributions grow tax-free. Qualified withdrawals in retirement are completely tax-free (no taxes, no RMDs).

Inflation Adjustments

To show purchasing power, we convert nominal (future) dollars to real (today's) dollars using:

Real Value = Nominal Value / (1 + inflation_rate)years

For example, if you have $1,000,000 in 30 years and inflation averages 2.6% annually, the real value is $1,000,000 / (1.026)30 ≈ $462,000 in today's purchasing power.

Drawdown Phase (Post-Retirement)

Withdrawal Strategy

The first year's withdrawal is calculated as a percentage of your total retirement balance (e.g., 3.5% for a conservative approach, 4% for the classic "4% rule"). In subsequent years, the withdrawal amount increases with inflation to maintain constant purchasing power:

Withdrawalyear+1 = Withdrawalyear × (1 + inflation_rate)

Proportional Withdrawal

Withdrawals are taken proportionally from all three account types based on their current balances. If one account runs out, the shortfall is automatically drawn from the remaining accounts. This creates a natural tax diversification strategy.

Tax Calculation

Each year's withdrawal is subject to multiple layers of taxation:

  • Ordinary Income Tax: Pre-tax withdrawals are taxed using the federal progressive tax brackets (single filing status) after applying the standard deduction. Brackets range from 10% to 37%.
  • Long-Term Capital Gains Tax: Gains from taxable account withdrawals are taxed at preferential LTCG rates (0%, 15%, or 20%) based on your total income. Only the gains portion is taxed—your original contributions (basis) come out tax-free.
  • Net Investment Income Tax (NIIT): An additional 3.8% tax on investment income (capital gains) if your modified AGI exceeds $200K.
  • State Income Tax: A flat percentage applied to all taxable income if you specify a state tax rate (varies by state, 0% to ~13%).
  • Roth Withdrawals: Completely tax-free! This is the "tax-free income" advantage of Roth accounts.

Required Minimum Distributions (RMDs)

Starting at age 73, the IRS requires you to withdraw a minimum amount from pre-tax accounts each year. The RMD is calculated as:

RMD = Pre-Tax Balance / Divisor

The divisor comes from the IRS Uniform Lifetime Table (e.g., 26.5 at age 73, decreasing each year). If your RMD exceeds your spending needs, the excess is withdrawn, taxed, and reinvested in your taxable account (with the after-tax amount becoming new basis).

Social Security Benefits

If enabled, Social Security benefits are calculated using the 2025 bend point formula:

  • 90% of Average Indexed Monthly Earnings (AIME) up to $1,226/month
  • 32% of AIME between $1,226 and $7,391/month
  • 15% of AIME above $7,391/month

This gives your Primary Insurance Amount (PIA). If you claim before Full Retirement Age (FRA), benefits are reduced by 5/9 of 1% per month for the first 36 months, then 5/12 of 1% for each additional month. If you delay past FRA, benefits increase by 2/3 of 1% per month (8% per year). SS benefits reduce the amount you need to withdraw from your portfolio.

Continuous Growth

Your remaining account balances continue to grow each year according to the same return model used in the accumulation phase. Growth is applied before withdrawals each year, so your money keeps working for you throughout retirement.

Estate Planning

End-of-Life Wealth

If your accounts last until age 95, any remaining balance is your end-of-life (EOL) wealth, which becomes your estate. This represents money you can pass to heirs or charity.

Estate Tax

Under current law (2025), estates exceeding $NaNmillion are subject to a 40% federal estate tax on the amount above the exemption. Your heirs receive the net estate after this tax. Note: Estate tax laws may change, and this is a simplified calculation that doesn't account for spousal transfers, trusts, or state estate taxes.

Generational Wealth Model

If enabled, the generational model simulates how long your estate could support future beneficiaries (children, grandchildren, etc.) with annual payouts in today's dollars:

  • The net estate (after estate tax) is deflated to 2025 purchasing power
  • Each year, the fund grows at a real rate (nominal return minus inflation)
  • Only beneficiaries at or above the minimum distribution age receive payouts in constant 2025 dollars
  • Beneficiaries age each year; those reaching max lifespan exit the model
  • Every N years (birth interval), fertile beneficiaries (ages 20-40) produce offspring
  • Simulation continues until funds are exhausted or 10,000 years (effectively perpetual)

This models a "perpetual trust" scenario and helps you understand whether your legacy could support multiple generations indefinitely or for how many years it would last under various payout scenarios.

Limitations & Assumptions

  • Tax Law Stability: Assumes current (2025) tax brackets, standard deductions, RMD rules, and estate tax exemptions remain constant. Tax laws frequently change.
  • No Sequence Risk Detail: While random walk mode samples from historical returns, it doesn't specifically model sequence-of-returns risk (getting bad returns early in retirement). Multiple simulations with different seeds can help explore this.
  • Simplified Withdrawal Strategy: Uses proportional withdrawals from all accounts. More sophisticated strategies (like draining taxable first, then pre-tax, then Roth) may be more tax-efficient but are not modeled here.
  • No Healthcare Costs: Doesn't separately model Medicare, long-term care insurance, or extraordinary medical expenses. These should be built into your withdrawal rate or annual spending needs.
  • Fixed Withdrawal Rate: Uses inflation-adjusted constant dollar withdrawals. Real retirees often adjust spending based on portfolio performance.
  • Single Life Expectancy: Projects to age 95 for the older spouse. Some households may need to plan for longer lifespans.
  • No Pension Income: Doesn't model traditional pensions, annuities, or rental income. These could be approximated by adjusting your withdrawal needs downward.

Data Sources

  • S&P 500 Returns: Historical total return data (1975-2024) used for random walk simulations
  • Tax Brackets: 2025 federal ordinary income tax brackets (IRS)
  • LTCG Brackets: 2025 long-term capital gains tax rates (IRS)
  • RMD Table: IRS Uniform Lifetime Table (Publication 590-B)
  • Social Security: 2025 bend points and claiming adjustment factors (SSA)
  • Estate Tax: 2025 federal exemption and rate (IRS)
  • Net Worth Data: Federal Reserve 2022 Survey of Consumer Finances (released Oct 2023)

Disclaimer: This calculator is for educational and planning purposes only. It does not constitute financial, tax, or legal advice. Consult with qualified professionals before making significant financial decisions. Past performance (historical returns) does not guarantee future results.