Investors & landlords

If you had already used the exclusion within the last 2 years you cannot use the exclusion again not even a partial one.

 

Purchase price + cost to buy + any improvements made while you owned it + cost to sell = basis

 

Sales price - basis = cap gain or loss.