Gain up to the depreciation previously claimed is generally recaptured and taxed as ordinary income rather than capital gain.
That surprises people who expected capital gains treatment on equipment. The depreciation reduced ordinary income earlier, so the recapture reverses it.
We handle this for founders running US companies.