I bought a home with someone to whom I was NOT married. I lived there for a few years. Then I moved out, and at that time I agreed to postpone a sale, as he was not ready to move out and couldn't afford to buy me out. I bought by own house with a mortgage. Eight years after I moved out, he finally agreed to sell. I was then able to pay off my mortgage in my primary residence. I had not lived in the first house for eight years. Is there anything I can deduct, whatever, or does all of my share from the sale of the first house count as capital gains?