Skip to content
Investment Math
Investment Math

Currency and number style

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

Tax-advantaged account explained: formula, worked example and common mistakes

One saving run through three tax treatments side by side, with every rate typed by you and nothing statutory stored. Free, no sign-up.

Updated

What the tax-advantaged account calculator works out

The same saving, put through three tax treatments. An ordinary account loses tax on the way in and on every year of growth. A deferred account takes the saving before tax, grows untouched, and pays its rate when the money comes out. An exempt account pays tax first and never again. You type the saving each year, the tax rate on pay today, the rate when withdrawn, the yearly growth, the tax on growth in an ordinary account, and the years of saving. The page returns all three pots after tax, what actually goes in for the taxed-first cases, and the gap between the highest and the lowest.

The formula

in, taxed first = save x (1 - taxNow)     what reaches the taxed-first cases each year

ordinary: save x (1 - taxNow) a year, with each year of growth trimmed by growthTax
deferred: save a year before tax, growth at rate, taxLater on the whole pot at the end
exempt:   save x (1 - taxNow) a year, growth at rate, nothing further taken

The saving is the slice of pay set aside each year, and it lands at the start of each year, so every year of it works a full year. TaxNow is the rate that slice loses on the way in; taxLater is the rate taken when the deferred pot is drawn; growthTax is the share of each year of growth an ordinary account loses; rate and years are the growth and the run. Nothing here is a rule: every rate is typed, so the page holds no limits, no allowances and no names of accounts.

A worked example

Saving 6,000 of pay a year for 25 years, 30 per cent off pay today, 20 per cent when drawn, growth of 6 per cent, growth in an ordinary account taxed at 15 per cent.

in, taxed first = 6,000 x (1 - 30%) = 4,200
growth factor = ((1 + 6%)^25 - 1) / 6% x (1 + 6%) = 58.1564
tax on the way out = 6,000 x 58.1564 x (1 - 20%) = 279,151
tax paid first = 4,200 x 58.1564 = 244,257
ordinary account, each year of growth taxed at 15%: 213,605
gap between highest and lowest = 279,151 - 213,605 = 65,546

In this run tax on the way out ends highest at 279,151, tax paid first reaches 244,257, and the ordinary account trails at 213,605: a spread of 65,546 on the same saving.

What changes the answer

  • The two tax rates set the order. The deferred pot wins this run because 20 per cent at the end is lighter than 30 per cent on the way in; move the rates and the order moves with them.
  • The years do the quiet work. The longer the run, the further the ordinary account falls behind, because it loses growth on its growth every single year.
  • A heavier growthTax pulls the ordinary pot down year by year, and the gap it opens never closes.
  • A higher rate widens every gap, because there is more growth for each treatment to act on.

When to use it, and when not to

Use it to put three tax treatments on the same footing and see the spread on one saving. It is arithmetic on typed rates, nothing more. It holds no contribution limits, no names of accounts, no rules about when money can come out, and no employer contributions: the saving typed is the only money in. Where limits and rules matter to what you can actually put in, they live in your paperwork, and the saving you type here is the one that survives them.

Common mistakes people make

1. Reading the ranking as permanent. It is this run and its two rates. Change 30 and 20 and the order can change; the page carries no view of its own.

2. Typing the saving after tax for all three cases. The taxed-first cases go in at 4,200 here and the deferred one at the full 6,000. Same pay, three treatments, one field.

3. Forgetting the ordinary account pays twice. Tax on the way in and tax on every year of growth: that is why it trails by 65,546 after 25 years.

4. Comparing the pots without the years. Over 5 years the three treatments sit close together; at 25 the spread reaches 65,546. The years are half the answer.

5. Treating the gap as a gain. It is the spread between the highest and lowest after-tax pot in this run, not money anyone earned by typing.

6. Assuming the page knows a limit. It knows none. The saving typed is whatever is typed, and nothing on the page checks it against anything.

Frequently asked questions

Why does tax on the way out end highest here?

The full 6,000 compounds untouched for 25 years and only 20 per cent comes off at the end, while the taxed-first cases start from 4,200 after 30 per cent on the way in. The whole story is the two rates and 25 years of compounding between them.

What would make the ranking change?

The rates you type. Take the rate when drawn above the rate on pay today and the taxed-first pots pull ahead of the deferred one; make the two rates equal and the deferred and exempt pots come out level.

Why is only 4,200 going in for two of the cases?

Because 6,000 of pay loses 30 per cent on the way in: 4,200 reaches the account. The deferred case puts the whole 6,000 in and pays its tax later, which is the difference the page is measuring.

What is tax drag?

The growth an ordinary account loses to tax each year. At 15 per cent on growth, a 6 per cent year becomes a 5.1 per cent one, and the loss compounds for as long as the account is held.

Does the deferred pot get taxed at the end in the answer?

Yes. The 279,151 is after the 20 per cent has been taken. The other two have had everything taken as they went, so all three figures are after tax and sit on the same footing.

What is not in it?

Contribution limits, account names, access rules, employer money and any tax table. Every rate on the page is yours to type, and the page stores none of them.

This tool shows math, not advice.

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-10-31. https://investmentmathcalculator.com/guides/tax-advantaged-account-calculator/

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.