Short answer: yes. A wash sale can be triggered by a purchase in your own IRA or Roth IRA, and by a purchase your spouse makes in any account. If you sell shares at a loss and substantially identical shares are bought by you, your IRA or your spouse within 30 days before or after the sale, the loss is disallowed for now. In a taxable replacement purchase the loss is added to the new shares’ basis. In an IRA purchase, the IRS says that basis adjustment does not happen, so the loss can be lost for good. Your broker’s Form 1099-B can only see what happened inside one account, so the cross-account check is yours to run.

Tax-loss harvesting looks simple on a brokerage screen: sell the loser, book the loss, buy something similar so you stay invested. The trap is that the wash sale IRA spouse account problem hides outside the screen you are looking at. Your Roth IRA may have a recurring purchase of the same fund. Your spouse may have bought the same ETF in a different brokerage account last week.

This guide shows exactly which purchases count, what the loss does afterward, and how to build a 61-day timeline across every account in the household. It includes illustrative dollar examples, a partial-matching calculation taken from IRS Publication 550, and a decision path you can follow before you click “sell.” It does not recommend any security, predict returns, or replace a tax professional who can see your whole return.

What matters most before you sell anything

Five points decide almost every cross-account question. Read these first, then use the rest of the article to apply them to your own accounts.

  • The window is 61 days. It runs 30 days before the sale, the sale day itself, and 30 days after.
  • The buyer can be someone or something other than the account you sold from. The IRS says purchases by your IRA or Roth IRA and by your spouse both count.
  • The outcome differs by account type. A taxable replacement defers the loss into basis. An IRA replacement can erase the tax value of the loss.
  • The loss is disallowed, not penalized. No fine applies. You simply cannot deduct the loss on that sale for now.
  • Your broker does not see across accounts. Per Publication 550, Form 1099-B shows a wash sale loss only for covered securities with matching CUSIP numbers bought in the same account.

The first table shows where each type of replacement purchase lands. It is a map, not a verdict. Your own facts, especially whether the replacement is substantially identical, decide the answer.

Who bought replacement shares in the 61-day windowWash sale?What happens to the lossWho sees it
You, same taxable accountYesDisallowed; added to the new shares’ basisYour broker may flag it on Form 1099-B
You, a second taxable account at another brokerYesDisallowed; basis adjustment applies to the new sharesUsually nobody but you
You, in your traditional IRA or Roth IRAYes (Rev. Rul. 2008-5)Disallowed; no basis increase in the IRA, so the loss can vanishUsually nobody but you
Your spouse, in any taxable accountYes (Pub. 550)Disallowed; basis added to the replacement sharesUsually nobody but you and your spouse
Your spouse, in an IRALikely yes; see the note belowCombines both problemsUsually nobody but you
A friend, parent or adult childNot addressed as a wash sale by the sources readRelated-party rules may apply elsewhere; ask a tax professionaln/a

Illustrative summary of rules from IRC 1091, IRS Publication 550 and Revenue Ruling 2008-5. The spouse-IRA row combines two separate rules; the sources read do not walk through that exact fact pattern.

About that spouse-IRA row: Publication 550 says a spouse’s purchase counts, and Revenue Ruling 2008-5 says a purchase in your own IRA counts. The sources I reviewed do not describe a spouse buying inside the spouse’s own IRA. The cautious reading is that the same logic applies, and a tax professional should confirm it before you rely on a different answer.

How the wash sale rule works in plain terms

Section 1091 of the Internal Revenue Code disallows a loss on the sale of stock or securities if, within 30 days before or after the sale, the taxpayer acquires, or contracts or has an option to acquire, substantially identical stock or securities. Treasury Regulation 1.1091-1 describes the same 61-day window. The IRS explains the rule for ordinary investors in Publication 550.

Three words carry the weight: acquire, substantially identical and you. Acquisition includes ordinary purchases and also contracts or options to buy, according to the statute. Substantially identical is a facts-and-circumstances test with no bright-line list. And “you” is wider than it looks, which is the whole subject of this article.

