Capital Gains Tax in 2026: What Investors Need to Know
Selling an investment for more than you paid can be a great result.
Then comes the question many investors don't think about until tax season:
How much tax will I owe on the profit?
The answer depends on what you sold, how long you owned it, your taxable income, your filing status, and whether you also had capital losses.
The good news is that long-term capital gains can receive significantly different tax treatment from ordinary income. The bad news is that the rules can get confusing quickly.
This guide explains how capital gains tax works in 2026, the difference between short-term and long-term gains, how losses can reduce your tax bill, and some common mistakes to avoid.
What Is a Capital Gain?
A capital gain generally occurs when you sell an investment or other capital asset for more than your adjusted basis.
In simple terms:
Sale price − adjusted cost basis = capital gain
For example, suppose you bought stock for $10,000 and later sold it for $14,000.
Your basic gain is:
$14,000 − $10,000 = $4,000
That $4,000 may be subject to capital gains tax.
Your actual taxable gain can be different if you have transaction costs, adjustments to basis, previous losses, or other applicable factors.
What Is a Capital Loss?
A capital loss occurs when you sell an investment for less than its adjusted basis.
Suppose you bought stock for $10,000 and sold it for $7,000.
Your basic loss is:
$10,000 − $7,000 = $3,000
Capital losses can potentially offset capital gains.
This is one reason investors shouldn't look only at profitable investments when thinking about taxes.
Losses can have tax value too.
Short-Term vs. Long-Term Capital Gains
This is one of the most important distinctions.
Short-term capital gains
Generally, an investment held for one year or less is treated as a short-term capital asset.
Short-term capital gains are generally taxed at ordinary federal income tax rates.
Long-term capital gains
Generally, an investment held for more than one year can qualify for long-term capital-gain treatment.
Long-term gains are generally taxed at preferential federal rates of 0%, 15%, or 20%, depending on taxable income and filing status.
That difference can be significant.
Simple Example
Imagine you make a $20,000 profit from selling an investment.
If the gain is short-term, it generally gets included in the ordinary income tax calculation.
If it qualifies as long-term, it may receive the lower capital-gains rates.
That's why the date you purchased an investment can matter when deciding when to sell.
2026 Long-Term Capital Gains Tax Rates
For 2026, most long-term capital gains fall into the 0%, 15%, or 20% federal rates, depending on taxable income.
The thresholds are based on your taxable income and filing status.
The IRS's 2026 inflation-adjusted figures provide the following broad structure:
| Filing status | 0% rate applies up to | 15% rate applies up to |
|---|---|---|
| Single | $49,450 | $545,500 |
| Married filing jointly | $98,900 | $613,700 |
| Head of household | $66,200 | $579,600 |
| Married filing separately | $49,450 | $306,850 |
Amounts above the applicable 15% threshold can generally be subject to the 20% long-term capital-gains rate.
These thresholds apply to taxable income, not simply your salary or total income.
An Important Detail About the 0% Capital Gains Rate
Seeing a 0% capital gains rate doesn't mean you can earn unlimited investment profits tax-free.
The rate applies only to the portion of qualifying long-term capital gain that falls within the applicable taxable-income range.
For example, if your taxable income puts you partly in the 0% capital-gains range and partly above it, different portions of your gain can be taxed at different rates.
How Capital Gains Fit Into Your Tax Return
Capital gains don't simply get added to your paycheck and taxed in exactly the same way.
The calculation can involve:
- Short-term gains
- Long-term gains
- Capital losses
- Net capital gain
- Your taxable income
- Applicable capital-gains rates
- Potential additional taxes
This is why a brokerage statement showing a $10,000 gain doesn't necessarily mean you'll owe exactly a particular percentage of $10,000.
How Capital Losses Can Reduce Your Tax
Suppose you have:
- $10,000 of capital gains
- $6,000 of capital losses
Your net capital gain may be:
$10,000 − $6,000 = $4,000
The actual calculation can involve separate treatment of short-term and long-term gains and losses, but the basic idea is that qualifying losses can offset gains.
This can be particularly useful in years when some investments performed well while others declined.
What If Your Capital Losses Are Bigger Than Your Gains?
You may still be able to receive a tax benefit.
If your capital losses exceed your capital gains, individuals can generally deduct up to $3,000 of net capital loss against other income in a year, or $1,500 if married filing separately, subject to the applicable rules.
Unused losses can generally be carried forward to future years.
Example
Suppose you have:
- $2,000 in capital gains
- $8,000 in capital losses
Your net capital loss is $6,000.
You could potentially use:
$2,000 to offset the capital gains, plus
$3,000 against other income.
That leaves $1,000 of unused capital loss that may generally carry forward.
Do You Pay Capital Gains Tax When You Don't Sell?
Generally, simply seeing your investment increase in value doesn't create a capital gain for federal income tax purposes.
For example:
You buy stock for $20,000.
Its value rises to $30,000.
You haven't sold it.
You generally don't have a realized $10,000 capital gain yet.
If you later sell it for $30,000, the gain generally becomes realized.
This is commonly described as an unrealized gain before the sale and a realized gain after the sale.
What Happens When You Sell an Investment?
Your brokerage may provide tax documents showing information such as:
- Purchase date
- Sale date
- Proceeds
- Cost basis
- Gain or loss
Review these carefully.
Don't automatically assume the brokerage's reported basis is correct in every situation, especially if you transferred investments between accounts or have older holdings.
Why Cost Basis Matters
Suppose you sell shares for $25,000.
If your adjusted basis is $15,000:
$25,000 − $15,000 = $10,000 gain
But if your adjusted basis is actually $20,000:
$25,000 − $20,000 = $5,000 gain
That's a major difference.
Good recordkeeping can therefore prevent both overpaying and underreporting.
What Investments Can Generate Capital Gains?
Capital gains can arise from many types of assets, including:
- Stocks
- Mutual funds
- Exchange-traded funds
- Bonds
- Real estate
- Business interests
- Certain digital assets
- Collectibles
- Other capital assets
The tax rules aren't identical for every asset.
For example, certain collectibles can be subject to a maximum federal rate of 28%, while some real-estate gains can involve a special 25% rate for unrecaptured Section 1250 gain.
What About Cryptocurrency?
Selling or otherwise disposing of cryptocurrency can create a taxable gain or loss.
The basic concept is similar to other investments:
Amount realized − adjusted basis = gain or loss
Tax treatment can become more complicated when cryptocurrency is used for purchases, exchanged for another digital asset, received as compensation, or involved in other transactions.
Don't assume that cryptocurrency is tax-free simply because no cash was withdrawn to a bank account.
What About Dividends?
Not all dividends are taxed in exactly the same way.
Some dividends may qualify for the preferential tax treatment generally associated with qualified dividends, while other dividends can be taxed at ordinary income rates.
Your tax documents should help identify the relevant information.
This is another reason not to assume that your total investment income is all taxed at one rate.
The 3.8% Net Investment Income Tax
Higher-income taxpayers may also need to consider the Net Investment Income Tax (NIIT).
The NIIT is generally 3.8% on the lesser of:
- Net investment income, or
- The excess of modified adjusted gross income over the applicable threshold.
The thresholds are:
| Filing status | MAGI threshold |
|---|---|
| Married filing jointly | $250,000 |
| Married filing separately | $125,000 |
| Single | $200,000 |
| Head of household | $200,000 |
| Qualifying surviving spouse | $250,000 |
These thresholds aren't indexed for inflation.
This tax is separate from the regular capital-gains rates.
So a higher-income investor may face more than just the standard 0%, 15%, or 20% capital-gains rates on applicable investment income.
How Tax-Loss Harvesting Works
Tax-loss harvesting is a strategy in which an investor sells an investment at a loss and uses the loss to offset eligible gains.
For example:
- Investment A: $8,000 gain
- Investment B: $5,000 loss
The loss may reduce the net capital gain.
But there's an important rule to understand.
Watch the Wash-Sale Rule
You generally can't sell an investment to claim a loss and then simply buy the same or substantially identical investment back within the prohibited period and expect the loss to be immediately available.
This is known as the wash-sale rule.
The rule can be more complicated than it sounds, particularly when purchases occur across different accounts.
If you're using tax-loss harvesting, understand the rule before making the transaction.
Can You Reduce Capital Gains Tax Legally?
There are several legitimate tax-planning approaches, depending on your situation.
Hold investments longer
Holding an investment for more than one year can potentially change the gain from short-term to long-term treatment.
Use capital losses
Eligible losses can offset gains and potentially reduce taxable income.
Use tax-advantaged accounts
Investments held inside certain retirement accounts generally have different tax treatment from investments held in taxable brokerage accounts.
Consider the timing of sales
If you have flexibility, the year in which you realize a gain can affect your overall tax situation.
Monitor your taxable income
Your income can determine which capital-gains rate applies.
Keep accurate records
Correct cost basis can directly affect the amount of taxable gain.
Tax planning should always be based on your actual circumstances rather than a strategy copied from someone else's situation.
Capital Gains on the Sale of a Home
Selling your primary residence can involve a different set of rules from selling stocks.
Under the federal home-sale exclusion rules, qualifying taxpayers may generally be able to exclude up to:
- $250,000 of gain when filing as single
- $500,000 of gain for qualifying married couples filing jointly
There are eligibility and ownership/use requirements, and special situations can change the calculation.
The exclusion applies to qualifying gain—not automatically to every dollar received from selling a home.
If you're selling a property with a large gain, review the rules before assuming the entire profit is tax-free.
What About Rental Property?
Rental property can involve several different tax concepts.
A sale can potentially involve:
- Capital gain
- Depreciation recapture
- Unrecaptured Section 1250 gain
- Selling expenses
- Adjusted basis
- Other tax considerations
This is one area where a simple "I bought it for $200,000 and sold it for $400,000" calculation may not be enough.
If you've owned rental property for several years, the adjusted basis can be substantially different from your original purchase price.
Capital Gains vs. Ordinary Income
Here's a simplified comparison:
| Type of income | General federal treatment |
|---|---|
| Short-term capital gains | Generally ordinary income tax rates |
| Long-term capital gains | Generally 0%, 15%, or 20% |
| Qualified dividends | Generally preferential rates |
| Ordinary dividends | Generally ordinary income rates |
| Salary | Ordinary income tax rates |
| Interest income | Generally ordinary income rates |
These are general categories, not a complete description of every tax rule.
A Realistic Example
Imagine a single investor has:
- $85,000 of taxable ordinary income
- $20,000 of long-term capital gains
The capital gain doesn't simply get taxed at the investor's ordinary marginal rate.
Instead, the long-term gain is considered alongside taxable income to determine how much falls into the applicable capital-gains brackets.
Some or all of the gain could potentially be taxed at different capital-gains rates depending on the taxpayer's total taxable income.
This is why simply searching for "the capital gains tax rate" isn't enough.
Your income determines the applicable rate.
Common Capital Gains Mistakes
Selling Without Considering Taxes
Investors sometimes focus entirely on the investment return and forget about the tax consequences of selling.
Before a large sale, estimate the potential gain.
Forgetting About Cost Basis
Your purchase price is often important, but adjusted basis can involve more than the original purchase price.
Assuming Every Gain Is 20%
The maximum long-term rate is 20%, but many taxpayers pay 0% or 15% on some or all of their qualifying long-term gains.
Confusing Unrealized Gains With Taxable Gains
An increase in account value doesn't generally mean you owe capital-gains tax immediately.
The tax event generally occurs when the asset is disposed of, subject to the applicable rules.
Ignoring Investment Losses
Losses can have tax value.
Review your complete investment picture instead of looking only at winning positions.
Forgetting About NIIT
Higher-income investors should check whether the 3.8% Net Investment Income Tax could apply.
Capital Gains Tax Checklist for 2026
Before selling a major investment, consider:
- [ ] What is my adjusted cost basis?
- [ ] When did I acquire the investment?
- [ ] Is the gain short-term or long-term?
- [ ] What is my expected taxable income?
- [ ] Do I have capital losses?
- [ ] Could the sale push me into a different capital-gains rate?
- [ ] Could the NIIT apply?
- [ ] Does the wash-sale rule matter?
- [ ] Do I have other investment sales this year?
- [ ] Will the sale affect other tax benefits?
- [ ] Do I have the documentation to support my basis?
For large transactions, getting tax advice before selling can be much easier than fixing a problem afterward.
Frequently Asked Questions
What is the capital gains tax rate in 2026?
For most individuals, long-term capital gains are generally taxed at 0%, 15%, or 20%, depending on taxable income and filing status. Short-term capital gains are generally taxed at ordinary income rates.
How long do I have to hold stock to get the lower capital gains rate?
Generally, you need to hold the investment for more than one year for the gain to qualify as long-term rather than short-term.
Can capital losses reduce my taxes?
Yes. Capital losses can generally offset capital gains. If your losses exceed your gains, individuals can generally deduct up to $3,000 of net capital loss against other income, subject to the applicable rules.
Do I pay capital gains tax if I don't sell?
Generally, no. An increase in the value of an investment is usually an unrealized gain until the investment is sold or otherwise disposed of.
Are capital gains included in taxable income?
Yes. Capital gains can affect your taxable income and overall tax calculation, but qualifying long-term gains are generally subject to special rates.
Can I avoid capital gains tax by holding an investment forever?
Simply holding an investment doesn't create a realized capital gain, but it doesn't necessarily eliminate tax forever. Tax consequences can arise when the asset is eventually sold or otherwise disposed of, and estate-related rules can also affect inherited assets.
Is cryptocurrency subject to capital gains tax?
Taxable gains or losses can arise when cryptocurrency is sold, exchanged, or otherwise disposed of. The exact treatment depends on the transaction.
Bottom Line
Capital gains tax doesn't have to be mysterious.
The four things to remember are:
1. Holding period matters.
Short-term and long-term gains are generally taxed differently.
2. Your taxable income matters.
Your income helps determine which long-term capital-gains rate applies.
3. Losses matter too.
Capital losses can offset gains and, within certain limits, other income.
4. Planning before selling can matter.
The timing of a sale, your other gains and losses, and your overall tax situation can all affect the final result.
If you're planning to sell a large investment in 2026, don't look only at how much profit you'll make. Look at the after-tax result as well.
This article is for general educational purposes only and is not individualized tax, investment, financial, or legal advice. Capital-gains rules can vary depending on the asset and your circumstances.