As a general rule, any difference between the sales proceeds and book value is recognized as a gain or loss when the asset is sold.
Gain or loss is recognized as the difference between sales proceeds and the value of the book.