Anatomy of the 61-day window

The window is easy to misread because it looks backward as well as forward. A purchase 20 days before you sell can taint the sale just as a purchase 20 days after can. That matters for investors who add to a position in early December and then harvest a loss on a different lot in late December.

Window pieceDates in this illustrative exampleWhy it matters
30 days before the saleNovember 15 to December 14, 2026A recent purchase, including by your IRA or spouse, can taint a later sale
Sale dayDecember 15, 2026The loss sale itself; same-day buys count too
30 days after the saleDecember 16, 2026 to January 14, 2027The usual “did I buy it back?” period
First day outside the windowJanuary 15, 2027The 31st day after the sale
Total length61 days (Nov. 15 through Jan. 14)Counted on calendar days, not trading days

Illustrative dates. The window crosses the tax-year line, so a January purchase can affect a loss you plan to claim for 2026.

Notice the tax-year wrinkle. A sale on December 15, 2026 is a 2026 transaction, but a purchase on January 5, 2027 still lands inside the window. Year-end harvesting is exactly where this surprises people, because the replacement purchase happens in the next calendar year and nobody connects the two events until the following spring.

What “acquired” includes

Regulation 1.1091-1(f) says acquired covers purchases and exchanges where the full gain or loss was recognized, plus contracts or options entered into during the window to acquire stock or securities in those ways. Publication 550 adds that the wash sale rules reach losses on contracts and options to buy or sell stock or securities, but not commodity futures contracts or foreign currencies.

In practice that means a call option on the same company, bought inside the window, can be a problem even if you never buy a single share. It also means a purchase does not have to be deliberate to count. Automatic investment plans, recurring contributions and dividend reinvestments are all purchases of shares. The sources I read do not address each of these separately, so treat them as potential triggers and check them against the table in the hidden-buyers section later in this article.

What “substantially identical” means, and what it does not

Publication 550 says stocks of different corporations are usually not substantially identical, although exceptions exist, such as certain reorganizations. Bonds or preferred stock usually are not substantially identical to the same company’s common stock, unless they are convertible into it. Preferred stock can be substantially identical if it is convertible into common stock and meets several conditions about voting rights, dividend restrictions and trading near the conversion ratio.

What the sources I read do not give you is a list of funds or ETFs that count. Two funds from different sponsors that track the same index are a common question. The IRS pages above do not rule on that fact pattern, so it is a judgment call that depends on the exact funds, and a tax professional is the right person to make it. Whatever you decide, write down your reasoning on the day you trade.

When your own IRA buys the replacement

Revenue Ruling 2008-5 is the IRS’s clearest statement on this point. In its facts, an investor owned 100 shares with a $1,000 basis, sold them on December 20, 2007 for $600, and on December 21 caused an IRA or Roth IRA set up for the investor’s benefit to buy 100 shares of the same stock. The IRS held that the $400 loss was disallowed under section 1091.

The reasoning is that the IRA is a separate tax-exempt trust, but the investor controlled the purchase, so the trust’s acquisition is treated as the investor’s own. The ruling then makes the second point that surprises people: the investor’s basis in the IRA is not increased under section 1091(d). Basis in an IRA exists only to the extent of nondeductible contributions. Publication 550 repeats the conclusion in plain language: the disallowed loss is not added to the basis of the new shares.

Compare the two outcomes in numbers. These figures are illustrative, not market data: 100 shares bought for $6,000, sold at $40 for $4,000, then rebought at $41 for $4,100 within the window.

PathLoss deductible in 2026Basis of the replacement sharesWhat happens to the $2,000 loss
No replacement in the window$2,000n/aCounts in 2026 (subject to the capital loss limit)
Replacement bought in a taxable account$0$6,100 ($6,000 + $4,100 − $4,000)Deferred; realized later when the new shares are sold
Replacement bought in an IRA or Roth IRA$0No change to IRA basisDisallowed with no basis increase, so it can disappear for good

