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: walk me through it

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

Back to the questions

Your path

Selling your home

  1. A sale of your main home can qualify to exclude up to $250,000 of gain ($500,000 on many joint returns) if you owned and used it as your main home for at least 2 of the last 5 years.
  2. The home sale hub on this site walks through the tests, partial exclusions and the records to gather.
  3. Report the sale on Form 8949 if you cannot exclude all of the gain or you received a Form 1099-S. Gain you cannot exclude is a capital gain taxed under the rules on this page.
  4. Basis includes the purchase price, costs of buying and improvements. Keep the closing statements from the purchase and the sale.

Read next

Start over

Your path

Rentals, business assets and collectibles

  1. Property used in a business, or real property used in a rental business, is excluded from the capital asset definition. Its sale is reported on a different form from the one in this hub's main flow.
  2. Collectibles (art, coins, some metals) held more than 12 months are taxed at up to 28%. The part of a real property gain that comes from depreciation is taxed at up to 25%. The Schedule D instructions have worksheets for both.
  3. A swap of business or investment real property for like-kind real property may defer the gain if it follows the deadlines. The like-kind exchange hub covers that.
  4. This hub does not cover these sales in depth. Use it for the holding period, basis and netting rules they share with other sales.

Read next

Start over

Your path

A loss sale and a close purchase: the wash-sale rule

  1. If you sell stock or securities at a loss and buy substantially identical ones within 30 days before or after the sale, the loss is disallowed for now and added to the basis of the new shares.
  2. A purchase in your IRA or Roth IRA counts, and then the loss disappears because the IRA's basis does not go up. The IRS says a purchase by your spouse counts too, though that point is less settled. A scheduled investment or a dividend reinvestment is a purchase.
  3. Your broker is required to report a wash sale only when the sale and purchase are in the same account for the same security. You catch the rest.
  4. Report the disallowed loss on Form 8949 with code W, with the amount as a positive number in column (g).
  5. The holding period of the replacement shares includes the time you held the shares you sold.

Read next

Start over

Your path

Report your sales and fix the basis

  1. Gather the Form 1099-B (and Form 1099-DA, if any) for each account. The IRS has the same copies.
  2. Check the dates and count the holding period from the day after you acquired it; more than 12 months is long-term.
  3. Compare the basis on each form with your own records. If it is blank or wrong, fix it on Form 8949 with code B. Shares from an employer plan usually need this fix.
  4. Use the Form 8949 box that matches the form: A, B or C for short-term, D, E or F for long-term. Add any wash sale loss with code W.
  5. Total each part onto Schedule D. A net capital loss over the yearly limit carries forward; keep the worksheet.

Read next

Start over

Your path

Crypto held with a platform that sends a Form 1099-DA

  1. Brokers report gross proceeds from digital asset sales on or after January 1, 2025. They report basis only for digital assets they acquired for you in a custodial account on or after January 1, 2026. Older units are noncovered, so the basis may be blank.
  2. Compare the form with your own records. The basis is the cost of the units, including fees. If the form shows no basis or a wrong one, adjust it on Form 8949.
  3. Use the digital asset boxes: G, H or I for short-term, J, K or L for long-term. Use G or J when the form shows basis reported to the IRS, and H or K when it does not.
  4. If you have units in more than one account, tell each broker which units to sell. Without that, the broker uses its default, which is first-in, first-out.
  5. Answer the digital assets question on Form 1040. Totals go to Schedule D.

Read next

Start over

Your path

Crypto in a wallet you control

  1. Crypto is property. Selling it, trading it for other coins and spending it are all dispositions that produce a gain or a loss. Moving coins between wallets you own is, on our reading, not a disposition.
  2. For units not held with a broker, record which units you sell no later than the date and time of the sale, with an identifier like purchase date and price. If you do not, the oldest units are treated as sold first. Tracking is wallet by wallet or account by account from January 1, 2025.
  3. Your basis is what you paid, including fees. If you received coins as pay, it is their dollar value on the day you received them.
  4. Report each disposition on Form 8949 in box I (short-term) or L (long-term) when no Form 1099-DA came, and total on Schedule D.
  5. Mining or staking payouts create income when received; that is a separate question this hub does not cover.

Read next

Start over

Your path

Using a capital loss

  1. Capital losses first offset capital gains, short-term against short-term and long-term against long-term, then the two results against each other.
  2. If you still have a net loss, you can deduct up to $3,000 against other income this year (half that if married filing separately).
  3. The rest carries forward with no end date and keeps its short-term or long-term label. Keep this year's Schedule D and the carryover worksheet.
  4. Losses on personal-use property (a car, furniture, your own home) are not deductible, and a wash sale loss is postponed. A security that becomes completely worthless is treated as sold on the last day of the year.
  5. If you filed jointly before and file separately now, a carryover from the joint return can be deducted only by the spouse who had the loss.

Read next

Start over

Your path

A gift or an inheritance: your starting point

  1. A gift generally keeps the donor's basis, and you add the donor's holding period. If the gift was worth less than the donor's basis and you sell at a loss, your basis for the loss is the lower value on the day of the gift. A sale in between gives neither gain nor loss.
  2. Inherited property generally takes its fair market value on the date of death (or the alternate valuation date). Its holding period is long-term in every case, and Form 8949 asks for INHERITED where the date acquired goes.
  3. Ask the donor for the cost records, the date of the gift and its value that day. Ask the executor for the date-of-death values and Schedule A of Form 8971, if one was sent.
  4. Report the sale on Form 8949 and Schedule D like any other sale. Keep the records that support your basis.

Read next

Start over

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
  • Digital assets: per wallet basis date
    Treas. Reg. 1.1012-1(j) 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
  • Home sale: ownership use test years
    IRC 121(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
  • Home sale exclusion: maximum gain excluded
    26 U.S.C. sec. 121(b) 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