Capital Gain
A Capital Gain is the profit made when an asset is sold for more than what was originally paid for it. If you buy something at one price and later sell it at a higher price, the difference between the sale price and the purchase price (often called the "cost basis") is your capital gain. If the asset sells for less than you paid, that's a capital loss instead.
This concept applies across essentially every tradable market. Buying shares of a company and selling them higher produces a capital gain in stocks; buying a currency pair and closing the position at a better rate produces a gain in forex; buying Bitcoin or another token and selling it higher produces a gain in crypto; and the same logic applies to gold, oil, or any other commodity. The mechanics of calculating the gain are the same everywhere - sale proceeds minus what you originally paid, plus any associated costs like fees - even though the assets themselves are very different.
Example: an investor buys 100 shares of a company at $50 each ($5,000 total) and later sells them at $70 each ($7,000 total). The capital gain is $2,000. In crypto terms, buying 1 BTC at $30,000 and selling it at $45,000 produces a $15,000 capital gain in exactly the same way.
Where capital gains get complicated is taxation, and this is an area where the rules vary significantly by country, so it's worth checking local regulations rather than assuming one system applies everywhere. In the United States, tax treatment depends on how long the asset was held: gains on assets held under a year are taxed as short-term, generally at ordinary income tax rates, while gains on assets held longer than a year qualify for lower long-term rates. Other countries structure things very differently - the UK, for instance, applies Capital Gains Tax with its own annual tax-free allowance and rate structure that doesn't distinguish "short-term" from "long-term" the way the US does, and some countries tax capital gains at a flat rate regardless of holding period or don't tax certain types of capital gains at all. Because of this variation, traders should treat the short/long-term distinction as a US-specific detail rather than a universal rule, and consult local tax guidance for their own jurisdiction.
The distinction that governs most real decisions is between a gain on paper and a gain that has been realised by selling. In almost every system, an asset that has risen in value but has not been sold produces no taxable event at all, and this has a behavioural consequence with a name: the lock-in effect. An investor holding a position that has tripled faces a real cost to switching out of it, because the tax on the accumulated gain becomes payable the moment they do, and that cost has to be weighed against whatever the alternative investment is expected to earn. This is a genuine reason portfolios drift away from the allocation their owner would choose today, and it is why the question 'should I sell this?' is not the same question as 'would I buy this today?'.
The second practical mechanism is which shares you are treated as having sold when you bought the same holding at different prices. Suppose an investor bought 100 shares at $20, another 100 at $40, and another 100 at $60, then sells 100 at $70. The gain is $5,000, $3,000 or $1,000 depending entirely on which tranche the sale is matched against. Systems handle this differently: some default to first in, first out, some permit specific identification if the instruction is given at the time of sale rather than afterwards, and some require an average cost across the whole holding, which is common for pooled funds. Reinvested dividends are their own trap - they were taxed as income when received, and they add to basis, so treating them as free shares means paying tax on the same money twice.