Illustrative. Basis formula from IRC 1091(d) and Treasury Regulation 1.1091-2. IRA treatment from Revenue Ruling 2008-5 and IRS Publication 550.

What is the loss worth? That depends on what it offsets. Suppose you have $5,000 of other taxable gains. A $2,000 loss would reduce them to $3,000. At an illustrative 15% rate on long-term gains, tax falls from $750 to $450, a $300 difference. If the loss would have offset short-term gains taxed at an illustrative 24%, the same $2,000 is worth $480. In the IRA path, that tax value is not carried forward into any basis.

Wash sale IRA spouse account: Two bars showing a $2,000 loss deferred into basis in a taxable account versus lost when an
Same loss, same sale: the account that buys the replacement decides whether the loss survives.

Two details from the IRS materials are worth remembering. First, the ruling applies to both traditional and Roth IRAs. Second, the ruling expressly says it addresses only section 1091 and not any other issue, including section 4975, which covers prohibited transactions. It is a narrow ruling, and the sources I read do not discuss whether a purchase inside a 401(k), HSA or other account has the same result. If you hold the same fund in a workplace plan, ask a tax professional before assuming it does not count.

Where the IRA trap usually comes from

  • A recurring purchase set up for the same fund, such as a monthly Roth IRA contribution that buys on the 1st.
  • A year-end IRA contribution invested in the same fund you just harvested.
  • A target-date or index fund held in both the IRA and the taxable account.

None of these needs bad intent. The harvest happens in one brokerage window and the IRA runs on autopilot in another. If you tell yourself “I will turn off the recurring purchase,” do it before the sale and confirm the setting actually saved.

When your spouse buys the replacement

Publication 550 states it directly: if you sell stock and your spouse or a corporation you control buys substantially identical stock, you also have a wash sale. The statute’s text speaks of the taxpayer acquiring the shares, and the IRS reads that to include a spouse’s purchase.

Two things follow. First, filing status does not appear to be the dividing line in the Publication 550 language. A married couple filing separately should not assume that separate returns separate the accounts. Second, the loss limit still applies on top: the Schedule D instructions say you can deduct capital losses up to your capital gains plus $3,000 ($1,500 if married filing separately). Those instructions are written for tax year 2025, so check the current-year version when you file.

Here is an illustrative case. Ana sells 150 shares of an ETF for $12,000 that cost $15,000, a $3,000 loss. Twelve days later, her husband Ben’s automatic investment buys 12 shares of the same ETF for $984. Twelve of the 150 shares are matched. Using the same proportional approach the IRS shows in Publication 550, $3,000 × 12 ÷ 150 = $240 of the loss is disallowed and $2,760 remains deductible.

Spouse scenarioReplacement sharesResult (illustrative)What to check
Ben buys the same ETF in his taxable account the day after Ana’s sale150 sharesEntire $3,000 loss disallowedBoth brokerage accounts
Ben’s automatic plan buys 12 shares inside the window12 shares$240 disallowed, $2,760 deductibleAutomatic investment schedules
Ben buys a different company’s stock0 identical sharesNo wash sale on this factWhether the securities are actually different
Ben’s purchase is 31 days after the sale150 sharesOutside the window; no wash saleCount calendar days carefully
Ben bought 20 days before Ana sold150 sharesInside the window; loss disallowedPurchases before the sale, not only after

Illustrative numbers. Partial matching follows the approach in IRS Publication 550 and Treasury Regulation 1.1091-1.

The partial-wash row is the one to remember. A small automatic purchase does not necessarily wreck a harvest, but it does leave you with a messy basis record that your broker may not reflect. You need to carry that adjustment onto Form 8949 yourself.

Building a cross-account timeline that actually catches replacement shares

