Please follow
http://www.irs.gov/uac/Newsroom/Top-Ten-Tax-Facts-if-You-Sell-Your-Home
.