Educational content only — not investment adviceAdvertiser disclosure
tax tipsfoundation

Capital Gain

A capital gain generally occurs when a capital asset is sold or otherwise disposed of for more than its adjusted basis. The holding period determines whether the gain is usually classified as short-term or long-term.

By ROIStreet EditorialReviewed by ROIStreet PublisherLast reviewed: 2026-08-31Editorial process11 min read✓ Fact-checked

Before you read this

> Definition > > A capital gain generally occurs when a capital asset is sold or otherwise disposed of for more than its adjusted basis. In a simple stock sale, the gain is the amount realized from the sale minus adjusted basis. For U.S. federal tax purposes, a gain is generally short-term when the asset was held one year or less and long-term when held more than one year, subject to specific exceptions.

Expanded explanation

The key distinction is between value that has increased and gain that has been realized.

Investor.gov gives the simple definition: a capital gain is the profit that results when an investment is sold for more than the investor paid for it.[1] The federal tax calculation is more precise. IRS Topic 409 states that a capital gain or loss generally equals the difference between the amount realized on disposition and the asset's adjusted basis.[2]

That means three facts have to be separated:

  • current market value
  • adjusted basis
  • amount realized when the asset is disposed of

A brokerage screen can show a large gain while no taxable sale has occurred.

Unrealized appreciation vs. realized capital gain

Assume stock was purchased for $10,000.

Its current market value rises to $13,500.

If the shares are still owned, the $3,500 increase is unrealized appreciation.

Now assume the shares are sold for $13,500.

Ignoring commissions and other basis adjustments:

$13,500 amount realized − $10,000 basis = $3,500 capital gain

The economics existed before the sale.

The realization event changes the tax status.

This distinction matters because investment accounts often display "gain/loss" figures that combine realized and unrealized concepts in ways that are useful for portfolio monitoring but do not by themselves determine taxable income.

The basic capital-gain formula

For a straightforward taxable investment sale:

Capital gain or loss = amount realized − adjusted basis

If the result is positive, there is a gain.

If the result is negative, there is a loss.

IRS Topic 409 uses the same framework.[2]

The formula looks easy because the hard part is hidden in the words amount realized and adjusted basis.

Adjusted basis is not always purchase price

Original cost is often the starting basis for purchased securities.

It is not always the ending basis used for tax reporting.

Basis can be affected by events such as:

  • reinvested dividends or distributions
  • stock splits
  • return-of-capital distributions
  • wash-sale adjustments
  • inherited property
  • gifted property
  • certain corporate reorganizations
  • commissions and transaction costs under applicable rules

That is why the statement:

"Bought for $10,000, sold for $13,500, gain equals $3,500"

is useful only when no relevant basis adjustment exists.

A missing basis adjustment can make the reported gain materially wrong.

Amount realized can differ from headline sale value

The other side of the equation is the amount realized.

In a simple brokerage sale, gross proceeds are the obvious starting point. Transaction costs and the legal form of the transaction can affect the tax calculation.

For ordinary investors, Form 1099-B frequently supplies reported proceeds and may also provide basis information when the broker is required to report it.

Broker reporting helps.

It does not eliminate the need to verify that basis is correct, especially for assets transferred between firms, older holdings, gifts, inherited property or positions affected by adjustments.

Short-term vs. long-term capital gain

After the gain is calculated, the holding period generally determines its federal tax character.

IRS Topic 409 states the general rule:[2]

  • one year or less: short-term
  • more than one year: long-term

The holding period is generally counted from the day after acquisition through the day of disposition.[2]

That one-day boundary can matter.

An investment sold after exactly one year generally remains short-term under the general rule. Long-term status usually requires holding it more than one year.

Specific property and transactions can follow different rules, so the general test should not be applied blindly to every asset.

Why tax character matters

Net short-term capital gains are generally taxed as ordinary income under federal rules.[2]

Net long-term capital gain can qualify for different federal tax rates depending on taxable income and the type of asset or gain.[2]

The important point is not memorizing a headline rate.

The important point is recognizing that:

holding period can change tax character without changing the dollar amount of economic profit.

A $10,000 gain is still a $10,000 economic gain.

The tax treatment can differ depending on when and how it was realized.

Not every long-term gain uses the same rate

"Long-term capital gain" is often spoken about as though it automatically means one tax rate.

That is inaccurate.

IRS guidance identifies special federal treatment for categories that can include:

  • certain collectibles gains
  • certain qualified small-business stock gains
  • unrecaptured Section 1250 gain from depreciable real property

Income level also affects the rate applied to most net capital gains.[2]

A glossary definition therefore should not reduce capital-gains taxation to a single percentage.

The character of the asset and the taxpayer's broader tax picture matter.

Capital gains and losses are netted

Federal tax treatment does not generally examine every capital gain as a completely isolated event.

Short-term gains and losses are combined.

Long-term gains and losses are combined.