A single brokerage report cannot answer the question, so you have to assemble the picture. The method below takes about 20 minutes per harvest and replaces memory with a dated list.

  1. Write down the sale date and the exact security (name and ticker or CUSIP).
  2. Mark the first and last dates of the 61-day window on a calendar.
  3. List every account you control or your spouse controls: taxable, IRA, Roth IRA, and any account with automatic purchases.
  4. For each account, pull the transaction history for the window and look for the same security or a close substitute.
  5. Add anything scheduled to buy during the window, including recurring contributions.
  6. Decide what to do with any hit: wait until the window closes, replace with a clearly different holding, or accept the wash sale and track the basis.

If you fund a replacement purchase by moving cash between brokerages, remember that transfers take time, and a delayed transfer can push a purchase date later than you planned. Our guide to ACH transfer problems explains why, and the date that counts is the trade date on your confirmation.

The infographic below shows the same idea with sample dates. The sale happens in the taxable account. Three later events, all in other accounts or from other sources, land inside the window.

Timeline of a 61-day wash sale window with an IRA purchase, a spouse purchase and an automatic buy inside it
Replacement shares can arrive from accounts your broker never sees.
Record to gatherWhy it mattersWhere to get itHow long to keep it
Trade confirmations for the loss saleProves the sale date, shares and priceBroker trade historyAt least as long as the tax return can be examined; many keep records longer
Account statements for each IRA and Roth IRAShows purchases that could be replacementsIRA custodianSame
Your spouse’s statements for the windowShows purchases made by your spouseSpouse’s brokerSame
Automatic investment and dividend-reinvestment settingsShows scheduled purchasesAccount settings pagesScreenshots with the date
Your note on why a replacement is not substantially identicalSupports your position if askedYouWith the tax return

Retention periods are a personal-practice suggestion, not a statutory rule stated in the sources above; check IRS guidance on record keeping for your situation.

Partial wash sales and how the loss attaches to new shares

Real harvests rarely match share for share. You might sell 100 shares and buy back 40, or sell 200 shares in two lots and receive 15 shares from a reinvested dividend. Treasury Regulation 1.1091-1 handles this by matching shares in the order they were acquired, earliest first, and Publication 550 gives a worked example.

In the Publication 550 example, an investor bought 100 shares on September 20, 2024 for $5,000, then 50 more on December 13, 2024 for $2,750 and 25 more on December 20, 2024 for $1,125. The first 100 shares were sold on January 3, 2025 for a $1,000 loss. Because 75 identical shares were bought within 30 days, $750 of the loss is disallowed and $250 remains deductible.

PieceSharesCalculationResult
Shares sold at a loss100$5,000 cost; $1,000 loss$1,000 total loss
Replacement shares in the window75 (50 + 25)75 ÷ 100 of the loss$750 disallowed
Deductible part of the loss25 unmatched$1,000 − $750$250 deductible
Basis added to Dec. 13 shares502/3 of $750 = $500$2,750 + $500 = $3,250
Basis added to Dec. 20 shares251/3 of $750 = $250$1,125 + $250 = $1,375

Figures from the IRS Publication 550 example; arithmetic rechecked. The new shares also take the holding period of the shares sold, per Publication 550.

Two details deserve attention. The disallowed loss rides along in the basis of the replacement shares, so it is recovered when those shares are eventually sold, subject to the usual rules. And the replacement shares inherit the holding period of the shares you sold, which can turn what would have been a short-term sale into a long-term one. Neither feature helps when the replacement sits inside an IRA, because IRA shares get no such adjustment.

Hidden buyers: events that can put shares into the window

The statute asks whether stock or securities were acquired, not whether you meant to rebuy. That is why the problem tends to hide in routine plumbing. The table lists common sources of unexpected acquisitions and what to check. The “what the sources say” column is deliberately cautious: where the IRS pages I read did not address an item, I say so.

Possible triggerWhy it can matterWhat the sources sayWhat to do
Dividend reinvestmentEach reinvestment buys sharesStatute covers any acquisition; DRIPs not addressed separately in the pages readTurn off for the security during the window
Recurring purchase plan in an IRAIRA purchases count (Rev. Rul. 2008-5)Directly addressed for IRAsPause the plan before the sale
Spouse’s automatic investmentSpouse purchases count (Pub. 550)Directly addressed for spousesCompare schedules before harvesting
Call option or contract bought in the windowContracts and options countCovered by IRC 1091(a) and Pub. 550Include options in your inventory
Shares received through a reorganizationPossible exceptions to the identity rulePub. 550 mentions some reorganizationsAsk a tax professional
Purchase made 30 days before the saleWindow looks backward tooStatute and regulation say 30 days before or afterReview the prior month, not only the next

