FullStack Alpha
Trading Lessons

Wash Sale Rule With a Stock Loss and a Repurchase Timeline

FullStack Alpha Editorial Team

Reviewed by Jay Rocco, Chief Editor

15 min read
Listen · 3 min audio briefing

Wash Sale Rule: Why Your Tax Loss Might Not Count

0:00 / 2:51
Read the transcript

You sold a loser to save on taxes. Then you bought it back the next week. Surprise. That loss might not count this year.

This is FullStack Alpha, and this is the wash sale rule, with a stock loss and a repurchase timeline.

Here's the rule in plain English. If you sell a stock at a loss, and buy the same or a nearly identical stock within thirty days before or after that sale, the IRS can disallow the loss for now. It's not gone forever. It usually gets added to the cost of the new shares. But you can't use it the way you planned this year.

Five things you should know.
One. It only hits losses. Gains are never wash sales.
Two. It works backwards too. A buy in the thirty days before the sale counts.
Three. That's a sixty-one day window in total, counting the sale day.
Four. It can cover part of a position. Only the shares you rebought are affected.
Five. It can cross accounts, including an IRA or a spouse's account. Ask a tax professional about yours.

Three things to watch out for.
One. Automatic investing. A scheduled buy can land right inside the window.
Two. Employer stock. Shares vesting near a loss sale can count as a repurchase.
Three. Multiple brokers. Each one only sees its own account, so nobody warns you.

Quick example. You buy a hundred shares at fifty dollars. They fall to forty, and you sell for a thousand dollar loss. Twelve days later you buy them back at forty-one. That's inside the window. The thousand dollar loss is disallowed for now and added to your new cost. Your new shares now cost fifty-one each for tax purposes, not forty-one.

One more thing most beginners miss. Keep your own records. Your broker's tax form may not catch a wash sale that crosses two different brokers or an IRA. A simple spreadsheet with the date, the shares, and the price of every buy and sell can save you a headache at tax time. Your tax professional will thank you for it.

A question people ask all the time. Does a wash sale mean I lose the loss forever? Usually not. The disallowed loss is generally added to the cost of the new shares, so it can count later when you sell them. It's a delay, but it can still mess up this year's plans.

"In the end, we get it all." ... Ace Rothstein.

The house always tracks the calendar. You should too.

Quick recap. Losses only. Thirty days before and after. Every account counts. And a simple log of your buys and sells is your best protection.

Your move tonight. Before you sell any loser for taxes, check your last thirty days of buys, and set a reminder not to rebuy for thirty-one days.

The full lesson, with the repurchase timeline, is right below this player. This is education, not tax or financial advice. Your market edge starts with the right tool. Stay alpha.

Wash Sale Rule With a Stock Loss and a Repurchase Timeline

Updated 2026

Quick Answer: The wash sale rule blocks your tax loss when you sell a stock at a loss and buy the same or a substantially identical stock within 30 days before or after the sale. That is a 61-day window, counting the sale day. The loss is not gone forever. It usually gets added to the cost of the replacement shares, so it shows up later.

