What Capital Gains Tax Is
Capital gains tax is a tax on the profit you make when you sell something you own—a stock, a house, a piece of land, a business—for more than you paid for it. The difference between what you paid and what you sold it for is your gain, and that gain is taxable income in the year you sell.
You do not pay this tax on the item itself or on the money sitting in your account. You pay it only when you actually sell and lock in the profit. If you buy a stock for $100 and it rises to $150 but you never sell, you owe nothing. The moment you sell it for $150, you have a $50 gain, and that $50 is subject to capital gains tax.
The tax rate depends on how long you held the item before selling. Hold it for less than a year, and the gain is taxed as ordinary income at your regular tax rate. Hold it for more than a year, and it gets a lower tax rate—usually 0%, 15%, or 20%, depending on your total income that year.
Key Takeaways
- Capital gains tax applies only to the profit you make when you sell an investment, not to the full sale price.
- Short-term gains (held less than one year) are taxed at your ordinary income tax rate, which is usually higher than long-term rates.
- Long-term gains (held more than one year) receive preferential tax rates of 0%, 15%, or 20%, based on your income bracket.
- You report capital gains on your tax return in the year you sell, and the IRS uses your cost basis—what you originally paid—to calculate the gain.
Short-Term vs. Long-Term Capital Gains
The IRS divides capital gains into two categories based on how long you owned the asset before selling. Short-term capital gains come from selling something you held for one year or less. These are taxed as ordinary income, meaning they are added to your wages, interest, and other income and taxed at your regular tax bracket. If you are in the 24% tax bracket, a short-term gain is taxed at 24%.
Long-term capital gains come from selling something you held for more than one year. These receive preferential treatment. The tax rate is 0%, 15%, or 20% depending on your total taxable income for the year. Most people fall into the 15% bracket. The 0% rate applies to lower-income filers, and the 20% rate applies to higher-income filers. These rates are significantly lower than ordinary income rates, which is why holding an investment longer can save you money in taxes.
The holding period starts the day after you buy and ends the day you sell. If you buy on January 15 and sell on January 15 the following year, you have held it for exactly one year, and the gain qualifies as long-term.
How the IRS Calculates Your Gain
To find your capital gain, the IRS needs two numbers: your cost basis and your sale price. Cost basis is what you originally paid for the asset, plus any fees or commissions you paid to buy it. If you bought 100 shares of stock at $50 per share and paid a $10 commission, your cost basis is $5,010.
Your sale price is what you sold it for, minus any fees or commissions you paid to sell. If you sold those 100 shares for $75 per share and paid a $10 commission, your sale proceeds are $7,490. Your gain is $7,490 minus $5,010, which equals $2,480.
If you inherited an asset, your cost basis is usually the market value on the date of the person's death, not what they originally paid. This is called a stepped-up basis, and it can significantly reduce or eliminate capital gains tax if you sell the inherited asset shortly after inheriting it. If your parent bought a house for $200,000 and it was worth $500,000 when they died, your cost basis is $500,000, not $200,000.
What Assets Are Subject to Capital Gains Tax
Capital gains tax applies to most things you own and sell for a profit: stocks, bonds, mutual funds, real estate, cryptocurrency, collectibles, and business interests. The rules are the same regardless of the type of asset—the gain is taxed based on how long you held it.
Real estate has one major exception: your primary residence. If you sell a house you lived in for at least two of the last five years, you can exclude up to $250,000 of gain from tax if you are single, or $500,000 if you are married filing jointly. This exclusion applies once every two years. If you sell a rental property or a second home, the full gain is taxable.
Some items are not subject to capital gains tax at all. Collectibles like art, antiques, and coins are taxed at a flat 28% rate on long-term gains, not the preferential 0%, 15%, or 20% rates. Certain investments in small businesses may may have access to for partial exclusions under Section 1202 of the tax code, but these are rare and require specific conditions.
When You Report Capital Gains on Your Tax Return
You report capital gains in the year you sell the asset. If you sell a stock in March, you report that gain on your tax return for that year, even if you do not file until the following April. You use Form 8949 to list each sale, then transfer the totals to Schedule D, which is where capital gains and losses are summarized on your tax return.
If you have multiple sales in a year, you add up all your short-term gains and losses separately from your long-term gains and losses. If your short-term gains exceed your short-term losses, the net is taxed as ordinary income. If your long-term gains exceed your long-term losses, the net is taxed at the preferential long-term rate.
You can use capital losses to offset capital gains. If you sold one stock for a $3,000 gain and another for a $1,000 loss, your net gain is $2,000. If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income. Any remaining loss carries forward to future years.
State and Local Capital Gains Taxes
Federal capital gains tax is only part of the picture. Most states also tax capital gains as ordinary income, meaning they add the gain to your other income and tax it at your state tax rate. A few states—including Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming—do not have a state income tax at all, so there is no state capital gains tax.
Some states have recently introduced separate capital gains taxes. Washington State, for example, taxes long-term capital gains on certain assets at a flat 7% rate. California taxes capital gains as ordinary income at rates up to 13.3%. The rules vary significantly by state, so your total tax bill depends on where you live and where the asset is located.
A few cities also impose local income taxes that explore to capital gains. New York City, for instance, taxes capital gains as part of its local income tax. If you live in a high-tax state or city, the combined federal, state, and local tax on a large gain can be substantial.
Strategies to Manage Capital Gains Tax
One straightforward way to reduce capital gains tax is to hold investments longer than one year so they may have access to for the lower long-term rate. The difference between short-term and long-term rates can be 10 percentage points or more, so timing a sale to cross the one-year threshold can save significant money.
Tax-loss harvesting is another approach. If you have investments that have lost value, you can sell them to realize a loss, then use that loss to offset gains elsewhere. Some investors do this deliberately each year to reduce their overall tax bill. You can then reinvest the proceeds in a similar but not identical investment to maintain your market exposure.
Holding investments in tax-advantaged accounts like a 401(k) or traditional IRA lets you defer capital gains tax until you withdraw the money in retirement. In a Roth IRA or Roth 401(k), you pay no capital gains tax at all on the gains inside the account, as long as you follow the withdrawal rules.
Donating appreciated assets to charity is another option. If you donate a stock that has doubled in value, you avoid the capital gains tax on the gain and receive a charitable deduction for the full current value. This works only if you itemize deductions on your tax return.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No. If you sell an asset for less than you paid for it, you have a capital loss, not a gain. You can use that loss to offset other capital gains or up to $3,000 of ordinary income in the same year. Any unused loss carries forward to future years.
What if I buy and sell the same stock multiple times in a year?
Each sale is a separate transaction. If you buy and sell the same stock three times, you report three separate gains or losses. The holding period for each purchase is calculated separately. The IRS uses the specific identification method or first-in-first-out (FIFO) to match purchases with sales unless you specify otherwise.
How do I know my cost basis if I lost the original purchase records?
Most brokers maintain cost basis records going back several years and will provide them on request or through your account statements. If records are truly unavailable, you may be able to reconstruct them with documentation like old statements or tax returns. If you cannot establish cost basis, the IRS may treat your entire sale proceeds as gain.
Are dividends the same as capital gains?
No. Dividends are payments a company makes to shareholders from its profits. may have access to dividends are taxed at the same preferential rates as long-term capital gains (0%, 15%, or 20%), but they are reported separately on your tax return. Unqualified dividends are taxed as ordinary income.
Do I owe capital gains tax on cryptocurrency?
Yes. The IRS treats cryptocurrency as property, not currency. When you sell or trade cryptocurrency for a profit, that gain is subject to capital gains tax at the same rates as stocks or real estate. Even trading one cryptocurrency for another is a taxable event.