When you inherit a property, figuring out the capital gains means first finding out its cost basis. This is basically what the property was worth on the market at the time when the person who left it to you passed away. To find your capital gains, just take this fair market value and subtract it from how much you sold the property for.