What is Capital Gains

When I sell an asset of mine, there’s a gain (or even loss) over its cost, that’s called capital gains. Simply said, it is what I get (Sales) less what I paid for it (Cost).