In simple words, a capital gain occurs when a person sells an asset for more than what person paid to purchase it. Almost any type…