Yes, you can offset the gain on sale of the building against the loss carryover. Hence you will not owe any tax on the gain on sale of the building. Capital gain is calculated as Sales price less adjusted cost basis (which is cost minus the accumulated depreciation)....
Serving All 50 States For Over a Decade
Timeliness, Quality, Support