What is a capital gain or loss?
A capital gain or loss is the difference between the amount realized from selling an asset and the adjusted basis entered for that asset.
Finance Calculator
Calculate a generic realized capital gain or loss from purchase cost, adjusted basis, sale proceeds and transaction expenses, with an optional user-rate tax estimate.
A capital gain or loss is a pre-tax result from selling a capital asset. NexaCalc models it as amount realized minus adjusted basis. The page is intentionally broader than the Stock Profit Calculator because it can include basis adjustments, property-like costs and a generic user-rate tax estimate.
Adjusted basis is the purchase-side value used in the gain calculation after user-entered additions and reductions. The calculator does not decide whether an item legally belongs in basis; it simply applies the labels entered.
For per-unit assets, gross acquisition cost equals quantity times purchase price per unit. For total-value mode, it uses the entered purchase cost. Acquisition fees and other purchase expenses are added to basis.
Capital improvements and additional basis items increase adjusted basis in the model. This can fit property improvements, transaction-specific costs or other documented adjustments when the user decides they apply.
Basis reductions, depreciation entered by the user and return-of-capital adjustments reduce adjusted basis. Reductions can increase a modeled gain or reduce a modeled loss.
Amount realized equals gross sale proceeds minus selling expenses. Selling expenses can include fixed costs, other expenses and a percentage of gross sale proceeds.
Percentage selling expenses are calculated from gross sale proceeds before fixed costs are subtracted. A 100% or higher selling-expense rate is rejected because break-even math would not be meaningful.
Sale proceeds are not the same as gain. A large sale value can still produce a small gain if adjusted basis and selling costs are also high.
Holding-period return divides gain or loss by adjusted basis. It is a transaction return, not a tax classification.
Annualized return is calculated from amount realized divided by adjusted basis over elapsed years. It is not labeled CAGR when intermediate cash flows or tax effects are involved.
The optional tax estimate applies only user-entered rates, offsets, allowances and fixed adjustments. It does not embed tax brackets, exemptions, filing status or country-specific rules.
For a loss, the calculator does not estimate a refund or tax saving. Whether a loss is deductible, limited or carried forward depends on rules outside this page.
Securities often need lot records and broker statements. Property can involve improvements, depreciation and sale costs. This calculator keeps those inputs manual and transparent.
NexaCalc does not determine recapture, home-sale exclusions, wash sales, indexation, crypto lots, inherited basis, gifted basis or foreign-exchange tax consequences.
The calculator is only as good as the records entered. Purchase confirmations, settlement statements, improvement records, broker statements and tax records can all matter.
Security example: 100 units bought at 50 with 10 acquisition fee and sold at 65 with 10 selling fee gives 5,010 adjusted basis, 6,490 amount realized, 1,480 gain and 296 estimated tax at a user-entered 20% rate. Property example: 300,000 purchase cost, 10,000 acquisition costs, 20,000 improvements, 5,000 basis reductions, 400,000 sale and 24,000 selling expenses gives 325,000 adjusted basis and 51,000 gain.
A capital gain or loss is the difference between the amount realized from selling an asset and the adjusted basis entered for that asset.
No. The tax result is a generic user-rate estimate based only on the rates, offsets, allowances and fixed adjustment entered by the user.
Adjusted basis starts with purchase cost and acquisition expenses, then adds user-entered basis additions and subtracts user-entered basis reductions.
Yes. Per-unit mode can model a basic security sale, but it does not replace broker lot accounting, FIFO, LIFO or specific-identification records.
Yes. Property or adjusted-basis mode supports purchase cost, acquisition costs, improvements, basis reductions and selling expenses.
No. Holding days and years are shown when dates are entered, but official classification depends on jurisdiction and asset-specific rules.
The calculator subtracts fixed selling costs, other selling expenses and any percentage selling cost from gross sale proceeds to estimate amount realized.
The calculator shows a capital loss and sets percentage tax to zero by default. It does not estimate tax refunds or loss deductibility.
It is the gross sale proceeds needed for amount realized to equal adjusted basis after entered selling expenses.
Annualized return is only calculated when adjusted basis, amount realized and elapsed holding years are all positive.
No. Recapture, exclusions, wash-sale rules, inheritance, gifts, crypto accounting and jurisdiction rules are outside this generic calculator.
References reviewed on June 28, 2026. The calculator does not copy tax-rate tables or jurisdiction-specific rules.
Adjusted basis, taxable gain, holding-period classification, exemptions, losses, recapture and tax rates depend on the asset, transaction, taxpayer and jurisdiction. Review official records and consult a qualified tax professional before filing or making a financial decision.