Know your numbers already? Put your long-term gain and other income into the rate calculator and see the 0, 15, and 20 percent bands applied to your actual stacked income, including the 3.8 percent net investment income tax.

Open the Capital Gains Rate Calculator →
Short Answer

A capital gain is the difference between your adjusted basis in an asset and what you realized on selling it. Hold the asset more than one year and the gain is long-term, eligible for the preferential 0, 15, or 20 percent rates. Hold it one year or less and it is short-term, taxed as ordinary income at your normal graduated rates. Gains and losses net within each category first and then against each other, so the character of a loss decides how much it is worth. If losses exceed gains you may deduct the lesser of $3,000, or $1,500 if married filing separately, or your total net loss, and carry the rest forward indefinitely. Losses on personal-use property such as your home or car are never deductible.

Key Takeaways
  • More than one year. Exactly one year is short-term. Count from the day after acquisition through the day of disposal.
  • Basis is the lever. Commissions, improvements, and reinvested dividends raise basis; depreciation lowers it. Every dollar of basis is a dollar of gain you never report.
  • Netting is ordered. Within category first, then across. A short-term loss used against a short-term gain saves ordinary rates, not 15 percent.
  • $3,000 a year, forever. Excess losses carry forward indefinitely and keep their short-term or long-term character.
  • Personal-use losses are nothing. A gain on your car is taxable, a loss on it is not deductible.
  • Not everything gets 0/15/20. Collectibles and §1202 stock cap at 28 percent, unrecaptured §1250 gain at 25 percent, short-term at ordinary rates.
  • The wash sale window is 61 days. Thirty days before and after the sale, and it reaches your IRA.

What counts as a capital asset

The IRS starts from a wide default: almost everything you own and use for personal or investment purposes is a capital asset. That includes a home, personal-use items such as household furnishings, and stocks or bonds held as investments.

When you sell one, the difference between your adjusted basis and the amount you realized is a capital gain or a capital loss. You have a gain if you sell for more than adjusted basis and a loss if you sell for less.

One asymmetry deserves emphasis because it costs people money every year: losses from the sale of personal-use property, such as your home or car, are not deductible. The gain side is still taxable, subject to any exclusion that applies. Selling a car for more than you paid is a reportable gain; selling it for less, which is what almost always happens, produces nothing at all. The same logic applies to a personal residence, where gains above the §121 exclusion are taxable but a loss is simply lost.

The main categories that are not capital assets are inventory and property held primarily for sale to customers, depreciable business property and real property used in a trade or business, which fall under §1231 and Form 4797 instead, and self-created works in the hands of their creator. Business property has its own regime, which is why a rental sale generates §1250 recapture rather than a straightforward capital gain.

The holding period, counted exactly

Classification comes first, because it decides which rate schedule applies. Hold the asset for more than one year before disposing of it and the gain or loss is long-term. Hold it one year or less and it is short-term.

The counting rule is precise and worth committing to memory: count from the day after the day you acquired the asset, up to and including the day you disposed of it.

Work through it. You buy shares on 10 March 2025. The holding period begins 11 March 2025. On 10 March 2026 you have held the asset for exactly one year, which is not more than one year, so a sale that day is short-term. Sell on 11 March 2026 and the gain is long-term.

That single day can be worth a great deal. A short-term gain is taxed as ordinary income at graduated rates reaching 37 percent, while the same gain held one day longer may be taxed at 15 percent or even 0 percent. Selling a day early is among the most expensive avoidable mistakes an investor can make, and it happens constantly in December when people sell for tax reasons without checking the acquisition date.

Exceptions exist for property acquired by gift, property acquired from a decedent, patent property, commodity futures, and applicable partnership interests. The first two are common enough to cover separately below.

Determining your basis

Basis is generally what the asset cost you, but the number that matters at sale is adjusted basis, and most people understate it. Every dollar of basis you can substantiate is a dollar of gain you never report.

Things that increase basis:

  • Purchase price plus commissions, transfer taxes, and acquisition fees.
  • Capital improvements to real property. A new roof or an addition adds to basis; routine repairs and maintenance do not.
  • Reinvested dividends and capital gain distributions. Each reinvestment is a purchase of additional shares at that price. Investors who forget this and report the original investment as their entire basis pay tax twice on the same money.
  • Assessments for local improvements and certain legal fees.

Things that decrease basis:

  • Depreciation allowed or allowable, which is why rental property tends to carry a much lower basis than its owner expects.
  • Casualty losses deducted, insurance reimbursements, and return-of-capital distributions.
  • Deferred gain rolled in from a like-kind exchange. Our 1031 Exchange guide explains how that carryover basis is computed.

