Capital gains tax applies when you sell or exchange a capital asset for more than you paid for it. The rate depends on how long you held the asset and your taxable income: property held a year or less is taxed at ordinary income rates of 10% to 37% in 2026, while property held longer than a year qualifies for preferential rates of 0%, 15%, or 20%. High earners may owe an additional 3.8% net investment income tax on top of those rates.
What Triggers the Tax
Rising value alone does not create a tax bill. The tax triggers at a realization event, which usually means you sold the asset, traded it, or exchanged it for something else. Hold an appreciated asset without selling, and you have an unrealized gain the IRS does not touch.
A cash sale is the clearest example, but trades count too. Swapping one cryptocurrency for another, or bartering one piece of property for another, is a taxable event even though no dollars change hands.1Internal Revenue Service. Digital Assets The gain or loss locks in for the tax year the transaction happens, which also means a volatile asset that spikes and crashes before you sell never creates a bill on the way up.
When you do sell, you report each transaction on Form 8949 and summarize the results on Schedule D of your Form 1040.2Internal Revenue Service. Instructions for Form 8949 Your brokerage typically sends a Form 1099-B with the details, but accurate reporting is your responsibility either way.
Which Assets Are Covered
Federal tax law defines a capital asset as essentially any property you own, for personal use or investment, unless it falls into a handful of specific exclusions.3Office of the Law Revision Counsel. 26 U.S. Code 1221 – Capital Asset Defined The common triggers are stocks, bonds, mutual funds, and ETFs. Real estate bought for rental income or appreciation counts too, as do personal items like jewelry, vehicles, and furniture if you sell them at a profit.
Cryptocurrency and other digital assets sit squarely in this category. The IRS requires reporting of any gain when you sell, trade, or otherwise dispose of a digital asset, including swapping one coin for another.1Internal Revenue Service. Digital Assets Only the profit portion is taxed, not the whole amount you receive. Buy stock for $5,000 and sell it for $8,000, and the $3,000 difference is your capital gain.
Short-Term vs. Long-Term Holding Periods
The single biggest factor in how much you pay is how long you held the asset before selling. The dividing line is one year.4Office of the Law Revision Counsel. 26 U.S. Code 1222 – Other Terms Relating to Capital Gains and Losses
- Gains on assets held one year or less are short-term and taxed at the same rates as your wages, which run from 10% to 37% in 2026 depending on total taxable income.5Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
- Gains on assets held more than one year are long-term and taxed at 0%, 15%, or 20% depending on income.
The difference can be substantial. A $50,000 short-term gain for someone in the 32% bracket costs $16,000 in tax. The same gain at the 15% long-term rate costs $7,500.
2026 Long-Term Capital Gains Brackets
The IRS adjusts long-term thresholds each year for inflation. For the 2026 tax year:5Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
- 0% rate: taxable income up to $49,450 (single) or $98,900 (married filing jointly).
- 15% rate: taxable income from $49,451 to $545,500 (single) or $98,901 to $613,700 (married filing jointly).
- 20% rate: taxable income above $545,500 (single) or $613,700 (married filing jointly).
Head-of-household filers use their own thresholds: 0% up to $66,200, 15% from $66,201 to $579,600, and 20% above that. Married taxpayers filing separately use the single-filer figures.
One point that trips people up: taxable income here means income after deductions, not gross pay. Someone earning $55,000 in wages who takes the standard deduction can land in the 0% capital gains bracket even though gross income exceeds the threshold.
Higher Rates for Collectibles and Depreciated Real Estate
Two categories of long-term gains face higher maximum rates than the standard 0/15/20%.6Office of the Law Revision Counsel. 26 U.S. Code 1 – Tax Imposed
Gains from selling collectibles such as art, antiques, coins, stamps, and precious metals are taxed at a maximum rate of 28%. If your ordinary income rate is below 28%, you pay at that lower rate; anyone in higher brackets pays more on collectibles than on stock gains.7Internal Revenue Service. Topic No. 409, Capital Gains and Losses
When you sell rental property or other depreciable real estate at a profit, the portion of the gain tied to depreciation you previously claimed is taxed at a maximum 25% rate. Landlords who took depreciation deductions over the years sometimes expect the entire gain to qualify for the 15% rate, only to find the depreciation portion taxed at 25%.7Internal Revenue Service. Topic No. 409, Capital Gains and Losses Any remaining gain above the depreciated amount gets the standard long-term rates.
The 3.8% Net Investment Income Tax
High earners face an additional 3.8% surtax on net investment income, including capital gains. It applies when your modified adjusted gross income exceeds thresholds that are not indexed to inflation:8Internal Revenue Service. Topic No. 559, Net Investment Income Tax
- $200,000 for single filers and heads of household
- $250,000 for married couples filing jointly
- $125,000 for married filing separately
The 3.8% applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold.9Internal Revenue Service. Net Investment Income Tax Net investment income covers capital gains, dividends, interest, rental income, and royalties, but not wages or Social Security benefits. That makes the effective top federal rate on long-term capital gains 23.8%, not 20%. Because the thresholds have never been indexed to inflation, more taxpayers cross them each year.
Any gain on a home sale that qualifies for the primary residence exclusion does not count as net investment income.9Internal Revenue Service. Net Investment Income Tax
When a Home Sale Is Excluded
Selling the house you live in comes with a generous carve-out. Single filers can exclude up to $250,000 of profit, and married couples filing jointly can exclude up to $500,000.10Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence Only profit above those limits gets taxed at capital gains rates.
To qualify, you must have owned the home and used it as your primary residence for at least two of the five years before the sale. The two years need not be consecutive. You also cannot have used this exclusion on another home sale in the prior two years.10Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence
A partial exclusion is available if you sell early because of a job relocation, a health condition, or certain unforeseen circumstances. The IRS prorates the $250,000 or $500,000 limit based on how long you actually lived there relative to the two-year requirement. A single filer who lived in the home for one year before a qualifying job change could exclude up to $125,000.
How the Gain Itself Is Calculated: Cost Basis
Your cost basis is the starting point for any gain or loss, and the rules depend on how you acquired the asset.
Assets You Bought
For property you purchased, basis starts with the price you paid plus acquisition costs like broker commissions. Capital improvements (a kitchen renovation on a rental property, for instance) increase basis; depreciation claimed reduces it. A higher basis means a smaller taxable gain when you sell, which is why keeping renovation receipts across years of ownership matters.
Inherited Assets
Inherited property receives a stepped-up basis equal to the asset’s fair market value on the date the previous owner died.11Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent Appreciation during the decedent’s lifetime is wiped out for tax purposes. If a parent bought stock for $10,000 and it was worth $200,000 at death, the heir’s basis is $200,000. Selling the next week at $200,000 produces zero taxable gain. Getting a professional appraisal at the time of inheritance is often worthwhile, especially for real estate, because it establishes the basis you will rely on when you eventually sell.
Gifted Assets
Gifts work differently. When someone gives you an asset, you generally take over the donor’s original cost basis rather than a step-up to current value.12Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If an uncle bought stock for $5,000 twenty years ago and gifted it to you when it was worth $50,000, your basis is $5,000. Selling for $50,000 produces a $45,000 capital gain.
One wrinkle applies to gifts that have lost value. If the donor’s basis was higher than the asset’s fair market value at the time of the gift, your basis for calculating a loss is the lower fair market value, not the donor’s original cost.12Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust
Offsetting Gains With Losses
Losses on capital assets offset gains dollar for dollar. Sell one stock for a $20,000 gain and another for a $12,000 loss in the same year, and only the $8,000 net gain is taxed.
When losses exceed gains, you can deduct up to $3,000 of the net loss against ordinary income ($1,500 if married filing separately). Any remaining loss carries forward indefinitely to future years, where it can offset future gains or continue reducing ordinary income by $3,000 per year.7Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The Wash Sale Rule
If you plan to sell an investment at a loss but repurchase it right away, the wash sale rule blocks the deduction. You cannot claim a loss if you buy the same or a substantially identical security within 30 days before or after the sale.13Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities The disallowed loss is not permanently gone; it gets added to the basis of the replacement shares, deferring the benefit rather than eliminating it. If you were counting on that loss to offset a big gain in the current year, though, the timing matters. The 30-day window runs in both directions, creating a 61-day blackout total.