Most beginners learn this rule after the fact, when a broker form shows a loss that was "disallowed" (not allowed on this year's return). This lesson gives you a clean timeline so you can read the wash sale rule with a stock loss and a repurchase timeline before the tax form surprises you.

Key Takeaways

  • The window is 61 days: 30 days before the sale, the sale day, and 30 days after, per IRS Publication 550.
  • A disallowed loss is generally added to the basis (your cost) of the replacement shares, and the holding period carries over too.
  • A loss sale on December 31, 2026 is not safe if you rebuy in early January. The first generally safe repurchase date is January 31, 2027.
  • Your broker's Form 1099-B mostly tracks the same stock in the same account. Buys in an IRA, a spouse's account, or another broker may not appear there.
  • The IRS explains the rule on Tax Topic 409, and the statute is Internal Revenue Code section 1091.

What Triggers a Wash Sale Rule Problem?

A wash sale happens when you sell shares at a loss and, inside the 61-day window, you buy the same stock or a substantially identical one. Three pieces must line up: a loss sale, a replacement purchase, and a date inside the window.

What Triggers a Wash Sale Rule Problem?

The replacement does not have to be a plain share purchase. Under section 1091, buying a contract or option to acquire the same stock can count too. So can a fully taxable trade into it. Stock you get through work, such as vesting company shares, may also count if it lands near a loss sale. Ask a tax professional about your own situation.

Think of a grocery store coupon. If you return a jar of sauce for a refund and buy the same jar ten minutes later, the clerk may say the return never really happened. The tax rule reasons the same way. You never truly left the position.

Decision rule: if you sold at a loss, ask one question before buying anything: "Did I own, or will I own, this same stock within 30 days on either side?"

What if the sale was a gain?

The rule only applies to losses. If you sell at a profit and buy back the same day, there is no wash sale. The gain is taxed as usual.

How Do the 30 Days Before and After Work in the Wash Sale Rule?

The window runs 30 days before the loss sale and 30 days after it. Add the sale day and you have 61 days. A purchase anywhere in that span can trigger it.

The "before" side catches beginners most. If you bought 50 shares on March 1 and sold 50 other shares of the same stock at a loss on March 20, the March 1 purchase is inside the window. It counts even though it came first.

For a sale on December 15, 2026, the 30 days after run from December 16 through January 14. So January 15, 2027 is generally the first safe day to repurchase. Always count days from the trade date, not the settlement date, and check with a tax professional on edge cases.

Does the window cross the calendar year?

Yes. A loss sale on December 31, 2026 has a window from December 1, 2026 to January 30, 2027. A January purchase does not escape it.

Loss sale date Window starts Window ends First generally safe rebuy
Dec 15, 2026 Nov 15, 2026 Jan 14, 2027 Jan 15, 2027
Dec 31, 2026 Dec 1, 2026 Jan 30, 2027 Jan 31, 2027

What Can Happen to Basis Under the Wash Sale Rule?

When a wash sale applies, the blocked loss usually gets added to the basis of the replacement shares. Basis is simply what you paid for the shares, used later to figure gain or loss. IRS Publication 550 also says your holding period for the new shares includes the time you held the old ones.

Think of a kitchen scale. You put a bowl on it, then press "tare" to zero it out. Adding the disallowed loss to basis is like raising the starting weight. Your future gain gets smaller, or your future loss gets bigger, by that amount.

The IRS says a wash sale loss is not deductible for ordinary investors. The exception is a securities dealer whose loss came from the normal course of that business. Most people reading this are not dealers.

Common mistake: assuming the loss vanished. It did not. It moved into the cost of the new lot, and you get the benefit when you finally sell that lot outside a wash sale.

What Statements and Transactions Should You Review for a Wash Sale Rule Check?

Review your broker's transaction export, your Form 1099-B, and the trade history of every other account you or your spouse control. Your broker reports what it can match. It cannot see everything.

The 1099-B generally focuses on identical stock bought and sold in the same account. A rebuy in an IRA, a spouse's account, or a different brokerage may not show up. The rule can still apply to it.

Here is what to pull:

  • The transaction export from your broker (a CSV file you can open in Google Sheets).
  • Form 1099-B and any wash sale adjustment columns.
  • Trade history from every other account for the same ticker.
  • Any dividend reinvestment records, since reinvested dividends buy small lots automatically.
  • Employer stock records, if your company pays you in shares.

Edge case: dividend reinvestment is a quiet trap. A small automatic buy 10 days after your loss sale can make part of the loss a wash sale.

If your broker export is confusing, the Stock Average Calculator helps you check weighted cost basis across several lots.

What Does Each Term Mean in the Wash Sale Rule? A Plain-English Glossary

Every term below shows up on broker forms and in the wash sale rule. Learn these seven and the paperwork stops looking like a foreign language. The full A to Z list lives in the stock market terms glossary.

What Does Each Term Mean in the Wash Sale Rule? A Plain-English Glossary

Term Plain-English meaning
Wash sale A loss sale followed by a buy of the same or a substantially identical stock inside the 61-day window
Disallowed loss The loss the IRS will not let you use on this year's return
Cost basis What you paid for shares, used to figure gain or loss
Tax lot One purchase of shares, tracked by date and price
Holding period How long you owned the shares, which sets short-term or long-term tax
Substantially identical Stock or securities so alike the IRS treats them as the same thing
Form 1099-B The broker form that reports your sales to you and the IRS

Substantially identical is the fuzzy one. The same company's common stock is clearly covered. Funds are a gray area. Two funds tracking the same index can raise a closer question, as Nottingham CPA notes. When unsure, ask a tax professional.

How Do You Check the Wash Sale Rule Step by Step?

Work from the loss sale outward. Check every purchase date around it, then fix your records. The steps below take about 20 minutes per sale once you get used to them.

  1. Download your transaction export. Log in to your broker, find the history or tax documents page, and export the CSV. This gives you every date, quantity and price in one place.
  2. Open it in Google Sheets. Sort by ticker, then by trade date. Sorting puts all trades of one stock next to each other.
  3. Mark the loss sale. Highlight the row where proceeds were lower than basis. This is your anchor date.
  4. Count 30 days back and 30 days forward. Add two columns, "window start" and "window end." This draws the 61-day box.
  5. Find any buys inside the box. Include reinvested dividends and employer share grants. Each one is a possible replacement.
  6. Match shares. The rule applies to the number of shares bought back, up to the number sold at a loss. Selling 100 and rebuying 40 means only 40 shares are affected.
  7. Adjust the basis. Add the disallowed loss per share to the replacement lot's cost. Keep a note of the date and amount.
  8. Check other accounts. Search IRA, spouse and second-broker histories for the same ticker. This catches what the 1099-B misses.
  9. Compare to Form 1099-B. Note where your sheet and the broker differ and why.

Before you buy, an order preview screen is a good moment to ask the window question. The related the how to buy stocks for beginners lesson covers that screen.

What Does a Wash Sale Rule Example Look Like With Real Numbers?

This is a hypothetical example using a fictional ticker, ZLNT. The numbers are made up to show the math, not to predict anything.

Setup (taxable account, all trade-date prices):

  • Nov 3, 2026: Buy 100 shares of ZLNT at $50.00 per share. Cost: $5,000.
  • Dec 10, 2026: Sell all 100 shares at $42.00. Proceeds: $4,200. Loss: $800.
  • Dec 22, 2026: Buy 100 shares of ZLNT at $44.00. Cost: $4,400.

Check the window. The loss sale is Dec 10. The window runs Nov 10 through Jan 9, 2027. The Dec 22 buy is 12 days after the sale, so it is inside.

Result. The $800 loss is disallowed. It is added to the new lot's basis:

Hunting for a lower price? Check our AI stock tool deals page.

  • New lot cost: $4,400
  • Add disallowed loss: $800
  • Adjusted basis: $5,200, or $52.00 per share

The holding period also carries over. The new shares are treated as held since Nov 3, 2026, per IRS Publication 550.

Now the partial case. Suppose you rebought only 40 shares on Dec 22, at $44.00 each. Then only 40 of the 100 sold shares are wash sale shares.

  • Disallowed loss: 40 shares x $8.00 loss per share = $320
  • Allowed loss: 60 shares x $8.00 = $480
  • New 40-share lot basis: $1,760 + $320 = $2,080, or $52.00 per share

Safe version. If you waited to Jan 10, 2027 (the day after the window ends on Jan 9), the $800 loss would be allowed on the 2026 return. Waiting costs you market exposure, and the price could move in either direction. That is a risk choice, not a tax rule.

The Stock Profit Calculator can double-check the raw gain or loss on each sale.

When Should You Skip or Stop Acting on the Wash Sale Rule?

Do not rush to "fix" anything until you confirm a wash sale actually happened. Skip the adjustment when there is no loss, no replacement buy, or the buy is outside the window.

Skip or pause in these cases:

  • You sold at a gain. The rule does not apply.
  • The buy was 31 or more days after the sale. Count carefully using trade dates.
  • The holding is in an IRA only. Losses inside an IRA are not deducted anyway. The tricky case is a taxable loss plus an IRA rebuy, which needs a tax professional.
  • The replacement is a different company. Different stock is generally not substantially identical.
  • You are unsure whether two funds are "the same." Do not guess. This is a gray area. Ask a pro.

Stop and call a professional if: you have employer shares vesting nearby, options on the same stock, a spouse trading the same ticker, or a loss large enough to change your tax bill in a real way. This lesson is education, not tax advice.

What Are the Biggest Wash Sale Rule Mistakes Beginners Make?

The biggest mistakes come from counting days wrong and trusting one account's records. Here are five, with fixes.

What Are the Biggest Wash Sale Rule Mistakes Beginners Make?

Mistake Fix
Counting only 30 days after the sale Count 30 before and 30 after. That is 61 days with the sale day.
Thinking January rebuys escape a December loss The window crosses the year. Rebuy on day 31 or later.
Trusting only the 1099-B Review every account, including IRA, spouse and other brokers.
Forgetting dividend reinvestment Turn off auto-reinvest on a stock you plan to sell at a loss, or log those small buys.
Assuming "similar" is safe Similar is not an IRS safe harbor. Choose clearly different holdings or ask a pro.

Some traders chase a falling knife by rebuying fast after a drop. That habit and this rule collide often. A pause is a cheap form of risk management.

What If I Want to Stay Invested After Selling at a Loss?

You can hold a different, non-identical investment while you wait out the 61-day window. Many people swap a single stock for a broad sector fund, as Chase describes. This keeps some exposure without buying the same security.

This is not a guaranteed safe harbor. A sector fund that holds mostly your old stock could draw questions. A fund tracking a materially different index is a cleaner choice than one tracking the same index.

Ask yourself first: do I still believe in the original reason for owning it? If your thesis is broken, selling and moving on is a fair decision. The sell checklist in lesson P19 covers that.

Also know the rule has a limit. Taxes should not drive the whole decision. Discipline beats prediction, and a trade made only for a tax break can still lose money.

How Do You Practice the Wash Sale Rule Timeline?

Practice on a fake ledger before you touch your real records. Build this exercise in Google Sheets in about 15 minutes.

  1. Create columns: Date, Ticker, Buy/Sell, Shares, Price, Account.
  2. Enter these hypothetical trades for fictional ticker BRQX: Oct 5, 2026 buy 60 at $30.00; Nov 18 sell 60 at $24.00; Dec 2 buy 30 at $26.00; Dec 15 buy 30 at $27.00.
  3. Add "window start" (sale date minus 30) and "window end" (sale date plus 30).
  4. Flag every buy that falls inside the window. Which ones are they?
  5. Compute the loss: 60 x ($30.00 - $24.00) = $360.
  6. Decide how many shares are affected. Check your answer: both rebuys are inside the window, and 60 shares were rebought, so the full $360 is disallowed.
  7. Split the $360 across the two new lots by shares. Each lot gets $180.
  8. Write the new basis per lot and the earliest safe rebuy date for the original sale.

Checklist for real trades: loss sale dated, window dated, every account checked, dividend reinvestments logged, basis adjusted, broker form compared, questions saved for a tax professional.

Quick Recap: What Should You Keep in Mind About the Wash Sale Rule?

  • The window is 61 days, counting 30 before, the sale day, and 30 after.
  • A blocked loss usually moves into the new lot's basis and holding period.
  • Year-end sales cross into January, so count carefully.
  • Your broker may miss purchases in other accounts.
  • Substantially identical funds and employer shares need extra care.

Top 5 Things You Should Know About the Wash Sale Rule

Top 5 Things You Should Know About the Wash Sale Rule

  1. It only hits losses. Gains are never wash sales.
  2. It works backward too. A buy before the sale counts.
  3. It can cover partial lots. Only the rebought share count is affected.
  4. It crosses accounts. Taxable, IRA and spouse accounts may all matter. Ask a tax professional about yours.
  5. This lesson covers stocks only. Crypto and other digital assets follow separate rules, so check those with a tax professional. Stock timing is explained in IRS Tax Topic 409.

Things to Look Out For With the Wash Sale Rule

Watch the edges, because that is where the surprises live. These are the places where it shows up quietly.

  • Employer equity. Vesting shares near a loss sale can create a replacement purchase.
  • Automatic investing. Scheduled buys, like the dollar cost averaging calendar in the dollar cost averaging lesson, can land inside a window.
  • Rebalancing trades. The quarterly rebalancing checklist in P18 may sell a loser while another buy sits nearby.
  • Day traders. Frequent trades in the same stock make wash sales common. Records get messy fast, so log every trade.
  • Multiple brokers. Each broker sees only its own account.

Which Tools Help After This Lesson?

A broker export, Google Sheets and IRS Publication 550 do most of the work. They are free, and you control the records.

  • Broker transaction export: your source of truth for dates, shares and prices. Most brokers offer history downloads.
  • Google Sheets: where you build the window columns.
  • IRS Publication 550: the primary source for basis and holding period.
  • TradingView: helpful to see the price chart around each trade date.
  • Finviz and Trade Ideas: scanners for finding stocks. They do not do tax work.
  • Free trading tools and calculators: quick math checks.

Optional AI step. Paste hypothetical or redacted data (remove names and account numbers) into ChatGPT with the IRS text, and use this prompt: "Lay out these hypothetical tax lots by date and identify the entries I should verify against IRS Publication 550 or with a tax professional." Treat the output as a to-do list, not a ruling. AI can misread dates, so check every line yourself.

What Should You Learn Next?

The next lesson in the course builds on your finished position workflow: you now have a trade history and a review checklist, so the next step is putting your whole process into a repeatable routine. Take your fake BRQX ledger with you.

This is education, not financial advice. Talk to a qualified tax professional about your own situation.

Your market edge starts with the right tool. Stay alpha.

Conclusion

The wash sale rule is a calendar problem, not a math problem. Count 30 days before, the sale day and 30 days after, and the rest follows. A blocked loss moves into the new shares' basis, so it is delayed, not erased.

Your next actions are simple. Export your broker history this week, sort by ticker, and mark every loss sale. Draw the 61-day box, check every account, and log the basis change. Then run the BRQX practice ledger once so the steps feel normal.

Systems over hacks. A clean spreadsheet beats a lucky memory every time. For more tools to help your process, browse the 200+ AI stock tools directory.

References

  1. Publication 550, Investment Income and Expenses. irs.gov.
  2. Topic no. 409, Capital gains and losses. irs.gov.

Prices are subject to change as fast as AI technology.

The Alpha Report

We test the tools. You get the verdict.

One email a week. What we tested, what scored, and what we'd skip. Written for traders, not for clicks.

No spam. Unsubscribe anytime.

Frequently asked

The FullStack Alpha Network

Four sites, one standard. Tested tools, no paid rankings.

  • You are here

    AIStockPickerApp.com

    Editorial reviews, deep dives and Alpha Scores for AI stock tools.

  • Directory

    AIStockPickerApps.com

    A directory of 200+ AI stock tools, filterable by category and price.

    Browse the directory
  • Trading Bots

    AIStockTradingBots.com

    AI trading bots, broker APIs, backtesting and paper trading news.

    See the trading bots
  • Tool Finder

    BestAITradingTools.com

    Interactive finders and educator workflows that match you to AI trading tools.

    Find your tool