Capital gains tax applies when you sell or exchange an asset for more than you paid for it. The tax hits the profit, not the full sale price, and only after the sale closes — rising asset values on paper do not create a bill. How much you owe depends on how long you owned the asset, your taxable income, and what type of property it is, with federal rates running from 0% to 28% for most taxpayers in 2026.
The Sale Is What Triggers the Tax
Federal law requires a “realization event” before any capital gains tax is due. That means a sale, exchange, or other transfer where you receive money or something of value in return.1Office of the Law Revision Counsel. 26 U.S. Code 1001 – Determination of Amount of and Recognition of Gain or Loss Stock that has doubled while sitting in your brokerage account owes nothing. The gain is unrealized, and unrealized gains are not taxed.
Once you complete a sale, the IRS compares what you received against your adjusted basis — usually the original purchase price plus improvements or reinvested dividends — to determine the taxable amount.2eCFR. 26 CFR 1.1001-1 Computation of Gain or Loss The excess over basis is your capital gain. If you sold for less than basis, you have a capital loss instead.
What Property the Tax Covers
Nearly everything you own for personal or investment purposes is a capital asset.3Office of the Law Revision Counsel. 26 U.S. Code 1221 – Capital Asset Defined That includes:
- Stocks, bonds, and mutual funds
- Real estate, including your home, rental properties, and vacant land
- Collectibles such as artwork, antiques, coins, stamps, and precious metals
- Cryptocurrency and other digital assets
- Vehicles, furniture, and other personal-use items
Business inventory, depreciable business property, and certain intellectual property are treated under different rules.3Office of the Law Revision Counsel. 26 U.S. Code 1221 – Capital Asset Defined
Two categories deserve attention because people often misjudge them. Cryptocurrency is treated as property, not currency, so trading Bitcoin for Ethereum, spending crypto to buy something, or cashing out to dollars all create potentially taxable events. Just holding it in a wallet does not.4Internal Revenue Service. Frequently Asked Questions on Digital Asset Transactions Collectibles are capital assets too, but long-term gains on them face a maximum 28% rate rather than the usual 20% ceiling.5Internal Revenue Service. Topic No. 409, Capital Gains and Losses Selling personal-use items like a car or furniture at a loss produces no deduction.
How Long You Held It Sets the Rate
The single most important factor in your rate is your holding period. The cutoff is one year.
Short-Term Gains: Ordinary Income Rates
If you sell an asset one year or less after buying it, any profit is a short-term capital gain and is taxed at the same rates as your wages. Ordinary income rates for 2026 run from 10% to 37%, depending on filing status and total taxable income.6Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Frequent traders and anyone flipping property within a few months pay at that higher rate.5Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Long-Term Gains: 0%, 15%, or 20%
Hold the asset more than a year and the profit qualifies for the reduced long-term rates of 0%, 15%, or 20%. Which one applies depends on your taxable income and filing status. For 2026, single filers pay:
- 0% on taxable income up to $49,450
- 15% on taxable income from $49,451 to $545,500
- 20% on taxable income above $545,500
Married couples filing jointly pay 0% up to $98,900, 15% from $98,901 to $613,700, and 20% above that.6Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 The gap between short-term and long-term rates is why so many investors wait a year and a day before selling.
The 3.8% Surtax for Higher Earners
Higher-income taxpayers owe an extra 3.8% Net Investment Income Tax on top of their regular capital gains rate. The thresholds are fixed and not indexed to inflation:7Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of 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 smaller of your net investment income or the amount by which your modified adjusted gross income tops the threshold.8Internal Revenue Service. Topic No. 559, Net Investment Income Tax Net investment income includes capital gains, interest, dividends, rental income, and royalties, but not wages, Social Security, or most retirement account withdrawals. Stacked on the 20% long-term rate, the surtax lifts the effective federal rate to 23.8% for top earners.
Selling Your Home: The $250,000/$500,000 Exclusion
The sale of a primary residence is treated more generously than any other asset sale. Under Section 121, single filers can exclude up to $250,000 of gain from tax, and married couples filing jointly can exclude up to $500,000.9Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence To qualify, you must have owned the home and used it as your main residence for at least two of the five years before the sale. Those two years do not need to be back to back.
A couple who sells a home for $600,000 more than they paid, after a decade of living there, owes tax only on the $100,000 above the $500,000 exclusion. Most homeowners never see a capital gains bill on their home sale because their profits fall under the limit. The exclusion is reusable, but not more than once every two years.
If you sell before hitting the two-year mark because of a job move, health issue, or certain unforeseen circumstances, you may qualify for a partial exclusion proportional to the time you did live there.10Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence And if you previously rented the home out or claimed depreciation on part of it, the depreciation portion is recaptured at a maximum 25% rate and is not covered by the exclusion.5Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Inherited and Gifted Property Are Treated Differently
How you acquired an asset shapes the basis you use when you sell it, and that changes your tax bill dramatically.
Inherited assets get a “stepped-up basis” equal to their 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 If your parent bought stock for $10,000 and it was worth $100,000 at their death, your basis is $100,000. Sell it for $105,000 and you owe tax on $5,000, not $95,000.
Gifts work the opposite way. You take the donor’s original basis, not the current value.12Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If a parent gives you stock they bought for $1,000 that is now worth $5,000, your basis stays at $1,000, and selling later means tax on the full $4,000 of appreciation. One narrow exception: if the property is worth less than the donor’s basis at the time of the gift, you use the lower market value when calculating a loss. Hold onto the original purchase records for anything you receive as a gift.
Using Losses to Reduce What You Owe
Capital losses cut your tax bill. When you sell an asset for less than basis, the loss offsets your gains before tax is calculated. Short-term losses first offset short-term gains, long-term losses first offset long-term gains, and any leftover in one bucket crosses over to the other.
If total losses exceed total gains for the year, you can deduct up to $3,000 of the net loss against ordinary income, or $1,500 if married filing separately.13Office of the Law Revision Counsel. 26 U.S. Code 1211 – Limitation on Capital Losses Anything beyond that carries forward to future years with no expiration date.5Internal Revenue Service. Topic No. 409, Capital Gains and Losses
One catch: the wash sale rule. If you sell a stock or security at a loss and buy the same or a substantially identical investment within 30 days before or after, the IRS disallows the loss for that year. The disallowed amount gets added to the basis of the replacement shares instead.14Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities The rule also catches purchases made by your spouse during that 61-day window.
How to Report It
Capital gains and losses run through two forms. Form 8949 lists each individual transaction, including your purchase date, sale date, proceeds, and basis; brokerages typically supply this data on Form 1099-B.15Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets The totals then move to Schedule D of your Form 1040, where the year’s overall gain or loss is calculated.
A large gain, especially from real estate or a concentrated stock sale, may require estimated tax payments to avoid an underpayment penalty. The 2026 quarterly deadlines are April 15, June 15, and September 15, with the final payment due January 15, 2027. If your income arrives unevenly, the annualized income installment method lets you lower earlier payments to match when the gain actually happened.
State Taxes Are Separate
Federal tax is only part of the picture. Most states tax capital gains as ordinary income, with rates ranging from 0% in states with no income tax to above 13% in the highest-tax jurisdictions. A few states reduce rates or partially exclude certain gains. Because state rules vary so much, check your own state’s tax authority for the rate that applies to your sale.