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: rules in depth

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

Rules in depth

Each rule, in a sentence or two, with the paragraph it comes from.

Gain and loss

Gain is the amount realized over your adjusted basis; loss is the adjusted basis over the amount realized. The amount realized is money plus the fair market value of other property received. The whole gain or loss is recognized unless another section says otherwise.

IRC 1001(a), (b), (c)

Sources

Authority, strongest first

  1. Code I.R.C. § 1001
  2. Publication IRS Publication 550 (2025)

Capital assets

Property you hold is a capital asset unless it falls in the listed exclusions (inventory, depreciable business property, certain receivables and a few others). Individuals can deduct losses only from business, profit-seeking transactions and casualty or theft.

IRC 1221(a), 165(c)

Sources

Authority, strongest first

  1. Code I.R.C. § 1221
  2. Code I.R.C. § 165

Short-term and long-term

Long-term means held more than 12 months (more than a year); short-term is a year or less. The count starts the day after acquisition and includes the day of sale. A gift at the donor's basis tacks the donor's time; property from a decedent sold within a year of death is treated as held more than a year; a replacement after a wash sale takes the old holding period.

IRC 1222(1)-(4), 1223(1)-(3), (9)

Sources

Authority, strongest first

  1. Code I.R.C. § 1222
  2. Code I.R.C. § 1223
  3. Final regulation Treas. Reg. § 1.1223-1(d)
  4. Publication IRS Publication 550 (2025)

Basis

Basis is generally cost. A gift takes the donor's basis, except that for a loss the basis is the lower fair market value at the gift. Inherited property takes the fair market value at death (or the alternate valuation date). A wash sale adds the disallowed loss to the basis of the replacement.

IRC 1012(a), 1015(a), 1014(a), 1091(d)

Sources

Wash sales

No deduction for a loss on stock or securities if, from 30 days before to 30 days after the sale, you acquire (by purchase or taxable exchange) substantially identical stock or securities, or a contract or option to acquire them. The loss is added to the basis of the replacement shares and its holding period carries over. A purchase for your IRA or Roth IRA is a wash sale, and the loss is not added to the IRA's basis.

IRC 1091(a), (d); Rev. Rul. 2008-5; Reg. 1.1091-1

Sources

Authority, strongest first

  1. Code I.R.C. § 1091
  2. Final regulation Treas. Reg. § 1.1091-1
  3. Revenue ruling Rev. Rul. 2008-5, 2008-3 I.R.B. 271
  4. Publication IRS Publication 550 (2025)

Broker reporting

Brokers report gross proceeds, and for covered securities the basis and whether the gain is short-term or long-term. Basis defaults to first-in, first-out unless you identify the lot. A broker applies the wash sale rule only to identical securities in the same account.

IRC 6045(a), (b), (g); Reg. 1.6045-1

Sources

Authority, strongest first

  1. Code I.R.C. § 6045
  2. Final regulation Treas. Reg. § 1.6045-1
  3. Form instructions Instructions for Form 1099-B (2026)

Digital assets

Digital assets are property. Gain or loss follows the capital asset rules. For units not in a broker's custody, you identify the units sold by your records at the time of the sale, otherwise first-in, first-out. Brokers report sales on Form 1099-DA starting January 1, 2025, with basis for covered securities from January 1, 2026.

Notice 2014-21 Q&A 1, 7; Reg. 1.1012-1(j); Reg. 1.6045-1(q)

Sources

Authority, strongest first

  1. Final regulation Treas. Reg. § 1.1012-1
  2. Final regulation Treas. Reg. § 1.6045-1
  3. Notice Notice 2014-21, 2014-16 I.R.B. 938
  4. Form instructions Instructions for Form 1099-DA (2026)

Where the numbers come from

Checked

Every figure above comes from the source listed here, with the date we checked it and the date it is due for a re-check.

  • Capital gains: long term holding more than months
    IRC 1222(3) checked 2026-10-19, review by 2027-01-19
  • Digital assets: broker reporting start dates
    Treas. Reg. 1.6045-1(q) checked 2026-10-22, review by 2027-01-19
  • Equity comp: wash sale window days
    IRC 1091(a) checked 2026-10-19, review by 2027-01-19
  • Capital gains: rates
    26 U.S.C. sec. 1(h) checked 2026-09-24, review by 2027-01-22
  • Itemized deductions: capital loss limit vs ordinary income
    26 U.S.C. sec. 1211(b) checked 2026-09-24, review by 2027-01-22