When you sell a stock, a fund share, a rental property, or almost any other investment for more than you paid, the profit is a capital gain, and the federal government taxes it. How much you owe depends on two things above all: how long you held the asset and how much total taxable income you have. Understanding capital gains tax rates helps you time sales, choose which lots to sell, and avoid surprises when you file. This guide walks through the rules for US taxpayers in plain language.
What counts as a capital gain
A capital asset is nearly everything you own for personal use or investment: stocks, bonds, mutual funds, exchange-traded funds, cryptocurrency, real estate, collectibles, and even your home. When you sell or exchange one, you compare the amount you receive with your cost basis. Basis is usually what you paid plus certain costs, such as commissions or capital improvements to property. If the sale price is higher than basis, you have a gain. If it is lower, you have a loss.
A gain is only taxed when it is realized, meaning when you actually sell or exchange the asset. A stock that has doubled in value but is still in your brokerage account has an unrealized gain, and no tax is due on it yet. That timing feature is one of the most powerful planning tools available to individual investors.
Calculating basis correctly
Basis mistakes are a common source of overpaid tax. Reinvested dividends in a mutual fund, for example, increase your basis because you already paid tax on those dividends in the year they were paid. Inherited assets generally receive a basis equal to the fair market value on the date of the original owner’s death, often called a step-up in basis. Gifted assets usually keep the giver’s original basis. Brokers report basis on Form 1099-B for most securities bought in recent years, but you are responsible for checking it, especially for older positions or shares transferred between firms.
Short-term versus long-term gains
The holding period is the dividing line in the tax code. If you hold an asset for one year or less before selling, any gain is short-term. If you hold it for more than one year, the gain is long-term. The holding period generally starts the day after you acquire the asset and includes the day you sell it.
Short-term capital gains are taxed as ordinary income. That means they are added to your wages, interest, and other income and taxed at your regular federal bracket rates, which range from 10% to 37%. Long-term capital gains get preferential rates of 0%, 15%, or 20% for most assets. For someone in a high ordinary bracket, the difference between selling at eleven months and selling at thirteen months can be substantial.
The long-term capital gains brackets
Long-term gains and qualified dividends are stacked on top of your other taxable income. The portion that falls within certain income ranges is taxed at 0%, the next portion at 15%, and anything above the top threshold at 20%. The thresholds are adjusted for inflation each year. For tax year 2026, the IRS published the following approximate taxable-income thresholds:
| Filing status | 0% rate up to | 15% rate up to | 20% rate above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
Because brackets change annually, always confirm the current figures in the IRS revenue procedure for the year or in the instructions for Schedule D before making a decision based on a specific number.
How stacking works in practice
Suppose a single filer has $40,000 of taxable ordinary income after deductions and sells a fund for a $20,000 long-term gain. Ordinary income fills the brackets first, so it uses up $40,000 of the $49,450 zero-percent band. The next $9,450 of the gain is taxed at 0%, and the remaining $10,550 is taxed at 15%. The gain never pushes the ordinary income into a higher rate; it simply determines which capital gains rate applies to each slice of the gain.
The 0% bracket opportunity
Many retirees, students, people between jobs, and households with modest income can realize long-term gains at a federal rate of zero. Selling appreciated shares in a low-income year and immediately buying them back, sometimes called gain harvesting, resets the basis higher without any federal tax. Unlike losses, gains are not subject to the wash sale rule, so repurchasing right away does not disallow the strategy. State income tax may still apply, so check your state’s treatment first.
The 3.8% net investment income tax
Higher earners may owe an additional 3.8% net investment income tax (NIIT) on top of the regular capital gains rate. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds a threshold: $200,000 for single and head of household filers, $250,000 for married couples filing jointly, and $125,000 for married filing separately. These thresholds are set by statute and are not indexed for inflation, so more households cross them over time. NIIT is calculated on Form 8960.
For a top-bracket investor, the combined federal rate on long-term gains can therefore reach 23.8%, and short-term gains can face 40.8% when the NIIT is added to the 37% ordinary rate.
Special rates for certain assets
Not every long-term gain qualifies for the 0/15/20 structure.
- Collectibles such as art, antiques, coins, precious metals, stamps, and certain bullion-backed funds face a maximum long-term rate of 28%.
- Unrecaptured Section 1250 gain, the portion of a gain on depreciable real estate attributable to prior depreciation, is taxed at a maximum of 25%.
- Qualified small business stock under Section 1202 may allow some or all of a gain to be excluded if detailed requirements are met.
- Cryptocurrency is treated as property, so the normal short-term and long-term rules apply to each sale, trade, or purchase made with it.
Selling your home
The sale of a primary residence has its own generous rule. If you owned and used the home as your main residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain, or $500,000 for most married couples filing jointly. Gains above the exclusion are taxed as long-term capital gains if you owned the home for more than a year. Losses on a personal residence are not deductible. Keep records of improvements such as a new roof or an addition, because they increase basis and shrink any taxable gain.
How capital losses help
Capital losses offset capital gains dollar for dollar. Short-term losses first offset short-term gains, long-term losses first offset long-term gains, and any remaining net loss in one category offsets net gain in the other. If your losses exceed your gains for the year, you can deduct up to $3,000 of the excess against ordinary income, or $1,500 if married filing separately. Any loss left over carries forward indefinitely to future years.
Deliberately selling losing positions to capture these benefits is called tax-loss harvesting. Be careful with the wash sale rule: if you buy substantially identical securities within 30 days before or after a sale at a loss, the loss is disallowed for now and added to the basis of the new shares.
Reporting gains on your return
Brokers send Form 1099-B listing sales, proceeds, and usually basis. You report individual transactions on Form 8949 and summarize them on Schedule D of Form 1040. Many tax programs import 1099-B data directly. If you sold assets that are not reported by a broker, such as collectibles or real estate sold privately, you still must report them.
If a large gain will raise your total tax substantially, you may need to make an estimated tax payment for the quarter in which the sale happens to avoid an underpayment penalty. The IRS safe harbor rules generally protect you if your withholding and estimates equal at least 100% of last year’s tax, or 110% if your prior-year adjusted gross income was above $150,000.
Legal ways to reduce capital gains tax
- Hold for more than a year whenever practical, so gains qualify for long-term rates.
- Use tax-advantaged accounts such as 401(k)s, IRAs, and health savings accounts, where trades do not trigger current tax.
- Choose specific lots when selling part of a position. Selecting the highest-basis shares can reduce the gain.
- Harvest losses to offset gains, while respecting the wash sale rule.
- Fill the 0% bracket in low-income years.
- Donate appreciated shares held more than a year to a qualified charity. You may deduct fair market value if you itemize, and neither you nor the charity pays tax on the gain.
- Consider timing across tax years, for example splitting a large sale between December and January.
- Hold until death if appropriate for your estate plan, since heirs generally receive a stepped-up basis.
State taxes matter too
Most states tax capital gains as ordinary income, a handful have no income tax at all, and a few offer partial exclusions or special rates. Washington state, for instance, imposes a separate tax on certain large long-term gains. When you estimate the total cost of a sale, add your state rate to the federal figure.
Common mistakes to avoid
- Forgetting reinvested dividends in basis and paying tax twice.
- Selling at eleven and a half months when waiting a few more weeks would qualify for long-term treatment.
- Triggering a wash sale by buying the same fund in an IRA or a spouse’s account.
- Overlooking the NIIT when income crosses the threshold in a year with a large sale.
- Ignoring estimated tax payments after a big gain.
Related reading: Earned Income Tax Credit: Who Qualifies, How It Is Figured, and How to Claim It Correctly.
Frequently Asked Questions
What are the current capital gains tax rates?
Long-term gains on most assets are taxed at 0%, 15%, or 20% depending on taxable income, plus a possible 3.8% net investment income tax for higher earners. Short-term gains are taxed at ordinary income rates from 10% to 37%.
How long do I need to hold an investment for long-term treatment?
You must hold the asset for more than one year. The holding period begins the day after you buy and includes the day you sell.
Do I pay capital gains tax if I reinvest the money?
Yes. Selling and reinvesting in a taxable brokerage account is still a realized sale. The exception is trading inside tax-advantaged accounts such as IRAs and 401(k)s.
Can capital losses reduce my regular income?
After losses offset all gains, up to $3,000 of net capital loss per year ($1,500 if married filing separately) can reduce ordinary income, and the rest carries forward.
Is the gain on selling my house taxable?
Usually not if you meet the two-out-of-five-year ownership and use test, which lets you exclude up to $250,000 of gain, or $500,000 for most joint filers.
This article is for general informational purposes only and is not legal, medical, tax, or financial advice. Rules vary by state and change over time; confirm details with the relevant agency or a licensed professional.


