ChartWise
Rates
Daily data

Education, not investment advice. Stocks can lose value. How we check every number

Glossary

Capital gain: the profit when you sell for more than you paid

A rising share price is only a gain on paper until you sell. The capital gain is what the sale actually locks in, measured against what you paid.

A capital gain is the profit you make when you sell an asset, such as a stock, for more than your adjusted basis, which is generally what you paid including costs like commissions. Selling for less gives a capital loss.

Quick answer

A capital gain is the profit when you sell an asset for more than your adjusted basis; selling for less is a capital loss [1]. For stocks, basis is the purchase price plus costs such as commissions [2]. Holding more than one year generally makes the gain long-term [1].

U.S. tax forms showing the capital gains and losses section
Photo: "Personal Income Taxes Ver6" by ccPixs.com, CC BY 2.0 (edited: cropped, resized, colour-graded).

Key points

  • Capital gain = amount you sell for minus your adjusted basis [1].
  • Basis for a stock is the purchase price plus costs such as commissions [2].
  • Held more than one year: generally long-term; one year or less: short-term, taxed as ordinary income [1].
On this page

How do you work out a capital gain on a stock?#

The IRS says almost everything you own for personal or investment purposes is a capital asset, including stocks and bonds [1]. You have a capital gain if you sell the asset for more than your adjusted basis, and a capital loss if you sell it for less [1].

Basis is generally the amount you paid [2]. For stocks, it is the purchase price plus additional costs such as commissions and recording or transfer fees [2]. So the fee you paid to buy raises your basis and lowers your gain.

What is the difference between short-term and long-term gains?#

The holding period decides it. Generally, if you hold the asset for more than one year before you sell, the gain or loss is long-term; one year or less makes it short-term [1]. Net short-term gains are taxed as ordinary income at graduated rates [1]. Long-term gains use separate capital gain rates. The IRS figures for single filers for 2025 are below.

2025 long-term capital gain rates for single filers, by taxable income (IRS):

Taxable income, single, 2025Rate on most net capital gain
Up to $48,3500%
Over $48,350 up to $533,40015%
Above the 15% threshold20% on the part above it

Figures from IRS Topic 409 for taxable years beginning in 2025 [1]. Other filing statuses use different thresholds; some gains are taxed differently. Not tax advice.

Dividends connect here too. Qualified dividends are taxed at the lower capital gain rates, while ordinary dividends are taxed as ordinary income [3]. And a company's dividend yield plus your capital gain or loss make up the stock's total return [4].

What happens when you have a capital loss?#

Losses offset gains first. If your capital losses exceed your capital gains, the IRS lets you claim the excess against other income up to $3,000 a year ($1,500 if married filing separately), and you can carry the rest forward to later years [1].

A loss is still a loss of money, so this is a partial cushion, not a reason to take risk. Funds can also hand you gains you did not choose: a mutual fund distributes its capital gains, minus capital losses, to investors at year end [5]. Shares you buy through a dividend reinvestment plan each have their own basis, so keep the statements. To check the size of a price move before tax, use the percent change calculator.

Frequently asked questions#

Do I owe tax on a gain if I have not sold?

Generally no. A capital gain arises when you sell or otherwise dispose of the asset for more than your adjusted basis [1]. Until then, a higher price is an unrealized gain that can still disappear.

Are commissions part of the calculation?

Yes. For stocks, the IRS includes commissions and recording or transfer fees in your basis [2], which lowers the gain.

Is a dividend a capital gain?

No. A dividend is income paid while you hold the stock. Qualified dividends are taxed at capital gain rates, but they are reported as dividends [3].

The bottom line#

A capital gain is the sale price minus your adjusted basis, and the holding period decides whether it is short-term or long-term. Keep every purchase record, including fees, and check current IRS figures before you file. Read the risk disclosure: a gain on paper can turn into a loss before you sell.

Sources

  1. Topic no. 409, Capital gains and losses. Internal Revenue Service, 2026.
  2. Topic no. 703, Basis of assets. Internal Revenue Service, 2026.
  3. Topic no. 404, Dividends and other corporate distributions. Internal Revenue Service, 2026.
  4. Defining the Value of an Investment. FINRA, 2025.
  5. Mutual Funds (Investor.gov investment products). U.S. Securities and Exchange Commission (Investor.gov).

Education only. This page is not investment, tax or legal advice. Stocks can lose value. See our risk disclosure.

Keep reading

  • TOTAL RETURN

    Total return: price change plus income

    What is total return? The change in an investment's value plus the income it paid, with FINRA's worked example, the annualized rate and what it leaves out.

  • CVX · DIVIDENDS

    Ex-dividend date, record date and payment date explained

    The ex-dividend date explained: how it is set under T+1, when you must buy to get a dividend, what happens to the price and how the dates affect tax.

  • LOSS VS GAIN NEEDED

    Percentage change calculator

    Work out the percentage change between two stock prices, the gain needed to get back after a fall, and the yearly rate over several years. Formula shown.