Investing basics

What Is a Capital Gain? Short-Term vs Long-Term Explained

What a capital gain is, realized vs unrealized gains, how short-term and long-term gains are taxed in the US, and how capital losses work.

By Quoliv Updated November 10, 2026 5 min read

Beginner investing lessons and fake-money practice from the maker of Quoliv.

Quick answer

A capital gain is the profit you make when you sell an investment for more than you paid for it. If you sell for less, the difference is a capital loss. In the US, how a gain is taxed depends mostly on how long you held the investment: one year or less makes it short-term, and more than one year makes it long-term.

What you’ll learn

  • A capital gain is the sale price minus what you paid, when the result is positive.
  • A gain is only realized when you sell. Until then it is an unrealized, or paper, gain.
  • Holding an investment more than one year makes the gain long-term; one year or less makes it short-term.
  • Short-term gains are taxed like ordinary income, while long-term gains usually get lower rates.
  • Capital losses can offset capital gains, and some extra loss can reduce other income each year.

This explanation is part of our Personal Finance lessons path, where you can explore the idea in short lessons and quizzes.

What a capital gain actually is

A capital asset is almost anything you own as an investment, such as shares of stock, bonds, or fund shares. When you sell one for more than you paid, the profit is a capital gain. When you sell for less, the shortfall is a capital loss.

Here is a simple example. You buy 10 shares at $50 each, for a total of $500. A year and a half later you sell all 10 at $70 each, for $700. Your capital gain is $700 minus $500, which is $200. The amount you paid, including certain costs of buying, is called your cost basis.

Realized vs unrealized gains

If the shares in the example rise to $70 but you keep holding them, you have an unrealized gain. It shows up in your account balance, but nothing has been locked in. The price can still go up or down before you sell.

A gain becomes realized when you actually sell. In the US, taxes generally apply to realized gains, not to rises in value you have not cashed in. That is why the timing of a sale matters so much.

A rising price is a paper gain until you sell. Only a sale turns it into a realized gain or loss.

Short-term vs long-term gains

Short-term gainLong-term gain
How long you held itOne year or lessMore than one year
How it is taxed in the USAs ordinary income, at your regular rateUsually at 0%, 15%, or 20%, depending on taxable income
Typical forFrequent trading and quick flipsBuying and holding over years
When the clock startsThe day after you buyThe day after you buy

One extra day can change how a gain is taxed, because the long-term rates apply only after you have held an asset for more than a year.

How capital losses work

  • Offsetting: capital losses are first used to reduce your capital gains in the same year.
  • Extra losses: if losses are larger than gains, up to $3,000 a year ($1,500 if married filing separately) can reduce other income.
  • Carryforward: any net loss above that limit can be carried forward to later tax years.
  • Not every loss counts: losses on personal-use property, such as your own car or home, generally cannot be deducted.

Things beginners often miss

  • Fund distributions: mutual funds and some ETFs can pass capital gains on to shareholders even if you never sold a share yourself.
  • Retirement accounts: gains inside accounts such as a 401(k) or IRA follow different tax rules from a regular brokerage account.
  • Record keeping: knowing what you paid and when you bought matters, so brokerage statements are worth keeping.
  • Rules change: tax rates and income thresholds are updated over time, and other countries treat gains differently.

Seeing gains and losses in practice

Watching a position move between gain and loss is one of the clearest ways to understand cost basis and timing. A simulator shows the same profit and loss numbers a real account does, without the tax bill or the risk.

This guide is general education, not tax or investment advice. Tax rules depend on your country, income, and account type, so a qualified tax professional or the official IRS guidance is the right place to confirm how they apply to you.

Quoliv's simulator gives you $10,000 in fake money to buy and sell stocks and ETFs at real prices, so you can track your cost basis and see gains and losses build without risking anything.

Work out the gain on a trade with the stock profit calculator before thinking about tax.

Sources and methodology

This guide was written for education using the primary sources below. It does not evaluate your finances or recommend an investment. Read our editorial policy.