Questions about losses
How do losses offset gains?
Losses and gains are netted in two groups first. Short-term losses are set against short-term gains, and long-term losses against long-term gains. Short-term means held one year or less. If one group ends in a loss and the other in a gain, the two are then combined.
In one year you have $4,000 of short-term gains and $1,500 of short-term losses, plus $1,000 of long-term gains and $6,000 of long-term losses. The short-term group ends as a $2,500 net gain and the long-term group as a $5,000 net loss. Combined, you have a $2,500 net capital loss. No capital gains tax is due, and because $2,500 is under the $3,000 limit, the whole amount can be deducted from other income that year.
What if my losses are bigger than my gains?
You can deduct up to $3,000 of net capital loss from other income, such as wages, in a year. The limit is $1,500 if you are married and file separately. Anything above the limit is carried forward to the next year, where it is first used against that year's gains. Unused losses keep carrying forward with no expiry.
A $10,000 net capital loss used up over four years, assuming no capital gains in any of those years and the $3,000 annual limit. Any gain in a later year would use up the remaining loss faster.
| Year | Loss available at start of year | Deducted from other income | Carried to next year |
|---|---|---|---|
| 1 | $10,000 | $3,000 | $7,000 |
| 2 | $7,000 | $3,000 | $4,000 |
| 3 | $4,000 | $3,000 | $1,000 |
| 4 | $1,000 | $1,000 | $0 |
Can I sell at a loss and buy the same thing back?
Not straight away, if you want to claim the loss. Under the wash sale rule, a loss is disallowed if you buy the same or a substantially identical security within 30 days before or after the sale. The loss is not gone for good. It is added to the cost basis of the replacement shares, so it reduces the gain when those are eventually sold.
Questions about cost basis and share lots
I bought the same share at different times. Which ones did I sell?
Each purchase is a separate lot with its own cost and its own purchase date. Unless you say otherwise, the oldest lot is normally treated as sold first, a method called first in, first out. You can instead tell your broker which lot to sell, as long as you do so by the time of the trade. This is called specific identification.
You own two lots of the same share: 50 shares bought three years ago at $40, and 50 shares bought eight months ago at $90. You sell 50 shares at $100. Selling the old lot gives a long-term gain of $3,000. At an assumed 15% long-term rate, the tax is $450. Selling the new lot gives a short-term gain of $500. At an assumed 22% ordinary rate, the tax is $110. The second choice costs less tax now, but it leaves you holding the low-cost lot, with a larger gain still to come.
Do reinvested dividends change my basis?
Yes. Each reinvested dividend is a small purchase that adds a new lot at the price paid that day. You were already taxed on the dividend in the year it was paid. If you leave those lots out of your basis when you sell, you pay tax on the same money twice.
Questions about assets you did not buy
How is an inherited asset taxed when I sell it?
Your cost basis is generally the market value on the date the previous owner died, not the price they paid. This is known as a stepped-up basis. If you sell soon after inheriting, at close to that value, there is little or no gain. Any gain is treated as long-term, whatever the actual holding period.
How is a gifted asset taxed?
A gift received during the giver's lifetime works differently. When you sell at a gain, you generally use the giver's original cost as your basis, and their holding period is added to yours. Ask the giver for their purchase records when you receive the gift, because you will need them at sale.
Are digital assets such as cryptocurrency covered by these rules?
Yes. The IRS treats digital assets as property. Selling them for cash, swapping one for another, or spending them on goods are all disposals that can produce a gain or a loss, measured from your cost basis in the usual way.
Estimate the tax on a single sale
Enter the cost basis of the lot you plan to sell, the sale price, your taxable income and the holding period.
The calculator handles one sale at a time. It shows a loss as a $0 gain and does not net losses against gains or carry them forward. To explore the lot example above, run it once for each lot with that lot's purchase price and holding period, and enter taxable income, not gross pay.