Those results then interact under the capital-gain netting rules.[2][3]

Example:

  • long-term gain: $8,000
  • long-term loss: $3,000

Net long-term gain:

$5,000

Now add:

  • short-term loss: $2,000

The final tax computation involves the interaction between the long-term and short-term categories rather than taxing the full $8,000 gain while ignoring the losses.

This is why tax-loss harvesting discussions focus on net positions and tax character, not just individual losing trades.

Capital loss is the mirror calculation, but not a perfect mirror tax rule

If an investment is disposed of for less than adjusted basis, the result can be a capital loss.

The arithmetic mirrors the gain calculation.

The tax treatment does not.

IRS rules limit how much net capital loss an individual can generally deduct against non-capital income in one year, with unused losses generally carried forward subject to the rules.[2][3]

Losses on personal-use property also do not receive the same treatment as investment losses.[2]

That asymmetry matters when investors assume every economic loss creates an immediate, fully usable tax deduction.

It does not.

Wash-sale rules affect losses, not gains

The wash-sale rule can defer a loss when substantially identical stock or securities are acquired within the statutory window around a loss sale.

ROIStreet covers that separately in GLS-014 — Wash-Sale Rule.

The important distinction here is that the wash-sale rule is a loss-disallowance and basis-adjustment rule.

It does not erase a realized gain because the investor repurchases the same security.

Selling an appreciated stock and buying it back does not generally make the gain disappear.

Reinvesting proceeds does not generally erase a stock gain

Another common misconception comes from real-estate rules and tax-deferred account mechanics.

For ordinary stock held in a taxable brokerage account, selling at a gain and immediately reinvesting the proceeds into another stock generally does not defer the realized capital gain merely because the money stayed invested.

The taxable event is the disposition.

What happens to the proceeds afterward is a separate transaction.

Specific statutory deferral provisions can apply in specialized contexts, but ordinary reinvestment is not a general capital-gain reset button.

Funds can create capital-gain income without a shareholder sale

A mutual fund or REIT can distribute realized long-term capital gains to shareholders.

IRS Schedule D instructions specifically address capital-gain distributions from mutual funds and REITs.[4]

This creates an important exception to the simplistic idea that:

"No sale by the investor means no capital-gain income."

The investor may not have sold fund shares.

The fund itself may have sold appreciated portfolio securities and passed taxable capital-gain distributions through to shareholders.

That distinction becomes especially relevant near year-end when investors evaluate taxable fund distributions.

Capital gain vs. total return

Capital gain is one component of investment return.

It is not the entire return.

Suppose a stock is purchased for $50, later sold for $55 and pays $2 in dividends during the holding period.

Ignoring taxes, fees and reinvestment:

  • capital gain: $5
  • dividends: $2
  • combined economic gain: $7

Looking only at the capital gain understates the total economic result.

The reverse can also happen. A security can produce income while its market value declines enough to generate an overall loss.

ROIStreet's GLS-005 — Return separates those components.

Taxable brokerage account vs. retirement account

The capital-gain framework is central to taxable brokerage investing.

Tax-advantaged retirement accounts operate differently.

Selling an appreciated stock inside a traditional IRA or Roth IRA generally does not create a current capital-gains tax event inside the account in the way the same sale usually would in a taxable brokerage account. The tax system instead applies the rules governing the retirement account and its distributions.

This distinction explains why an investor can make the same trade in two accounts and face different current tax consequences.

The investment gain is economically real in both.

The account wrapper changes when and how federal tax is imposed.

Worked example: the same appreciation, three different outcomes

Assume 100 shares are purchased for:

$50 per share

Initial basis, ignoring costs:

$5,000

The shares later trade at:

$80 per share

Market value:

$8,000

Embedded appreciation:

$3,000

Outcome 1: shares remain unsold

The $3,000 is unrealized appreciation.

No ordinary taxable sale has occurred.

Outcome 2: shares are sold in a taxable brokerage account

Amount realized:

$8,000

Basis:

$5,000

Realized capital gain:

$3,000

Holding period and other tax rules then determine federal tax character.

Outcome 3: shares are sold inside a Roth IRA

The investment still produced a $3,000 economic gain.

The internal sale generally does not create current capital-gains tax treatment in the account. Roth IRA rules govern taxation of distributions.

Same security.

Same price movement.

Different tax wrapper.

That is why "gain" should never be interpreted without asking whether the discussion concerns investment performance, realized taxable gain or account taxation.

Common misconceptions

"If the stock goes up, capital-gains tax is immediately due."

Not generally. Appreciation can remain unrealized until a taxable realization event occurs.

"Capital gain always equals sale price minus purchase price."

Only when original cost equals adjusted basis and no other relevant adjustments apply.

"Holding an asset for one year makes the gain long-term."

Under the general federal rule, the asset must generally be held more than one year.[2]

"Reinvesting the sale proceeds makes the gain tax-deferred."

