What is a Wash Sale?

A wash sale involves selling a security at a loss at the end of the tax year, and then buying another one similar security right away. This creates a capital loss on a tax return, to offset a capital gain.