Investing BasicsGlossary
Capital gain
A capital gain is the profit when you sell an investment for more than it cost you. Plain-English definition, a worked example and U.S. tax basics.
Also called: realized gain, capital gains

Quick answer
A capital gain is the profit you make when you sell an investment, such as a stock or fund share, for more than you paid for it. If you sell for less, the difference is a capital loss. In the U.S., the tax depends on how long you held it.
On this page
What is a capital gain?#
The SEC's Investor.gov glossary defines a capital gain as the profit that comes when an investment is sold for more than the price the investor paid for it[1]. It is one of the two main ways stockholders earn money; Investor.gov calls a rise in a stock's price capital appreciation, alongside dividends[2].
Until you sell, a rise in price is an unrealized gain: it exists on paper and can disappear if the price falls. Selling realizes the gain. For U.S. tax purposes, the IRS describes the gain or loss as the difference between your adjusted basis in the asset and the amount you realized from the sale[3].
How do you calculate a capital gain?#
Start with your cost basis. The IRS explains that if you buy stocks or bonds, your basis is the purchase price plus any additional costs such as commissions[4]. Then subtract the basis from what you received when you sold.
Worked example
Buying 10 shares and selling them later
You buy 10 shares at $50 each and pay a $5 commission, so your basis is $505. Years later you sell all 10 at $80 a share for $800 (ignoring selling costs to keep it simple). The capital gain is $295, about 58.4% of your basis. Had you sold at $40 a share instead, you would have a capital loss of $105.
| Step | Amount |
|---|---|
| Cost basis (10 × $50 + $5 commission) | $505.00 |
| Sale proceeds (10 × $80) | $800.00 |
| Capital gain | $295.00 |
| If sold at $40 instead: capital loss | −$105.00 |
Figures computed in code from the stated inputs; rounded to the nearest cent or tenth.
Can you have a capital gain without selling anything?#
With funds, yes. When a fund sells a security that has increased in price, the fund has a capital gain[5]. The SEC's guide to mutual funds and ETFs warns that an investor may have to pay taxes each year on the fund's capital gains, even if the fund has had a negative return and the investor hasn't sold any shares[6]. Investor.gov notes that because many ETFs exchange portfolio securities in kind rather than for cash, they typically have fewer capital gains distributions than mutual funds[7]. In a taxable account, the fund's annual tax information is worth reading before you buy.
How are capital gains taxed in the U.S.?#
Holding time matters. Under IRS rules, an asset held for more than one year produces a long-term gain or loss, and one held for one year or less produces a short-term gain or loss[3]. Net short-term gains are taxed as ordinary income, while most long-term gains are taxed at 0%, 15% or 20% depending on taxable income; for 2025, the 0% rate applied to taxable income up to $48,350 for a single filer[3]. Some kinds of gain, such as on collectibles, can face higher maximum rates of 25% or 28%[3]. Thresholds change each year.
Losses help too: if your capital losses exceed your gains, the IRS lets you deduct up to $3,000 of the excess a year ($1,500 if married filing separately) and carry the rest forward[3]. Tax rules differ by country, and personal situations vary, so check your own tax authority or a qualified professional.
Read what a stock is for how shares work, how dividends work for the income side of a return, and investment fees for the costs that reduce what you keep.
How should you read a gain on your statement?#
- Unrealized vs realized. Many statements show both. Only the realized figure comes from completed sales; the unrealized one changes every day.
- Cost basis. Check that the basis includes commissions and fees; the IRS counts those additional costs in the basis of stocks and bonds[4].
- Holding period. Short-term (one year or less) and long-term (more than one year) gains are taxed differently in the U.S.[3]. FINRA notes that gains on investments held for less than one year are taxed at the higher short-term rate[8].
- Who publishes the rules. In the U.S. the IRS sets the rules and the rate thresholds, which change each year[3]. Other countries have their own tax authorities and rules.
What mistakes do beginners make?#
Leaving purchase costs out of the basis
If you ignore the commission, your basis is too low and your reported gain too high. The IRS includes commissions and similar fees in basis[4].
Counting a paper gain as money in hand
Until you sell, a gain can shrink or disappear. Stock prices move down as well as up[9].
Forgetting fund distributions
Fund investors can owe tax on distributed gains even in a year when the fund lost value[6].
What else do beginners ask?#
Is a capital gain the same as a dividend?
No. Investor.gov lists them as two separate ways to earn money from stocks: capital appreciation when a price rises, and dividend payments[2].
What counts as a capital asset?
For U.S. taxes, almost everything you own and use for personal or investment purposes[3].
Can a capital loss reduce my taxes?
In the U.S., net capital losses can offset other income up to $3,000 a year ($1,500 if married filing separately), with the rest carried forward[3].
Sources
Numbers in brackets in the text point here. Grade A = primary source (regulator, statistics agency, law or official document).
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9