If you experience a wash sale, the capital loss disallowed by the IRS is included in the cost basis of the replacement stock. So, if you sell the replacement stock later, any taxable gain will be ...