In this article, you’ll learn more about how the process works.

What Is a Capital Loss?

A capital asset is anything you purchase and own for personal or investment purposes. You would have a capital gain or a capital loss if you were to sell that asset for more or less than your basis in it—what you paid for the asset plus certain allowable costs. The difference between what you paid for the asset and the sale price represents either a capital gain or a capital loss.

Offsetting Capital Gains

Suppose that you have a $5,000 capital loss, and you also have a $5,000 capital gain on the sale of another investment. The gain and the loss would offset each other on your return. In that situation, you would have no tax loss remaining to carry over to the next year. You can’t choose to pay tax on the gain this year and roll over the loss to the following year; capital losses must first be used to offset any capital gains of the same type in the current tax year before they can be rolled over to the next.

Offsetting Ordinary Income

You can deduct losses of up to $3,000 from your income if your capital losses exceed your capital gains. For example, if you made $50,000, have a $5,000 loss and no gains, you would still only be able to deduct $3,000—bringing your taxable income to $47,000. The remaining $2,000 of your total $5,000 loss can be carried forward to future years.

An Example of Carrying Over Losses

Suppose the stock market has a bad year. You sell a stock or mutual fund and realize a $20,000 loss with no capital gains that year. First, you’ll use $3,000 of the loss to offset your ordinary income. The remaining $17,000 will carry over to the following year. Next year, if you have $5,000 of capital gains, you can use $5,000 of your remaining $17,000 loss carryover to offset it. You can use another $3,000 to deduct against ordinary income, which would leave you with $9,000. The remaining $9,000 will then carry forward to the next tax year. Assuming that you had no capital gains in the following three years, you could use up the remaining $9,000 loss, $3,000 at a time, over those three years.

How To Claim a Loss

Capital gains, capital losses, and tax-loss carry-forwards are reported on IRS Form 8949 and Schedule D, When reported correctly, these forms will help you keep track of any capital loss carryover. Your total net loss appears on Schedule D and transfers to Form 1040. You can carry forward any excess over the $3,000 or $1,500 limits. The IRS offers a Capital Loss Carryover Worksheet in Publication 550 for guidance.

When To Realize a Capital Loss

Sometimes it makes sense to realize a capital loss on purpose so you can use it to offset capital gains and ordinary income in future years. This concept is referred to as “tax-loss harvesting” and is used by savvy investors. Ordinary income is taxed at a higher rate than long-term capital gains, so realizing a loss and carrying your capital loss forward so $3,000 of it can offset ordinary income each year can mean a lower tax bill for you. Having a lower ordinary income could also mean that less of your Social Security benefits are taxable for the year if you’re retired.

Additional Rules and Changes

These gain and loss rules apply primarily to publicly traded investments, such as stocks, bonds, mutual funds, and, in some cases, real estate holdings. There are additional rules that apply when you realize both short- and long-term gains, and to whether deductions can be used to offset state income, how real estate gains are treated when you must recapture depreciation, and how you account for passive losses and gains.