Changes shares to houses. I bought 2 houses for $100. I sold one of them for $200. I've made a capital gain of $100 for that house. I now in my mind hold the second house free carried. That is how it work, doesn't matter what the asset is.