Pub. 550 = IRS Publication 550. Where “not addressed” appears, treat the item as a risk to verify rather than a safe harbor.

Funds, ETFs and the “substantially identical” judgment call

Investors harvesting losses in funds often swap into something similar to stay invested. Whether the swap is safe depends on whether the replacement is substantially identical to what you sold. The IRS has not published a list, and the pages I read give no bright-line test for funds.

Replacement ideaWhat the IRS sources sayRisk level in plain termsSafer habit
The same fund or ETFIdentical securitiesClearly inside the ruleWait 31 days or buy something clearly different
A different company’s common stockPublication 550: stocks of different corporations are usually not substantially identicalLower, with exceptionsDocument the reasoning
A fund from another sponsor tracking the same indexNo IRS list in the pages readUnclear; facts decideConsult a tax professional
The same company’s convertible preferred or bondsPub. 550: can be identical if convertible and conditions are metDepends on termsRead the security’s terms
An option on the same companyContracts and options countInside the ruleInclude in the inventory

No recommendation of any security is intended. This table describes what the cited IRS materials do and do not say.

What your broker reports, and what it cannot

Form 1099-B can include a wash sale loss disallowed in box 1g, but Publication 550 says this applies to covered securities with matching CUSIP numbers bought in the same account. It also says you cannot deduct a wash sale loss even if the form does not report it. In other words, the broker’s silence is not an all-clear.

Diagram: a broker's Form 1099-B sees same-account purchases while IRA, spouse and other-broker accounts stay hidden
Form 1099-B covers one account; the cross-account check is yours.

When a wash sale applies, the Form 8949 instructions say to report the sale and enter code W in column (f). In column (g), enter the amount of the nondeductible loss as a positive number. If the amount on your Form 1099-B is wrong, enter the correct amount instead, and if the correct nondeductible amount is smaller than the form shows, attach a statement explaining the difference.

A harvested loss can also shrink the tax you owe or raise a refund. If a refund results, double-check the account details on your return; our piece on tax refund direct deposit mistakes covers what goes wrong. And before you move holdings between brokerages to consolidate records, review the bank and account fee checklist for transfer charges.

StepForm or recordWhat to enterWho controls it
1. Identify the wash saleYour cross-account timelineDisallowed amount (full or partial)You
2. Report the saleForm 8949, Part I or IIProceeds, basis and the correct boxYou, with broker data
3. Mark the adjustmentForm 8949, columns (f) and (g)Code W and the disallowed loss as a positive numberYou
4. Total the yearSchedule DNet gain or loss, then the loss limitYou
5. Track the new basisYour own recordsReplacement shares’ basis increased by the disallowed loss (taxable accounts)You; broker may not know about cross-account links

From IRS Form 8949 instructions and Publication 550. IRA purchases do not receive a basis adjustment.

Who sets which rule

Mixing up law, regulation, ruling and broker practice is a quick way to over- or under-trust a statement. This table separates them for the points in this article.

Rule or pointSource typeApplies whenReader action
Loss disallowed on purchase within 30 days before or afterFederal statute, IRC 1091(a)Substantially identical stock or securities acquiredCount the 61 days
Matching order of sharesTreasury Regulation 1.1091-1Fewer or more shares bought than soldMatch earliest first
Basis adjustment on replacement sharesIRC 1091(d); Reg. 1.1091-2Taxable-account replacementAdd the disallowed loss to the basis
IRA purchase counts; no IRA basis increaseIRS Revenue Ruling 2008-5; Pub. 550IRA or Roth IRA buys identical stockTreat IRA purchases as replacements
Spouse purchase countsIRS Publication 550Spouse buys identical stockInclude the spouse’s accounts
Loss limit of $3,000 ($1,500 if married filing separately)Schedule D instructions (tax year 2025)Net capital loss for the yearCheck the current-year instructions
Wash sale flag on Form 1099-BBroker practice and IRS form rulesSame account, matching CUSIPDo not rely on it for cross-account sales

