Deductions & credits

These are the federal requirements which I understand. I am married and my gains will not exceed $500,000. Especially if I spend all the gains on down payment, deck and fence improvements on the new home.