What Is a Capital Gain on Property?
Published 6/5/2026 · 4 min read · Real-estate calculators
A capital gain on property is the profit you make when you sell it for more than it cost you. In simple terms: gain = sale price − purchase price − buying and selling costs − eligible improvements. If you bought for $250,000, spent $15,000 on costs and improvements, and sold for $320,000, your gain is 320,000 − 250,000 − 15,000 = $55,000. Whether that gain is taxed depends on your country, how long you owned it, and whether it was your main home — many countries exempt the primary residence.
A capital gain on property is the profit when you sell for more than you paid, minus your costs. Learn how it is calculated and why primary-residence rules matter.
How the gain is calculated
The gain is not simply the sale price minus what you paid. You start from the sale price, subtract the original purchase price, then subtract the costs that went into buying, selling, and improving the property. Buying costs can include legal fees and transfer taxes; selling costs include agent commission and legal fees; improvements mean capital works like an extension, not routine repairs.
Keeping receipts matters because every eligible cost you can prove reduces the taxable gain. A gain of $70,000 before costs can fall to $55,000 once $15,000 of documented buying, selling, and improvement costs are subtracted — and in a country that taxes gains, that difference directly lowers the tax you might owe.
Why the primary-residence exemption is a big deal
Many countries treat the home you actually live in more gently than an investment property. Some exempt the gain on a primary residence entirely; others exempt a large fixed amount or reduce the taxable gain the longer you owned the home. The details differ enormously — the amounts, the ownership periods, and the conditions are all set nationally — but the pattern is that your main home is usually taxed far more lightly than a rental or a second home.
Because the primary-residence treatment is so favorable, whether a property qualifies as your main home is often the single biggest factor in the final tax. Second homes, buy-to-let properties, and land usually get no such break and are taxed on the full gain. This is exactly where a general estimate should give way to local rules or professional advice.
What can change the taxable gain
Beyond costs and the primary-residence rule, several factors reshape the taxable gain. Holding period matters: some systems reduce the taxed amount the longer you own, or apply a lower rate on long-held assets. Inflation indexing exists in a few countries, adjusting the purchase price upward so you are not taxed on inflation alone. Annual allowances may exempt a slice of gains each year.
Losses can help too: selling one property at a loss may offset the gain on another, depending on the rules. Because these mechanisms interact and differ by country, a calculator is best used to estimate the raw gain — sale minus purchase minus costs — while the final tax figure should always be confirmed against your national rules.
Worked with our own calculator
Capital Gains Calculator
Given
- Sale price
- $300,000.00
- Purchase price
- $200,000.00
- Selling costs
- $0.00
- Tax rate
- 33%
Result
- Gross gain
- $100,000.00
- Tax due
- $33,000.00
- Net gain
- $67,000.00
These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.
Run it on your own figures →Frequently asked questions
- Is the capital gain the same as the sale price?
- No. The sale price is the total you receive; the capital gain is only the profit portion. You reach the gain by subtracting the original purchase price and eligible costs from the sale price. A home sold for $320,000 that cost $250,000 plus $15,000 in costs produces a gain of $55,000, not $320,000.
- Do I pay tax if I sell my main home?
- Often not, but it depends entirely on your country. Many tax systems fully or largely exempt the gain on a primary residence, subject to conditions like how long you lived there. Others cap the exemption or phase it in over time. Because the rules and thresholds vary so much, confirm your national position rather than assuming the sale is tax-free.
- Which costs can I subtract from the gain?
- Typically the eligible costs are the ones directly tied to acquiring, selling, or capitally improving the property: legal and notary fees, transfer or purchase taxes, agent commission, and capital improvements such as an extension or a new roof. Routine maintenance and mortgage interest usually do not count. The exact list is defined by your national tax rules, so keep every receipt and check what qualifies.
- Does how long I owned the property matter?
- In many countries, yes. Some apply a lower tax rate to gains on assets held beyond a certain number of years, and some reduce the taxable gain gradually with each year of ownership, sometimes reaching a full exemption after a long holding period. Others tax the gain the same regardless of duration. Since this is a country-specific rule, check your national tax authority for the holding periods that apply to you.
Articles you may find interesting
All guides →Related tools
This article explains the general idea of a property capital gain and is not tax advice. Rules on rates, allowances, and primary-residence exemptions vary widely by country and change over time. Check your national tax authority or a qualified adviser before making decisions.
Sources
Spotted a mistake in this article?