Capital Gains and the Wash-Sale Rule
Capital gains and wash sales: test yourself
Test yourself
15 quick checks. Think first, then open the answer.
You bought shares on March 3 and sell them on March 3 of the next year at a gain. The gain is:
- Long-term
- Short-term
- 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.
Authority, strongest first
- Code I.R.C. § 1222
- Publication IRS Publication 550 (2025)
Long-term capital gains are generally taxed at:
- A flat rate that never changes
- Your ordinary rates
- 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.
Authority, strongest first
- Code I.R.C. § 1
- Publication IRS Publication 550 (2025)
Your basis in shares you bought is generally:
- What you paid plus the costs of buying
- Zero
- 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.
Authority, strongest first
- Code I.R.C. § 1012
- Publication IRS Publication 551 (Rev. December 2025)
You have a net short-term loss and a net long-term gain. They:
- Never offset each other
- Offset each other, leaving a smaller net long-term gain
- Are both taxed in full
Show the answer
B. Net capital gain is net long-term gain over net short-term loss.
Authority, strongest first
- Code I.R.C. § 1222
- Form instructions Instructions for Schedule D (Form 1040) (2025)
If your capital losses exceed your gains, you can deduct against other income up to:
- All of it in one year
- Nothing
- $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
- Code I.R.C. § 1211
- Code I.R.C. § 1212
A capital loss carryover:
- Carries forward with no time limit for an individual
- Can only be used against wages
- Expires after five years
Show the answer
A. It keeps carrying until it is used up.
Authority, strongest first
- Code I.R.C. § 1212
- Form instructions Instructions for Schedule D (Form 1040) (2025)
A wash sale can occur if you buy substantially identical stock:
- Only after the sale
- Within 30 days before or after a loss sale
- Only in the same account
Show the answer
B. The window runs 30 days on each side of the sale.
Authority, strongest first
- Code I.R.C. § 1091
- Final regulation Treas. Reg. § 1.1091-1
Your IRA buys the same stock a week after you sell it at a loss in a taxable account. The loss is:
- Added to the IRA's basis
- Deductible
- 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.
Authority, strongest first
- Revenue ruling Rev. Rul. 2008-5, 2008-3 I.R.B. 271
- Publication IRS Publication 550 (2025)
A wash sale loss that is disallowed on a purchase in a taxable account is:
- Added to the basis of the replacement shares
- Added to your wages
- Gone forever
Show the answer
A. The loss is postponed, and the holding period carries over.
Sources
Authority, strongest first
- Code I.R.C. § 1091
- Code I.R.C. § 1223
Your broker is required to report a wash sale only when:
- Any account you own had a matching purchase
- The sale and the purchase are in the same account for the same security
- You ask for it
Show the answer
B. Other accounts, IRAs, spouses and other firms are yours to track.
Authority, strongest first
- Code I.R.C. § 6045
- Form instructions Instructions for Form 1099-B (2026)
Shares you inherit and sell five months after the death are:
- Not taxable
- Short-term
- 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
- Code I.R.C. § 1223
- Code I.R.C. § 1014
Your basis in inherited stock is generally:
- Its value on the date of death
- Zero
- 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.
Authority, strongest first
- Code I.R.C. § 1014
- Publication IRS Publication 551 (Rev. December 2025)
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:
- A gain
- A loss
- 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.
Authority, strongest first
- Code I.R.C. § 1015
- Publication IRS Publication 551 (Rev. December 2025)
You sell crypto from your own wallet and haven't identified which units. The units sold are treated as:
- Chosen by the IRS
- The newest first
- The oldest first
Show the answer
C. Without an adequate identification the earliest units are treated as sold first.
Authority, strongest first
- Final regulation Treas. Reg. § 1.1012-1
- Revenue procedure Rev. Proc. 2024-28
Which box on Form 8949 is for long-term digital asset sales where the broker reported basis to the IRS?
- Box J
- Box F
- Box D
Show the answer
A. Digital asset transactions use boxes G through L; box J is the long-term one with basis reported.
Authority, strongest first
- 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 daysIRC 1091(a) checked 2026-10-19, review by 2027-01-19
cf-2026:equity_comp.wash_sale_window_days - Capital gains: rates26 U.S.C. sec. 1(h) checked 2026-09-24, review by 2027-01-22
federal-2026:capital_gains.rates - Itemized deductions: capital loss limit vs ordinary income26 U.S.C. sec. 1211(b) checked 2026-09-24, review by 2027-01-22
federal-2026:itemized_deductions.capital_loss_limit_vs_ordinary_income