A capital gain is the excess of amount realized over adjusted basis when a sale or other disposition produces gain with capital character.
A capital gain is the excess of the amount realized from selling or otherwise disposing of a capital asset over the asset’s adjusted basis. The gain is a measured transaction result, not the gross sale price, the cash deposited into an account, or the asset’s increase in market value while it is still held.
For tax purposes, calculating a positive difference is only the first step. The asset must have capital character, the gain must be recognized under the applicable rules, and holding-period and netting rules must be applied before estimating tax.
A useful general framework is:
The components require evidence:
| Component | What it can include | Evidence to inspect |
|---|---|---|
| Amount realized | Cash plus the fair value of property or services received; liabilities can also matter under applicable rules | Trade confirmation, closing statement, contract, settlement record, and valuation support |
| Selling costs | Commissions, transaction fees, and qualifying disposition costs | Broker statement, invoice, and closing statement |
| Adjusted basis | Original cost or another prescribed basis, increased or decreased by required adjustments | Purchase record, lot history, improvement invoices, depreciation schedule, and distribution notices |
| Realized result | Positive amount is gain; negative amount is loss | Reconciled calculation using the same asset or identified lot |
This formula is an analytical starting point, not a universal return-line instruction. The treatment of liabilities, transaction costs, foreign currency, partial dispositions, and noncash consideration depends on the asset and governing rule.
flowchart LR
A["Sale, exchange, or other disposition"] --> B["Measure money, property, services, and relevant liabilities received"]
B --> C["Subtract selling costs and adjusted basis"]
C --> D{"Gain or loss?"}
D -->|"Gain"| E["Classify the asset and gain character"]
D -->|"Loss"| F["Apply capital-loss and deductibility rules"]
E --> G["Determine recognized amount and holding period"]
G --> H["Net with other capital gains, losses, and carryovers"]
H --> I["Apply current reporting and tax rules"]
The workflow matters because a brokerage platform’s displayed profit may not establish tax basis, character, recognition, or the final net capital gain.
Assume an investor buys 100 shares for $4,000 and pays a $10 purchase commission. While the shares are held, the investor receives a $200 distribution correctly classified as a return of capital that reduces basis. The investor later sells the entire lot for $6,000 and pays a $15 sale commission.
The adjusted basis is:
The net amount realized and preliminary gain are:
The $2,175 is not the investor’s sale proceeds and is not automatically the tax due. The next questions are whether the shares are capital assets, whether the gain is fully recognized, how long the identified lot was held, whether other gains or losses must be netted, and which tax rules apply to the investor and year.
If the investor had ignored the commission and return-of-capital adjustment, the gain would have been misstated. Small per-share adjustments can become material across many lots or years.
Assume a business buys equipment for $80,000, capitalizes $5,000 of qualifying acquisition costs, and claims $45,000 of depreciation before selling the equipment for $55,000. Ignore selling costs for this simplified example.
The business has a $15,000 realized gain, but labeling the entire amount a capital gain would be premature. Depreciable business property is generally excluded from the U.S. federal section 1221 capital-asset definition, and depreciation recapture and section 1231 rules can affect character. The calculation and the character determination are separate steps.
The word capital describes tax character, not simply the fact that an asset was valuable or held for a long time. Under U.S. federal rules, stocks, bonds, investment land, and many personal or investment assets can be Capital Assets. Important statutory exclusions include inventory, property held mainly for sale to customers, many business receivables, depreciable business property, business real estate, and specified specialized assets.
| Transaction result | Possible character | Main question |
|---|---|---|
| Gain on investment shares | Capital | Were the shares held as an investment rather than as dealer inventory? |
| Profit on goods sold to customers | Ordinary business income | Was the property inventory or held mainly for sale in the ordinary course? |
| Gain on depreciable business equipment | Section 1231, recapture, or other treatment | Which business-property and depreciation rules apply? |
| Gain on personal-use property | Often capital | Was there a gain, and does a special exclusion or limitation apply? |
| Gain on a derivative or hedging position | Instrument- and purpose-specific | Do contract, mark-to-market, hedging, or straddle rules override ordinary capital treatment? |
Classification depends on the taxpayer’s use and purpose, not just the object’s name. The same type of security can be an investment capital asset for one holder and inventory for a dealer holding it for sale to customers.
These measures answer different questions:
| Measure | Meaning | Why it can differ |
|---|---|---|
| Economic or unrealized gain | Current value exceeds a chosen historical amount while the asset remains held | Market value can change without a disposition |
| Realized Gain | A disposition fixes or measures a gain under the applicable rule | Amount realized and adjusted basis must be established |
| Recognized gain | Realized gain included in the current tax calculation | An exclusion, installment rule, or nonrecognition provision can change timing or amount |
| Capital gain | Recognized or measured gain with capital character | Asset classification and transaction rules control character |
| Net Capital Gain | Defined result after required capital-gain and capital-loss netting | Other transactions and carryovers can change the amount used for rate calculations |
A portfolio can show a positive unrealized gain while no sale has occurred. Conversely, a taxpayer can recognize gain without receiving cash, such as in some property exchanges, noncash sales, constructive-sale situations, or distributions. The relevant rule and transaction facts control.
Cost Basis commonly begins with purchase cost, but adjusted basis can change throughout ownership.
Possible increases include:
Possible decreases include:
Gifted, inherited, converted, exchanged, or compensation-related property can begin with a basis other than the recipient’s cash cost. Basis can also be lot-specific. An investor who bought identical shares on five dates may need to identify which lot was sold and apply an allowed basis method.
For U.S. individual investment property, gain is generally short-term when the asset was held for one year or less and long-term when held for more than one year. Counting begins under tax-specific conventions, and special rules can apply to gifts, inherited property, options, short sales, commodity positions, and other transactions.
The Holding Period affects classification after capital character is established. It does not turn inventory or depreciable business equipment into a capital asset.
Short-term and long-term classification matters because they are netted separately and can receive different rate treatment. The separate Capital Gains Tax guide covers rates, netting, exclusions, special asset categories, and additional taxes in more detail.
Capital-gain reporting can arise through several routes:
Receiving a Form 1099-B or another information statement can help document a transaction, but the form does not guarantee that basis, holding period, wash-sale adjustments, or character is complete. A reportable disposition can also exist even when no form was received.
Capital gain affects more than a tax return. It can influence:
Tax should be one input rather than the objective by itself. Deferring a gain can preserve current liquidity, but holding an unsuitable or concentrated position solely to avoid tax can expose the investor to larger market losses. Selling only to realize a tax result can also create fees, bid-ask costs, replacement risk, or unintended portfolio exposure.
The following sources describe U.S. federal rules. Other jurisdictions define capital assets, basis, realization, recognition, and tax rates differently.
This article provides general financial and U.S. tax education. It is not individualized tax, legal, accounting, estate-planning, digital-asset, business, or investment advice and does not establish a filing position. Current law, jurisdiction, taxpayer status, asset use, basis records, and transaction facts control the result.