Federal rules only. State tax treatment of capital losses is not covered here and can differ.

A decision path before you harvest

Use the path below before every loss sale. It is built around the three questions that decide almost every case: what are you replacing, who else could be buying, and what does the loss do if the answer is wrong.

Decision path asking about other accounts, IRA purchases and automatic buys before a loss sale
Three questions before every harvest keep the loss from disappearing.
QuestionIf yesIf noWhy
Does any account I or my spouse control hold, or plan to buy, the same security in the 61-day window?Pause or change the planContinueSpouse and IRA purchases count
Is any of those accounts an IRA or Roth IRA?Treat the loss as potentially lost for goodBasis adjustment may defer insteadRev. Rul. 2008-5
Is the replacement clearly a different security?Document whyWait 31 days or accept the wash saleSubstantially identical is a facts test
Are automatic buys or reinvestments scheduled?Turn off before the saleContinueAcquisitions count, however triggered
Is the loss large enough to matter after the loss limit?Run the numbersConsider skipping the harvestSimple savings can be small

Decision aid, not tax advice. A tax professional can apply it to your return.

Alternatives to buying back the same holding

AlternativeWhat it costs youWhat it protectsMain caution
Wait 31 days before repurchasingTime out of the marketA clean loss deductionPrice can move while you wait
Buy a clearly different securityDifferent exposureMarket participationMust not be substantially identical
Buy the replacement first, then sell the original after 31 daysTwo positions for a monthAvoids a gap in exposureThe purchase before the sale is inside the window too
Skip the harvestForgoes the lossSimplicity and clean recordsMay cost more tax than harvesting
Accept a taxable-account wash sale deliberatelyDeferral instead of a deductionExposure and basis trackingNot the same as an IRA replacement

Illustrative framework. None of these is a recommendation to buy or sell any security.

The third row catches people off guard. Buying the replacement before selling the loser does not avoid the rule; the 30 days before the sale count as well. That is the reason a calendar is more useful than a gut feeling.

Mistakes and red flags

Red flagWhy it mattersWhat to askSafer next step
“My broker did not flag it, so we are fine.”1099-B coverage is limited to the same account and matching CUSIPsWhich accounts did the report not see?Run the cross-account timeline
A recurring IRA contribution is still activeEach buy can be a replacement purchaseDoes this plan buy the same fund?Pause before you sell
Different tickers, same index, assumed safeNo IRS list covers itWho made the judgment?Document or ask a tax professional
Harvesting in late December, buying in early JanuaryWindow spans tax yearsIs the January buy in any account?Wait until day 31
Spouse trades without telling youSpouse purchases countDo we share a harvest calendar?Agree on a no-buy list
Claiming the loss anywayThe loss is disallowed by statuteWhat do my statements show?Report with code W

Red flags describe tax-reporting risk, not investment advice.

Questions to ask before you click sell

  • Which accounts, mine and my spouse’s, could buy this security in the next 30 days?
  • Did anything buy it in the last 30 days, including automatic plans?
  • Is my replacement clearly a different security, and can I explain why in one sentence?
  • If an IRA buys it, am I comfortable that the loss may not come back?
  • What does my broker report, and what would it miss?
  • Is the tax value of this loss big enough to justify the tracking work?

Terms worth knowing

