Deferred capital gains tax and home sale cost basis

We are determining the adjusted cost basis for a home we sold last spring. Our 2119 for our home sale in 1998 shows a deferred gain of $30,000. That amount represents the gain from sale minus the sales costs. However, it does not represent the amount we had invested in the property. Can we now use that amount we had invested to reduce the deferred gain from that prior year to reduce our cost basis to be reported this year?