A gain or loss on asset sale is the difference between the selling price of an asset and its book value at the time of sale. When an asset is sold for more than its carrying amount, a gain is recognized; conversely, when it is sold for less, a loss is incurred. This concept is vital in understanding how partnerships recognize income and losses during the liquidation and dissolution processes.