TermPlain-English meaningWhy it mattersCommon confusion
Wash saleA loss sale plus a purchase of substantially identical securities within the windowLoss is disallowedMany think only same-account buys count
61-day window30 days before, the sale day and 30 days afterSets the dates to checkPeople count only forward
Substantially identicalClose enough to be treated as the same investmentDecides whether a swap is safeNo official list of funds
BasisWhat your shares are treated as costing youDeferred losses live hereIRA basis works differently
CUSIPA security identifierBrokers match wash sales on itDifferent brokers do not share data
Form 8949 code WMarks a nondeductible wash sale lossNeeded when reportingDoes not mean you owe a penalty
Interesting fact

Revenue Ruling 2008-5 treats an IRA’s purchase as your own purchase by leaning on a 1933 court decision, Security First National Bank, which looked at who actually commands the account. A rule from the 1930s is the reason your Roth IRA’s recurring buy can erase a taxable-account loss today.

Frequently asked questions

Does buying the same fund in my Roth IRA cause a wash sale?

Yes, it can. Revenue Ruling 2008-5 holds that when you sell stock at a loss and an IRA or Roth IRA set up for your benefit buys substantially identical stock within 30 days before or after, the loss is disallowed under section 1091. IRS Publication 550 says the same thing and adds that the disallowed loss is not added to the basis of the IRA shares. The ruling is about stock, and the same logic is commonly applied to funds, so check whether your Roth IRA holds, or will buy, anything substantially identical to what you sold. Pause automatic purchases before the sale, not after.

Does my spouse’s purchase count if we file separately?

Publication 550 says that if you sell stock and your spouse buys substantially identical stock, you also have a wash sale. The sentence does not carve out an exception for married couples filing separately, and the sources I reviewed do not describe such an exception. Separate returns do change one thing: the capital loss limit is $1,500 instead of $3,000 for married filing separately, per the Schedule D instructions. Because the stakes and the filing status vary by household, a tax professional should confirm how your situation works, especially if separate accounts, separate property or a community property state is involved.

Is the loss gone forever if my IRA buys the replacement?

Often, in practical terms, yes. In a taxable-account wash sale, the disallowed loss is added to the basis of the replacement shares, so you recover it when you sell them. In an IRA purchase, Revenue Ruling 2008-5 says the basis in the IRA is not increased, because IRA basis exists only for nondeductible contributions. Publication 550 states the same conclusion. The loss therefore has nowhere to go. Whether any other treatment is available on your facts is a question for a tax professional, since the ruling covers only the section 1091 issue.

How many days do I have to wait before buying the same security?

Wait until the 31st day after the sale. The window includes 30 days before and 30 days after the sale date, so a loss sold on December 15, 2026 is clear of later purchases starting January 15, 2027. Remember the backward half too: a purchase made in the 30 days before the sale can also cause a wash sale. Count calendar days, not trading days, and include purchases in every account you, your IRA or your spouse control. A written calendar entry is safer than counting in your head. Write the first clean date on your calendar the moment you sell, and ask your spouse to do the same if they invest.

Will my broker catch a wash sale across accounts?

Usually not. Publication 550 says Form 1099-B can show a disallowed wash sale loss in box 1g only for covered securities with matching CUSIP numbers bought in the same account. A purchase at a different brokerage, in an IRA, or by your spouse is typically invisible to the broker reporting your sale. The IRS also says you cannot deduct a wash sale loss even when it is not reported on the form. Treat your broker’s form as a starting point and check other accounts yourself before filing. If you are unsure what an account bought, request its transaction history for the window rather than guessing from the balance.

Does dividend reinvestment create a wash sale?

It can. The statute disallows a loss when substantially identical stock or securities are acquired within the window, and a reinvested dividend buys shares. The IRS pages I read do not address reinvestment as a separate topic, so treat it as a potential trigger. The effect can be partial. If a reinvestment buys 3 shares and you sold 100 at a loss, the matching rules in Regulation 1.1091-1 and Publication 550 apply only to the matched shares. The safest habit is to turn reinvestment off for that security before you harvest, then turn it back on after the window closes. Ask your broker which purchases it matched so you can see the boundary of what it checked.

Does a 401(k) purchase count the same way?

