Deductions & credits

I have lived in the Indiana home for the last 17 years. I will reside in Indiana at the close of sale. If I understand correctly, I will not owe any federal or state (IN or GA) capital gains tax because I meet the federal requirements. Does that sound correct? So I am free to spend the capital gains on down payment and exterior improvements on the new home to be purchased in GA? Come tax day, I'll have zero gains left.