Capital Gains is the term used to define the profit that the investor makes by selling the capital asset for…