Investors & landlords

assuming both accounts are fully taxable, ie neither is a retirement account, separate buckets based on what each account has as the tax basis.  sale at a loss could trigger the wash sale rule if shares on the gain side or shares still held were purchased within 31 days of the loss sale (either before or after).