Realized gain

A realized gain is the amount by which the proceeds from selling or otherwise disposing of an asset, after applicable disposal costs, exceed its adjusted cost basis.

by Lee Schmidt

Published November 10, 2026

Selling an investment turns its value into sale proceeds, but those proceeds are not all profit. Part can represent money you originally invested, and part can represent growth that happened while you held it. Realizing a gain does not create a second increase in net worth if the asset was already counted at market value. Selling expenses and any resulting taxes are separate effects to account for.

In a sentence

  • "I received $5,400 after selling expenses, but my realized gain was $1,400 because my basis was $4,000."
  • "The realized gain is on the shares I sold, while the shares I kept still have an unrealized gain."
  • "I recorded the realized gain separately from the cash I received."

How it's calculated

For a straightforward investment sale paid entirely in cash, you calculate the gain in four steps.

  1. Identify the investment or shares you sold. If you sell only part of a holding, use the basis of that part, not the basis of the whole account.
  2. Establish the adjusted cost basis. For a purchased investment, this starts with its purchase cost, includes applicable acquisition costs, and reflects any later basis adjustments. Current market value is not a substitute for basis.
  3. Calculate the amount realized. For this cash sale, subtract selling expenses from the gross sale price.
  4. Subtract the adjusted cost basis from the amount realized. A positive difference is a realized gain; a negative difference is a realized loss.

Amount realized = sale price − selling expenses

Realized gain = amount realized − adjusted cost basis

Keep the sale confirmation and basis records together. A cash deposit shows what arrived, but it does not establish how much of that amount is gain.

An example

You sell an investment in a taxable brokerage account for $5,500. Its adjusted cost basis is $4,000, and the sale has $100 of selling expenses. Assume you already record the investment at $5,500 in your net worth, have no related debt, and leave tax effects out of this comparison.

CalculationAmount
Gross sale price$5,500
Selling expenses$100
Amount realized, $5,500 − $100$5,400
Adjusted cost basis$4,000
Realized gain, $5,400 − $4,000$1,400

Immediately before the sale, you hold a $5,500 investment; afterward, you hold $5,400 in cash. With nothing else changing and taxes excluded, your net worth falls by the $100 selling expense rather than rising by the $1,400 realized gain.

Why it matters

A realized gain answers how a completed disposal compares with the asset's adjusted basis. It does not answer how much cash you receive, how much is available to spend after taxes, or how much your wealth changes that day. Confusing those figures can make a sale look like a sudden increase in wealth when most of the growth happened earlier.

Net proceeds describe what remains after the deductions included in a sale calculation. In the example, proceeds after selling expenses are $5,400, but the gain is only $1,400. When a statement uses the label net proceeds, check which deductions it includes before using that figure to calculate a gain.

Realized gain versus unrealized gain

A realized gain comes from a completed sale or other disposal, while an unrealized gain is an increase above adjusted basis on an investment you still hold. An unrealized gain can shrink or disappear as the market price changes.

In the example, the investment's $5,500 market value exceeds its $4,000 basis by $1,500 before the sale. The realized gain is $1,400 because the $100 selling expense reduces the amount realized. The two figures need not match even when the sale price equals the previously recorded market value.

Common questions

Is the whole sale price a realized gain? No. The sale price includes recovery of your basis as well as any gain, and selling expenses reduce the amount realized in an ordinary cash sale. Subtract the adjusted basis only after calculating that amount.

Does a realized gain always mean I owe tax? No. For an ordinary investment sale in a US taxable brokerage account, the gain generally enters your tax calculation for the year of sale, but losses and other applicable tax rules can affect what you owe. A realized gain is not itself a tax bill.

What if I reinvest the proceeds? For an ordinary taxable stock or fund sale, buying another investment does not undo the completed sale or make its gain unrealized again. Keep the sold investment's gain separate from the new investment's basis.

What if I sell for less than my adjusted basis? When the amount realized is below your adjusted basis, the difference is a realized loss rather than a gain. Whether that loss is deductible is a separate tax question.

Go deeper