How Capital Gains Tax Works and When You Owe It
Quick Answer
You owe capital gains tax when you sell an asset for more than you paid for it, and the profit (the "gain") is subject to tax in the year of the sale. The rate you pay depends primarily on how long you held the asset: assets held for more than one year qualify for long-term rates of 0%, 15%, or 20%, while assets held for one year or less are taxed as ordinary income.
For most taxpayers in 2026, the 15% long-term rate applies, but a significant portion of taxpayers qualify for the 0% rate based on their income level.Key Facts
- Long-term capital gains apply to assets held for more than one year and are taxed at 0%, 15%, or 20% depending on your taxable income and filing status.
- Short-term capital gains apply to assets held for one year or less and are taxed at the same rates as ordinary income — meaning your regular tax bracket applies.
- 2026 income thresholds for the 0% long-term rate: up to $49,450 for single filers, $98,900 for married filing jointly, and $66,200 for head of household.
- 2026 income thresholds for the 20% long-term rate: $545,501 and above for single filers, $613,701 and above for married filing jointly, and $579,601 and above for head of household.
- Collectibles such as coins, precious metals, and antiques are taxed at a maximum rate of 28% for long-term gains.
- The 3.8% Net Investment Income Tax (NIIT) still applies to higher earners — those with modified adjusted gross income above $200,000 for single filers and $250,000 for married filing jointly.
- Proposed legislation in the U.S. has floated the idea of taxing capital gains at ordinary income rates for taxpayers earning more than $1 million annually, but as of August 2026, no such change has been enacted.
- Capital losses can offset capital gains, and if losses exceed gains, up to a limited amount can be deducted against ordinary income with the remainder carried forward.
How the One-Year Holding Period Changes Everything
The single most important factor in determining your capital gains tax rate is not your income — it's how long you held the asset. This distinction between short-term and long-term holdings is the foundation of the entire system.
The Short-Term Penalty
When you buy an asset and sell it within 12 months or less, any profit is classified as a short-term capital gain. The IRS treats this gain as ordinary income, which means it gets added to your other income and taxed at whatever marginal rate your total income falls into.
For 2025 and 2026, federal ordinary income tax brackets range from 10% up to 37% depending on your income level. Consider a practical example: a taxpayer in the 24% ordinary income bracket who buys and sells a stock within six months and realizes a $5,000 gain.That gain is taxed at 24%, producing a tax bill of $1,200. The same gain on an asset held for 13 months would be a long-term capital gain, and depending on that taxpayer's total taxable income, could be taxed at 0%, 15%, or 20% — potentially producing a tax bill of $750 at the 15% rate, or even zero.This is why financial advisors frequently recommend that investors who are considering selling a profitable position wait until the one-year anniversary of the purchase date. The tax savings from crossing the short-term to long-term threshold can be substantial.The Long-Term Rate Structure
Long-term capital gains are taxed at preferential rates that are significantly lower than ordinary income rates for most taxpayers. For 2026, the thresholds are:
- 0% rate: Single filers with taxable income up to $49,450; married filing jointly up to $98,900; head of household up to $66,200; married filing separately up to $49,450.
- 15% rate: Single filers from $49,451 to $545,500; married filing jointly from $98,901 to $613,700; head of household from $66,201 to $579,600; married filing separately from $49,451 to $306,850.
- 20% rate: Single filers at $545,501 and above; married filing jointly at $613,701 and above; head of household at $579,601 and above; married filing separately at $306,851 and above.
These thresholds are adjusted annually for inflation. For comparison, the 2025 thresholds were slightly lower: the 0% rate ended at $48,350 for single filers and $96,700 for joint filers, while the 20% rate began at $533,400 for single filers and $600,050 for joint filers.
What Counts as a Capital Asset?
Capital assets include a wide range of property: stocks, bonds, mutual fund shares, real estate (other than your primary residence in most cases), precious metals, collectibles, and business property. The definition is broad, and the tax treatment applies to nearly anything you sell for more than you paid.
One notable exception is your primary residence. The IRS provides an exclusion for gains on the sale of a home — up to $250,000 for single filers and $500,000 for married filing jointly — provided you meet ownership and use tests.This exclusion means most homeowners never pay capital gains tax on the sale of their primary residence.The Mechanics How Gains Are Calculated and Reported
Understanding how capital gains are calculated is just as important as knowing the rates. The process involves determining your cost basis, calculating the gain or loss, and then reporting it properly on your tax return.
Cost Basis The Starting Point
Your cost basis is generally what you paid for the asset, including commissions and other acquisition costs. When you sell the asset, your gain is the difference between the sale price (minus any selling costs) and your cost basis.
For example, if you purchase 100 shares of a stock at $50 per share, your cost basis is $5,000. If you later sell those shares at $80 per share for $8,000, your capital gain is $3,000.However, cost basis can become more complicated in certain situations. If you received the asset as a gift, your basis is generally the donor's basis.If you inherited the asset, the basis is typically stepped up to the fair market value at the date of the original owner's death. If you reinvested dividends through a dividend reinvestment plan, those reinvested amounts increase your basis.Keeping accurate records of your basis is essential for calculating your tax correctly.Netting Gains and Losses
The IRS allows you to offset your capital gains with capital losses. The process works as follows:
- First, you net your short-term gains against your short-term losses.
- Then, you net your long-term gains against your long-term losses.
- Finally, you combine the net short-term result with the net long-term result.
If you have a net capital loss overall, you can deduct up to a limited amount against your ordinary income — the annual limit is $3,000 for single filers and married filing jointly, and $1,500 for married filing separately. Any remaining loss carries forward to future tax years indefinitely, where it can offset future gains or continue to offset ordinary income up to the annual limit.
This mechanism creates a strategy known as tax-loss harvesting. By selling investments that have declined in value, you can realize losses that offset gains elsewhere in your portfolio.The realized losses reduce your tax liability, and you can reinvest the proceeds in similar (but not substantially identical) assets to maintain your market exposure. This strategy is particularly valuable in years when you have realized significant gains.Reporting Requirements
Capital gains and losses are reported on Schedule D of your federal tax return. Most brokers and financial institutions will provide you with a Form 1099-B at the beginning of the tax year, which details your sales transactions and the cost basis information they have on file.
This form is essential for completing your Schedule D accurately. If you sell assets that are not held by a broker — such as a personal sale of a collectible or a private transaction — you are still responsible for reporting the gain or loss.The IRS requires that all capital asset sales be reported, regardless of whether you received a tax form.Special Rates and Exceptions You Should Know About
The 0%, 15%, and 20% rates apply to most long-term capital gains, but there are important exceptions that can change your tax bill.
Collectibles The 28% Rate
Long-term gains on "collectible assets" — including coins, precious metals, antiques, and similar items — are taxed at a maximum rate of 28%. This is higher than the standard 20% top rate for other assets.
Notably, this rate applies even if your ordinary income tax bracket would suggest a lower rate. For investors in gold, silver, or other precious metals, this means the tax treatment is less favorable than for stocks or real estate.The 28% rate is a ceiling, so if your marginal tax rate is lower than 28%, you would pay your ordinary rate instead — but for most taxpayers in the 15% or 20% long-term capital gains brackets, the 28% collectibles rate results in a higher tax bill.The Net Investment Income Tax
High earners face an additional layer of tax on their investment income, including capital gains. The 3.8% Net Investment Income Tax (NIIT) applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds certain thresholds: $200,000 for single filers, $250,000 for married filing jointly, and $200,000 for married filing separately.
This means that a single filer with $600,000 in taxable income in 2026 who realizes a $100,000 long-term capital gain would pay the 20% capital gains rate on the gain ($20,000) plus the 3.8% NIIT ($3,800), for a combined effective rate of 23.8% on the gain. The NIIT applies on top of the regular capital gains tax, and it cannot be avoided through asset location strategies — it applies to all net investment income above the thresholds.State Taxes Add Another Layer
While this article focuses on federal capital gains tax, most states also impose their own taxes on capital gains. Some states tax capital gains as ordinary income, while others offer preferential treatment.
A few states — including Texas, Florida, Nevada, and Washington — have no state income tax at all, meaning no state-level capital gains tax. The state tax treatment can significantly affect your overall tax burden on investment gains.For investors considering where to establish residency, the state tax implications of capital gains are a legitimate financial consideration.What Might Change Proposals on the Horizon
As of August 2026, the capital gains tax system described above is current law. However, significant proposals have been floated at both the federal and international levels that could reshape how capital gains are taxed.
Proposals to Tax High Earners at Ordinary Rates
One recurring proposal is to eliminate the preferential rates on long-term capital gains and qualified dividends for high-income taxpayers. Under this framework, taxpayers with more than $1 million in annual income (or $500,000 for married filing separately) would see their long-term capital gains taxed at ordinary income rates rather than the 0%, 15%, or 20% structure.
For a taxpayer in the top ordinary income bracket of 37%, this would mean their long-term capital gains would be taxed at 37% instead of 20% — a substantial increase. Combined with the 3.8% NIIT, the effective rate on gains for these high earners could approach 40.8%.As of the current date, this proposal has not been enacted into law. The One Big Beautiful Bill Act, which was signed into law in 2025, explicitly kept long-term capital gains tax rates at 0%, 15%, and 20% and made no increases to capital gains or dividend tax rates.This was viewed as a win for investors concerned about rate increases.Indexing Capital Gains for Inflation
Another proposal that has gained attention is indexing capital gains for inflation. Under this approach, the cost basis of an asset would be adjusted upward for inflation before calculating the gain.
For example, if you purchased an asset for $10,000 and inflation over the holding period was 30%, your inflation-adjusted basis would be $13,000. If you sold the asset for $15,000, your taxable gain would be $2,000 rather than $5,000.Supporters argue this would ensure investors only pay tax on real gains in purchasing power, not on gains that simply reflect inflation. Critics, including the Institute on Taxation and Economic Policy, argue that indexing capital gains would primarily benefit wealthy investors and come at a significant cost to federal revenue.As of August 2026, this proposal has not been enacted.International Changes Australia's 2027 Reform
While the United States has not enacted major capital gains changes, Australia has announced significant reforms to its capital gains tax system. Beginning July 1, 2027, Australia will replace its 50% capital gains discount with a discount based on inflation and introduce a minimum 30% tax on gains.
The reform applies only to gains accruing after that date. The Australian reform is designed to ensure investors pay tax on real capital gains rather than nominal gains that include inflation.Treasury estimates suggest the reform will produce a modest increase in the average tax rate on capital gains, from 19.3% to 21.4%. While this is an Australian policy, it reflects a broader global conversation about how capital gains should be taxed and whether current systems adequately distinguish between real and inflationary gains.Frequently Asked Questions
Do I have to pay capital gains tax if I reinvest the proceeds from a sale?
Yes. The capital gains tax is triggered by the sale itself, regardless of what you do with the proceeds.
Reinvesting the money into a new asset does not defer or eliminate the tax. The only exceptions are specific tax-advantaged accounts like IRAs and 401(k)s, where gains inside the account are not taxed until you withdraw funds (for traditional accounts) or not at all (for Roth accounts).There are also certain specialized provisions, such as Qualified Opportunity Funds, that can defer or reduce capital gains taxes, but these have specific requirements and timelines.What happens if I sell an asset at a loss?
A capital loss can be used to offset capital gains from other sales. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against your ordinary income for the year ($1,500 if married filing separately).
Any remaining loss carries forward to future tax years indefinitely, where it can offset future gains or continue to offset ordinary income up to the annual limit. This is the mechanism behind tax-loss harvesting strategies.How does the home sale exclusion work?
If you sell your primary residence, you can exclude up to $250,000 of gain from tax ($500,000 for married filing jointly) provided you meet the ownership and use tests: you must have owned and lived in the home as your primary residence for at least two of the five years before the sale. This exclusion can be used once every two years.
Gains above the exclusion amount are taxed at the applicable long-term capital gains rates.Are capital gains taxed differently in retirement accounts?
Yes. In traditional IRAs and 401(k)s, capital gains within the account are not taxed as they occur — the tax is deferred until you withdraw funds, at which point withdrawals are taxed as ordinary income.
In Roth IRAs and Roth 401(k)s, qualified withdrawals are entirely tax-free, including any capital gains that accumulated inside the account. This means the preferential capital gains rates do not apply to gains inside retirement accounts; instead, the tax treatment follows the rules of the account type.What is the difference between realized and unrealized gains?
A realized gain occurs when you actually sell an asset and lock in the profit. An unrealized gain is the increase in value of an asset you still own.
You only owe capital gains tax on realized gains. Unrealized gains are not taxed until the asset is sold — this is sometimes referred to as the "realization requirement." Some proposals have floated the idea of taxing unrealized gains on wealthy individuals' assets, but under current law, only realized gains are subject to tax.Reference Notes
Information in this article is based on publicly available sources. Some details may change over time.
Verify with official sources before acting. Tax rates and thresholds cited reflect 2025 and 2026 IRS guidance as publicly reported.Legislative proposals described in this article have not been enacted into law as of the publication date. Individuals should consult a qualified tax professional for advice specific to their situation.