Not for an ordinary taxable stock sale merely because the money is reinvested.

"Every long-term capital gain gets the same rate."

No. Taxable income and the type of gain can change the applicable federal treatment.[2]

"Capital losses always create an immediate dollar-for-dollar tax deduction."

No. Federal netting, deduction limits and carryover rules apply.[2][3]

"No fund shares sold means no capital-gain tax."

A fund can distribute capital gains realized inside the portfolio.[4][5]

Professional note

Capital-gain analysis is stronger when the calculation is broken into four separate questions:

  1. Asset: Is the property a capital asset for the transaction being analyzed?
  2. Realization: Did a taxable sale, exchange or other disposition occur?
  3. Measurement: What are the amount realized and adjusted basis?
  4. Character: Is the resulting gain short-term, long-term or subject to a special rule?

Skipping any one of those questions can produce a technically neat but wrong tax answer.

For investors, there is a fifth question:

Was the investment decision economically sound before tax?

Avoiding a gain can defer tax.

It can also keep capital trapped in an overpriced, concentrated or unsuitable investment.

Tax cost belongs in the decision.

It should not replace the investment analysis.

Related terms

  • Return — GLS-005: capital gain is one possible component of investment return.
  • Wash-Sale Rule — GLS-014: a loss-deferral rule that can alter basis after certain replacement purchases.
  • Dividend — GLS-023: investment income that is distinct from capital gain.
  • Compound Growth — GLS-007: taxes realized along the way can reduce capital remaining available to compound.

Related ROIStreet guides

  • INV-012 — What Is a Stock?
  • INV-014 — What Is an ETF?
  • INV-015 — What Is a Mutual Fund?
  • INV-036 — What Is a Roth IRA?
  • INV-061 — What Is Net Unrealized Appreciation (NUA)?

Sources & References

1. U.S. Securities and Exchange Commission — Investor.gov, Capital Gain https://www.investor.gov/introduction-investing/investing-basics/glossary/capital-gain

2. Internal Revenue Service, Topic No. 409, Capital Gains and Losses https://www.irs.gov/taxtopics/tc409

3. Internal Revenue Service, Publication 550 (2025), Investment Income and Expenses https://www.irs.gov/publications/p550

4. Internal Revenue Service, Instructions for Schedule D (Form 1040) https://www.irs.gov/instructions/i1040sd

5. U.S. Securities and Exchange Commission — Investor.gov, Fund Distributions — Investor Bulletin https://www.investor.gov/introduction-investing/general-resources/news-alerts/alerts-bulletins/investor-bulletins/fund-distributions-investor-bulletin

Educational Disclaimer

ROIStreet publishes educational content intended to help readers understand investing and investment taxation. Nothing in this glossary entry is personalized investment, legal, tax or financial advice. Capital-gain treatment depends on the asset, transaction, account, holding period and taxpayer's circumstances, and current tax rules should be verified before acting.

The ROIStreet Reader Promise

We strive to explain before we evaluate, present evidence before opinions, discuss risks alongside potential benefits, distinguish facts from analysis, and correct material errors transparently.

Our purpose is to help readers better understand investing—not to tell them what to do.

Definitions used in this guide

Return
Investment return is the gain or loss produced by an investment over a period, including changes in value and applicable income such as interest, dividends or distributions.
Compound Growth
Compound growth occurs when prior gains remain invested and can themselves participate in future gains or losses. It describes a mathematical process, not a guaranteed investment outcome.
Wash sale rule
A US tax rule that disallows a loss deduction if you buy a substantially identical security within 30 days before or after the sale.
Dividend
A dividend is a distribution a corporation makes to shareholders, usually in cash but sometimes in stock or other property. Common-stock dividends are generally discretionary and can be reduced or eliminated.
Cost Basis
Cost basis is the amount used to measure gain or loss when an investment is sold. Purchase cost is often the starting point, but reinvestments, stock splits, return of capital, wash sales, gifts, inheritances and other events can change the basis used for tax reporting.
Capital Loss
A capital loss generally occurs when a capital asset is sold or otherwise disposed of for less than its adjusted basis. Capital losses first offset capital gains under federal netting rules, while excess net losses for individuals are subject to an annual deduction limit and carryover rules.
Tax-Loss Harvesting
Tax-loss harvesting is the deliberate sale of an investment at a loss to create a realized capital loss that can offset taxable capital gains and, subject to federal limits, other income. The strategy can improve tax timing, but wash-sale rules, trading costs, replacement exposure and future taxes can reduce its value.
Tax Lot
A tax lot is a group of investment units acquired in the same transaction or under the same basis conditions. Different lots of the same security can have different acquisition dates, adjusted bases and unrealized gains or losses, which can materially affect the tax result when part of a position is sold.

We may earn a commission if you open an account through links on this page. Our editorial analysis is independent and is never influenced by commercial partnerships. Full disclosure.