Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Tax-advantaged account calculator

Which tax treatment leaves the most after tax on the same saving?

What this tells you: What the same yearly saving ends at under three tax treatments, with the rates you type and nothing assumed.

Go to the calculator

Also called: tax deferred vs tax free calculator · pre-tax vs after-tax savings calculator · tax free growth calculator Read the guide Last updated

The part of your pay you set aside each year, counted before any tax is taken from it.

Type the tax rate on the pay you set aside.

Type the tax rate on money you take out later.

How much the money grows each year, before any tax on that growth.

Type the tax rate on each year's growth in an ordinary, taxable account.

How many years you set aside that amount each year.

Result

Saving 6,000 a year for 25.0 years, tax on the way out ends highest: an ordinary account 213,605, tax on the way out 279,151, tax paid first 244,257.

This tool shows math, not advice.

Details

Ordinary account, after tax213,605
Tax on the way out, after tax279,151
Tax paid first, after tax244,257
Going in for the taxed-first cases4,200
Gap between best and worst65,546
Year by year
YearOrdinary accountTax on the way outTax paid first
14,4145,0884,452
29,05410,4819,171
313,92916,19814,173
419,05422,25819,476
524,44028,68225,096
630,10135,49031,054
736,05042,70837,369
842,30350,35844,064
948,87458,46851,159
1055,78167,06458,681
1163,04076,17666,654
1270,66985,83475,105
1378,68896,07284,063
1487,115106,92593,559
1595,972118,428103,625
16105,281130,622114,294
17115,064143,547125,604
18125,347157,248137,592
19136,154171,771150,299
20147,512187,165163,769
21159,449203,483178,048
22171,995220,780193,182
23185,181239,115209,225
24199,040258,550226,231
25213,605279,151244,257
After-tax value by year

Use the left and right arrow keys to read the values.

Chart data as a table
xOrdinary accountTax on the way outTax paid first
0.0 years000
4.0 years19,05422,25819,476
8.0 years42,30350,35844,064
12.0 years70,66985,83475,105
16.0 years105,281130,622114,294
20.0 years147,512187,165163,769
24.0 years199,040258,550226,231
25.0 years213,605279,151244,257

How we got this

  1. In an ordinary account the 6,000 is taxed at 30.0% first, so 4,200 goes in, and each year's growth is taxed at 15.0%, so it grows at a lower rate than 6.00%. After 25.0 years: 213,605.
  2. With tax on the way out, all 6,000 goes in untaxed and grows at 6.00% in full. Tax at 20.0% is taken when it comes out. After 25.0 years, after tax: 279,151.
  3. With tax paid first, 4,200 goes in after tax at 30.0%, grows at 6.00% in full and comes out untaxed. After 25.0 years: 244,257.

About this answer

  • These are three shapes of tax treatment, not any particular scheme. This page stores no tax rule, rate, limit or allowance, so every figure that governs the answer is the one you type. Payments are made at the start of each year.
  • When the rate on the way in matches the rate on the way out, tax on the way out and tax paid first end level. What separates them is the gap between those two rates.

Did this calculator help?

Keep this calculator. Your numbers are in the address, so a bookmark brings them back exactly as you left them. Press Ctrl + D · ⌘ + D

What to do next

Calculators that usually come after this one.

Not quite what you need?

Type your question in plain words and get the calculators that answer it.

    How to use it

    1. Type what you set aside each year before tax and the number of years.
    2. Type your tax rate on pay today and your expected rate when money comes out.
    3. Type the yearly growth and any tax on growth in an ordinary account.
    4. Read the three end values, after tax, and the gap between the highest and lowest.

    Example

    Saving 6,000 a year for 25 years, tax on the way out ends highest: an ordinary account 213,605, tax on the way out 279,151, tax paid first 244,257.

    Type these numbers into the boxes

    How much do you save each year?
    6,000
    Tax rate on pay today
    30 %
    Tax rate when withdrawn
    20 %
    Yearly growth
    6 % a year
    Tax on growth in an ordinary account
    15 %
    How many years do you save?
    25 years

    What you get: Saving 6,000 a year for 25.0 years, tax on the way out ends highest: an ordinary account 213,605, tax on the way out 279,151, tax paid first 244,257.

    Put this example into the calculator

    What your answer means

    These are three shapes of tax treatment, not any one scheme, and every rate is yours to type, so the answer is only as good as those rates. What separates the two wrappers is the gap between your tax rate going in and your tax rate coming out: if they match, tax on the way out and tax paid first end level, and when they do not, the one that is taxed at the lower rate wins. An ordinary account trails both because its growth is taxed every year, which slows the compounding.

    How we calculate · the conventions behind every answer, in one place.

    Questions about the tax-advantaged account calculator

    What does this calculator compare?

    It compares the same yearly saving in three tax set-ups: an ordinary account, an account taxed on the way out, and an account taxed first. Saving 6,000 a year for 25 years at 6% growth, the after-tax results are 213,605, 279,151 and 244,257. You type every tax rate; none is stored.

    How does an ordinary account work here?

    In an ordinary account, the saving is taxed before it goes in and each year's growth is taxed as well. In the default run, 6,000 taxed at 30% leaves 4,200 to put in. Growth is taxed at 15%, so it compounds at a lower rate than 6%. After 25 years it holds 213,605.

    Why does taxing on the way out end higher in this example?

    With tax on the way out, the full 6,000 goes in and grows at the full 6%, and tax is taken only at the end. Here the rate when withdrawn, 20%, is lower than the rate on pay today, 30%. That gap is why it ends at 279,151 against 244,257 when tax is paid first.

    When would tax paid first and tax on the way out give the same result?

    When the tax rate today equals the tax rate at withdrawal, the two give the same end value, because taking a share off at the start or at the end of the same growth leaves the same amount. In the default run the rates differ, 30% today and 20% later, so the results differ by 279,151 less 244,257, or 34,894.

    How big is the gap between the highest and lowest result?

    The page shows the spread between the highest and lowest result. In the default run, the highest is 279,151 and the lowest, the ordinary account, is 213,605. The gap is 65,546. It grows with the number of years, the growth rate and the difference between the tax rates you type.

    Ask about this calculator

    Something the page does not answer? Ask it here. A person reads every question, and the useful ones are answered on this page.

    Your question goes to the site owner by email and is not stored on this site. If you add an email it is used only to reply.

    Cite this page

    Copy this line into a reference list, a report or a spreadsheet note.

    Investment Math Calculator. “Tax-advantaged account calculator”. Updated 2026-11-18. https://investmentmathcalculator.com/tools/tax-advantaged-account/

    This tool shows math, not advice.

    Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.