When the taxpayer invests in real estate or  security and then later sells that piece of real estate or security, the IRS characterizes the amount that exceeds the purchase price as capital income while the amount that falls short of the purchase price is capital loss.
The concept of capital gain and capital loss arises when a taxpayer sells an asset they have acquired for investment purposes.