@Mark Abele it depends:
1) How much are the capital gains? if you're married, you can exclude up to $500,000, single $250,000
2) Did you live in the property first, then rent it out or vice versa?
If the taxpayer used the property as a rental or vacation home prior to using it as his or her personal residence, then the amount of gain that can be excluded will be reduced for that period of “non-qualified use” (see IRC Sec. 121(b)(5).) However, using the property as the primary residence first and then converting to a rental will not affect the exclusion.
For Example, John buys a house in June 2010 for $300,000 and uses it as a rental for 2 years. Then in June 2012 John moves into the house and uses it as his primary residence until June 2014, when he sells the house for $700,000, which gives him a gain of $400,000 ($700,000 sales price minus $300,000 basis.) Although John qualifies for the capital gain exclusion because he used the home as his primary residence for 2 of the past 5 years, 50% of that gain does not qualify for the exclusion because 2 of the 4 years of ownership were attributable to non-qualified use. Thus, John will pay capital gains tax on $200,000 of the gain and the remaining $200,000 will be excluded per IRC sec. 121.
Note: for simplicity sake, this example does not take depreciation deductions into account, which is explained below.
This is not legal advice. This is for educational purposes only.