Capital gains tax calculator: what you keep when you sell
Put in the price, what the home cost you and how long you lived in it or let it, and see the capital gains tax, the selling costs and the agent’s commission, and what is left, through an agent or privately.
Worked out in your browser with the same tax engine as our free game, Counter That. Nothing you enter is stored or sent. 2026/27 figures as SARS applies them; the Rates Bill that enacts them was before Parliament in October 2026. Figures last checked 9 October 2026.
What you keep
Selling through an agent at 6.25% plus VAT, after selling costs, your bond and capital gains tax
R2 184 206
- Selling price
- R2 400 000
- Agent's commission at 6.25%, with VAT
- -R172 500
- Electrical certificate and rates clearance
- -R1 750
- Capital gains tax
- -R41 544
- You keep
- R2 184 206
How the capital gains tax is worked out
- Selling price
- R2 400 000
- Less the selling costs that count against the gain
- -R174 250
- Less your base cost
- -R1 500 000
- Capital gain
- R725 750
- Less the primary residence part: you lived in it 50% of the years, capped at R3 000 000
- -R362 875
- Less the yearly exclusion of R50 000
- -R50 000
- Gain that counts
- R312 875
- 40% of it is added to your taxable income
- R125 150
- Extra income tax that causes, on your income for the year
- R41 544
That is 5.72% of the gain. The most it can be is 18%.
The same sale privately, without an agent
- Privately listing
- R995
- All selling costs
- R2 745
- Capital gains tax
- R53 892
- You would keep
- R2 343 363
R159 157 more than through an agent at 6.25% plus VAT. Same selling price assumed. Less is set against the gain when selling costs are lower, so some of the difference goes to capital gains tax.
These are the results for the numbers above, not a recommendation. A registered tax practitioner or financial adviser can advise on your own situation.
A worked example
A home sold for R2 400 000 that cost R1 500 000 including transfer costs, lived in for 5 years and let for 5, owned by one person in the 31% tax band. Through an agent at 6.25% plus VAT the selling costs are R174 250, the gain is R725 750, the primary residence part takes off R362 875, the yearly exclusion R50 000, and the capital gains tax is R41 544. The seller keeps R2 184 206. Selling privately instead, the selling costs are R2 745, the tax is R53 892 and the seller keeps R2 343 363.
Assumptions, stated
- Capital gains tax follows the 2026/27 SARS rules, the amounts for a sale that becomes unconditional on or after 1 March 2026; an earlier sale used the older amounts. 2026/27 figures as SARS applies them; the Rates Bill that enacts them was before Parliament in October 2026.
- The gain is the price less the costs of selling that the tax law lets you set against it, less your base cost. The agent's commission with VAT, the compliance certificates and the rates clearance count against the gain; the bond cancellation and any early-termination charge never do (paragraph 20 of the Eighth Schedule).
- A home you lived in gets the primary residence exclusion for the share of your years in it that you lived there (paragraphs 47 and 49), up to R3 000 000 of gain for one owner; a couple who own it half each share that, each half. The years it was let are not excluded. This calculator does not apply the five-year letting rule (paragraph 50), so if you moved out and let the home, a registered tax practitioner can check whether it helps you.
- Only the time on or after 1 October 2001 counts when the exclusion is shared between the years you lived in the home and the years it was let (paragraphs 47 and 49). Count both from that date, or from the day you bought the home if that was later, and ignore the years before it; at most 25.5 years can be counted in a sale in the 2026/27 tax year.
- Base cost: for a home bought on or after 1 October 2001, what you paid, plus transfer duty, transfer costs and improvements. For a home bought before it, its value on 1 October 2001, plus improvements since. Paragraph 26 lets you fix that value in one of three ways. The first is the market value on that date, which needs a valuation made by 30 September 2004 (paragraph 29(4)). The second is 20% of the proceeds after first deducting what you spent on the home after 1 October 2001. The third is time-apportionment. This calculator uses the base cost you enter and does not choose between the methods; a registered tax practitioner can say which gives the lower gain.
- The rest of the gain has your yearly exclusion of R50 000 taken off (each, for a couple), and 40% of what is left is added to your taxable income for the year. The tax is the tax on your income with that gain less the tax on your income without it, so a large gain can reach a higher bracket. Your income is the middle of the band you pick.
- An agent's commission is the rate you pick before VAT (the usual range is 5 to 7.5%) plus VAT. Selling privately costs up to R199 once and R199 a month while the listing is live, taken as four months. That is the full price: Privately has free places for early members, so it can cost less (see the pricing page).
- The bank is taken to have had 90 days' notice, so there is no early-termination charge. The electrical certificate and the rates clearance are the only certificates counted; a gas, plumbing, beetle, electric fence or levy certificate adds to the cost.
- The same selling price is used for both routes. Whether a private sale takes longer or sells for a different price is not modelled.
- A capital loss is not taxed. The part of a loss for the years you lived in the home is disregarded (paragraph 45, up to the same R3 000 000); the part for the years it was let, after the R50 000 yearly exclusion takes off first, can be carried forward against later gains, which this calculator does not follow.
- A registered tax practitioner or financial adviser can advise on your own situation.
Questions people ask
How is capital gains tax worked out when I sell my house in South Africa?
The gain is the selling price, less the costs of selling that the law lets you set against it, less your base cost (what you paid plus transfer duty, transfer costs and improvements). If it was your home, the primary residence exclusion of R3 000 000 takes off the part of the gain for the years you lived in it. A yearly exclusion of R50 000 comes off next, and 40% of what remains is added to your taxable income, so the tax is at most 18% of the gain.
How does letting the house for some years change the capital gains tax?
The primary residence exclusion applies to the share of your years in the home that you lived there. If you lived in it for 6 of 10 years and let it for 4, the exclusion covers six tenths of the gain (up to R3 000 000) and the other four tenths is taxed. Only the years since 1 October 2001 are counted. This calculator does not apply the five-year letting rule, so a registered tax practitioner can check whether it helps you.
I bought my home before 1 October 2001. What do I enter?
Choose "Before 1 October 2001" in the calculator. Count the years you lived in the home and the years it was let only from that date, because the years before it are ignored when the primary residence exclusion is shared. Your base cost is not what you paid: for a home bought before that date it is the value on 1 October 2001, plus improvements since. Paragraph 26 lets you fix that value as the market value on that date (which needs a valuation made by 30 September 2004, paragraph 29(4)), as 20% of the proceeds after first deducting what you spent on the home after 1 October 2001, or by time-apportionment. Enter that figure. A registered tax practitioner or financial adviser can advise on your own situation.
Does the estate agent's commission reduce capital gains tax?
Yes. The commission and its VAT, the compliance certificates and the rates clearance are costs of selling that reduce the gain. The bond cancellation attorney and any early-termination charge to your bank do not. Selling privately leaves less to set against the gain, so some of the commission saved goes to capital gains tax (at most 18% of it) and the rest stays with you.
How much does it cost to sell a house with an agent compared with selling privately?
An agent's commission is typically 5 to 7.5% plus VAT of the price. Selling privately through Privately costs up to R199 once and R199 a month while the listing is live, and less for members with a free place (see the pricing page). The calculator shows both side by side for your price, with the electrical certificate and rates clearance and the bond cancellation if you have a bond.
Do I pay capital gains tax if I sell at a loss?
No. A capital loss is not taxed. If it was your home, the part of the loss for the years you lived in it is disregarded; the part for the years it was let, after the R50 000 yearly exclusion takes off first, can be carried forward as an assessed capital loss against later gains. Money you spent on improvements counts towards the base cost.
Does this calculator store or send my numbers?
No. It runs in your browser with the same engine as the Counter That game, and nothing you enter is stored or sent anywhere.
This is general information, not advice. A registered tax practitioner or financial adviser can advise on your own situation.
Go deeper
- Capital gains tax on propertyThe primary residence exclusion, the yearly exclusion and how the tax is worked out.
- What it costs to sell a houseCommission, certificates, bond cancellation and the other costs of selling.
- Own name, company or trust?The same engine for a portfolio of rentals: five owners side by side.
- Own name, company or trust: the guideHow each owner is taxed on rent, on a sale and at death.
- What selling privately costsPrivately's fees, and what is not charged.
- Counter That for teachersUsing the game and these calculators in a classroom.
Sources
- SARS: rates of tax for individuals
- National Treasury: Budget 2026 Tax Guide
- SARS: Taxation Laws Amendment Act 5 of 2026
- SARS: tax rates for companies and trusts
- SARS: dividends tax
- SARS: capital gains tax
- SARS: official rate of interest (Table 3)
- SARS: donations tax, estate duty and other taxes
- SARS: transfer duty
Put this calculator on your site
Free to embed on a blog, a property site or a classroom page. The code is a frame and a plain link to this page under it; the frame carries a “Powered by Privately” link too, so please keep both. It stores nothing and sends nothing about your visitors. Make the frame as tall as you like; the calculator scrolls inside it.
