Answer · IRC § 1211(b), § 1212(b)

How does a capital loss carryover work?

How a net capital loss is used: up to $3,000 a year against other income, the rest carried forward with its character, and the cases where it is lost.

Where a loss goes, in order

A capital loss is never deducted in one step. It is spent against capital gains first, and only what survives reaches the rest of your income. Section 1211(b) of the Internal Revenue Code sets the sequence for individuals: losses are allowed in full against gains, and any excess comes off other income up to $3,000 a year, or $1,500 for a married person filing a separate return.

The remainder is the carryover. Section 1212(b) moves it into the next tax year, where it counts as a capital loss of that year and goes through the same sequence again. For an individual it never expires: it rolls forward until it is used up, and only the taxpayer's death ends it early.

The $3,000 figure is written into the statute as a plain number. Unlike the brackets and the 0% ceiling, it is not adjusted for inflation, so it covers a little less of a typical income every year.

Netting comes before the offset

Before any loss touches your wages, gains and losses are paired off. Short-term results are netted together, long-term results together, and then a net loss on one side is set against a net gain on the other. The calculation guide walks through that order step by step.

Which side a result lands on depends only on how long you held the asset. More than a year is long-term, counting from the day after you bought it up to and including the day you sold (IRS Topic 409), and a loss keeps that label for as long as it is carried.

Only a net loss for the whole year creates a deduction and a carryover. Lose $20,000 on one fund and make $25,000 on another and there is nothing to carry: the loss has already been used against the gain, which is where a loss does the most good, because it cancels income that would otherwise be taxed.

When the year does end in a net loss, the offset against other income comes out of the short-term side first. Section 1212(b)(2) treats the amount you deducted as a short-term gain when the carryover is worked out, so a mixed loss carries forward with less short-term loss and the same long-term loss. The calculator's engine follows that order, which is also the order of the Capital Loss Carryover Worksheet in IRS Publication 550.

The carryover keeps its character

A short-term carryover arrives in the new year as a short-term loss, and a long-term carryover as a long-term loss (section 1212(b)(1)). Each is netted first against gains of its own kind. The distinction matters because the two kinds of gain are taxed so differently: a short-term carryover that meets a short-term gain cancels income taxed at ordinary rates of up to 37%, while a long-term carryover meeting a long-term gain cancels income taxed at 0%, 15% or 20%.

None of it is optional. The carryover is applied to the first gains that arrive, including gains that would otherwise have been taxed at nothing. A retiree whose gains sit inside the 0% band spends the carryover on gain that was never going to cost anything, and the second example below shows exactly that. There is no election to hold a carryover back for a year when it would be worth more.

The offset against other income works the same way. Every year that ends in a net capital loss takes up to $3,000 of it against wages, pension or interest, whether or not that is the best use of it.

The adjustment for a low-income year

There is one exception, and it protects people with little other income. When the carryover is worked out, section 1212(b)(2) counts the offset as used only up to your adjusted taxable income: broadly, taxable income with the capital loss deduction added back, a negative figure counting as negative. If your income was already too low for the offset to reduce anything, the unused part stays in the carryover.

This calculator does not make that adjustment. It deducts the full offset and carries forward the rest, which understates the carryover for a year in which taxable income before the loss was under $3,000. In that situation the worksheet in the Schedule D instructions gives the right figure.

Married couples share one limit

The limit belongs to the return, not the person. A married couple filing jointly gets one $3,000 offset between them, and filing separately does not double it: each spouse gets $1,500, so the pair reaches $3,000 only if both have a net loss to use.

On a joint return the couple's gains and losses are netted together, so one spouse's loss offsets the other's gain before any limit applies. A capital loss is rarely, on its own, a reason to file separately.

Stock that became worthless

A share that becomes worthless does not have to be sold for its loss to count. Section 165(g) treats a security that becomes worthless during the year as sold on the last day of that tax year, so the loss belongs to that year and, for a calendar-year filer, its holding period runs to 31 December.

The hard part is the year. The loss belongs to the year the security actually became worthless, not the year you noticed, and a claim in the wrong year is a claim that can be refused. Once taken, the loss nets and carries forward like any other.

When a loss is lost for good

Four situations end a loss instead of carrying it. A loss on property you used personally, such as your home or your car, is not deductible at all, so it never becomes a carryover (section 165(c); IRS Topic 409). A capital loss, carryovers included, can be deducted only on the final return of the person who died; IRS Publication 559 is explicit that it cannot pass to the estate.