Which shares did you sell?

When you hold multiple lots of the same security bought at different prices, the lot you are treated as selling changes the gain. The default is first in, first out, which sells your oldest and often lowest-basis shares first and tends to maximise the reported gain. The alternative is specific identification, where you tell the broker at or before the sale exactly which lot to sell.

Specific identification is the single most under-used tool in retail investing. It lets you choose high-basis lots to reduce a gain, or deliberately select long-term lots to avoid short-term treatment. It generally has to be done at the time of the trade, not reconstructed afterwards, and the instruction must be confirmed by the broker. Mutual funds also permit average-cost methods with their own election rules.

Inherited and gifted property

These two follow opposite rules, and confusing them is expensive.

Inherited property. Property acquired from a decedent generally takes a basis adjusted to its value at the date of death under IRC §1014. Unrealized appreciation accumulated during the decedent's lifetime is wiped out. A gain is also treated as long-term regardless of how long the heir actually held it.

Gifted property. A gift generally carries the donor's basis across to you under IRC §1015, and the donor's holding period tacks onto yours. The built-in gain travels with the asset.

The planning implication is direct and frequently missed. Giving a highly appreciated asset to a family member during your lifetime transfers the embedded tax liability to them. Leaving the same asset in your estate may eliminate that liability entirely through the basis adjustment. When the intended recipient is in a lower bracket the gift can still be the better answer, but it should be a decision rather than an accident.

A special rule applies where gifted property has declined in value: a dual basis applies, using the donor's basis to figure a gain and the lower fair market value at the date of gift to figure a loss, which can produce neither gain nor loss in between. Publication 551 covers the mechanics.

The netting rules

Gains and losses do not go into one pot. They net in a defined order, and the order determines what a given loss is actually worth to you.

  1. Within each category first. Short-term gains net against short-term losses. Long-term gains net against long-term losses. Carryforwards from earlier years join their own category.
  2. Then across categories. If one category produces a net loss and the other a net gain, the loss offsets that gain.

The statutory definitions follow from this. Net capital gain, the figure eligible for the preferential rates, means the amount by which your net long-term capital gain exceeds your net short-term capital loss for the year. Net long-term capital gain means long-term gains reduced by long-term losses, including any unused long-term loss carried over. Net short-term capital loss means the excess of short-term losses, including carryovers, over short-term gains.

Why the character of a loss matters
Short-term gain (taxed at ordinary 32%)$20,000
Long-term gain (taxed at 15%)$20,000
A $20,000 short-term loss offsets the ST gain, saving$6,400
The same loss if it instead offset the LT gain, saving$3,000
Value of correct ordering$3,400

Because netting happens within category first, a short-term loss is automatically applied against short-term gain, which is the outcome you want. The lesson runs the other way when harvesting: realising a short-term loss in a year with only long-term gains wastes most of its value. Illustrative, using a 32 percent ordinary rate and a 15 percent long-term rate.

The $3,000 limit and carryforwards

If your capital losses exceed your capital gains, the excess you can deduct against other income is limited. You may claim the lesser of $3,000, or $1,500 if married filing separately, or your total net loss shown on line 16 of Schedule D. The deduction goes on line 7a of Form 1040, 1040-SR, or 1040-NR.

Anything beyond that is not forfeited. It carries forward to later years, and there is no expiry. The Capital Loss Carryover Worksheet in Publication 550 or in the Schedule D instructions computes the amount you carry.

Two practical consequences follow.

First, the carryforward retains its character. A long-term loss carried into next year is still a long-term loss and nets against long-term gains first. That matters if you expect a large gain of a particular type.

Second, a large loss can take a very long time to use at $3,000 a year. A $60,000 net capital loss with no future gains against it represents twenty years of deductions. Anyone sitting on a substantial carryforward should treat it as a stored asset and plan realisations to use it, for instance by harvesting gains in a year when the carryforward can absorb them. That is the mirror image of loss harvesting and is often the more valuable move.

Note that the $3,000 figure is not indexed for inflation and has not changed in decades, so its real value erodes every year.

The Capital Loss Carryover Calculator takes your short-term and long-term figures and returns this year's deduction alongside the amount carried forward, split by character.

Tax-loss harvesting and the wash sale rule

Harvesting means deliberately realising a loss to offset gains or to create a carryforward, while keeping your overall market exposure roughly intact. The constraint is IRC §1091.

