Taxpayer lives in a primary residence for the last 7 years. House is sold in 2021 at a loss. The loss is not deductible.
However last year the taxpayer rental the house for one year and deducted depreciation. Can the loss be deductible for a Schedule E property on the 4797 even though is was also used as a primary residence ?