Which account to put your money for retirement?

Use this calculator to compare of benefit of traditional 401k, Roth IRA, and trading account.

This tool helps answer :
  1. Is it better to contribute to pre-tax (traditional 401k & IRA) or after-tax (Roth 401k & IRA) retirement account? Check the difference between Plan A and Plan B below.
  2. Should I still contribute more to 401k and IRA after my employer's maximum match is reached? What if I can achieve better returns in other type of investment vehicles than the ones offered in retirement accounts, and can have more flexibility and liquidity to withdraw than in 401k and IRA? Check the outcome in Plan C below.
Contribution plans
I am
Tax filing status:
Current retirement fund (pre-taxed)
Pretax salary / year
Own self-contribution of pretax salary
Employer's contribution
( You should always try to get the maximum match from your employer becasue it's essentially free money added to your compensation package! )
Your current annual 401k contribution (base scenario) is % of the salary, namely . According to your base contribution and the salary level, you are allowed to contribute more in all 401k, and more in all IRAs (traditional and Roth combined).
Given these restrictions, I plan to contribute more, out of the pre-tax salary.
I will contribute for years from now.
Then, I will withdraw for years.
My state income tax rate
Current income tax rate
(Federal + State)

(overall effective rate)
Your current federal income tax rate of the highest bracket is %, calculated based on the salary. Adding the state income tax rate of %, the tax rate of % will be applied when contributing to Roth 401k & IRA and trading account.
Assumption of each plan
Base 401k Plan A Plan B Plan C
$ 5000 contribution flows into Traditional
401k & IRA
Roth
401k & IRA
Trading
account
Contribution amount / year pre-tax
pre-tax
after-tax
after-tax
Future 30-year contribution
Annual investment rate of return *
Accumulated account balance
30 years later
Post-retirement rate of return **
Pre-tax annual withdrawal ***
The withdrawal is taxable Fully Fully None Partially

* Usually, you should apply the same investment rate of return for all retirement accounts (traditional and Roth 401k & IRA) because they often offer similar sets of funds to invest in. However, the rate of return for a trading account (brokerage account) may differ from that of retirement accounts, as it typically offers a wider range of investment vehicles and greater flexibility, such as CDs, equities, cryptocurrencies, and other riskier assets, or even investing the cash on your own business, which may generate higher expected yields.

** The post-retirement rate of return should be the same across all accounts, becasue you would assume a lower yield to ensure stable investment income for consistent withdrawals during the retirement period.

*** The pre-tax annual withdrawal is the annuitization of your accumulated account balance based on how many years you want to withdraw and the post-retirement rate of return. The higher the rate of return, the higher the annual withdrawal is possible, but the withdrawal will be more unstable and unrealistic to achieve.

Which plan is the best?
Base + Plan A Base + Plan B Base + Plan C
Plan description: in addition to base 401k, contribute extra money to Traditional
401k & IRA
Roth
401k & IRA
Trading
account
Pre-tax annual withdrawal (1)
Withdrawal taxable (2)
Income tax rate
(Federal + State) (3)
Capital gain taxable (4)
Capital gain tax rate
(Federal + State) (5)
Total tax due
(6) = (2)*(3) + (4)*(5)
After-tax annual withdrawal available
(7) = (1) - (6)
winner
After-tax Total Annual Withdrawal
What factors lead to the best outcome?

To maximize periodic withdrawals during retirement, choosing between a Traditional 401(k) (including IRA), Roth 401(k), and a trading (brokerage) account depends on several key factors:

  1. Current Tax Rate on Salary (when you contribute) vs. Future Tax Rate on Withdrawal (when you take the money out)

    • Traditional 401K: Contributions are tax-deductible now. If you're in a higher tax bracket today than you expect to be in retirement, meaning your current salary is higher than your future annual withdrawals, you get a larger tax break today and you should put the money in pre-tax accounts.
    • Roth 401K: Contributions are made with after-tax dollars, so there's no immediate deduction. If you're in a lower tax bracket today, it's less costly to contribute now and enjoy tax-free withdrawals later.
    • Trading Account: There's no tax benefit when contributing. Contributions are after-tax, just like Roth.

    Rule of thumb: If your current tax rate is higher than what you expect in retirement, a Traditional 401(k) may be more advantageous. If your current tax rate is lower, a Roth 401(k) or trading account could be more favorable.

  2. Investment Yield (How much your investments grow)

    • Traditional & Roth 401K: You are usually limited to a selection of mutual funds or company stock. Some funds track indices (e.g., the S&P 500) and have low fees, while others are actively managed and cost more. Some plans allow individual stock investments but may charge additional fees.
    • Trading Account: Trading accounts typically offer greater flexibility and access to a broader range of investment options—stocks, bonds, ETFs, mutual funds, cryptocurrencies, CDs, or even your own business. This gives you more control and potential for higher returns.

    Rule of thumb: If you value flexibility, higher growth potential, and liquidity (e.g., for emergencies), a trading account may suit you better. If you prefer stability, professionally managed funds, and protection from emotional decisions during market downturns, retirement accounts can provide a safer, more uninterrupted environment for long-term gains.

  3. Tax on Investment Growth

    • Traditional 401K: Investment gains (interest, dividends, capital gains) are tax-deferred. However, all withdrawals, both contributions and investment gains, are taxed as regular income.
    • Roth 401K: Growth is tax-free and withdrawals are also tax-free, assuming you follow IRS rules. However, you can't deduct losses annually. To claim a loss, you'd have to close and fully withdraw from all Roth accounts, and only if your total distributions are less than your total contributions.
    • Trading Account: Earnings like interest and dividends are typically taxed in the year received. You pay capital gains tax (usually 0 - 20%) when you sell assets at a profit. Capital losses can be used to offset gains or deducted from ordinary income (within limits).

    Rule of thumb: While Roth accounts offer superior tax advantages for long-term growth, Trading accounts may offer more tax flexibility, especially when managing gains and losses year to year.

Related Items
Full-scope retirement planning & forecast
Financial independence (FIRE) calculator
Saving & withdrawal planning
Financial advisor & investment fee calculator