A loss is disallowed if you acquire substantially identical stock or securities within 30 days before or 30 days after the sale. That is a 61-day window centred on the sale date. The most common error is treating it as a forward-looking 30-day rule and buying back on day 31 while forgetting a purchase made three weeks before the sale, including an automatic reinvestment or a recurring contribution.

Three further points:

  • The loss is deferred, not destroyed. A disallowed loss is added to the basis of the replacement shares and the holding period tacks, so you recover the benefit when you finally sell the replacement.
  • It reaches your other accounts. Buying the same security in an IRA triggers the rule, and in that case the loss is permanently lost rather than added to basis. The IRS position also treats a purchase by your spouse as yours.
  • "Substantially identical" is narrower than "similar." Two different index funds tracking different indices are generally not substantially identical, which is what makes harvesting practical, but selling a fund and buying the same fund in a different share class is not a safe distinction.

Our Wash Sale Loss Calculator tests a specific pair of trades against the window, and the Wash Sale Rule guide covers the substantially-identical question in more depth.

Treatment by asset class

How the main asset classes are treated
AssetTreatment
Stocks, bonds, fundsStandard short-term or long-term capital gain. Basis includes reinvested dividends.
Primary residenceGain taxable above the §121 exclusion; loss never deductible.
Rental or investment real estateDepreciation reduces basis and creates unrecaptured §1250 gain taxed at up to 25 percent. Deferrable by exchange.
Collectibles (coins, art)Net gains taxed at a maximum 28 percent rate.
§1202 qualified small business stockThe taxable part of the gain is taxed at a maximum 28 percent rate; a large portion may be excluded entirely.
Digital assetsTreated as property, so ordinary capital gain rules and holding periods apply to each disposal.
Personal-use propertyGain taxable, loss not deductible.

Real estate is the class where the surprises concentrate, because depreciation quietly reduces basis every year and converts part of the eventual gain into 25 percent recapture. The Rental Income Tax Calculator and the 1031 Exchange guide deal with that interaction directly. For small business stock, the QSBS Gain Exclusion Calculator sizes the excluded portion.

Which rate applies

Once the gain is classified and netted, the rate follows. Net short-term capital gains receive no preference and are taxed as ordinary income at graduated rates. Net capital gain is taxed at 0, 15, or 20 percent depending on your total taxable income, with three exceptions taxed higher: collectibles at a maximum 28 percent, the taxable part of §1202 stock at a maximum 28 percent, and unrecaptured §1250 gain at a maximum 25 percent.

2026 long-term capital gains breakpoints (Rev. Proc. 2025-32)
Filing status0% up to20% starts above
Single$49,450$545,500
Married Filing Jointly / QSS$98,900$613,700
Head of Household$66,200$579,600
Married Filing Separately$49,450$306,850

Higher earners may also owe the 3.8 percent net investment income tax under IRC §1411 once modified AGI exceeds $200,000 single or head of household, $250,000 married filing jointly, or $125,000 married filing separately, which lifts the effective top rate on long-term gains to 23.8 percent.

The rate itself is not the interesting part, because it depends on how the gain stacks on top of your ordinary income rather than on the gain alone. That stacking mechanism, the line-by-line worksheet the IRS uses to apply it, and what makes a dividend qualified are covered in full in our Qualified Dividends and Capital Gains Worksheet guide. If you would rather skip the worksheet, the Capital Gains Rate Calculator applies it for you.

Form 8949 and Schedule D

Most sales and other capital transactions are reported on Form 8949, Sales and Other Dispositions of Capital Assets, where each disposal is listed with its dates, proceeds, and basis. The totals are then summarised on Schedule D (Form 1040). If Schedule D does not apply to you, check the appropriate box on line 7b of Form 1040.

Two operational points cause most of the filing friction.

Basis reporting is not always complete. Brokers report basis to the IRS for covered securities, but for older holdings, transferred accounts, gifts, and inherited assets the basis box may be blank or wrong. Form 8949 has adjustment codes for exactly this situation. A blank basis is not a licence to guess, and it is also not a reason to report zero basis and overpay, which is what happens by default if you accept a broker figure uncritically.

A large gain can trigger estimated tax. Nothing is withheld on a securities sale. If you have a substantial taxable gain you may be required to make estimated tax payments to avoid an underpayment penalty, and Publication 505 sets out the safe harbours. The Quarterly Estimated Tax Calculator can size the payment and the Underpayment Penalty Calculator the exposure if you have already missed a quarter.

