What is a capital gain? Realized gains, basis and examples

A capital gain is an increase in the value of an asset. It is unrealized while the asset remains held and realized when a sale or other relevant disposal crystallizes the gain.

In a simple sale, the realized gain is net sale proceeds minus the asset’s adjusted cost basis. Basis is the amount used for the calculation; it can differ from the original purchase price. A negative result is a capital loss.

A house, sale agreement and share certificates illustrate unrealized value changes, realization and the basis calculation.
Tax treatment depends on the asset, transaction, jurisdiction and applicable exemptions.

Realized and unrealized gains

Suppose shares bought for $100 are now worth $150 but have not been sold. The $50 increase is an unrealized gain before costs. If sold for $150 with no costs or basis adjustments, the gain becomes realized.

Fidelity explains this distinction. Unrealized gains affect investment value even when no sale proceeds have been received. Whether and when a tax system recognizes a gain is a separate question; some transactions and regimes have special rules.

Costs can change the calculation

Under the US rules described in IRS Publication 551, purchased share basis generally includes purchase commissions. Later events can adjust that basis. Qualifying property improvements can also increase basis, while depreciation or other items may reduce it.

For example, ten shares bought for $10 each with a $2 purchase fee have a $102 basis. Selling them for $150 with a $3 selling fee gives $147 net proceeds. The realized gain is $147 − $102 = $45, rather than the $50 difference between the headline prices.

A property example with consistent figures

Imagine a nonrental house bought for $150,000, followed by $20,000 qualifying capital improvements. Assume no other basis adjustments. Adjusted basis is $170,000.

The house sells for $200,000 with $5,000 eligible selling costs, leaving $195,000 net proceeds. The gain is $195,000 − $170,000 = $25,000 before any exemption or relief. This is an arithmetic illustration, not the owner’s tax bill.

Three bars show $195,000 net sale proceeds, $170,000 adjusted basis and the $25,000 difference in a hypothetical property sale.
Assumes $150,000 purchase cost, $20,000 qualifying improvements, $200,000 sale price and $5,000 selling costs. No other adjustments.

Spending money on a property does not automatically make every item an allowable improvement. Ordinary maintenance, financing costs and capital improvements can receive different treatment. Records support the calculation.

Capital assets and capital goods

A capital asset is a tax or investment classification; a capital good is an item used in production. These terms overlap in everyday language but are not interchangeable legal definitions. Shares, investment property and personal possessions can fall within capital-gains rules.

A painting bought for $100,000 and sold for $125,000 would produce a $25,000 simple price gain if costs and other adjustments were absent. The asset’s tax treatment still depends on the relevant rules.

Capital gains tax in the US

IRS Topic 409 distinguishes generally long-term gains on assets held more than one year from short-term gains on assets held one year or less, with exceptions. Net long-term gains may receive different federal rates from ordinary income.

Asset type, income, losses, exclusions and additional taxes can affect the result. Personal-use losses are generally not deductible. The holding-period distinction is a US rule described here, not a universal international definition.

Capital gains tax in the UK

GOV.UK explains tax on gains from disposals, which can include selling, gifting, exchanging an asset or receiving compensation. A taxable value can therefore differ from cash actually received.

The UK calculation guidance combines relevant gains and allowable losses before applying the applicable rules and allowance. Exempt assets and reliefs can change the outcome. A gain should not be treated as automatically taxable in full.

Capital gains also differ from dividends or interest received while holding an asset. Total stock return can include both distributions and a change in share value.

Last checked and updated on November 5, 2026 by the MBN editorial team.