Skip to content

General education, not advice for your situation.

Carry Forward Learning Search the site

Capital Gains and the Wash-Sale Rule

Capital gains and wash sales: the basics

Same facts. Pro adds the full authority stack under each answer.

What is a capital gain or a capital loss?

It's the profit or loss when you sell or swap something that counts as a capital asset, like shares, a fund, a coin or your home. The profit is what you got for it minus your basis (roughly, what you put into it). If the number is negative, it's a loss. The tax rate depends on how long you held it.
Sources

Authority, strongest first

  1. Code I.R.C. § 1001
  2. Code I.R.C. § 1222
  3. Publication IRS Publication 550 (2025)
Gain is the amount realized over adjusted basis, loss the reverse (1001(a)); the amount realized is money plus the fair market value of other property received (1001(b)). Whether the result is short-term or long-term turns on a holding period of more than a year (1222).

Do I owe tax when my investments go up, or only when I sell?

Only when you sell or otherwise dispose of them. A rise in price you haven't cashed in is a paper gain, and it isn't taxed. Dividends and interest that the investment pays out are taxed in the year you get them, which is a separate question from the sale.
Sources

Authority, strongest first

  1. Code I.R.C. § 1001
  2. Publication IRS Publication 550 (2025)
Section 1001(a) and (c) key the tax to a sale or other disposition and recognize the whole gain or loss unless another provision defers or excludes it (like-kind exchanges, the home-sale exclusion and the wash sale rule are examples).

What counts as a capital asset?

Almost everything you own for yourself or as an investment: stocks, bonds, funds, crypto held as an investment, your home, your car, jewelry and art. The main things that are not capital assets are inventory, property you hold to sell to customers, depreciable business property and a few other business items. If you are not in business, think 'capital asset' by default.
Sources

Authority, strongest first

  1. Code I.R.C. § 1221
  2. Publication IRS Publication 550 (2025)
Section 1221(a) defines a capital asset as property held by the taxpayer, whether or not connected with a business, other than the listed exclusions.

What two facts decide the tax on a sale?

How long you held it, and what your basis is. The holding period says whether the gain or loss is short-term or long-term. The basis says how big the gain or loss is. Almost every other topic on this page (gifts, inheritances, wash sales, crypto) is really a rule about one of those two numbers.
Sources

Authority, strongest first

  1. Code I.R.C. § 1001
  2. Code I.R.C. § 1222
  3. Code I.R.C. § 1223
  4. Publication IRS Publication 550 (2025)
  5. Publication IRS Publication 551 (Rev. December 2025)
Basis comes from section 1012 (cost) or the special rules for gifts (1015), decedents (1014) and wash sales (1091(d)). The holding period comes from 1222, with tacking rules in 1223.

Which sales do I have to report on my return?

All of them, even small ones, and even when no form came in the mail. If you got a Form 1099-B or Form 1099-DA, the IRS has a copy and expects your return to match. If you didn't, you still report the sale on Form 8949. The exceptions are for sales that fit entirely on Schedule D with no adjustments.
Sources

Authority, strongest first

  1. Code I.R.C. § 6045
  2. Form instructions Instructions for Form 8949 (2025)
  3. Form instructions Instructions for Schedule D (Form 1040) (2025)
Individuals use Form 8949 for sales and exchanges of capital assets reported on Form 1099-B, 1099-DA or 1099-K and for those not reported on any form. Brokers' returns under section 6045 give the IRS the gross proceeds (and basis, for covered securities).

More questions