Common mistakes

  • Selling one day too early. More than one year means more than. Check the acquisition date before any December sale.
  • Omitting reinvested dividends from basis. Years of automatic reinvestment are purchases. Leaving them out means paying tax on your own money a second time.
  • Accepting a blank or wrong broker basis. Use the Form 8949 adjustment codes rather than defaulting to zero basis.
  • Triggering a wash sale on the buy side. The window opens 30 days before the sale, and automatic reinvestments count.
  • Harvesting a short-term loss into a long-term-gain year. Character matters; the loss is worth far more against ordinary-rate income.
  • Forgetting the carryforward exists. Losses from an earlier year are frequently left unused because nobody carried the schedule forward.
  • Expecting a deduction for a personal-use loss. The car and the house do not produce deductible losses.
  • Assuming every long-term gain gets 15 percent. Collectibles, §1202 stock, and depreciated real property have higher maximum rates.
  • Ignoring estimated tax after a large sale. No withholding happens automatically on a brokerage gain.

Practitioner Insight (LMN Tax Inc.)

LMN Tax Inc. - Client Pattern

The recurring theme is that clients optimise the rate and ignore the basis, when basis is where the money actually is. The single most common correction we make is adding back years of reinvested dividends on a long-held fund position, which can move a reported gain by tens of thousands of dollars and is invisible unless someone reconstructs the purchase history. The second is lot selection: clients place a sell order for a dollar amount and let the broker default to first in, first out, surrendering the choice of which basis to use at the exact moment it was free to make. Telling the broker which lot to sell costs nothing and is often worth more than any rate planning. The third pattern is the December phone call from someone who has already sold, asking what can be done, when the answer a week earlier would have been to wait until the holding period crossed one year or to pair the sale with a harvested loss. And we routinely find unused capital loss carryforwards on new clients' prior returns, sometimes running to five figures, simply because a preparer changed and the schedule was never carried across.

When these rules may not apply

  • Traders and dealers: a taxpayer in the business of trading, or who has made a §475(f) mark-to-market election, is outside the capital gain regime for those positions.
  • Business property: depreciable and real property used in a trade or business is §1231 property reported on Form 4797, with its own netting and recapture rules rather than the ones described here.
  • Partnership interests: applicable partnership interests carry a three-year holding period requirement for long-term treatment, and hot assets under §751 can convert part of the gain to ordinary income.
  • Commodity futures and straddles: §1256 contracts are marked to market annually with a 60/40 split regardless of holding period.
  • Opportunity zones and exchanges: §1400Z-2 and §1031 defer gain under separate regimes with their own deadlines.
  • Nonresident aliens: capital gains of nonresident individuals follow different sourcing and withholding rules, including FIRPTA on US real property.
  • State tax: most states tax capital gains as ordinary income with no preferential rate, a few have no income tax at all, and some apply their own surtaxes. None of that is modelled here.
  • Year-specific figures: breakpoints are indexed annually. The 2026 figures above come from Rev. Proc. 2025-32 and change each year.

Frequently Asked Questions

How exactly is the one-year holding period counted?
You count from the day after the day you acquired the asset, up to and including the day you disposed of it. The gain is long-term only if you held the asset for more than one year, so exactly one year is still short-term. Buy on March 10 and the holding period starts March 11; a sale on March 10 of the following year is short-term, while March 11 is long-term. Because the difference between short-term and long-term treatment can be the difference between ordinary rates and the 0, 15, or 20 percent rates, a sale placed a day early is one of the most expensive avoidable mistakes in investing.
In what order do capital gains and losses offset each other?
Netting happens within each category first, then across them. Short-term gains net against short-term losses, and long-term gains net against long-term losses, with any carryforward from prior years included in its own category. If one category ends in a net loss and the other in a net gain, the loss then offsets the gain across categories. Net capital gain, the amount eligible for the preferential rates, means the excess of net long-term capital gain over net short-term capital loss. This ordering matters because a short-term loss is worth more when it offsets a short-term gain taxed at ordinary rates than when it offsets a long-term gain taxed at 15 percent.
How much capital loss can I deduct in one year?
If your capital losses exceed your capital gains, you can deduct the lesser of $3,000, or $1,500 if married filing separately, or your total net loss shown on line 16 of Schedule D. The deduction is claimed on line 7a of Form 1040. Anything above that limit is not lost. It carries forward to later years indefinitely and keeps its short-term or long-term character. Use the Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions to compute the amount carried forward.
Can I deduct a loss on selling my car or my home?
No. Losses from the sale of personal-use property, such as your home or your car, are not tax deductible. This is an asymmetry that surprises people: a gain on a personal residence is taxable to the extent it exceeds the section 121 exclusion, but a loss on the same property produces nothing. Only property held for investment or business use can generate a deductible capital loss, which is why the character of the property in your hands matters as much as the numbers.
What is the wash sale rule and when does it bite?
Under IRC section 1091 a loss is disallowed if you buy substantially identical stock or securities within 30 days before or 30 days after the sale that produced the loss. That is a 61-day window centred on the sale date, not just the 30 days after it. The disallowed loss is not destroyed; it is added to the basis of the replacement shares and the holding period tacks. The rule is the main constraint on tax-loss harvesting, and it reaches purchases in your IRA and, in the IRS view, purchases by your spouse, so selling in a taxable account while buying the same fund in a retirement account does not avoid it.
Are all long-term gains taxed at 0, 15, or 20 percent?
No. Three categories are taxed at higher maximum rates. Net gains from selling collectibles such as coins or art are taxed at a maximum 28 percent rate. The taxable part of a gain from selling section 1202 qualified small business stock is also taxed at a maximum 28 percent rate. The portion of gain that is unrecaptured section 1250 gain from selling depreciated real property is taxed at a maximum 25 percent rate. Net short-term capital gains get no preferential treatment at all and are taxed as ordinary income at graduated rates.
What basis do I use for inherited or gifted property?
They follow opposite rules. Property acquired from a decedent generally takes a basis adjusted to its value at the date of death under IRC section 1014, which wipes out the unrealized gain accrued during the decedent's life. Gifted property instead takes the donor's carryover basis under IRC section 1015, so the built-in gain transfers to you along with the asset, and the donor's holding period tacks onto yours. The practical consequence is that giving away a highly appreciated asset during life transfers a tax liability, whereas leaving it in the estate may eliminate it. Publication 551 covers the detail, including the special rule where gifted property has declined in value.