A sale to a relative is the third. Section 267 disallows a loss on a sale between members of a family, meaning brothers and sisters, a spouse, ancestors and lineal descendants, and between you and a corporation you own more than half of. Selling a losing stock to your daughter produces no deduction, whatever price she pays.

The fourth is a repurchase inside an IRA. Sell shares at a loss and buy the same shares in your IRA or Roth IRA within 30 days, and Rev. Rul. 2008-5 disallows the loss without adding it to any basis. In an ordinary account the same repurchase only postpones the loss, as the wash sale guide explains.

Recording it and carrying it forward

Each sale goes on Form 8949 and the totals on Schedule D, which produces the net figure and the deduction for the year (IRS Topic 409). Nobody sends you the carryover as a number. You work it out from last year's return, using the Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions, and enter it on this year's Schedule D.

Keep that worksheet with the return. A large carryover can outlive the records of the sales that created it by many years, and the worksheet is the only document that shows how the short-term and long-term amounts were split.

To see what a loss is worth against a particular sale, use the comparison panel under the calculator's results, which has a field for a realized loss. The calculator takes one sale at a time and has no field for a carryover from an earlier year, so keep that total in your own records.

Worked example

Computed by the calculator's own engine when this page was built. Open the derivation for every rule and citation.

A year that ends in a net loss

A single filer with $72,000 of wages sells two positions at a loss: $9,000 short-term and $5,000 long-term, with no gains in the year.

Taxable income after deduction
$52,900
Taxable gain
$0
Tax owed without the sale
$7,010
Tax the sale added
-$660
Total federal tax
$6,350
Effective rate on the gain
—

$3,000 comes off wages, saving $660 of federal tax. The other $11,000 carries into next year as $6,000 short-term and $5,000 long-term: the offset came out of the short-term side first.

Show the working — 12 steps, each with its citation
  1. Net short-term capital gain or loss for the year-$9,000Short-term / long-term nettingIRC 1222; IRS Pub. 550

    Assets held one year or less. Taxed at ordinary rates if a net gain.

  2. Net long-term capital gain or loss for the year-$5,000Short-term / long-term nettingIRC 1222; IRS Pub. 550

    Assets held more than one year. Eligible for the 0/15/20% rates.

  3. Net capital loss deducted against ordinary income-$3,000Capital loss limitationIRC 1211(b)

    Net capital loss of $14,000 is deductible only up to $3,000. $3,000 came from short-term loss and $0 from long-term loss.

  4. Capital loss carried forward to next year$11,000Capital loss carryforwardIRC 1212(b)

    $6,000 short-term and $5,000 long-term. Individuals carry capital losses forward indefinitely; there is no expiry and no carryback.

  5. Standard deduction-$16,100Deduction from adjusted gross incomeRev. Proc. 2025-32 4.14(1) (IRC 63(c)(2))

    Adjusted gross income of $69,000 less $16,100.

  6. Taxable income$52,900Taxable incomeIRC 63(a)

    The figure the rate tables and the capital gain ceilings are both measured against.

  7. Ordinary income taxed at 10%$1,240Ordinary income tax bracketsRev. Proc. 2025-32 4.01 (IRC 1(j)(2))

    $12,400 of taxable income between $0 and $12,400.

  8. Ordinary income taxed at 12%$4,560Ordinary income tax bracketsRev. Proc. 2025-32 4.01 (IRC 1(j)(2))

    $38,000 of taxable income between $12,400 and $50,400.

  9. Ordinary income taxed at 22%$550Ordinary income tax bracketsRev. Proc. 2025-32 4.01 (IRC 1(j)(2))

    $2,500 of taxable income between $50,400 and $52,900.

  10. Net investment income tax threshold$200,000IRC 1411 thresholdIRC 1411(a)-(b); 26 C.F.R. 1.1411-2

    Modified AGI of $69,000 against the $200,000 threshold for a single filer. This threshold is statutory and is not adjusted for inflation.

  11. Net investment income tax does not apply$0IRC 1411 thresholdIRC 1411(a)-(b); 26 C.F.R. 1.1411-2

    Modified AGI is $131,000 below the threshold.

  12. Total tax$6,350Sum of all tax stepsRev. Proc. 2025-32 (I.R.B. 2025-45)

    $6,350 on $72,000 of total income, an effective rate of 8.82%.

The next year: the carryover meets a 0% gain

Now retired on a $32,000 pension, the same person sells fund shares at a long-term gain of $11,000 and carries in last year's $6,000 short-term and $5,000 long-term losses. Computed on 2026 figures.

