Sold at a loss, bought back in another account: wash sales and superficial losses

    Selling shares at a loss in one account and buying them back in another within 30 days still sets off the wash sale rule (US) and the superficial loss rule (Canada). Buy them back in a TFSA, an RRSP or an IRA and the loss is gone for good.

    You sell shares at a loss in your margin account. A few days later you buy the same shares again, this time in your TFSA, your RRSP or your IRA. Two accounts, maybe two brokers, and neither statement shows anything unusual.

    The loss can still be denied. Both countries' rules follow you, not the account, and when the shares come back inside a registered account the loss doesn't come back at all.

    The rule: 30 days either side, in any account

    Canada: superficial lossUnited States: wash sale
    The window30 days before the sale to 30 days after it30 days before the sale to 30 days after it
    Who buying back counts forYou, your spouse or partner, a company you control, a trust you benefit from (RRSP, TFSA)You, and by the IRS's reading your IRA; your spouse's too
    A further conditionThe replacement shares are still held 30 days after the saleNone
    When it appliesThe loss is deniedThe loss is disallowed

    Neither rule says "in the same account". A purchase in any account that is yours counts.

    Where the loss goes

    Bought back in a taxed account, the loss is only postponed. It is added to the cost of the replacement shares, so it comes back as a smaller gain or a bigger loss the day those are sold.

    Bought back in a registered account, there is nowhere for it to go. Shares in a TFSA, an RRSP or an IRA have no cost for tax purposes: nothing is taxed when they are sold, so nothing can be added to them. The loss is denied and it never returns.

    Canadian returnUS return
    Replaced in a taxed accountDenied now, added to the new shares' costDisallowed now, added to the new shares' cost
    Replaced in an RRSP, a RRIF, a LIRAGone for goodGone for good
    Replaced in a TFSA, an FHSA, an RESPGone for goodAdded to the new shares' cost (the US taxes these accounts)
    Replaced in an IRA, a 401(k)Gone for goodGone for good

    A worked example

    One stock, in Canadian dollars to keep currency out of it.

    DayAccountWhat happenedCash
    January 2, 2025MarginBuy 100 shares at $20−$2,000
    March 10, 2025MarginSell 100 shares at $10+$1,000
    March 15, 2025TFSABuy 100 shares at $10−$1,000

    The margin account lost $1,000. The TFSA bought the same 100 shares five days later and still holds them 30 days after the sale.

    What you might expectWhat the rule gives
    A $1,000 capital loss for 2025$0 of loss. The $1,000 is a superficial loss
    The loss returns when the shares sellIt doesn't: the TFSA's shares take no cost. $1,000 gone

    Had the March 15 purchase been in the margin account instead, the same $1,000 would have been denied in March and added to the new shares: bought at $10, they would cost $20 a share for tax, and the loss would return the day they are sold.

    Buying back fewer shares denies a matching part: 40 shares bought back deny $400 and leave $600 to claim.

    Why nobody tells you

    • Each broker sees its own account. A broker's tax slip adjusts for wash sales inside one account at most, and a Canadian T5008 doesn't adjust at all.
    • The two statements look fine apart. One shows a sale at a loss, the other a purchase. Only side by side do they make a denied loss.
    • Automatic purchases count. A dividend reinvested or a monthly purchase plan in the registered account, within the 30 days, is a purchase.

    What still counts as buying back

    • A call option on the same shares. Both rules treat a right to buy the shares like the shares: one contract stands for 100 shares.
    • The other listing of the same security: the US-dollar and Canadian-dollar tickers of one fund (DLR and DLR.U).
    • Maybe a different fund that tracks the same index. The CRA has said that two index funds following the same index can be identical property; the IRS asks whether they are "substantially identical" and has drawn no clear line. That case is yours to judge: the app doesn't match two different funds.

    Ways out

    • Wait 31 days before buying back, in any account.
    • Buy back in a taxed account if you want the position back now: the loss is postponed, not lost.
    • In Canada, sell the replacement within the 30 days: shares no longer held on day 30 deny nothing.

    What myTraderDash does with it

    • Every account in the report is read together. A loss in one account is checked against the purchases in all the others, at any broker, 30 days either side.
    • A loss replaced in a taxed account moves into the new shares' cost, and follows them whatever the year: sold two years later, the report for that year still has it.
    • A loss replaced in a registered account is shown as denied for good, and the export flags it (Replaced in Registered Account) with the account. Which accounts are registered depends on the country of the report: a TFSA shelters in a Canadian report and is taxed in a US one.
    • On the Trade Log, before any report: the losing position is tagged WASH_SALE, or WASH_LOST when it was replaced in an account sheltered in both countries, and the position that replaced it WASH_BUY.
    • Only your own accounts. The app can't see a spouse's accounts unless they are in the same workspace, and an account left out of a report doesn't exist for that report.

    The example above is one of the cases the tax calculation is tested against. The rules in full, with options, chains of losses and the CRA's formula for averaged cost: How the tax report calculates.

    What this page is not

    An explanation of a calculation, not tax advice. The tax report in myTraderDash is an estimate. For a filing position, the CRA's or the IRS's own guidance or an accountant is the authority.