What To Do Next

Next Step

Before you sell anything, check two dates and one number: the acquisition date, today's date, and your adjusted basis including every reinvested dividend. Those three decide most of the tax.

If you hold multiple lots, instruct your broker which lot to sell at the time of the trade. It is free and it is often worth more than any rate planning.

Pull your prior-year Schedule D and check for an unused capital loss carryforward. If one exists, plan realisations to use it rather than letting it drip out at $3,000 a year.

Run the result through the Capital Gains Rate Calculator, then check whether the gain is large enough to require an estimated payment.

For depreciated real estate, a concentrated low-basis position, inherited assets, or anything involving §1202 stock, talk to a professional before selling. Those are the cases where the default treatment is most often the wrong one.

Sources
  • IRS Topic No. 409 - Capital Gains and Losses - capital asset definition; personal-use losses not deductible; more-than-one-year long-term test and the day-after counting rule; definitions of net capital gain, net long-term capital gain, and net short-term capital loss; the 28 percent maximum on collectibles and the taxable part of §1202 stock; the 25 percent maximum on unrecaptured §1250 gain; short-term gains taxed as ordinary income; the $3,000 and $1,500 loss limit, Schedule D line 16, Form 1040 line 7a, and indefinite carryforward; Form 8949 and Schedule D reporting; estimated tax. Page last reviewed 25-Feb-2026.
  • IRS Rev. Proc. 2025-32 - 2026 inflation-adjusted long-term capital gains breakpoints used in the table above.
  • IRS Publication 550 - Investment Income and Expenses - wash sale mechanics, the Capital Loss Carryover Worksheet, and lot identification methods.
  • IRS Publication 551 - Basis of Assets - basis of purchased, gifted, and inherited property, including the dual-basis rule for gifted property that has declined in value.
  • IRS Publication 544 - Sales and Other Dispositions of Assets - holding period exceptions, §1231 business property, and recapture.
  • 26 U.S.C. §1091 - loss from wash sales of stock or securities (Cornell LII).
  • 26 U.S.C. §1211 and §1212 - limitation on capital losses and the capital loss carryover (Cornell LII).
  • 26 U.S.C. §1014 and §1015 - basis of property acquired from a decedent and basis of property acquired by gift (Cornell LII).
  • 26 U.S.C. §1411 - net investment income tax (Cornell LII).
Disclaimer: This guide is educational and does not constitute tax, legal, or investment advice. Structural rules follow IRS Topic No. 409 and Publications 544, 550, and 551; the 2026 long-term capital gains breakpoints follow Rev. Proc. 2025-32 and are adjusted annually. Worked examples are illustrative, use stated assumed rates, hold all other income constant, and exclude state and local tax, the alternative minimum tax, and any phase-outs. Netting, basis, and wash sale outcomes are highly fact-specific, and this guide does not address traders with a §475(f) election, §1231 business property, §1256 contracts, partnership interests, or nonresident filers. Consult a qualified tax professional before acting on a significant disposal.