Deductions & credits

Well, what you do is reduce your cost basis in the property that you are selling now by the amount of the deferral.   Assuming this is your primary home and you meet the other tests, you can still exclude up to $500,000 of gain if married filing jointly, with the gain calculated from the adjusted cost basis.  I will try to find where that is written down for you.