A bar showing ordinary income filling the lower tax bands with a capital gain stacked on top, split between the zero and fifteen percent rates Investing

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.

That second point is the quiet foundation of most tax planning. You choose the year you pay, because you choose the year you sell.

SituationTaxable now?
Your shares rose 40 percent and you still hold themNo
You sold them for a profitYes, on the profit
You sold at a lossNo, and the loss may be useful, see section 7
The fund inside your account sold holdings and distributed a gainYes, even though you sold nothing
You sold inside an IRA or 401(k)No, retirement accounts do not trigger it
You gave the asset awayNo, 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.

The short version: you are taxed on profit, only when you sell, and the single biggest factor in the rate is how long you held the asset first. One year is the line, and crossing it can cut the tax by more than half.

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.

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 incomeTax
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 rateSingleMarried filing jointlyHead of household
0 percentTaxable income up to $49,450Up to $98,900Up to $66,200
15 percentUp to $545,500Up to $613,700Up to $579,600
20 percentAbove thatAbove thatAbove 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.

CategoryMaximum rateWhat it covers
Collectibles28%Art, coins, precious metals, antiques, wine, and gold or silver ETFs structured as grantor trusts
Unrecaptured Section 1250 gain25%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.

StateHow gains are taxedTop rate
Texas, Florida, Nevada, Washington, Wyoming, South Dakota, Alaska, New Hampshire, TennesseeNo state income tax0%
CaliforniaOrdinary income, no distinction by holding period13.3%
New YorkOrdinary income; NYC residents add city tax10.9% (+3.876% NYC)
New JerseyOrdinary income10.75%
OregonOrdinary income9.9%
WashingtonSeparate 7% capital gains excise tax above ~$262,000; no general income tax7% (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.

The finding: long-term gains stack on top of your ordinary income. Your wages fill the brackets first, and the gain sits on whatever is left. A modest gain can be taxed at 15 percent purely because of a salary that has nothing to do with it, and a large gain can straddle two rates at once.

Three people, each with exactly the same $20,000 long-term gain in 2026, filing single:

Ordinary incomeTaxable income after deductionTax 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:

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 homeAmount
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.

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:

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 houseAmount
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,000Recipient's basisGain 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.

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 year20

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:

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.

ActionDateResult
Sell a fund at a $9,000 loss18 DecemberLoss claimed, in principle
Buy the same fund back6 January19 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.

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.

DevNadia
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:

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

What are the capital gains tax rates for 2026?
Long-term gains on assets held more than one year are taxed at 0, 15 or 20 percent. For 2026 the 0 percent band runs to $49,450 of taxable income for a single filer and $98,900 for a married couple filing jointly; 15 percent runs to $545,500 and $613,700; above that it is 20 percent. Short-term gains on assets held one year or less get no preferential treatment and are taxed as ordinary income at 10 to 37 percent. An extra 3.8 percent net investment income tax applies above $200,000 of modified adjusted gross income for single filers and $250,000 for couples.
How long do I have to hold an asset to get the lower rate?
More than one year. The holding period begins the day after you buy and ends on the day you sell, so one year and one day qualifies while exactly one year does not. On a $20,000 gain for someone in the 22 percent ordinary bracket, crossing that line is worth about $1,400. Two exceptions run the other way: inherited assets are always treated as long-term however briefly you held them, and gifted assets carry over the giver's holding period.
Do capital gains push me into a higher tax bracket?
Not for your ordinary income, but the reverse is true and it matters more. Long-term gains stack on top of your ordinary income when working out which capital gains band they fall in, so your salary fills the brackets first and the gain sits on what is left. Two people with an identical gain can pay 0 percent and 15 percent purely because of what else was on their tax return. Gains can also push you over the $200,000 or $250,000 threshold for the 3.8 percent surtax.
How much can I earn and pay no capital gains tax?
More than most people expect, because the brackets apply to taxable income rather than gross income. In 2026 the 0 percent band ends at $49,450 of taxable income for a single filer, and the standard deduction is $16,100, so roughly $65,550 of gross income can still leave you inside it. For a married couple the equivalent is about $131,100. This is why a low-income year, a sabbatical or early retirement is often the cheapest possible moment to realise gains.
Do I pay capital gains tax when I sell my house?
Often not. You can exclude up to $250,000 of gain on a main home, or $500,000 if married filing jointly, provided you owned it 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. Improvements and selling costs reduce the gain before the exclusion is applied, so keeping receipts matters. Second homes and holiday homes do not qualify, and any period the property was rented brings depreciation recapture that the exclusion does not cover.
What happens to capital gains tax on inherited property?
The basis resets to the market value on the date of death, which erases the gain built up during the previous owner's lifetime. A house bought for $80,000 and worth $450,000 at death gives the heir a basis of $450,000, so selling at that price produces no taxable gain at all. The gain is automatically long-term regardless of how briefly the heir held it. Retirement accounts such as IRAs are excluded from this step-up, and gifts made during someone's lifetime do not get it either, since the recipient inherits the giver's original basis instead.

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.

AM
Written by Aaron Mitchell
Aaron is a personal finance writer at Moneova who explains investing, insurance, credit, and loans in plain language. Read more about Aaron.

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.