The sources I reviewed do not say. Revenue Ruling 2008-5 addresses an IRA or Roth IRA and states that it does not address other issues. Publication 550 mentions IRAs and spouses, not workplace plans. That silence is not a safe harbor. If a payroll contribution buys the same fund you are harvesting during the window, ask a tax professional before assuming it does not count. In the meantime, you can avoid the question by harvesting in a security your plan does not buy, or by timing the sale around your contribution schedule.

How do I report a wash sale on my tax return?

Report the sale on Form 8949, enter code W in column (f), and enter the nondeductible loss as a positive number in column (g), according to the Form 8949 instructions. If Form 1099-B shows a wash sale amount that is wrong, enter the correct amount and, if the correct number is smaller, attach a statement explaining the difference. Then carry the totals to Schedule D. If a replacement was bought in a taxable account, increase that purchase’s basis by the disallowed loss in your own records so you do not lose it later.

Is a similar fund from another company safe to buy?

It depends, and the IRS pages I reviewed give no bright-line answer. Publication 550 says stocks of different corporations are usually not substantially identical, but it does not rule on funds from different sponsors that track the same index. Two funds can be similar without being identical, and the difference rests on facts such as holdings and structure. If the swap matters to you, ask a tax professional and write down the reasoning on the day you trade. Never treat a different ticker as proof of a different security. Keep a copy of the worksheet or note you used to arrive at the number so next year’s return is easier.

Does a purchase before the sale count?

Yes. Section 1091 and Regulation 1.1091-1 look at purchases within 30 days before as well as 30 days after the sale. That means a December add to a position can taint a loss you harvest on a different lot later that month. The matching rules then work in order of acquisition, earliest first. Review the prior month in every account, including your spouse’s and your IRA, before you sell, not just the month after. A short written note on the day you trade is worth more than a memory six months later.

Is there a penalty for a wash sale?

No separate penalty comes with a wash sale. The consequence is that the loss is disallowed on that sale. In a taxable replacement the loss moves into the new shares’ basis, and in an IRA replacement it is lost, according to the IRS sources above. The risk comes from claiming a loss you cannot take, which leads to a tax correction. If you realize after filing that a cross-account purchase changed the answer, a tax professional can explain how to correct the return. Keep a dated record of what you reviewed, because it will help whoever prepares your return and any later question about the sale.

Your next step: before your next harvest, write the sale date, calculate the 61-day window, and list every account you or your spouse control. Pull the transactions for the window and turn off automatic purchases of that security. Do this first, then sell.

Bottom Line

A wash sale does not care which account made the purchase. Your IRA, Roth IRA and spouse can all supply replacement shares inside the 61-day window, and your broker will usually not see them. A taxable replacement defers the loss into basis. An IRA replacement can erase it. So the sensible habit is to treat the household as one account for each harvest: pick the dates, list every account, pause automatic buys and wait until day 31 or choose a clearly different holding. Use the examples here to estimate what a loss is worth before you chase it, and leave anything unclear, such as similar funds or workplace plans, to a tax professional who can see your whole return.

Sources

All dollar amounts and dates in the examples are illustrative. This article is general education, not tax advice or a recommendation to buy or sell any security.

Facts checked November 12, 2026

About this article

By the Banktimer Editorial Team · Published

Banktimer is an independent U.S. consumer-finance publication. Our editors draw on primary and official sources first, such as the CFPB, FDIC, Federal Reserve, and FTC, along with statutes, regulations, and providers’ own agreements and fee schedules. Then we add worked examples and decision tools. Our goal is the most useful, best-supported explanation the sources available to us at the time of writing allow.

This article is general information, not legal, tax, investment, insurance, or financial advice, and reading it does not create a professional relationship with Banktimer. Rates, fees, limits, and rules change, and they vary by state, provider, and contract, so confirm current terms with your bank, lender, insurer, or the agency named in the article before you act. Examples are illustrative unless labeled otherwise. Banktimer is not a bank, lender, insurer, or financial advisor, and we are not responsible for decisions or losses that result from relying on this content. For advice about your own situation, talk to a licensed professional.