If you experience a wash sale, the capital loss disallowed by the IRS is included in the cost basis of the replacement stock.