I rented out my primary residence as I was not able to sell it right away in our market. I owned the property for 16 1/2 years, 14 of which I lived in it as my primary. I rented it out for 2 1/2 years until I was able to sell it. For those 2 1/2 years, it was a loss on my taxes. Am I responsible to pay capital gains taxes on the sale and proceeds ? I paid $82k for the property originally when I bought it as my primary and sold it for $210k after I rented it for 2 1/2 years. Or am I able to allocate the proceeds by the percentage of time it was used as a "business" asset which in this case it was my primary for 84% and a rental for 16% ?