Capital Gains Tax Calculator: Estimate Your Capital Gains Taxes Before They Catch You Off Guard
Use our Capital Gains Tax Calculator to project your tax liability from selling real estate, stocks, crypto, or business assets in 2025. This tool helps you understand how your holding period, income, and asset type affect what you owe.
How it works

Enter Your Sale Details
Input the sale amount, cost basis, holding period, and asset type (real estate, equity, crypto, etc.).

Tell Us Your Filing Status & Income
We’ll apply the proper capital gains rate based on 2025 IRS brackets and your income level.

Review Your Short- and Long-Term Tax Breakdown
We’ll show you what portion of your gain is taxed at higher rates—and where you might save through strategic timing or reinvestment.
What Is Capital Gains Tax?
A capital gain is the profit you realize when you sell a capital asset — stocks, real estate, cryptocurrency, or a business — for more than you paid for it. The IRS taxes that profit, and the rate depends on two factors: how long you held the asset and your total taxable income.
Assets held for one year or less are taxed at your ordinary income rate — the same as wages. Assets held for more than one year qualify for long-term capital gains rates of 0%, 15%, or 20%. That difference can save thousands of dollars on a single transaction.
Understanding which rate applies — and planning your sale timing — is exactly what this calculator helps you model before you pull the trigger.
2025 Capital Gains Tax Rates
Your rate depends on your filing status and total taxable income. Long-term rates apply to assets held more than one year.
Single Filers
| Rate | Taxable Income |
|---|---|
| 0% | $0 – $48,350 |
| 15% | $48,351 – $533,400 |
| 20% | Over $533,400 |
Married Filing Jointly
| Rate | Taxable Income |
|---|---|
| 0% | $0 – $96,700 |
| 15% | $96,701 – $600,050 |
| 20% | Over $600,050 |
Head of Household
| Rate | Taxable Income |
|---|---|
| 0% | $0 – $64,750 |
| 15% | $64,751 – $566,700 |
| 20% | Over $566,700 |
Short-Term Rates (Held 1 Year or Less)
Short-term gains are taxed at your ordinary income tax rate — the same brackets as wages (10%, 12%, 22%, 24%, 32%, 35%, 37%). Crossing the one-year holding period can dramatically cut your tax bill.
The Holding Period Difference
An investor in the 22% bracket who holds 8 more months drops from a 22% short-term rate to a 15% long-term rate — saving $2,100 on a $30,000 gain.
The Net Investment Income Tax (NIIT): The Hidden 3.8%
High-income taxpayers owe an additional 3.8% NIIT under IRC §1411 on top of their regular capital gains rate. It applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold for your filing status.
| Filing Status | MAGI Threshold | Effective Max LT Rate |
|---|---|---|
| Single | $200,000 | 23.8% |
| Married Filing Jointly | $250,000 | 23.8% |
| Married Filing Separately | $125,000 | 23.8% |
The NIIT thresholds are not inflation-adjusted, meaning more taxpayers get caught each year. If your income is near these thresholds, timing asset sales strategically or using tax-deferred accounts can keep you below the line.
Need Professional Tax Help?
Connect with Uncle Kam’s expert tax professionals for personalized tax strategies and planning.
Review your results with a tax professional to confirm whether an S-Corp is the right move for your business. If the numbers show potential savings, the next step is validating them with an expert. A personalized review can help confirm whether these estimates apply to your specific situation.
Why Use This Calculator?
Real Calculation Examples
Example 1: Long-Term Stock Sale
| Filing Status | Single |
| Taxable Income | $85,000 |
| Cost Basis | $20,000 |
| Sale Proceeds | $50,000 |
| Holding Period | 18 months |
| Capital Gain | $30,000 |
| LT Rate | 15% |
| Tax Owed | $4,500 |
Example 2: Short-Term vs. Long-Term
Same $30,000 gain — sold after 10 months instead of 18:
| Holding Period | 10 months |
| Ordinary Rate | 22% |
| Tax (Short-Term) | $6,600 |
| Tax (Long-Term) | $4,500 |
| Savings from Waiting | $2,100 |
Waiting 8 more months saved $2,100 — just by crossing the one-year mark.
Capital Gains by Asset Type
Not all assets are taxed the same way. The rules differ significantly depending on what you sold:
🏠 Real Estate
Long-term rates apply after one year. Primary residences qualify for the §121 exclusion — up to $250,000 ($500,000 MFJ) of gain is tax-free if you lived there 2 of the last 5 years. Rental property gains may also trigger 25% depreciation recapture on prior deductions.
📈 Stocks & ETFs
Standard long-term/short-term rules apply. Wash sale rules (IRC §1091) disallow a loss if you buy a substantially identical security within 30 days before or after the sale. Qualified dividends are also taxed at long-term capital gains rates.
₿ Cryptocurrency
The IRS treats crypto as property (Notice 2014-21). Every sale, trade, or use of crypto to buy goods is a taxable event. Wash sale rules currently do not apply to crypto, making tax-loss harvesting more flexible. New broker reporting rules under the OBBBA apply to 2025 transactions.
🏢 Business Assets
Business sales involve multiple asset classes taxed differently. Goodwill gets long-term rates. Equipment recapture is taxed at ordinary rates under IRC §1245. Real property recapture is taxed at a max 25% under IRC §1250. Asset allocation in the purchase agreement is critical.
6 Strategies to Legally Reduce Your Capital Gains Tax
Knowing your tax liability is only half the battle. Here's how high-net-worth taxpayers and their advisors reduce it:
01
Hold Past 12 Months
Crossing the one-year threshold drops your rate from up to 37% (ordinary) to a maximum of 20% long-term — often saving more than any deduction.
02
Tax-Loss Harvesting
Sell losing positions to offset gains dollar-for-dollar. Up to $3,000 of net losses can offset ordinary income annually, with unlimited carryforward.
03
1031 Exchange
For investment real estate, a like-kind exchange under IRC §1031 defers all capital gains tax indefinitely. Strict 45-day and 180-day deadlines apply.
04
Opportunity Zone Investment
Invest gains into a Qualified Opportunity Fund within 180 days of sale. Gains from the QOF held 10+ years are completely tax-free under IRC §1400Z-2.
05
Donate Appreciated Assets
Donating appreciated stock or real estate directly to charity avoids capital gains tax entirely and gives you a full fair market value deduction.
06
Installment Sales
Spread gain recognition over multiple years via an installment note under IRC §453. This can keep you in lower brackets each year and defer the tax liability.
More Frequently Asked Questions
What are the 2025 long-term capital gains tax rates?
In 2025, long-term capital gains are taxed at 0%, 15%, or 20% depending on filing status and taxable income. Single filers pay 0% up to $48,350, 15% up to $533,400, and 20% above that. Married filing jointly thresholds are $96,700 and $600,050. High-income taxpayers may also owe an additional 3.8% NIIT.
How do I calculate my cost basis?
Your cost basis is generally what you paid for the asset, including commissions and fees. For inherited assets, basis is stepped up to fair market value on the date of death (IRC §1014). For gifted assets, you typically take the donor's basis. For real estate, basis includes the purchase price plus improvements, minus depreciation taken.
Does reinvesting proceeds avoid capital gains tax?
No — this is one of the most common misconceptions. Simply reinvesting the proceeds does not defer or eliminate capital gains tax. The gain is recognized at the time of sale regardless of what you do with the money afterward. The only exceptions are specific deferral mechanisms like 1031 exchanges, Opportunity Zone investments, and installment sales.
What is the Net Investment Income Tax and who pays it?
The NIIT is an additional 3.8% tax on investment income (including capital gains) for taxpayers whose MAGI exceeds $200,000 (single) or $250,000 (married filing jointly). The effective top rate on long-term capital gains can reach 23.8% — or higher when combined with state taxes.
Do I owe state taxes on capital gains too?
Most states tax capital gains as ordinary income. California taxes all capital gains up to 13.3%. New York up to 10.9%. Florida, Texas, Nevada, Washington, and Wyoming have no state income tax. This calculator estimates federal tax only — consult a tax professional for your state's impact.
What's the difference between realized and unrealized gains?
An unrealized gain exists on paper — your asset has increased in value but you haven't sold it. No tax is owed on unrealized gains. A realized gain occurs when you actually sell. Only realized gains are taxable, which is why timing your sale is one of the most powerful tax planning tools available.
How does tax-loss harvesting work?
Tax-loss harvesting involves selling investments at a loss to generate a capital loss that offsets gains dollar-for-dollar. Up to $3,000 of net losses can offset ordinary income annually, with the remainder carried forward indefinitely. The wash sale rule (IRC §1091) prevents buying back the same security within 30 days.
What is depreciation recapture and how does it affect my sale?
When you sell a rental property or business asset you've depreciated, the IRS taxes the depreciation deductions you took at a higher rate. For real property, recapture is taxed at a maximum 25% under IRC §1250. For personal property like equipment, recapture under IRC §1245 is taxed as ordinary income — a critical factor in real estate exit planning.
Key Terms Glossary
Capital Gain
Profit from selling a capital asset for more than its cost basis. Taxable in the year the sale is completed.
Cost Basis
What you paid for an asset, including purchase price, commissions, and improvements. Subtracted from sale proceeds to determine gain or loss.
Holding Period
Length of time you owned an asset before selling. Assets held more than one year qualify for lower long-term capital gains rates.
Net Investment Income Tax (NIIT)
Additional 3.8% tax under IRC §1411 on investment income for high-income taxpayers exceeding MAGI thresholds of $200K (single) or $250K (MFJ).
Depreciation Recapture
Tax on the portion of gain attributable to prior depreciation deductions. Taxed at 25% for real property (§1250) or ordinary rates for personal property (§1245).
1031 Exchange
Tax-deferral strategy under IRC §1031 allowing investors to swap one investment property for another without recognizing capital gains at sale.
Tax-Loss Harvesting
Selling investments at a loss to offset capital gains. Subject to wash sale rules (IRC §1091) — disallowed if a substantially identical security is repurchased within 30 days.
§121 Exclusion
Allows homeowners to exclude up to $250,000 ($500,000 MFJ) of gain from a primary residence sale if they lived there 2 of the last 5 years.
Qualified Opportunity Zone (QOZ)
Designated low-income communities where investments via a Qualified Opportunity Fund can defer and potentially eliminate capital gains tax under IRC §1400Z-2.
Installment Sale
Sale where proceeds are received over multiple years, allowing the seller to spread gain recognition across tax years under IRC §453, potentially reducing the effective rate.
Frequently Asked Questions
Does this work for real estate sales?
Yes. You can input capital improvements and depreciation if applicable. It works for personal property, investment property, and flips.
Will this tool tell me if I qualify for a 1031 exchange?
It won’t calculate it directly, but it will show you the taxable gain that could be deferred through a 1031. For full guidance, we recommend booking a call.
Can I use this for stocks or crypto too?
Yes. It supports capital assets across all categories—stocks, equity sales, crypto, and collectibles.
Does this include state taxes?
No. This tool provides a federal estimate. State capital gains vary and should be discussed with your strategist.