Capital gain is the difference between (purchase price plus expences subtracted form selling price plus expenses) minus cost or improvements and recapture of depreciation.
See a CPA for exact details
Refinancing and Capital Gain - Posted by Bob Hargett
Posted by Bob Hargett on April 21, 2006 at 10:53:42:
Does the adjusted basis in a property increase when the property is refinance at a higher mortgage amount ? For example: Original Mortgage = $ 50,000
Refinance Mortgage = $150,000
Is the difference between the two considered a capital gain ?