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: test yourself

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

Test yourself

15 quick checks. Think first, then open the answer.

  1. You bought shares on March 3 and sell them on March 3 of the next year at a gain. The gain is:

    1. Long-term
    2. Short-term
    3. Tax-exempt
    Show the answer

    B. The holding period starts the day after the purchase and includes the day of the sale, so exactly a year is not more than a year.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1222
    2. Publication IRS Publication 550 (2025)
  2. Long-term capital gains are generally taxed at:

    1. A flat rate that never changes
    2. Your ordinary rates
    3. 0%, 15% or 20%, depending on your taxable income
    Show the answer

    C. Net capital gain gets the lower rates; short-term gain is taxed as ordinary income.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1
    2. Publication IRS Publication 550 (2025)
  3. Your basis in shares you bought is generally:

    1. What you paid plus the costs of buying
    2. Zero
    3. What the shares are worth today
    Show the answer

    A. Basis is your tax cost, so you are not taxed again on money you already paid tax on.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1012
    2. Publication IRS Publication 551 (Rev. December 2025)
  4. You have a net short-term loss and a net long-term gain. They:

    1. Never offset each other
    2. Offset each other, leaving a smaller net long-term gain
    3. Are both taxed in full
    Show the answer

    B. Net capital gain is net long-term gain over net short-term loss.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1222
    2. Form instructions Instructions for Schedule D (Form 1040) (2025)
  5. If your capital losses exceed your gains, you can deduct against other income up to:

    1. All of it in one year
    2. Nothing
    3. $3,000 a year (half that if married filing separately)
    Show the answer

    C. The rest carries forward, keeping its short-term or long-term label.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1211
    2. Code I.R.C. § 1212
  6. A capital loss carryover:

    1. Carries forward with no time limit for an individual
    2. Can only be used against wages
    3. Expires after five years
    Show the answer

    A. It keeps carrying until it is used up.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1212
    2. Form instructions Instructions for Schedule D (Form 1040) (2025)
  7. A wash sale can occur if you buy substantially identical stock:

    1. Only after the sale
    2. Within 30 days before or after a loss sale
    3. Only in the same account
    Show the answer

    B. The window runs 30 days on each side of the sale.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1091
    2. Final regulation Treas. Reg. § 1.1091-1
  8. Your IRA buys the same stock a week after you sell it at a loss in a taxable account. The loss is:

    1. Added to the IRA's basis
    2. Deductible
    3. Disallowed, and the IRA's basis does not go up
    Show the answer

    C. Rev. Rul. 2008-5: the loss is disallowed and the IRA's basis is not increased, so the loss is not preserved.

    Sources

    Authority, strongest first

    1. Revenue ruling Rev. Rul. 2008-5, 2008-3 I.R.B. 271
    2. Publication IRS Publication 550 (2025)
  9. A wash sale loss that is disallowed on a purchase in a taxable account is:

    1. Added to the basis of the replacement shares
    2. Added to your wages
    3. Gone forever
    Show the answer

    A. The loss is postponed, and the holding period carries over.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1091
    2. Code I.R.C. § 1223
  10. Your broker is required to report a wash sale only when:

    1. Any account you own had a matching purchase
    2. The sale and the purchase are in the same account for the same security
    3. You ask for it
    Show the answer

    B. Other accounts, IRAs, spouses and other firms are yours to track.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 6045
    2. Form instructions Instructions for Form 1099-B (2026)
  11. Shares you inherit and sell five months after the death are:

    1. Not taxable
    2. Short-term
    3. Treated as long-term
    Show the answer

    C. Property acquired from a decedent and sold within a year of death is treated as held more than a year.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1223
    2. Code I.R.C. § 1014
  12. Your basis in inherited stock is generally:

    1. Its value on the date of death
    2. Zero
    3. The decedent's cost
    Show the answer

    A. The step-up (or step-down) to date-of-death value, or the alternate valuation date if the estate chose it.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1014
    2. Publication IRS Publication 551 (Rev. December 2025)
  13. A gift's value on the day you got it was below the donor's basis, and you sell for a price between the two. You have:

    1. A gain
    2. A loss
    3. Neither a gain nor a loss
    Show the answer

    C. The donor's basis is used to test for gain and the lower value for loss; between them, neither.

    Sources

    Authority, strongest first

    1. Code I.R.C. § 1015
    2. Publication IRS Publication 551 (Rev. December 2025)
  14. You sell crypto from your own wallet and haven't identified which units. The units sold are treated as:

    1. Chosen by the IRS
    2. The newest first
    3. The oldest first
    Show the answer

    C. Without an adequate identification the earliest units are treated as sold first.

    Sources

    Authority, strongest first

    1. Final regulation Treas. Reg. § 1.1012-1
    2. Revenue procedure Rev. Proc. 2024-28
  15. Which box on Form 8949 is for long-term digital asset sales where the broker reported basis to the IRS?

    1. Box J
    2. Box F
    3. Box D
    Show the answer

    A. Digital asset transactions use boxes G through L; box J is the long-term one with basis reported.

    Sources

    Authority, strongest first

    1. Form instructions Instructions for Form 8949 (2025)

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.

  • 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