A capital gain is realized when an investor sells a security for more than its original cost. When you hear “buy low, sell high,” that’s the idea. If the investor sells for less than the original cost, it’s a capital loss.
A gain or loss is realized when the position is closed:
To determine the gain or loss, investors compare cost basis to sales proceeds.
In other words, cost basis is what you paid in, and sales proceeds is what you got out. Let’s apply that in an example.
An investor purchases shares of ABC stock at $50 while paying a $2 per share commission. Several months later, the stock is sold for $70 while paying another $2 per share commission. What is the cost basis, sales proceeds, and capital gain or loss?
Can you figure it out?
Cost basis = $52
The cost basis equals the purchase price ($50) plus the commission ($2). This is the total amount paid to buy the shares.
Sales proceeds = $68
Sales proceeds equal the sale price ($70) minus the commission ($2). This is the total amount received from selling the shares.
The capital gain or loss = $16 capital gain
The gain or loss is sales proceeds minus cost basis: $68 - $52 = $16. A positive number is a capital gain; a negative number would be a capital loss.
Capital gains can be long-term or short-term.
Long-term capital gains apply to securities held for longer than one year. In practice, the holding period must be one year and one day to be long-term. Long-term capital gains are taxed the same way as qualified dividends: 0%, 15%, or 20%, depending on the investor’s annual income level.
Short-term capital gains apply to securities held for one year or less. Short-term capital gains are taxed at the investor’s ordinary income tax rate (the investor’s marginal tax bracket), which can be as high as 37% (similar to non-qualified dividends). Because the tax rate is often lower, investors generally prefer long-term capital gains.
As a reminder, these are the income tax brackets for individuals and those filing jointly in 2025:
| Rate | Individuals | Married filing jointly |
|---|---|---|
| 10% | $0 | $0 |
| 12% | $11,926 | $23,851 |
| 22% | $48,476 | $96,951 |
| 24% | $103,351 | $206,701 |
| 32% | $197,301 | $394,601 |
| 35% | $250,526 | $501,051 |
| 37% | $626,351 | $751,601 |
Do not memorize these tax brackets; this chart is only for context.
Capital gains are reported on Form 1099-B (B stands for brokerage proceeds). Each year, brokerage firms report customers’ capital gains and losses to the IRS. If the investor has more gains than losses (a net capital gain), they owe taxes. If the investor has more losses than gains (a net capital loss), the loss can be used as a deduction.
Sign up for free to take 30 quiz questions on this topic