Quick Answer: To use a capital gains tax calculator, subtract your cost basis and selling costs from your sale price, then apply your rate. Long-term gains face 0%, 15%, or 20% in 2026, and short-term gains face ordinary rates of 10% to 37%.
Key Takeaways
- Holding period decides the rate. Hold longer than one year to qualify for lower long-term rates.
- 2026 long-term brackets: 0% up to $49,450 (single) or $98,900 (joint), and 20% above $545,500 (single) or $613,700 (joint).
- Home sellers can exclude up to $250,000 of gain ($500,000 joint) from their primary residence.
- No “over-55 exemption” exists. The old one-time exclusion ended in 1997.
- Crypto counts as property, so every sale or trade can trigger tax.
What Is a Capital Gains Tax Calculator?
A capital gains tax calculator estimates the federal tax you owe when you sell an asset for more than you paid. It uses your gain, holding period, income, and filing status to apply the correct rate.
Investors use a capital gain tax calculator before they sell stocks, crypto, funds, or property. The result shows whether to sell now, wait, or sell in pieces.
A good tool handles four inputs: your purchase price, sale price, holding period, and total taxable income. The sections below teach you the math, so you can verify any result.
What Does CGT Stand For?
CGT stands for capital gains tax, the tax on profit from selling an asset. This article covers U.S. federal rules, which differ from CGT systems in countries such as the UK, Canada, and Australia.
Rates, exemptions, and holding periods vary by country. If you file taxes outside the United States, use your national tax authority’s rules.
How Do I Calculate Capital Gains Tax (CGT)?
Subtract your adjusted cost basis and selling costs from the sale price to find your gain. Then multiply the gain by your rate: ordinary rates for short-term gains, or 0%, 15%, or 20% for long-term gains.
Follow these steps for how to calculate CGT:
- Find your sale price (the amount realized).
- Subtract selling costs, such as commissions, transfer fees, and agent fees.
- Find your adjusted cost basis: the purchase price, plus fees and improvements.
- Subtract basis from net proceeds to get your gain or loss.
- Determine your holding period to classify the gain as short-term or long-term.
- Apply the correct rate based on your taxable income and filing status.
- Add the 3.8% net investment income tax if your income exceeds the threshold.
Formula: Gain = (Sale price − Selling costs) − Adjusted cost basis
Are Capital Gains Considered Income?
Yes. The IRS counts capital gains as income and includes them in your adjusted gross income. Long-term gains, however, face separate, lower tax rates than your wages.
Your gains stack on top of your ordinary income. The tax system fills the lower brackets with wages first, then taxes your long-term gains at the rate that matches where they land.
That stacking effect explains why a large gain can push part of it into the 15% or 20% bracket.
What Is the Difference Between Short-Term and Long-Term Capital Gains?
Short-term gains come from assets you held one year or less and face ordinary income rates of 10% to 37%. Long-term gains come from assets held longer than one year and face 0%, 15%, or 20%.
| Feature | Short-Term | Long-Term |
|---|---|---|
| Holding period | One year or less | More than one year |
| Federal rate | 10% to 37% (ordinary rates) | 0%, 15%, or 20% |
| Taxed like | Wages | Preferential rates |
| Best for | Active traders | Buy-and-hold investors |
The clock starts the day after you acquire the asset. If you buy stock on March 15, 2025, you must sell on March 16, 2026 or later for long-term treatment.
Short vs. Long Term Capital Gains: A Dollar Example
You earn $70,000 in wages as a single filer and sell stock for a $20,000 gain.
| Holding Period | Rate on Gain | Federal Tax on Gain |
|---|---|---|
| Short-term | 22% | $4,400 |
| Long-term | 15% | $3,000 |
Waiting past the one-year mark saves $1,400 in this case.
What Are the 2026 Capital Gains Tax Rates and Income Thresholds?
For 2026, long-term gains face 0% up to $49,450 of taxable income for single filers and $98,900 for joint filers. The 15% rate runs to $545,500 (single) or $613,700 (joint), then 20% applies.
The 0% bracket covers taxable income up to $49,450 for single filers and $98,900 for married filing jointly, and the 15% bracket extends to $545,500 for single filers and $613,700 for joint filers.
2026 Capital Gains Income Thresholds
| Rate | Single | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 | Up to $66,200 |
| 15% | $49,451 to $545,500 | $98,901 to $613,700 | $66,201 to $579,600 |
| 20% | Over $545,500 | Over $613,700 | Over $579,600 |
Sources report slightly different figures in some published tables, so verify exact thresholds in IRS Revenue Procedure 2025-32 before you file.
These thresholds apply to total taxable income, which includes your gains after deductions. The 2026 standard deduction is $16,100 for single filers and $32,200 for joint filers.
Short-Term Rates for Comparison
Short-term gains follow the regular 2026 brackets: 10%, 12%, 22%, 24%, 32%, 35%, and 37%. The 37% rate starts above $640,600 for single filers and $768,700 for joint filers.
How Does the 3.8% Net Investment Income Tax Work?
The net investment income tax adds 3.8% on investment income when modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). Congress does not adjust these thresholds for inflation.
The thresholds remain $200,000 for single filers and $250,000 for married couples filing jointly, with $125,000 for married filing separately.
A high earner in the 20% bracket can pay a combined 23.8% federal rate on long-term gains.
Example: A single investor with $600,000 of income realizes a $100,000 long-term gain. The federal tax equals 23.8% × $100,000, or $23,800, before state tax.
How Do I Use a Long-Term Capital Gains Tax Calculator?
Enter your filing status, taxable income, sale price, cost basis, and holding period. The calculator stacks your gain on top of ordinary income and applies the 0%, 15%, or 20% rate to each slice.
Follow these steps with any long-term capital gains tax calculator:
- Choose your filing status.
- Enter your taxable income before the gain.
- Enter the sale price and cost basis for each asset.
- Select long-term or short-term based on your holding period.
- Add other gains and losses from the year.
- Review the federal and NIIT results.
Example: Selling Inside the 0% Bracket
A single filer earns $45,000 in wages. After the $16,100 standard deduction, ordinary taxable income equals $28,900.
The filer sells long-term stock with a $20,000 gain. Total taxable income reaches $48,900, which stays below the $49,450 ceiling. The federal tax on the gain equals $0.
This strategy, called 0% gain harvesting, lets lower-income investors reset their cost basis tax-free.
How Are Capital Gains Taxed on a Home Sale?
You can exclude up to $250,000 of gain ($500,000 for married couples filing jointly) when you sell your primary home, if you owned and lived in it for two of the last five years.
You may exclude up to $250,000 in gains, or $500,000 if married filing jointly, when you sell your primary residence. Real estate and capital gains rules favor homeowners with this large exclusion.
How Do I Calculate Capital Gains on the Sale of a Property?
Subtract selling costs from the sale price, then subtract your adjusted basis, which equals the purchase price plus closing costs and capital improvements. The result is your gain or loss.
Example: You bought your home for $300,000 and added $50,000 in improvements. You sell for $650,000 and pay $39,000 in selling costs.
- Net proceeds: $650,000 − $39,000 = $611,000
- Adjusted basis: $300,000 + $50,000 = $350,000
- Gain: $611,000 − $350,000 = $261,000
| Filer | Exclusion | Taxable Gain | Tax at 15% |
|---|---|---|---|
| Single | $250,000 | $11,000 | about $1,650 |
| Married filing jointly | $500,000 | $0 | $0 |
This same math powers any calculator for capital gain tax on sale of property.
What Is the One-Time Capital Gains Exemption for Seniors?
No such exemption exists today. The old one-time $125,000 exclusion for homeowners age 55 and older ended in 1997. Seniors now use the standard home sale exclusion of $250,000 or $500,000.
Many websites still mention the old rule, so ignore any calculator that applies it. Seniors who meet the ownership and use tests receive the same exclusion as everyone else.
How Is Capital Gains Tax on Investment Real Estate Calculated?
Investment property gains get no home sale exclusion. You owe long-term capital gains tax, plus up to 25% on depreciation you claimed, and possibly the 3.8% net investment income tax.
Example: You buy a rental for $250,000 and claim $30,000 in depreciation. You sell for $350,000, net of selling costs.
- Adjusted basis: $250,000 − $30,000 = $220,000
- Total gain: $350,000 − $220,000 = $130,000
- Depreciation recapture portion: $30,000, taxed at ordinary rates capped at 25%
- Remaining gain: $100,000, taxed at 0%, 15%, or 20%
Real estate capital gains tax on rentals therefore costs more than a stock sale of equal size.
How Are Crypto Capital Gains Taxed?
The IRS treats cryptocurrency as property. Selling it, trading it for another coin, or spending it triggers a taxable gain or loss, measured against your cost basis, with the same short-term and long-term rules.
Example: You buy $10,000 of crypto and sell it eight months later for $18,000. You owe tax on an $8,000 short-term gain.
| Holding Period | Assumed Rate | Federal Tax |
|---|---|---|
| 8 months (short-term) | 24% | $1,920 |
| 13 months (long-term) | 15% | $1,200 |
Waiting five more months saves $720.
Brokers and exchanges now report crypto transactions on Form 1099-DA. Track every trade yourself anyway, including crypto-to-crypto swaps, because accurate basis records protect you.
Wash sale rules, which block loss deductions on repurchases within 30 days, apply to stocks and securities. Crypto has historically fallen outside them, but Congress has considered changes. Confirm current law before you harvest crypto losses.
How Do I Avoid Capital Gains Tax Legally?
You can reduce or avoid capital gains tax legally by holding assets over a year, using the 0% bracket, harvesting losses, investing through retirement accounts, donating appreciated assets, and using the home sale exclusion.
Use these strategies:
- Hold longer than one year to unlock long-term rates.
- Realize gains in low-income years to use the 0% bracket.
- Harvest tax losses to offset gains.
- Use tax-advantaged accounts, such as 401(k)s, IRAs, and Roth IRAs, where trades do not trigger current tax.
- Donate appreciated stock to charity instead of selling it.
- Plan inheritances. Heirs generally receive a stepped-up basis at the owner’s death.
- Offset with losses in the same year.
How Do I Avoid Capital Gains Tax on Real Estate?
Avoid capital gains tax on real estate by living in the home two of five years, adding documented improvements to your basis, or using a 1031 exchange to defer gains on investment property.
Add these real estate tactics:
- Keep improvement receipts. Kitchens, additions, and roofs raise basis. Routine repairs do not.
- Time the sale to meet the two-year ownership and use tests.
- Use a 1031 exchange for investment property, with strict deadlines and a qualified intermediary.
- Consider an installment sale to spread the gain across several tax years.
Do Capital Losses Help?
Yes. Losses offset gains of the same year first. If losses exceed gains, you can deduct up to $3,000 against ordinary income and carry the rest forward.
Married couples filing separately can deduct $1,500. Unused losses carry forward indefinitely.
Do I Owe Capital Gains Tax If I Reinvest the Money?
Yes. Reinvesting stock or crypto proceeds does not erase the tax. Only specific rules, such as a 1031 exchange for investment real estate, let you defer the gain.
Selling a primary home and buying a new one also creates no automatic tax break. The exclusion, not reinvestment, protects your gain.
How Do States Tax Capital Gains?
Most states tax capital gains as ordinary income. Texas and Florida impose no state income tax, while California taxes gains at up to 13.3% and Washington applies a separate excise tax on large gains.
| State | Treatment |
|---|---|
| Texas | No tax; voters banned a state capital gains tax in 2025 |
| Florida | No state income tax |
| California | Ordinary income rates, up to 13.3% |
| Washington | Excise tax on large gains, with a top rate of 9.9% above $1 million |
California does not offer preferential treatment for long-term capital gains. Texas voters approved a constitutional ban on state taxes on realized or unrealized capital gains in November 2025.
Rules change often, so check your state revenue agency for current rates.
How Do I Report Capital Gains?
Report each sale on Form 8949 and total the results on Schedule D of Form 1040. Your broker’s Form 1099-B or 1099-DA supplies most of the numbers.
What Records Do I Need?
Keep purchase confirmations, sale statements, Form 1099-B or 1099-DA, closing disclosures, and improvement receipts. These documents prove your cost basis and holding period if the IRS asks.
Keep records for at least three years after you file, and for as long as you own the asset plus three years for property.
What Year-End Moves Can I Make Before December 31?
You still have time to improve your 2026 tax result. Act before the year closes.
- Review your realized gains and losses so far this year.
- Harvest losses to offset gains, and respect wash sale rules for securities.
- Check holding dates. A sale one day short of a year costs you the long-term rate.
- Use the 0% bracket if your income is low this year.
- Donate appreciated assets before year end.
- Estimate your tax and adjust withholding or make a final estimated payment by the January 15, 2027 deadline.
Common Capital Gains Tax Mistakes
- Forgetting reinvested dividends when you calculate cost basis
- Selling one day too early and losing long-term treatment
- Ignoring state tax on top of federal tax
- Skipping improvement records on real estate
- Applying the old over-55 exemption
- Missing crypto-to-crypto trades as taxable events
- Overlooking the 3.8% net investment income tax
Final Thoughts
A capital gains tax calculator gives you a fast estimate, but the formula behind it is simple: net proceeds minus adjusted basis, taxed at the rate your holding period and income allow.
Check the 2026 thresholds before you sell, hold past one year when you can, and keep clean records for every asset. Then run your numbers through a calculator and confirm the result with a qualified tax professional before you make a large trade or property sale.
This article provides general educational information, not personalized tax or legal advice. Tax laws and thresholds change often, so confirm current figures with the IRS, your state revenue agency, or a qualified tax professional.
