Investors must pay taxes on gains from the sale of securities. Wash sales usually result in a loss that adds to the cost basis of the security that is later used when liquidating the stock for a gain. It may help offset future gains.