Capital Gains Tax Explained: Rates, Brackets, and How to Pay Less
You sell shares you have held for years, or a house, and somewhere in the relief there is a question you have been putting off: how much of this does the government take?
The usual answer is a table of three numbers, 0, 15 and 20 percent, and a line about holding for a year. Both true, and between them they explain almost nothing about why two people with the same profit in the same year pay completely different amounts.
The reason is a rule most guides skip entirely. Long-term gains do not get their own bracket judged on their own size. They stack on top of everything else on your tax return, so your salary fills the low bands first and the gain sits on whatever is left. Get that right and a $45,000 gain can be taxed at nothing at all.
1. What Capital Gains Tax Actually Taxes
Capital gains tax is the tax on profit when you sell something for more than you paid for it. Capital gains tax on stocks is the version most people meet first, but the same rules cover a rental flat, a second home, a business, a painting and cryptocurrency. Not the sale price, only the profit.
Two words decide everything that follows, and both are worth getting straight before any of the rates make sense.
- Basis is what the asset cost you, adjusted. Purchase price, plus commissions and improvements, minus depreciation you claimed. Section 6 covers it properly, because getting basis wrong is the most common and most expensive error on this whole subject.
- Realised means you actually sold. An investment that has doubled on paper is taxed at nothing at all until you sell it, a distinction the Investor.gov definition of capital gains sets out plainly. Tax is triggered by the sale, not by the growth.
That second point is the quiet foundation of most tax planning. You choose the year you pay, because you choose the year you sell.
| Situation | Taxable now? |
|---|---|
| Your shares rose 40 percent and you still hold them | No |
| You sold them for a profit | Yes, on the profit |
| You sold at a loss | No, and the loss may be useful, see section 7 |
| The fund inside your account sold holdings and distributed a gain | Yes, even though you sold nothing |
| You sold inside an IRA or 401(k) | No, retirement accounts do not trigger it |
| You gave the asset away | No, but see section 6 on what the recipient inherits |
The fourth row surprises people every year. A mutual fund that sells holdings passes the gain to you as a distribution, and you owe tax on it even if you bought nothing, sold nothing, and watched the price fall. Our comparison of exchange-traded funds against mutual funds covers why that happens with one structure far more than the other.
2. Long-Term and Short-Term: The One-Year Line
The tax code splits capital gains into two kinds, and the difference between them is larger than almost any other choice available to an ordinary investor. Short term capital gains tax and long term capital gains tax are, in effect, two separate systems applied to the same profit.
- Short-term means you held the asset for one year or less. The gain is added to your ordinary income and taxed at your normal rate, which runs from 10 to 37 percent in 2026.
- Long-term means you held it for more than one year. The gain is taxed at a separate, lower set of rates: 0, 15 or 20 percent.
The holding period starts the day after you bought and ends on the day you sold. One year and one day qualifies; exactly one year does not. That single day can be worth thousands.
| $20,000 gain, single filer with $90,000 of other income | Tax |
|---|---|
| Sold at 11 months, short-term, taxed at the 22 percent ordinary rate | $4,400 |
| Sold at 12 months and 1 day, long-term, taxed at 15 percent | $3,000 |
| Difference for waiting a few weeks | $1,400 |
Nothing about the investment changed. The same asset, the same buyer, the same profit. The only difference was the calendar.
Two things carry a holding period you might not expect. Inherited assets are always long-term, however briefly the heir held them, which section 6 returns to. And gifted assets carry the giver's holding period along with their basis, so a share your parent bought in 2005 is long-term in your hands from day one.
The IRS topic page on capital gains and losses is the primary source for how the two categories are defined.
3. The 2026 Rates and Brackets
Your taxable capital gain has its own bracket table, separate from the ordinary income brackets, and the IRS sets it each year.
| 2026 long-term rate | Single | Married filing jointly | Head of household |
|---|---|---|---|
| 0 percent | Taxable income up to $49,450 | Up to $98,900 | Up to $66,200 |
| 15 percent | Up to $545,500 | Up to $613,700 | Up to $579,600 |
| 20 percent | Above that | Above that | Above that |
Short-term gains, or short capital gain tax as commonly searched, do not use this table at all. They are taxed as ordinary income, at 10, 12, 22, 24, 32, 35 or 37 percent depending where you land.
Two details in that table do more work than the percentages.
3.1 The brackets apply to taxable income, not gross income
Taxable income is what is left after your standard or itemised deduction. In 2026 the standard deduction is $16,100 for a single filer and $32,200 for a married couple filing jointly.
So a single filer can have roughly $65,550 of gross income and still be inside the 0 percent band, because $65,550 minus $16,100 is $49,450. For a couple the equivalent figure is about $131,100. That is a great deal more headroom than most people assume they have, and it is why the next section matters so much.
3.2 The 3.8 percent surtax that has not moved since 2013
Above certain income levels an extra 3.8 percent net investment income tax applies on top of the rate above, taking the effective top rate to 23.8 percent. The thresholds are $200,000 for single filers and $250,000 for married couples filing jointly, measured on modified adjusted gross income.
Those two figures are written into statute and are not adjusted for inflation. Every other number in this article moves each year; these have stood still since 2013. The practical effect is that a threshold aimed at high earners captures a slightly wider group every single year, purely through wage growth. The IRS topic page on the net investment income tax sets out how it is calculated.
3.3 Two special rates that break the 0/15/20 pattern
Not every long-term gain uses the table above. Two categories are taxed differently, and both catch people off guard because nothing about the asset itself signals the exception.
| Category | Maximum rate | What it covers |
|---|---|---|
| Collectibles | 28% | Art, coins, precious metals, antiques, wine, and gold or silver ETFs structured as grantor trusts |
| Unrecaptured Section 1250 gain | 25% | The portion of gain on depreciated real estate equal to the depreciation you claimed |
The ETF detail surprises the most people: funds like GLD or SLV that hold physical gold or silver directly are taxed as collectible gains, up to 28 percent, even though buying and selling them feels identical to trading any other ETF. The fund structure, not the ticker symbol, decides the rate.
The real estate rule works differently. If you have claimed depreciation on a rental property, the IRS treats the portion of your gain equal to that depreciation as "recaptured," taxed at up to 25 percent regardless of your regular bracket. The remainder of the gain, above the recaptured amount, is taxed at the normal 0/15/20 rates. This applies even to gain otherwise excluded under the home sale exclusion in the next section, if the property had prior rental use.
The 2026 figures come from the IRS revenue procedure setting the 2026 bracket thresholds, published in 2025 and effective for the 2026 tax year.
4. State Capital Gains Tax: The Number the Federal Table Leaves Out
Everything above is federal only. Unlike the federal system, which taxes long-term gains at preferential 0/15/20 rates, most states simply add your capital gain to your ordinary income and tax it at whatever state income tax rate applies. There is no separate state-level long-term rate in most places.
| State | How gains are taxed | Top rate |
|---|---|---|
| Texas, Florida, Nevada, Washington, Wyoming, South Dakota, Alaska, New Hampshire, Tennessee | No state income tax | 0% |
| California | Ordinary income, no distinction by holding period | 13.3% |
| New York | Ordinary income; NYC residents add city tax | 10.9% (+3.876% NYC) |
| New Jersey | Ordinary income | 10.75% |
| Oregon | Ordinary income | 9.9% |
| Washington | Separate 7% capital gains excise tax above ~$262,000; no general income tax | 7% (9.9% above $1M) |
Stack a state rate on top of the federal long-term rate and the 3.8% NIIT, and the real number can look nothing like "20 percent." A high earner in California selling a large long-term gain can face 20% federal plus 3.8% NIIT plus 13.3% state, an all-in rate above 37%. The identical sale in Texas or Florida stops at 23.8%, federal and NIIT only. That gap, roughly 13 percentage points, exists purely because of the state on the deed or the residency on the tax return, not anything about the asset itself.
Washington is worth flagging on its own because it does not fit the usual pattern. It has no general income tax, but it does levy a separate 7% excise tax on long-term capital gains above roughly $262,000 a year, rising to 9.9% above $1 million, a structure closer to a targeted capital gains tax than a state income tax.
One caution for anyone considering a move before a large sale: establishing residency in a new state shortly before selling an appreciated asset invites scrutiny. States with high capital gains exposure, California in particular, have audited taxpayers who relocated just ahead of a big transaction. Genuinely changing your driver's license, voter registration, and primary address, and spending more time in the new state than the old one, matters more than the date on a form.
5. The Rule That Makes the Table Misleading
Almost every article prints the bracket table above and stops there, which leaves a false impression: that your capital gain gets its own bracket, judged on its own size. It does not.
Three people, each with exactly the same $20,000 long-term gain in 2026, filing single:
| Ordinary income | Taxable income after deduction | Tax on the gain | |
|---|---|---|---|
| Alina | $40,000 | $23,900 | $0, entirely in the 0 percent band |
| Ben | $60,000 | $43,900 | $1,583, part at 0, part at 15 |
| Priya | $120,000 | $103,900 | $3,000, all at 15 percent |
Same gain, same asset, same year. Alina pays nothing because her ordinary income leaves the whole 0 percent band open. Ben's income fills most of it, so $5,550 of his gain lands at 0 percent and the rest at 15. Priya's salary has used the band up entirely before her gain even arrives.
Two consequences worth acting on:
- A gap year is an opportunity. A year out of work, a sabbatical, a career break, early retirement before pensions start. Ordinary income drops, the 0 percent band opens, and gains realised in that year can be genuinely tax-free. This is the single most under-used provision in the whole system.
- Spreading a sale across two tax years can cut the bill. Selling half in December and half in January uses two years of the 0 and 15 percent bands instead of one.
6. Selling a Home: The $250,000 Exclusion
Capital gains on home sale follow their own rule, and it is the most valuable exclusion most people will ever use. Under section 121 of the tax code you can exclude up to $250,000 of gain on the sale of a main home, or $500,000 for a married couple filing jointly.
To qualify you must have owned the home for at least two of the five years before the sale, and lived in it as your main home for at least two of those five years. The two years do not have to be continuous, and you can generally use the exclusion once every two years. If you are still paying for the home, the loan itself is a separate question covered in our guide to FHA and conventional loans.
| Married couple, main home | Amount |
|---|---|
| Bought in 2009 | $310,000 |
| Kitchen and roof, documented | $62,000 |
| Adjusted basis | $372,000 |
| Sold in 2026 | $880,000 |
| Selling costs | $53,000 |
| Gain | $455,000 |
| Section 121 exclusion | $500,000 |
| Taxable gain | $0 |
Notice what did the work there besides the exclusion itself: $62,000 of documented improvements and $53,000 of selling costs, both of which reduce the gain before the exclusion is even applied. Homeowners who never kept receipts lose that reduction entirely, which is section 6's point in a different form.
- Second homes and holiday homes do not qualify. The exclusion is for a main residence only.
- A rental period complicates it. If the home was ever let, depreciation you claimed or could have claimed is recaptured and taxed separately, and it is not covered by the exclusion.
- Losses on a personal home are not deductible. The gain is taxable above the exclusion, but a loss gives you nothing.
- Partial exclusions exist for moves forced by a job change, health, or other unforeseen circumstances, even if you fall short of two years.
The IRS topic page on selling your home covers the basic test and the IRS Publication 523 on the home sale exclusion works through the calculation in full.
7. Cost Basis, and the Step-Up That Erases a Lifetime of Gain
Basis is the number your gain is measured against, and it is where most money is won or lost on this subject, because a basis you cannot prove is a basis of nothing.
What increases basis, and therefore cuts the tax:
- Purchase price, plus commissions and fees paid to buy.
- Capital improvements on property: a new roof, an extension, a rewire. Repairs and maintenance do not count.
- Reinvested dividends on funds and shares. Each reinvestment buys new units at that day's price, and every one of them adds to basis. Forgetting this is how people pay tax twice on the same money.
- Selling costs, including agent commission and legal fees.
6.1 Inheritance resets the basis entirely
The step up in basis is the largest single break in the capital gains system and it applies to ordinary families, not only wealthy ones. When you inherit an asset, its basis generally resets to the market value on the date of death. Every bit of gain that built up during the previous owner's lifetime disappears for tax purposes.
| Inherited house | Amount |
|---|---|
| What your parent paid in 1994 | $80,000 |
| Market value on the date of death | $450,000 |
| Your basis | $450,000 |
| You sell it soon after for | $450,000 |
| Taxable gain | $0 |
Thirty years and $370,000 of appreciation, taxed at nothing. Two practical notes: the gain on an inherited asset is always long-term regardless of how briefly you held it, and retirement accounts such as IRAs and 401(k)s are excluded from the step-up, so an inherited IRA does not work this way at all.
Get a dated valuation at the time of death. Years later, that document is the only thing standing between you and a basis you cannot prove.
6.2 A gift is not an inheritance, and the difference is expensive
Gifted assets do not get a step-up. The recipient inherits the giver's original basis, which is called carryover basis, and with it the entire unrealised gain.
| Same shares, worth $200,000, originally bought for $100,000 | Recipient's basis | Gain if sold at $200,000 |
|---|---|---|
| Given during the owner's lifetime | $100,000 | $100,000 taxable |
| Inherited after the owner's death | $200,000 | $0 |
Identical asset, identical value, and a six-figure difference in taxable gain depending only on the timing. This is worth knowing before helping family with an appreciated asset, because generosity delivered the wrong way hands over a tax bill along with the gift.
8. Losses: The $3,000 Wall and the Carryforward
A capital loss is useful, but the rules on how fast you can use one are stricter than most people realise, and the order they are applied in is fixed.
- First, losses offset gains of the same type. Long-term against long-term, short-term against short-term.
- Then they cross over. Any remaining loss offsets the other type of gain.
- Then up to $3,000 offsets ordinary income, or $1,500 if married filing separately.
- Anything left carries forward indefinitely, keeping its character as long-term or short-term.
That $3,000 figure is the wall. It is set in statute, it is not indexed for inflation, and it has not changed in decades.
| You realise a $60,000 loss with no gains to offset | |
|---|---|
| Used against ordinary income this year | $3,000 |
| Carried forward | $57,000 |
| Years to absorb it at $3,000 a year | 20 |
A carryforward is only fast when you have gains to put against it, and there it is unlimited. Against ordinary income alone it moves at a crawl.
Two consequences that go unmentioned almost everywhere:
- Carryforwards die with you. They can be used on the final tax return and then they are gone; heirs cannot inherit them. Someone elderly holding a large carryforward and appreciated assets is usually better off realising gains against it, because the heirs would have received a stepped-up basis on those assets anyway.
- A large carryforward changes how you should sell. If you are sitting on $57,000 of unused losses, gains are effectively free until it runs out, which is the one situation where the one-year holding rule matters less.
9. The Wash Sale Rule, and the Gap Where It Does Not Apply
Selling something at a loss to bank the deduction, then buying it straight back, is the obvious move. The tax code closed it in 1921 and the rule still catches people every December.
If you sell a security at a loss and buy the same or a substantially identical one within 30 days before or 30 days after the sale, the loss is disallowed. That is a 61-day window centred on the sale, and it counts purchases in any account you control, including an IRA and, in practice, a spouse's account.
The loss is not destroyed. It attaches to the basis of the replacement shares, so you get the benefit eventually, when you finally sell those. But the deduction you were counting on this year is gone, and a disallowed loss cannot be carried forward as a loss either.
| Action | Date | Result |
|---|---|---|
| Sell a fund at a $9,000 loss | 18 December | Loss claimed, in principle |
| Buy the same fund back | 6 January | 19 days later, inside the window |
| Deduction for the year | $0, disallowed |
The usual way around it is to buy something similar but not substantially identical: a different index tracking a different benchmark, for instance. Buying the identical fund at a different provider does not help.
There is one notable gap. The rule is written to cover stocks and securities, and as of 2026 it does not extend to digital assets. Cryptocurrency sold at a loss and rebought immediately is not caught by it. That is a real difference in treatment rather than a loophole to be nervous about, but it is under active legislative discussion and could change, so check the position for the year you are filing rather than assuming this article still holds.
The IRS Publication 550 on investment income and expenses covers wash sales and loss rules in detail.
10. Work Out Your Own Capital Gains Tax
Because gains stack on ordinary income, a general rate is close to meaningless. Put your own figures in below and this works out how much of the gain falls in each band, the short-term comparison, and whether the surtax applies.
Enter your ordinary income and the gain. This stacks the gain on top of your income the way the tax code does, splits it across the 0, 15 and 20 percent bands, compares it with the short-term figure, and flags the 3.8 percent surtax.
Illustrative only, not tax advice. Federal tax on the gain only, using 2026 figures from IRS Revenue Procedure 2025-32 read 11 August 2026, and assuming the standard deduction of $16,100 single or $32,200 married filing jointly. It ignores state tax, itemised deductions, other income types, the alternative minimum tax, depreciation recapture, collectibles and qualified small business stock rates, and any loss carryforward you may hold. Your actual liability will differ. Check IRS Topic 409 or a qualified tax adviser before acting.
11. Legitimate Ways to Pay Less
None of these is aggressive, and all are ordinary features of the tax code rather than schemes.
- Cross the one-year line. The single largest lever available, and it costs nothing but patience, which is the same argument behind buying steadily rather than timing the market.
- Use low-income years. A career break, a sabbatical, or the years between finishing work and drawing a pension can put an entire gain inside the 0 percent band.
- Harvest losses deliberately, respecting the 61-day wash sale window.
- Hold the assets that generate most tax inside retirement accounts, where sales do not trigger capital gains at all. A health savings account goes further still, because qualified withdrawals are untaxed as well. Our guide to investing in index funds covers which holdings suit which account.
- Split a large sale across two tax years to use two years of bands.
- Donate appreciated assets rather than cash. Give the shares themselves to a charity and the gain is never realised, while the deduction is generally based on market value.
- Keep every receipt that raises basis. Improvements, commissions, reinvested dividends. This is the cheapest of all and the most neglected.
- Consider gifting during a low-income year, or holding until death, depending on which basis rule works in your favour.
What does not work: selling and rebuying immediately to reset a basis upward, or timing a sale to a date after the tax year has closed. And none of the above removes the requirement to report. Sales are reported to the IRS by your broker whether or not you file them.
12. A Real Example: Two Sellers, One Difference
Numbers make the stacking rule concrete. Dev and Nadia are both single filers. Each sells shares in 2026 for a $45,000 gain, held for three years, so both are long-term.
| Dev | Nadia | |
|---|---|---|
| Ordinary income in 2026 | $135,000, working full time | $18,000, took the year out |
| Standard deduction | $16,100 | $16,100 |
| Taxable income before the gain | $118,900 | $1,900 |
| Room left in the 0 percent band | $0 | $47,550 |
| Gain taxed at 0 percent | $0 | $45,000 |
| Gain taxed at 15 percent | $45,000 | $0 |
| Federal tax on the gain | $6,750 | $0 |
The same asset, the same profit, the same holding period, and a $6,750 difference decided entirely by what else was on the tax return that year.
Nadia did not do anything clever. She had a low-income year and happened to sell during it. What is worth noticing is how much room she had: after her deduction, $47,550 of the 0 percent band was still open, and her whole gain fitted inside it. Most people in that position never sell, because they assume a $45,000 gain must be taxable somewhere.
Dev's position is not a mistake either. His gain was always going to be taxed at 15 percent while he is earning $135,000, and waiting would only have risked the price. The lesson is narrower: if a low-income year is coming, that is the year to realise gains, and if one has already arrived, it should not be wasted.
13. Reporting It, and the Mistakes That Cost Most
Gains are reported on Form 8949 and summarised on Schedule D, and your broker sends the same information to the IRS on Form 1099-B, so the numbers are already known before you file.
The errors that cost real money:
- Not adding reinvested dividends to basis. Every reinvestment was a purchase. Missing them means paying tax on money you already paid tax on.
- Losing improvement receipts on a property. Twenty years of undocumented work is gain you cannot subtract.
- Selling at 11 months. The most expensive avoidable error in the whole system.
- Rebuying inside the wash sale window, usually in early January after a December sale.
- Assuming the bracket table applies to the gain alone. It applies to taxable income including the gain.
- Gifting an appreciated asset when holding it would have given the heir a step-up.
- Forgetting fund distributions. A gain can be reported to you in a year you sold nothing.
- Ignoring state tax. Several states tax capital gains as ordinary income, some do not tax them at all, and one applies a separate excise. The federal calculation here is only part of the bill.
If your situation involves a rental property, a business sale, a large inheritance or an estate, this is the point to pay for an hour of professional advice rather than to read one more article.
Frequently Asked Questions
Final Thoughts
Most of what is written about capital gains tax is a rate table and a warning to hold for a year. Both are correct and neither explains why two people with the same gain pay different amounts. The answer is that gains sit on top of everything else on your return, so the tax depends as much on the year you sell as on what you sold.
Two things are worth doing before you sell anything. Work out what your taxable income will be for the year, subtract it from the top of the 0 percent band, and see how much room is actually left; the calculator above does this from your own figures. And find the paperwork that raises your basis, because improvements, commissions and reinvested dividends reduce the gain before any rate is applied, and they are worth nothing at all if you cannot produce them.
This article is for general information only and is not tax, legal, or investment advice. The 2026 rates, brackets and thresholds come from IRS Revenue Procedure 2025-32, read on 11 August 2026, and apply to the tax year 2026; the IRS adjusts most of these figures annually and Congress can change the rules. Everything here describes federal tax only. States treat capital gains very differently, some taxing them as ordinary income, some not taxing them at all, and one applying a separate excise, so your total bill will differ. Special rates apply to collectibles, qualified small business stock and depreciation recapture, and none of those is covered here. Dollar figures are illustrative examples, not projections. Speak to a qualified tax professional about your own position before selling.Disclaimer.