
Matched-Pair Tax-Loss Harvesting: Gains and Losses Together
A matched-pair trade realizes a capital gain and a capital loss in the same tax year. If the amounts and tax character align under the Schedule D netting rules, the loss may offset the gain while the appreciated holding is repurchased at a higher basis.
The strategy can improve future flexibility, but it does not manufacture wealth or permanently avoid tax by itself. It uses an existing loss tax asset to recognize a gain today.
A Simple Example
An investor owns:
- Position A: $15,000 of long-term unrealized gain.
- Position B: $15,000 of long-term unrealized loss.
The investor wants to keep Position A but no longer prefers Position B.
The investor sells both. Position A is repurchased at its current price, creating a new, higher basis and a new holding period. Position B is replaced with a suitable investment after reviewing wash-sale risk.
If there are no other capital transactions, the $15,000 long-term gain and $15,000 long-term loss may net to zero for federal capital-gain purposes.
What Actually Changed
- The embedded gain in Position A was recognized.
- Position A's replacement shares now have a higher basis.
- Position B's $15,000 loss has been consumed rather than carried forward.
- The replacement for Position B may have different returns and a new basis.
- Trading costs and state taxes may still apply.
The portfolio's future tax liability may be lower in Position A, but the investor gave up a loss that could have offset another gain later. The trade is an exchange of tax attributes, not a free basis step.
Why Tax Character Matters
Short-term and long-term items are first netted within their categories. A short-term loss and long-term gain may still interact, but only through the required netting sequence and in the context of all other transactions.
Do not size two trades in isolation and assume the final return will show zero net gain.
Wash-Sale Rules Apply Only to the Loss Side
Repurchasing Position A after a gain does not cause a wash-sale loss disallowance because the sale was not at a loss. Position B requires more care.
Review substantially identical purchases during the 30 days before and after the sale, including other taxable accounts, IRAs, dividend reinvestment, and a spouse's accounts.
When a Matched Pair Is Defensible
The trade is strongest when each side supports the portfolio independently:
- The gain sale reduces concentration, supports spending, or raises basis for a planned reason.
- The loss sale exits or replaces an investment the investor is willing to change.
- The replacement preserves an appropriate allocation.
- The loss is not more valuable for another expected gain.
It is weak when the investor changes good holdings solely to create a tax story or assumes natural losses will appear in a predictable amount every year.
For mechanics, read raising cost basis through tax pairing. For lot selection, see what tax-lot optimization means.
Bottom Line
Matched pairs can use a real capital loss to recognize a real capital gain and raise basis. Evaluate the opportunity cost of consuming the loss, the replacement investment, and the complete tax return before trading.
Official Source
