Tax · Canada
Superficial loss calculator.
You sold shares at a loss and bought the same shares back close to the sale. Find how much of the loss CRA denies and what gets added to your cost base.
Denied loss = least of S, P and B ÷ S × L. S is shares sold, P is shares bought in the 61-day window (30 days before, the sale day, 30 days after), B is shares still held at the end of it, and L is your loss. The denied amount is added to the adjusted cost base of the shares you still hold.
Inputs
Result
Enter your details and press Calculate.
How the superficial loss rule works
A loss on capital property is superficial when you, or a person affiliated with you, buy the same or identical property in the period starting 30 calendar days before the sale and ending 30 calendar days after it, and you or that person still own it 30 calendar days after the sale. A superficial loss cannot be deducted. Whoever acquires the substituted property can usually add the denied amount to its adjusted cost base, so the loss is deferred, not lost.
When fewer shares are repurchased and held than were sold, CRA administratively accepts a partial denial: SL = (least of S, P and B) ÷ S × L. S is the number of shares sold, P the number acquired in the 61-day period, B the number left at the end of the period, and L the loss otherwise determined. Example: sell 80 shares for a $80 loss, buy 50 in the window and hold 90 at the end. The least of 80, 50 and 90 is 50, so 50 ÷ 80 × $80 = $50 is denied and $30 is allowed.
Not modelled: the exceptions CRA lists (becoming or ceasing to be a Canadian resident, death, option expiry and others), whether two securities are identical, and repurchases inside an RRSP or TFSA. Confirm those with CRA.
Sources, fetched 29 September 2026: CRA — Guide T4037, Capital Gains (Superficial loss); CRA External T.I. 2005-0150811E5 (the S, P, B formula), as published by Tax Interpretations.
Worked example: a partial repurchase
You sell 500 shares at a loss of $1,500 ($3 a share). Within the 61-day window you buy 200 shares, and you hold 300 at the end. The least of S = 500, P = 200 and B = 300 is 200, so the denied loss is 200 ÷ 500 × $1,500 = $600, and $900 is an allowable capital loss. The $600 is added to the adjusted cost base of the shares you still hold.
If you sell 100 shares at a $400 loss and buy 100 back two weeks later and still hold them, the least of 100, 100 and 100 is 100, so 100 ÷ 100 × $400 = $400: the whole loss is denied and deferred.
Sources
Last verified 29 September 2026.
- CRA Guide T4037, Capital Gains
- CRA External T.I. 2005-0150811E5 — the S, P, B formula
Common mix-ups
-
Often assumedThe wash-sale rule only bites if I rebuy the stock after selling it. Buying first, then selling at a loss, is fine.
What the source saysThe CRA's window runs from 30 calendar days before the sale to 30 calendar days after it. A purchase of the same or identical property inside that period can trigger the rule, provided you or an affiliated person still owns it, or has a right to buy it, 30 days after the sale. [1]
-
Often assumedIf my spouse buys the stock back in their own account, the rule does not apply to me.
What the source saysThe CRA treats you and your spouse or common-law partner as affiliated persons. Its other examples include a corporation you or your spouse control, a partnership and its majority-interest partner, and a trust and its majority-interest beneficiary. [1]
-
Often assumedA denied superficial loss is gone forever, so I lose the tax benefit entirely.
What the source saysThe CRA says you cannot deduct the loss when you calculate that year's income. If you acquire the substituted property, you can usually add the denied loss to its adjusted cost base, so it is generally deferred rather than erased. [1]
Checked against these sources on .
Frequently asked questions
Is the 30-day rule really 61 days?
Yes. The window runs 30 calendar days before the sale to 30 calendar days after it, and CRA counts the acquisitions in that 61-day period.
Do I lose the denied amount?
Not usually. CRA says you can generally add the superficial loss to the adjusted cost base of the substituted property, which lowers your gain or raises your loss when you finally sell it.
Does my spouse's purchase count?
Yes. CRA lists your spouse or common-law partner, and a corporation you or they control, as affiliated persons whose purchases count.
Estimate only — not tax advice
This tool applies CRA's published formula to the figures you enter. It does not check affiliation, identical-property status or the exceptions, so confirm your situation with CRA or a tax professional.