Investors & landlords

It does not carry over, the entire loss is used in the year of the sale.

In the event the loss is large enough to create total negative income on your tax return (Line 41 of your Form 1040 would be negative), then that "Net Operating Loss" (NOL) can be carried back or carried forward.  The program should alert you to that if that happens.