Enter valid values to calculate capital gains tax. Based on 2024 federal tax rates.
Capital Gains Tax Calculator: Capital Gains Tax Rate, Capital Gains Calculator, Sale of Property and the Complete Capital Gains Guide
Capital Gains Tax Calculator
Calculate capital gains tax on investments, stocks, real estate, and other assets. See the difference between short-term and long-term tax rates and estimate your net profit after taxes.
Learn More About Capital Gains
Understand how capital gains tax works:
Capital gains tax is the levy on the profit you make when you sell an asset for more than you paid for it - and understanding it precisely can mean the difference between keeping thousands of dollars more in your pocket or handing them unnecessarily to the government. Whether you need a capital gains tax calculator to work out exactly what you owe on a stock sale, need to understand the capital gains tax rate that applies to your specific situation, want to use a capital gains calculator to compare the after-tax return on different assets, or are specifically looking for a capital gains tax calculator on sale of property to plan a home or investment property transaction - this guide covers every calculation, every rate, every exemption, and every legal strategy for minimising capital gains tax worldwide.
This guide is written for a global audience. Capital gains tax exists in different forms in the US, UK, Australia, Canada, India, Germany, and many other jurisdictions - and the strategies for managing it are broadly transferable even where the specific rates and rules differ. Where you live determines the rate; how you plan determines how much of the gain you keep.
Table of Contents
- What Is Capital Gains Tax - The Core Concept Explained
- Capital Gains Tax Calculator - How to Calculate Your Gain
- Capital Gains Tax Rate - Short-Term vs Long-Term Rates Explained
- Capital Gains Calculator - US Federal Rates and Tax Tables
- Capital Gains Tax Calculator on Sale of Property - Complete Guide
- Primary Residence Exclusion - The Most Valuable CGT Exemption
- Investment Property Capital Gains - Full Calculation
- Capital Gains Tax on Stocks and Investments
- Capital Gains Tax on Cryptocurrency
- Capital Gains Tax on Business Assets
- Capital Gains Tax Rate - State Tax on Top of Federal
- Net Investment Income Tax (NIIT) - The Hidden 3.8% Surcharge
- Capital Gains Tax - UK Complete Guide
- Capital Gains Tax - Australia Complete Guide
- Capital Gains Tax - Canada Complete Guide
- Capital Gains Tax - India Complete Guide
- Global Capital Gains Tax Reference - Country Comparison
- Capital Gains Tax Planning - Legal Strategies to Minimise the Bill
- Tax-Loss Harvesting - Offsetting Gains with Losses
- After Effects - What Happens When Capital Gains Tax Is Ignored or Mishandled
- Capital Gains Tax Action Framework - Before You Sell
- Frequently Asked Questions
1. What Is Capital Gains Tax - The Core Concept Explained
Capital gains tax (CGT) is the tax levied on the profit - the "gain" - realised when you sell a capital asset for more than its cost basis (what you originally paid for it, adjusted for allowable costs and improvements). Capital gains tax is a realisation-based tax in most jurisdictions - it is triggered by the sale or disposal of the asset, not by the increase in value while you hold it. An asset can appreciate for decades without triggering CGT; the tax clock starts when you sell.
The critical concept driving every capital gains tax calculator is the distinction between the gain and the asset's total value. If you bought a property for $300,000 and sell it for $550,000, you are not taxed on $550,000 - you are taxed on the $250,000 gain (less eligible deductions). This distinction, obvious when stated, is frequently misunderstood by first-time sellers who dramatically overestimate their CGT liability.
Capital Gains Tax - Fundamental Concepts
| Concept | Definition | Practical Example |
|---|---|---|
| Capital gain | Sale price minus cost basis - the profit on disposal of a capital asset | Bought shares for $10,000 - sold for $18,000 - gain = $8,000 |
| Capital loss | Sale price below cost basis - a loss on disposal | Bought crypto for $5,000 - sold for $2,000 - loss = $3,000 |
| Cost basis | Original purchase price plus allowable costs (commissions, improvements, legal fees) | $300,000 property + $40,000 improvements + $5,000 legal = $345,000 basis |
| Adjusted cost basis | Cost basis modified by depreciation claimed (investment property), return of capital, or stock splits | Investment property: $300,000 basis minus $30,000 depreciation claimed = $270,000 adjusted basis |
| Holding period | Time from acquisition to disposal - determines short-term or long-term treatment | Purchased March 1, 2023 - sold April 1, 2024 - held 13 months = long-term (US) |
| Short-term capital gain | Asset held 12 months or less (US) - taxed at ordinary income rates | Gain from stock held 8 months - taxed at 22%–37% depending on income |
| Long-term capital gain | Asset held more than 12 months (US) - taxed at preferential 0%, 15%, or 20% rates | Gain from stock held 2 years - taxed at 0%–20% regardless of income bracket |
| Realisation vs accrual | Most jurisdictions tax gains only on realisation (sale) - not on annual unrealised appreciation | Property worth $100,000 more than purchase price - no CGT until sold |
| Net capital gain | Total capital gains minus total capital losses for the year | $15,000 gain on shares minus $4,000 loss on crypto = $11,000 net capital gain |
2. Capital Gains Tax Calculator - How to Calculate Your Gain
The capital gains tax calculator starts with one foundational calculation: your gain equals your proceeds (what you received on sale) minus your adjusted cost basis (what you paid, plus eligible additions, minus eligible deductions). Getting this calculation right before applying any tax rate is the most common source of error in capital gains tax.
Capital Gains Tax Calculator - The Step-by-Step Formula
Step 1 - Calculate Sale Proceeds:
Net proceeds = Gross sale price − selling costs (agent commissions, legal fees, closing costs, transfer taxes)
Step 2 - Calculate Adjusted Cost Basis:
Adjusted basis = Purchase price + acquisition costs (legal, survey, stamp duty) + capital improvements − depreciation claimed (investment property only)
Step 3 - Calculate the Gross Gain:
Gross gain = Net proceeds − Adjusted cost basis
Step 4 - Apply Exemptions:
For a primary residence: deduct up to $250,000 (single) or $500,000 (married) if eligibility criteria met (US).
For assets in other markets: deduct relevant annual CGT allowance (UK £3,000 / Australia indexation if pre-1999) or other qualifying reliefs.
Step 5 - Determine Holding Period and Applicable Rate:
Classify gain as short-term (≤12 months) or long-term (>12 months) and apply the correct rate.
Step 6 - Calculate CGT Payable:
CGT = Taxable gain × applicable rate
Capital Gains Tax Calculator - Worked Example (US Property Sale)
| Step | Item | Amount |
|---|---|---|
| 1a | Sale price | $650,000 |
| 1b | Less: agent commission (5%) | −$32,500 |
| 1c | Less: closing costs and legal | −$4,500 |
| 1d | Net proceeds | $613,000 |
| 2a | Original purchase price (2016) | $380,000 |
| 2b | Add: purchase closing costs (legal, survey) | +$8,000 |
| 2c | Add: capital improvements (kitchen, bathroom, extension) | +$55,000 |
| 2d | Adjusted cost basis | $443,000 |
| 3 | Gross gain | $170,000 |
| 4 | Primary residence exclusion (married, 2+ years ownership and use) | −$170,000 (fully covered by $500,000 exclusion) |
| 5 | Taxable capital gain | $0 - zero CGT on primary residence sale |
Capital Gains Tax Calculator - Worked Example (Investment Property, Same Numbers)
| Item | Amount |
|---|---|
| Net proceeds (as above) | $613,000 |
| Original purchase price | $380,000 |
| Purchase costs | +$8,000 |
| Capital improvements | +$55,000 |
| Less: cumulative depreciation claimed (8 years × $13,818/yr) | −$110,544 (reduces basis) |
| Adjusted cost basis (investment property) | $332,456 |
| Total gain | $280,544 |
| Unrecaptured Section 1250 gain (depreciation portion - taxed at 25%) | $110,544 × 25% = $27,636 |
| Long-term capital gain (remaining gain - held 8 years, income $150k, 15% rate) | $170,000 × 15% = $25,500 |
| Net Investment Income Tax (NIIT 3.8%) | $280,544 × 3.8% = $10,661 |
| Total Federal CGT liability (investment property) | $63,797 |
The same property produces zero CGT as a primary residence and $63,797 in federal CGT as an investment property. This comparison - made precise by a capital gains tax calculator on sale of property - is why property classification matters so profoundly, and why converting a rental property back to a primary residence before selling (subject to the reduced exclusion rules) is one of the most powerful property tax planning strategies available.
3. Capital Gains Tax Rate - Short-Term vs Long-Term Rates Explained
The capital gains tax rate you pay depends on a single binary question: did you hold the asset for more than 12 months or not? This holding period distinction creates one of the most significant and most accessible tax planning opportunities in the entire US tax code. Understanding it and applying it deliberately is essential for every investor.
Capital Gains Tax Rate - Short-Term vs Long-Term: The Full Difference
| Feature | Short-Term Capital Gain | Long-Term Capital Gain |
|---|---|---|
| Holding period (US) | 12 months or less | More than 12 months |
| Tax rate | Ordinary income rates: 10%, 12%, 22%, 24%, 32%, 35%, 37% | Preferential rates: 0%, 15%, or 20% |
| Maximum rate | 37% (plus 3.8% NIIT) | 20% (plus 3.8% NIIT) - 23.8% maximum federal |
| Tax on $50,000 gain (22% bracket) | $11,000 | $7,500 (at 15% LTCG rate) |
| Tax on $100,000 gain (24% bracket) | $24,000 | $15,000 (at 15% LTCG rate) |
| Tax on $200,000 gain (32% bracket) | $64,000 | $30,000–$40,000 (15%–20% LTCG rate) |
| Qualified dividends | N/A - dividends have separate rules | Qualified dividends taxed at same preferential LTCG rates |
The difference between short-term and long-term treatment on a $100,000 gain at the 24% ordinary income bracket is $9,000 in additional tax - simply for holding the asset 13 months instead of 11 months. Waiting the extra two months costs nothing and saves $9,000. No capital gains tax calculator strategy produces a more effortless return than ensuring you cross the 12-month threshold before selling.
4. Capital Gains Calculator - US Federal Rates and Tax Tables
The capital gains calculator applies the correct US federal long-term capital gains rate based on your taxable income and filing status. Unlike ordinary income brackets (where income is taxed at progressively higher rates as it moves up through brackets), long-term capital gains rates are determined by your total taxable income threshold - the entire gain is taxed at a single rate based on where your income falls.
2024 Long-Term Capital Gains Tax Rates - Single Filers
| Taxable Income (Single) | LTCG Rate | Notes |
|---|---|---|
| $0 – $47,025 | 0% | Zero tax on long-term gains - powerful planning opportunity for low-income years |
| $47,026 – $518,900 | 15% | The rate most investors pay - vast majority of individual investors |
| Above $518,900 | 20% | High-income investors - applies to only the highest earners |
2024 Long-Term Capital Gains Tax Rates - Married Filing Jointly
| Taxable Income (MFJ) | LTCG Rate | Notes |
|---|---|---|
| $0 – $94,050 | 0% | Double the single threshold - major benefit for married couples with moderate income |
| $94,051 – $583,750 | 15% | The rate most married investors pay |
| Above $583,750 | 20% | High-income threshold |
Capital Gains Calculator - Tax at Different Gain Sizes and Income Levels
| Long-Term Capital Gain | LTCG Rate (0%) | LTCG Rate (15%) | LTCG Rate (20%) | Short-Term (22%) | Short-Term (32%) |
|---|---|---|---|---|---|
| $10,000 | $0 | $1,500 | $2,000 | $2,200 | $3,200 |
| $25,000 | $0 | $3,750 | $5,000 | $5,500 | $8,000 |
| $50,000 | $0 | $7,500 | $10,000 | $11,000 | $16,000 |
| $100,000 | $0 | $15,000 | $20,000 | $24,000 | $32,000 |
| $200,000 | $0 | $30,000 | $40,000 | $48,000 | $64,000 |
| $500,000 | $0 | $75,000 | $100,000 | $120,000 | $160,000 |
| $1,000,000 | $0 | $150,000 | $200,000 | $240,000 | $370,000 |
The 0% long-term capital gains rate deserves specific attention. A married couple with taxable income below $94,050 pays zero federal capital gains tax on long-term gains. A retired couple with $60,000 of retirement income and a $100,000 gain on an appreciated stock portfolio can structure their income to stay within the 0% threshold and pay nothing - saving $15,000 in federal capital gains tax. This is one of the most powerful and under-utilised opportunities in the US tax code.
5. Capital Gains Tax Calculator on Sale of Property - Complete Guide
The capital gains tax calculator on sale of property is the most frequently used application of CGT calculations - because property transactions involve the largest sums, the most complex cost basis calculations, and the most valuable exemptions. Whether you are selling a primary home, an investment property, a holiday home, or inherited property, the calculation requires careful attention to each component.
Property Capital Gains - What Reduces Your Taxable Gain
| Cost Basis Addition / Deduction | Description | Documentation Required |
|---|---|---|
| Purchase price | The amount paid for the property | Settlement statement (HUD-1 / ALTA) |
| Acquisition closing costs | Legal fees, title insurance, survey, stamp duty paid at purchase | Closing statements - legal invoices |
| Capital improvements | Structural additions, new rooms, kitchen/bathroom renovations, landscaping, new roof, HVAC | Contractor invoices, receipts, permits - must be improvements not maintenance |
| Selling costs | Agent commissions, legal fees, transfer taxes, closing costs at sale | Settlement statement at sale - agent commission agreement |
| Casualty losses (if claimed) | Insurance proceeds received may reduce basis | Insurance settlement documents - casualty loss deduction records |
| Depreciation (investment property) | Cumulative depreciation deducted reduces basis - triggers Sec. 1250 recapture at 25% | Prior year tax returns showing depreciation claimed (Schedule E) |
Capital Gains Tax Calculator on Sale of Property - Reference Table by Gain Size
| Net Gain | Primary Residence (Single - $250k exclusion) | Primary Residence (Married - $500k exclusion) | Investment Property (15% LTCG rate) | Investment Property + NIIT (3.8%) |
|---|---|---|---|---|
| $100,000 | $0 (fully excluded) | $0 (fully excluded) | $15,000 | $18,800 |
| $200,000 | $0 (fully excluded) | $0 (fully excluded) | $30,000 | $37,600 |
| $300,000 | $7,500 (on $50k above exclusion) | $0 (fully excluded) | $45,000 | $56,400 |
| $400,000 | $22,500 (on $150k above exclusion) | $0 (fully excluded) | $60,000 | $75,200 |
| $500,000 | $37,500 (on $250k above exclusion) | $0 (fully excluded) | $75,000 | $94,000 |
| $600,000 | $52,500 (on $350k above exclusion) | $15,000 (on $100k above exclusion) | $90,000 | $112,800 |
| $800,000 | $82,500 (on $550k above exclusion) | $45,000 (on $300k above exclusion) | $120,000 | $150,400 |
Based on 15% LTCG rate - assumes married filers in 15% LTCG bracket. Investment property figures exclude depreciation recapture (Section 1250 - taxed at 25%) which applies to the depreciation previously deducted. State capital gains tax not included. NIIT applies to taxpayers with MAGI above $200,000 single / $250,000 married.
6. Primary Residence Exclusion - The Most Valuable CGT Exemption
The primary residence exclusion - Section 121 of the US Internal Revenue Code - allows homeowners to exclude up to $250,000 of capital gain (single) or $500,000 (married filing jointly) from the sale of a primary residence, provided specific ownership and use tests are met. This is the single most generous capital gains tax exemption in the US tax code and can eliminate hundreds of thousands of dollars of CGT liability on a property that has appreciated significantly.
Primary Residence Exclusion - Eligibility Rules
| Rule | Requirement | Planning Notes |
|---|---|---|
| Ownership test | You owned the home for at least 2 of the last 5 years before sale | Does not need to be the most recent 2 years - can be any 2 years within the 5-year window |
| Use test | You used the home as your primary residence for at least 2 of the last 5 years | The 2 years of ownership and 2 years of use do not need to overlap - flexibility in planning |
| Frequency limit | Can only claim the exclusion once every 2 years | Serial property sellers cannot use this repeatedly in rapid succession |
| Exclusion amount | Up to $250,000 single - up to $500,000 married filing jointly | Both spouses must meet the use test for the full $500,000 exclusion - ownership test met by either |
| Reduced exclusion (partial) | Available if tests not fully met due to job change, health, unforeseen circumstances | Prorated by fraction of 2-year requirement met - even partial exclusion is very valuable |
| Non-qualifying portion | Periods of non-qualifying use (rental years) may reduce the excludable portion | Complex calculation for properties that were both rented and used as primary residence |
Primary Residence Exclusion - Converting a Rental to Primary Residence
A powerful but time-intensive strategy: convert an investment property to your primary residence, live in it for at least 2 years, then sell and claim the exclusion. The gain is not fully excluded - the gain attributable to periods of non-qualifying use after 2008 must still be recognised. But the portion attributable to primary residence use qualifies for exclusion, potentially reducing CGT by hundreds of thousands of dollars on a highly appreciated property. Any depreciation previously claimed must still be recaptured at 25%.
7. Investment Property Capital Gains - Full Calculation
Investment property capital gains require the most complex application of the capital gains tax calculator - because multiple layers of tax apply: the standard long-term capital gains rate on the appreciation above the adjusted basis, the Section 1250 unrecaptured depreciation recapture tax at a special 25% rate on cumulative depreciation claimed, and potentially the 3.8% Net Investment Income Tax (NIIT). Understanding all three layers is essential for accurate investment property tax planning.
Investment Property CGT - Three Tax Layers
| Tax Layer | What It Applies To | Rate | Can Be Avoided? |
|---|---|---|---|
| Long-term capital gain | Appreciation above adjusted basis minus depreciation claimed | 0%, 15%, or 20% depending on income | Yes - via 1031 exchange, opportunity zone, primary residence conversion |
| Unrecaptured Section 1250 gain (depreciation recapture) | Cumulative depreciation previously deducted on the property | 25% (capped) - cannot exceed the gain | Only deferred - via 1031 exchange - not eliminated |
| Net Investment Income Tax (NIIT) | Net gain - applies when MAGI exceeds $200k single / $250k married | 3.8% additional | Yes - via income management, retirement account strategies, or charitable giving |
Investment Property Capital Gains Calculator - Comprehensive Example
| Item | Single Filer ($180k income) | Single Filer ($300k income) |
|---|---|---|
| Purchase price (2014) | $280,000 | $280,000 |
| Improvements | $30,000 | $30,000 |
| Cumulative depreciation (10 years × $10,182/yr) | −$101,820 | −$101,820 |
| Adjusted cost basis | $208,180 | $208,180 |
| Net sale proceeds | $530,000 | $530,000 |
| Total gain | $321,820 | $321,820 |
| Section 1250 recapture (depreciation - 25%) | $101,820 × 25% = $25,455 | $101,820 × 25% = $25,455 |
| LTCG on remaining $220,000 gain | $220,000 × 15% = $33,000 | $220,000 × 20% = $44,000 |
| NIIT (3.8% - above $200k threshold) | Small amount (income just above threshold) | $321,820 × 3.8% = $12,229 |
| Total federal CGT (approximate) | ~$58,900 | ~$81,684 |
| Effective CGT rate on total gain | ~18.3% | ~25.4% |
8. Capital Gains Tax on Stocks and Investments
Capital gains on stocks, bonds, mutual funds, and ETFs follow the same short-term vs long-term framework as property - held 12 months or less means ordinary income rates; held more than 12 months means preferential long-term rates. The capital gains calculator for investments is simpler than for property because cost basis is more straightforward - though specific identification, FIFO (first in first out), and average cost basis methods can significantly affect the taxable gain on partial sales of fungible assets like mutual fund shares.
Capital Gains on Investments - Cost Basis Methods Compared
| Cost Basis Method | How It Works | Best for Tax Purposes When |
|---|---|---|
| Specific Identification | You designate exactly which shares are sold - choose highest-basis shares to minimise gain | You have shares at different prices - choose highest cost basis to minimise taxable gain |
| FIFO (First In, First Out) | Oldest shares sold first - typically highest gain since older shares have lower basis | You want oldest shares sold to reach long-term status faster |
| LIFO (Last In, First Out) | Most recently purchased shares sold first - typically lower gain in appreciating markets | Most recent shares have higher cost basis in rising market |
| Average Cost (mutual funds) | Average of all purchase prices used - IRS-permitted for mutual fund shares | Simplicity preferred - average cost used automatically by many brokerages for mutual funds |
Capital Gains Calculator - Stocks - Net Gain Scenarios
| Shares Sold | Cost Basis | Sale Proceeds | Gross Gain | LTCG at 15% | STCG at 22% | Tax Saving (Long-term) |
|---|---|---|---|---|---|---|
| 100 shares | $5,000 | $12,000 | $7,000 | $1,050 | $1,540 | $490 |
| 500 shares | $20,000 | $45,000 | $25,000 | $3,750 | $5,500 | $1,750 |
| 1,000 shares | $50,000 | $120,000 | $70,000 | $10,500 | $15,400 | $4,900 |
| Portfolio sale | $200,000 | $450,000 | $250,000 | $37,500 | $55,000 | $17,500 |
| Large holding | $500,000 | $1,200,000 | $700,000 | $105,000 | $259,000 (at 37%) | $154,000 |
9. Capital Gains Tax on Cryptocurrency
Cryptocurrency is treated as property for US federal tax purposes - meaning every sale, exchange, or disposal of crypto is a taxable event subject to capital gains tax. The capital gains calculator for crypto applies the same short-term and long-term rules as stocks - but with significantly more complexity because crypto holders often have hundreds of individual transactions across multiple wallets and exchanges.
Cryptocurrency CGT - Taxable Events
| Event | Taxable? | Gain / Loss Calculation |
|---|---|---|
| Selling crypto for fiat currency (USD, GBP, AUD) | Yes - capital gain or loss | Proceeds minus cost basis - short or long-term based on holding period |
| Trading one cryptocurrency for another | Yes - disposal of original crypto is a taxable event | Fair market value of crypto received minus cost basis of crypto disposed |
| Using crypto to purchase goods or services | Yes - the use is a disposal | Fair market value at time of use minus cost basis |
| Receiving crypto as payment for work / services | Yes - ordinary income at fair market value when received | Income reported at receipt - this value becomes cost basis for future CGT |
| Mining / staking rewards | Yes - ordinary income when received | Fair market value at receipt is income - cost basis for future disposal |
| Transferring crypto between your own wallets | No - not a disposal | Internal transfer - no taxable event - but must maintain accurate records |
| Receiving a crypto gift | No at receipt - CGT when eventually sold | Recipient takes donor's cost basis - holding period includes donor's period |
10. Capital Gains Tax on Business Assets
Capital gains on the sale of business assets - equipment, goodwill, customer lists, intellectual property - trigger specific CGT rules that differ from investment assets. Section 1231 gains on business property held more than 12 months receive preferential long-term capital gains rates, but the calculation is further complicated by depreciation recapture rules and the specific character of each asset being sold.
Business Asset Sale - Tax Treatment by Asset Type
| Asset Type | Tax Treatment | Rate |
|---|---|---|
| Goodwill | Long-term capital gain - Section 1231 asset held 12+ months | 0%–20% LTCG rate - most valuable asset in business sale for CGT purposes |
| Equipment (with depreciation) | Depreciation recapture (ordinary income) up to depreciation claimed - Section 1245 | Ordinary income rate on recaptured depreciation - LTCG on any excess |
| Real property in business (with depreciation) | Section 1250 recapture on accelerated depreciation - 25% on unrecaptured straight-line depreciation | 25% on recapture - LTCG on excess appreciation |
| Inventory | Ordinary income - not capital gain | Ordinary income rates - same as business revenue |
| Covenant not to compete | Ordinary income to seller | Ordinary income rates - often subject to negotiation in deal structure |
| Customer lists / intangibles | Capital gain if self-created and held 12+ months - depends on IRS classification | LTCG rates if qualifying - negotiation between buyer and seller allocation matters |
11. Capital Gains Tax Rate - State Tax on Top of Federal
The federal capital gains tax rate is only part of the total tax on a capital gain. Most US states also levy state income tax on capital gains - and unlike the federal system, most states do not offer preferential rates for long-term gains, instead taxing them at the same rate as ordinary income. For high-income investors in high-tax states, the combined federal and state rate can approach or exceed 33%.
Combined Federal + State Capital Gains Tax Rate - By State
| State | State CGT Rate | Federal LTCG (15%) | Federal LTCG (20%) | Combined Rate (15% Fed) | Combined Rate (20% Fed) |
|---|---|---|---|---|---|
| California | 13.3% (top rate) | 15% | 20% | 28.3% (+ NIIT = 32.1%) | 33.3% (+ NIIT = 37.1%) |
| New York | 10.9% (top rate) | 15% | 20% | 25.9% (+ NIIT = 29.7%) | 30.9% |
| Oregon | 9.9% | 15% | 20% | 24.9% | 29.9% |
| Minnesota | 9.85% | 15% | 20% | 24.85% | 29.85% |
| Massachusetts | 5.0% | 15% | 20% | 20.0% | 25.0% |
| Texas / Florida / Nevada (no state income tax) | 0% | 15% | 20% | 15.0% (+ NIIT = 18.8%) | 20.0% |
| Illinois | 4.95% (flat) | 15% | 20% | 19.95% | 24.95% |
A California investor selling a $500,000 gain on long-term investment property pays federal CGT (15%) + NIIT (3.8%) + California state tax (13.3%) = 32.1% combined - leaving only 67.9% of the gain after taxes. The same investor in Texas pays only 18.8% combined - keeping 81.2%. For large capital gains, the state of residence is a material financial decision.
12. Net Investment Income Tax (NIIT) - The Hidden 3.8% Surcharge
The Net Investment Income Tax (NIIT) is a 3.8% surtax on net investment income - including capital gains, dividends, interest, rental income, and passive business income - for individuals with Modified Adjusted Gross Income (MAGI) above $200,000 (single) or $250,000 (married filing jointly). It was enacted as part of the Affordable Care Act and is not subject to the same preferential rate structure as long-term capital gains.
NIIT - How It Works and Who Pays
| MAGI Level | NIIT Applies? | Applied To | Additional Tax on $100k Gain |
|---|---|---|---|
| Under $200k (single) / $250k (married) | No | N/A | $0 |
| Above threshold | Yes - on lesser of net investment income or MAGI above threshold | Capital gains, dividends, interest, rental income, passive income | $3,800 on a $100,000 gain |
| Well above threshold | Yes - full NII subject to 3.8% | All net investment income | $3,800 per $100,000 of gain |
13. Capital Gains Tax - UK Complete Guide
In the UK, capital gains tax is levied at different rates depending on the type of asset and the taxpayer's income level. UK CGT is administered by HMRC and must be reported and paid via Self Assessment or (for property gains from April 2020) within 60 days of completion via the UK Property Account.
UK Capital Gains Tax Rates 2024–25
| Asset Type | Basic Rate Taxpayer | Higher / Additional Rate Taxpayer |
|---|---|---|
| Residential property (not main home) | 18% | 24% |
| Other assets (shares, business assets, non-residential property) | 10% | 20% |
| Business assets (Business Asset Disposal Relief - BADR) | 10% on first £1,000,000 lifetime gains | 10% on first £1,000,000 lifetime gains (relief rate applies) |
| Carried interest (private equity) | 18% | 28% |
UK CGT Annual Exempt Amount
The UK annual CGT exempt amount has been significantly reduced in recent years: it was £12,300 in 2022–23, reduced to £6,000 in 2023–24, and further reduced to £3,000 in 2024–25. Every UK taxpayer can realise up to £3,000 of capital gains per year completely free of CGT - making annual CGT-aware portfolio rebalancing within this threshold valuable for investors.
UK Primary Residence Relief (Private Residence Relief - PRR)
The equivalent of the US primary residence exclusion in the UK is Private Residence Relief - gains on your main home are fully exempt from CGT provided the property has been your main residence throughout your ownership. Where a property has had periods of non-residence (e.g. periods of rental), a proportion of the gain may be taxable, with the last 9 months of ownership always exempt regardless of use.
14. Capital Gains Tax - Australia Complete Guide
Australia taxes capital gains as part of the taxpayer's assessable income - they are added to other income and taxed at the individual's marginal income tax rate, not at a separate preferential rate. The key Australian CGT feature is the 50% discount: assets held for 12 months or more qualify for a 50% discount on the capital gain before it is added to assessable income - effectively halving the tax rate on long-term gains.
Australian Capital Gains Tax - Key Features
| Feature | Detail |
|---|---|
| Tax treatment | Capital gains added to assessable income - taxed at marginal income tax rate |
| 50% discount (assets held 12+ months) | Only 50% of the gain is included in assessable income - halves effective CGT rate |
| Effective CGT rate (top marginal 47% including Medicare) | Short-term: 47% - Long-term: 23.5% (after 50% discount) |
| Main residence exemption | Full CGT exemption on primary residence if lived in throughout ownership |
| CGT on investment property | Taxable - 50% discount applies if held 12+ months - depreciation not recaptured at separate rate |
| Capital losses | Can only offset capital gains - cannot offset other income - carried forward indefinitely |
| FIFO / indexation | Pre-September 1999 assets: choice of indexation method or 50% discount (whichever better) |
15. Capital Gains Tax - Canada Complete Guide
Canada taxes capital gains at a special inclusion rate - historically 50% of the gain was included in income (the "inclusion rate"), but Budget 2024 proposed increasing this to two-thirds (66.67%) for gains above $250,000 annually for individuals (effective June 25, 2024, subject to parliamentary approval). The gain is then taxed at the individual's marginal income tax rate (federal + provincial combined).
Canadian Capital Gains Tax - Key Features
| Feature | Pre-June 25, 2024 | Post-June 25, 2024 (proposed) |
|---|---|---|
| Inclusion rate (individuals) | 50% of gain included in income | 50% on first $250,000 annually - 66.67% above $250,000 |
| Inclusion rate (corporations/trusts) | 50% of gain | 66.67% on all gains |
| Effective rate (top bracket ~53%) | ~26.5% effective | ~26.5% on first $250k - ~35.3% above $250k |
| Principal residence exemption | Full exemption - no CGT on designated principal residence | Unchanged - full exemption maintained |
| Lifetime Capital Gains Exemption (LCGE) | $1,016,602 for qualifying small business shares and farming/fishing property | Increased to $1,250,000 proposed |
16. Capital Gains Tax - India Complete Guide
India has a well-structured capital gains tax system differentiating between short-term and long-term gains, with different holding period thresholds depending on the asset type and different tax rates post-Finance Act 2024.
Indian Capital Gains Tax - Rates and Holding Periods (Post July 2024 Budget)
| Asset Type | Long-Term Holding Period | LTCG Rate | STCG Rate |
|---|---|---|---|
| Listed equity shares / equity mutual funds | 12 months | 12.5% (above ₹1.25 lakh exemption) | 20% |
| Debt mutual funds / bonds (listed) | 24 months | 12.5% | Slab rate |
| Immovable property (residential / commercial) | 24 months | 12.5% (no indexation post July 2024) | Slab rate |
| Gold / physical assets | 24 months | 12.5% | Slab rate |
| Unlisted shares | 24 months | 12.5% | Slab rate |
Key Indian CGT feature: Listed equity gains above ₹1.25 lakh per year (previously ₹1 lakh) are exempt from LTCG - gains up to this annual threshold attract zero LTCG tax. This exemption makes annual portfolio rebalancing within the threshold an important tax optimisation strategy for Indian equity investors.
17. Global Capital Gains Tax Reference - Country Comparison
Capital Gains Tax Rates - International Reference
| Country | CGT Rate / Structure | Long-Term Preference? | Primary Residence Exemption? |
|---|---|---|---|
| United States | 0% / 15% / 20% LTCG - Short-term at ordinary income rate | Yes - major preferential rates for 12+ month assets | Yes - up to $500k exclusion |
| United Kingdom | 10%/20% (assets) - 18%/24% (property) - 10% BADR | No - based on income bracket not holding period | Yes - full PRR for principal residence |
| Australia | Marginal rate - 50% discount after 12 months | Yes - 50% discount after 12 months | Yes - main residence exemption |
| Canada | 50%/66.67% inclusion at marginal rate | No - same inclusion rate regardless of holding period | Yes - principal residence exemption |
| Germany | 25% flat (Abgeltungsteuer) on financial assets - property exempt if held 10+ years | Yes - property exempt after 10 years | Yes - owner-occupied property exempt |
| France | 30% flat (PFU) - property: progressive scale with rebates for holding period | Partial - property CGT reduces with holding period to zero after 22 years | Yes - principal residence fully exempt |
| India | 12.5% LTCG - 20% STCG (equity) - slab for debt/property short-term | Yes - preferential rates for 12–24 month+ assets | Partial - 54/54F exemption if proceeds reinvested in another property within 2 years |
| UAE | 0% - no personal capital gains tax | N/A - zero tax | N/A |
| Singapore | 0% - no capital gains tax | N/A - zero tax | N/A |
| New Zealand | 0% general CGT - but "bright-line test" on residential property: 39% if sold within 2 years | Partially - main home and most assets exempt | Yes - main home exempt from bright-line test |
| Netherlands | Deemed return system (Box 3) - not realisation-based for most investors | N/A - deemed return on wealth, not actual gains | Yes - main residence in Box 1 (income tax basis) |
18. Capital Gains Tax Planning - Legal Strategies to Minimise the Bill
Capital gains tax planning is entirely legal - it uses provisions deliberately written into the tax code to encourage specific economic behaviours: long-term investment, homeownership, retirement saving, and charitable giving. Every strategy below reduces CGT without any evasion or aggressive avoidance.
CGT Planning Strategies - Ranked by Impact
| Strategy | Mechanism | Potential Tax Saving |
|---|---|---|
| Hold assets 12+ months before selling (US) | Converts short-term gain (ordinary rate) to long-term gain (0%–20%) - zero planning effort | Up to 17–37 percentage point rate reduction on same gain |
| Harvest losses before year end | Sell underperforming assets to realise losses - offset against gains dollar-for-dollar | Save 0%–20% of the matched gain amount - up to $3,000 of ordinary income offset if excess losses |
| Income management - stay below 0% LTCG threshold | Structure income to stay below $47,025 (single) / $94,050 (MFJ) taxable income - pay 0% on LTCG | Eliminate 15%–20% CGT on all long-term gains if income management is possible |
| 1031 Like-Kind Exchange (investment property) | Defer CGT on investment property sale by reinvesting in like-kind property - gain deferred indefinitely | Full deferral of CGT (including NIIT and depreciation recapture) on sale proceeds reinvested |
| Qualified Opportunity Zone investment | Invest gain in Opportunity Zone fund - defer and potentially reduce original gain, eliminate gain on new investment | Deferral plus potential 10–15% reduction on original gain - 0% on new investment gain if held 10+ years |
| Charitable donation of appreciated assets | Donate long-term appreciated stock/property directly to charity - deduct full fair market value, pay zero CGT | Avoid CGT entirely + income tax deduction at full fair market value - double benefit |
| Step-up in basis at death | Inherited assets receive a basis equal to fair market value at date of death - all pre-death appreciation untaxed | Entire lifetime appreciation of inherited assets escapes CGT permanently for heirs |
| Primary residence timing | Ensure 2-year ownership and use test met before selling - maximise the $250k/$500k exclusion | Up to $500,000 of gain excluded - saving $75,000–$100,000 in federal CGT on a large gain |
| Roth IRA and tax-advantaged accounts | Hold appreciating assets in Roth IRA - all growth and gains are permanently tax-free on qualified withdrawal | Eliminates all CGT on decades of compound growth inside the account |
| State relocation for large planned gain | Establish bona fide domicile in no-state-income-tax state before selling a large appreciated asset | Eliminate state CGT entirely - 9.9%–13.3% saving on multi-million dollar gains |
19. Tax-Loss Harvesting - Offsetting Gains with Losses
Tax-loss harvesting is the strategy of deliberately selling investment positions at a loss to generate capital losses that offset capital gains - reducing the net taxable gain and therefore the CGT owed. It is one of the most consistently valuable and widely applicable CGT planning tools available to investors with mixed portfolios.
Tax-Loss Harvesting - Rules and Application
| Rule | Detail | Planning Implication |
|---|---|---|
| Loss offsets gain dollar-for-dollar | $10,000 capital loss offsets $10,000 capital gain - eliminating CGT on that portion | Harvest losses to directly reduce realised gains in the same year |
| Short-term and long-term netting order | Short-term losses offset short-term gains first, then long-term - long-term losses offset long-term first, then short-term | Optimise to avoid using long-term losses to offset short-term gains at higher rate |
| $3,000 ordinary income deduction | If capital losses exceed capital gains, up to $3,000 can be deducted against ordinary income per year | Valuable even in years with no gains - saves $330–$1,110 at 11%–37% ordinary rate |
| Unlimited carry-forward | Excess losses beyond $3,000 carry forward indefinitely to offset future gains | Losses realised in bear market years carry forward and offset future bull market gains |
| Wash-sale rule (US) | Cannot repurchase "substantially identical" security within 30 days before or after the loss sale | Replace the sold position with a similar but not identical security - maintain market exposure |
Tax-Loss Harvesting - Dollar Impact Examples
| Capital Gain | Capital Loss Available | Net Taxable Gain | CGT Without Harvesting (15%) | CGT After Harvesting | Tax Saved |
|---|---|---|---|---|---|
| $20,000 | $8,000 | $12,000 | $3,000 | $1,800 | $1,200 |
| $50,000 | $15,000 | $35,000 | $7,500 | $5,250 | $2,250 |
| $100,000 | $40,000 | $60,000 | $15,000 | $9,000 | $6,000 |
| $200,000 | $80,000 | $120,000 | $30,000 | $18,000 | $12,000 |
| $500,000 | $200,000 | $300,000 | $75,000 | $45,000 | $30,000 |
20. After Effects - What Happens When Capital Gains Tax Is Ignored or Mishandled
Capital gains tax errors carry consequences that range from unexpected tax bills at filing to criminal prosecution for serious cases of evasion. Understanding the full spectrum of after effects motivates accurate calculation, proper planning, and timely reporting - particularly for property sellers who often have their largest ever capital gains tax exposure.
After Effects of Miscalculating the Cost Basis
Overpaying CGT through failure to document improvements: The most common and costly CGT calculation error for property sellers is failure to document and include capital improvements in the cost basis. Every qualifying improvement - a new kitchen, a bathroom renovation, a room extension, new HVAC, a new roof - adds to the cost basis and directly reduces the taxable gain. A property owner who invested $80,000 in improvements over 10 years but cannot document them cannot add them to the basis - resulting in an $80,000 higher taxable gain. At 15% CGT plus 3.8% NIIT, this documentation failure costs approximately $15,000 in unnecessary federal tax. Maintaining a simple folder of contractor invoices, receipts, and permits throughout ownership prevents this entirely.
Underpaying CGT on investment property through basis ignorance: The inverse problem - and equally consequential - is investment property owners who forget that depreciation deductions reduce their adjusted cost basis, making the eventual gain larger than the raw purchase-to-sale price difference suggests. A property bought for $300,000 with $90,000 of depreciation claimed over 10 years has an adjusted basis of only $210,000. Selling for $500,000 produces a $290,000 gain - not the $200,000 the owner calculated mentally. Failure to account for this produces an unexpected tax bill at filing - often a surprise of $20,000 to $35,000 - that must be paid even if the proceeds have already been spent or reinvested. The capital gains tax calculator on sale of property that includes the depreciation adjustment is the tool that prevents this shock.
After Effects of Failing to Report Capital Gains
IRS CP2000 notice - the automated matching nightmare: Every financial institution that processes a security sale reports it to the IRS on Form 1099-B. Every property sale is reported on Form 1099-S. When a taxpayer fails to report a capital gain, the IRS automated matching system compares 1099-B and 1099-S filings against the tax return - and issues a CP2000 notice proposing additional tax with interest and, if the discrepancy is large enough, penalties. The CP2000 notice uses the reported proceeds as the full gain if no cost basis is on file - meaning the IRS may assess tax on the gross sale price rather than the net gain. Responding to a CP2000 with proper cost basis documentation typically resolves this - but creates weeks of administrative burden and anxiety that proper filing would have prevented entirely.
Crypto non-reporting - the growing enforcement focus: The IRS treats cryptocurrency as property - every crypto sale or exchange is a reportable capital event. In recent years, the IRS has specifically targeted cryptocurrency non-reporting, sending thousands of letters to crypto holders identified through exchange records (exchanges now report to the IRS via Form 1099-DA). Taxpayers who held and sold significant crypto positions without reporting gains face back taxes, penalties of up to 20% of the unreported tax for negligence, and interest at the federal short-term rate plus 3%. The emergence of blockchain analysis tools means the IRS can trace crypto transactions even without exchange reports - making the assumption of non-detection increasingly risky.
After Effects of Missing the 1031 Exchange Deadline
The 45/180 day clock: A 1031 like-kind exchange requires identifying replacement property within 45 days of closing the sale and completing the exchange within 180 days. Missing either deadline - by even one day - disqualifies the entire exchange and makes the full deferred gain immediately taxable. For a $500,000 deferred gain, missing the 45-day identification deadline by a single day costs $75,000 to $100,000 in federal CGT that would otherwise have been deferred indefinitely. The consequences of deadline failure in a 1031 exchange are binary, irreversible, and extremely expensive - making professional guidance from a qualified intermediary essential rather than optional.
After Effects on Investment Decisions - The Behavioural Lock-In Effect
CGT lock-in prevents optimal portfolio management: One of the most significant economic after effects of capital gains tax is behavioural rather than administrative - investors holding substantially appreciated positions that have become overly concentrated or misaligned with their risk tolerance often refuse to sell because the CGT liability is large. A position worth $500,000 with a $400,000 unrealised long-term gain would trigger $60,000 in CGT at the 15% rate if sold - which discourages the diversification that prudent portfolio management requires. This "CGT lock-in effect" causes investors to hold concentrated, poorly diversified portfolios far longer than they should - a risk they are effectively paying a premium (the foregone diversification benefit) to avoid the tax bill. Understanding that tax-loss harvesting, charitable donation strategies, and step-up in basis at death can mitigate or eliminate this lock-in helps investors make better portfolio decisions rather than being paralysed by the tax consequences.
21. Capital Gains Tax Action Framework - Before You Sell
Pre-Sale Capital Gains Tax Checklist
| Step | Action | Why It Matters |
|---|---|---|
| 1 | Calculate your adjusted cost basis accurately - including all improvements and selling costs | Every dollar of eligible basis reduces your taxable gain and therefore your CGT bill |
| 2 | Check holding period - if within 12 months, consider waiting to cross the long-term threshold | Potentially saves 7–17+ percentage points of rate by waiting a few months |
| 3 | Run the capital gains tax calculator - know the exact tax cost before deciding to sell | Tax ignorance leads to unexpected bills - precise calculation enables informed decisions |
| 4 | Check primary residence exclusion eligibility (property sales) - own + use 2 of last 5 years | Up to $500,000 of gain excluded - the most valuable single CGT provision available |
| 5 | Review capital losses available to harvest - offset gain before executing sale | Tax-loss harvesting reduces net taxable gain dollar-for-dollar |
| 6 | Check if income management to stay in 0% LTCG bracket is possible | Zero CGT on long-term gains if taxable income kept below $47,025 (single) / $94,050 (MFJ) |
| 7 | Consider 1031 exchange if selling investment property and intend to reinvest | Defer all CGT - including NIIT and depreciation recapture - indefinitely on reinvested proceeds |
| 8 | Consider charitable donation of appreciated assets instead of selling and donating cash | Eliminate CGT entirely + receive full fair market value deduction - superior to sell-then-donate |
| 9 | Consult a CPA or tax adviser for large transactions - professional fee is tiny vs tax saving | A $500–$2,000 professional consultation fee can save $20,000–$100,000 on large CGT events |
22. Frequently Asked Questions
How does a capital gains tax calculator work?
A capital gains tax calculator first computes your gain: net sale proceeds minus adjusted cost basis (purchase price plus acquisition costs plus capital improvements minus any depreciation claimed). It then determines whether the gain is short-term (12 months or less) or long-term (over 12 months) and applies the relevant capital gains tax rate. For property, it checks whether a primary residence exclusion applies. For investment property, it also calculates the Section 1250 depreciation recapture at 25% and the 3.8% NIIT if income exceeds the threshold. State CGT is added separately based on your state of residence.
What is the capital gains tax rate on property in 2024?
For a primary residence sold after meeting the 2-year ownership and use test, up to $250,000 (single) or $500,000 (married) of gain is completely excluded - potentially reducing the capital gains tax rate on sale of property to zero. For gains above the exclusion, the long-term capital gains tax rate is 0%, 15%, or 20% depending on your taxable income. For investment property, the gain includes depreciation recapture taxed at 25% on the depreciation portion, plus the regular long-term rate on appreciation above the original basis, plus 3.8% NIIT if income exceeds $200,000 (single) or $250,000 (married).
How do I use a capital gains calculator for a stock sale?
For a stock sale, the capital gains calculator requires: your cost basis (what you paid per share times number of shares - plus any reinvested dividends for mutual funds), your net sale proceeds (sale price minus any commissions), and the holding period. If held more than 12 months, apply the long-term rate (0%, 15%, or 20%). If held 12 months or less, apply your ordinary income tax bracket rate. If you have multiple lots at different prices, use specific identification (select highest-cost shares to minimise gain) or consult your brokerage's default method.
What is the difference between capital gains tax rate for short-term vs long-term?
The capital gains tax rate difference between short-term and long-term is one of the largest structurally created tax rate differentials in the US code. Short-term gains (12 months or less) are taxed at ordinary income rates - up to 37% for high earners. Long-term gains (more than 12 months) are taxed at preferential rates of 0%, 15%, or 20%. The maximum difference is 17 percentage points (20% long-term vs 37% short-term) - meaning on a $500,000 gain, the choice between selling on day 364 vs day 366 of ownership can be worth $85,000 in tax savings.
How does the 1031 exchange defer capital gains tax on property?
A Section 1031 like-kind exchange allows an investor to sell one investment property and defer all capital gains tax (including depreciation recapture and NIIT) by reinvesting the proceeds into a new like-kind investment property. The deferred gain carries forward as a reduced basis in the replacement property. There is no limit on how many 1031 exchanges can be chained - an investor could defer gains across multiple properties over a lifetime and potentially step up the basis to fair market value at death, permanently eliminating the accumulated deferred gain. The key requirements are: use a qualified intermediary, identify replacement property within 45 days of closing, and complete the exchange within 180 days.
Is there capital gains tax in the UAE and Singapore?
No - neither the UAE nor Singapore levies personal capital gains tax. In the UAE, there is no personal income tax, no capital gains tax, and no inheritance tax - making it one of the world's most tax-efficient jurisdictions for investors and property owners. Singapore similarly has no capital gains tax on general investments and property - though gains from property trading may be classified as income if the activity is deemed a business. For investors with significant unrealised capital gains, these jurisdictions' zero-CGT environments make them attractive residency destinations, though the substance requirements for valid tax residency must be properly established.
This content is for educational and informational purposes only. All US federal capital gains tax rates, brackets, thresholds, exclusion limits, and NIIT thresholds reflect 2024 tax year parameters as published by the IRS and are subject to annual adjustment. International capital gains tax information reflects general structures as of publication and may not capture recent legislative changes. UK CGT rates reflect 2024–25 parameters following the Autumn 2024 Budget changes. India CGT rates reflect Finance Act 2024 changes effective July 2024 - consult a qualified tax adviser for the latest rates. Nothing in this guide constitutes personalised tax, legal, or financial advice. Capital gains tax planning - particularly for large transactions, property sales, 1031 exchanges, and business asset sales - should be undertaken with a qualified CPA, tax attorney, or chartered accountant in your jurisdiction before any sale is completed.
