Deductions & credits

See IRS Pub. 523, Selling your home for what expenses you can and can not claim.
http://www.irs.gov/pub/irs-pdf/p523.pdf