When you sell an investment for more than you paid, the profit is a capital gain — and it may be taxed. How much depends largely on how long you held it.
A capital gain is the profit from selling an asset for more than you bought it. If you buy a stock at $50 and sell at $70, your $20 gain may be taxable in a regular (taxable) brokerage account. You generally owe nothing until you actually sell — unrealized gains aren't taxed.
In the U.S., the IRS taxes gains differently based on holding period:
This is a major reason long-term investing is tax-efficient: simply holding longer than a year can meaningfully reduce the tax on the same profit.
If some investments lose money, selling them creates a capital loss that can offset capital gains, lowering your taxable total — a practice called tax-loss harvesting. Losses beyond your gains can offset a limited amount of ordinary income each year, with the rest carried forward.
Inside tax-advantaged accounts like a Roth IRA or 401(k), investments can grow without yearly capital-gains tax, which is a big part of their appeal. Tax rules are complex and change — consult the IRS or a professional for your situation.
Practice risk-free: apply this idea with $10,000 of play money in the stock market simulator — no sign-up, no real risk.
Not financial advice: this is educational content only, written by site operator Mustafa Bilgic. For authoritative basics see the U.S. SEC at investor.gov and the concept references at Investopedia.
It is a tax on the profit you make when you sell an investment for more than you paid for it, typically owed only after you sell.
Short-term gains (held one year or less) are taxed as ordinary income; long-term gains (held over a year) are taxed at lower rates for most investors.
Generally no. Gains are usually taxed only when realized — that is, when you sell. Unrealized paper gains are not taxed.
Yes. Capital losses can offset capital gains and a limited amount of ordinary income, with extra losses carried into future years.