A gain is derived from an increase in the value of an asset. It is considered to be realized if the asset is sold to a third party, resulting in a profit. A gain is considered to be unrealized if the asset has not yet been sold.

The amount of a gain is computed by subtracting its book value from the payment received from its sale, less any commissions and processing fees.