Taxable income after deduction
$15,900
Taxable gain
$11,000
Tax owed without the sale
$1,300
Tax the sale added
$360
Total federal tax
$1,660
Effective rate on the gain
3.27%

The carryover absorbs the whole gain and is used up, yet the federal bill is $1,660 with or without it: the gain sat inside the 0% band and would have cost nothing. Had they not sold, the carryover would have taken $3,000 off the pension instead, worth $360 that year, with $8,000 still to come.

Show the working — 11 steps, each with its citation
  1. Net short-term capital gain or loss for the year$0Short-term / long-term nettingIRC 1222; IRS Pub. 550

    Assets held one year or less. Taxed at ordinary rates if a net gain.

  2. Net long-term capital gain or loss for the year$11,000Short-term / long-term nettingIRC 1222; IRS Pub. 550

    Assets held more than one year. Eligible for the 0/15/20% rates.

  3. Prior-year capital loss carryforward applied-$11,000Capital loss carryforwardIRC 1212(b)

    $6,000 short-term and $5,000 long-term. Carryforwards keep their original character indefinitely.

  4. Short-term loss applied against long-term gain-$6,000Short-term / long-term nettingIRC 1222; IRS Pub. 550

    A net loss of one character offsets a net gain of the other.

  5. Standard deduction-$16,100Deduction from adjusted gross incomeRev. Proc. 2025-32 4.14(1) (IRC 63(c)(2))

    Adjusted gross income of $32,000 less $16,100.

  6. Taxable income$15,900Taxable incomeIRC 63(a)

    The figure the rate tables and the capital gain ceilings are both measured against.

  7. Ordinary income taxed at 10%$1,240Ordinary income tax bracketsRev. Proc. 2025-32 4.01 (IRC 1(j)(2))

    $12,400 of taxable income between $0 and $12,400.

  8. Ordinary income taxed at 12%$420Ordinary income tax bracketsRev. Proc. 2025-32 4.01 (IRC 1(j)(2))

    $3,500 of taxable income between $12,400 and $15,900.

  9. Net investment income tax threshold$200,000IRC 1411 thresholdIRC 1411(a)-(b); 26 C.F.R. 1.1411-2

    Modified AGI of $32,000 against the $200,000 threshold for a single filer. This threshold is statutory and is not adjusted for inflation.

  10. Net investment income tax does not apply$0IRC 1411 thresholdIRC 1411(a)-(b); 26 C.F.R. 1.1411-2

    Modified AGI is $168,000 below the threshold.

  11. Total tax$1,660Sum of all tax stepsRev. Proc. 2025-32 (I.R.B. 2025-45)

    $1,660 on $32,000 of total income, an effective rate of 5.19%.

Run your own figures

Nothing you enter leaves your browser.

Showing an example. Change any figure.

Your sale
Not sure? Work it out from the dates

What counts as cost basis?

What you paid, plus commissions and fees. Your gain is the sale proceeds less this. For an inherited asset it is usually the market value at the date of death, not what the person who left it to you paid.

About you
Why are some states unavailable?

States we can't yet compute for 2026 stay in the list, disabled, so a missing state is never mistaken for one with no tax. How states are checked.

Itemizing your deductions?
Standard or itemized?

The standard deduction is a fixed amount everyone can subtract — $16,100 single for 2026. Itemizing means totting up specific costs instead: mortgage interest, state taxes, charitable gifts. Take whichever is larger; most people take the standard.

Related questions

Can I offset capital gains with capital losses?

Yes, and the netting order is fixed: short-term losses against short-term gains and long-term against long-term first, then any remaining loss of one character offsets the other. If losses still exceed gains, up to $3,000 a year offsets ordinary income for individuals, and anything beyond that carries forward indefinitely. The carryforward does not expire.

How is capital gains tax calculated?

Start with the amount realized on the sale, net of selling costs, and subtract your adjusted basis — broadly what you paid, plus improvements, less any depreciation claimed. That difference is the gain. Sell for $300,000 what you bought for $100,000 and the tax is computed on the $200,000 gain, not on the $300,000. The gain is then sorted by holding period, stacked on your other income, and charged at whichever rates it reaches.

What is short term capital gains tax?

It is the tax on a gain from an asset held one year or less. There is no preferential treatment: the gain is added to your ordinary income and taxed at your marginal rate, up to 37%. This catches active traders, and anyone who sells soon after shares vest or shortly after acquiring an asset they assumed would qualify as long-term.

The guide index lists every answer page; the state comparison adds the state layer.