You will add the cost of improvements to your primary residence to your cost basis.
Unfortunately, the IRS does not allow deduction for repair expenses.
Here is how to report the sale of your primary home:
In Income & Expenses
Scroll to Less Common Income, click show more
Click Sale of Home (gain or loss) and start
Check "yes" you sold your homeHome sale exclusion: Home Sale Exclusion