Investors & landlords

I believe you are saying that you sold some shares at a loss and within the +/- 30 day window acquired more shares through the ESPP, creating a wash sale. 

If that's the case then, yes, the deferred loss gets added to the replacement shares that created the wash sale loss.  Check your 1099-B carefully; the broker may have already done that for you.

Tom Young