Tax Impact of Selling Investments Calculator
How to Use This Calculator
- 1
Enter the sale price and purchase price
Use the total sale proceeds and the investment’s original cost basis. Adjust cost basis for eligible fees, reinvestments, and other basis changes before relying on the result.
- 2
Enter the holding period and tax rate
Enter the number of years held and the capital gains tax rate you want to test. The calculator classifies holdings of at least one year as long-term.
- 3
Review gain, estimated tax, and after-tax proceeds
The results estimate tax on a positive gain and annualized return. They do not include every tax, fee, or basis adjustment.
Example Calculation
An investor sells an investment for $15,000 after buying it for $10,000, holds it for three years, and enters a 15% capital gains tax rate.
Sale Price of Investment ($)
15,000
Purchase Price of Investment ($)
10,000
Holding Period (years)
3
Capital Gains Tax Rate (%)
15
Results
Tax Owed
$750.00
Capital Gain / Loss
$5,000.00
Net Proceeds After Tax
$14,250.00
Total Return
50.00%
Annualized Return
14.47%
Effective Tax Rate on Sale
5.00%
Taxable Capital Gain
$5,000.00
Gain Classification
Long-term
Tips
A sale after 11 months is classified as short-term
Change Holding Period (years) from 3 to 0.92 to see the classification change. Short-term gains are generally taxed as ordinary income, so enter an appropriate rate rather than assuming the long-term rate.
A loss does not create a positive taxable gain in this estimate
Change Sale Price of Investment ($) to $9,000 while keeping the purchase price at $10,000. The calculator reports a $1,000 loss and zero tax on this position, but it does not calculate how the loss offsets other gains.
A higher tax rate lowers after-tax proceeds but not the pre-tax return
Change Capital Gains Tax Rate (%) from 15 to 20. Tax Owed and Net Proceeds After Tax change, while Total Return and Annualized Return remain based on sale price and purchase price.
What this calculator estimates
This calculator estimates the tax on a gain when an investment is sold, along with net proceeds and pre-tax returns. It uses sale price minus purchase price as the gain and applies the rate you enter; it does not calculate adjusted basis, state taxes, investment fees, wash-sale rules, or the netting of gains and losses across a portfolio.
How the calculation works
Capital gain or loss = Sale price − Purchase price
Taxable capital gain = max(0, Capital gain or loss)
Estimated tax = Taxable capital gain × Capital gains tax rate
Net proceeds after tax = Sale price − Estimated tax
For the example, the gain is $15,000 − $10,000 = $5,000. The entered tax rate is 15% = 0.15, so estimated tax is $5,000 × 0.15 = $750. Net proceeds after tax are $15,000 − $750 = $14,250.
Total return is the gain divided by purchase price: $5,000 ÷ $10,000 × 100 = 50%. Annualized return accounts for the three-year holding period: ((15,000 ÷ 10,000)^{1/3} − 1) = 14.47% per year. Annualized return is a compound rate for comparing periods; it does not mean the investment earned the same amount each year.
Holding period and tax rate
For most capital assets, gains held for more than one year receive long-term treatment, while gains held for one year or less are generally short-term. The calculator classifies a holding period of at least one year as long-term, but the exact start and end dates matter for tax reporting. Short-term gains are generally taxed at ordinary income rates; long-term rates depend on taxable income and filing status. Check the IRS capital gains guidance before selecting a rate.
| Sale price | Purchase price | Holding period | Rate entered | Estimated tax |
|---|---|---|---|---|
| $12,000 | $10,000 | 0.5 years | 24% | $480 |
| $12,000 | $10,000 | 2 years | 15% | $300 |
| $9,000 | $10,000 | 2 years | 15% | $0 |
The loss example shows a limitation: zero tax on this position does not mean the loss has no tax value. A loss may offset gains elsewhere, but the calculator does not combine transactions or determine allowable deductions.
Cost basis and the decision to sell
Purchase price is not always the adjusted cost basis used for tax reporting. Reinvested distributions, return of capital, commissions, corporate actions, and other events can change basis. Use the basis reported by your broker only after checking whether it reflects all relevant adjustments.
A sale also has a tradeoff beyond tax: realizing a gain creates a current tax bill, while holding the asset preserves exposure to future price changes and risk. Compare the estimated after-tax proceeds with your next-best investment choice, fees, and concentration risk. The SEC’s investor guidance on capital gains explains the basic distinction between realized gains and losses.
For related analysis, use the After-Tax Investment Return Calculator or After-Tax Return Calculator. If you are comparing a sale with another use of the money, the Opportunity Cost Calculator for Investments can help frame the alternative.
When to use a different calculator
- Estimate returns after taxes across an investment period → After-Tax Investment Return Calculator
- Compare investment returns after tax → After-Tax Return Calculator
- Compare the cost of selling with another investment choice → Opportunity Cost Calculator for Investments
- Estimate the tax effect of charitable gifts of appreciated assets → Tax Impact of Charitable Donations Calculator
- Evaluate the tax impact of moving retirement assets → IRA Rollover Tax Impact Calculator
Frequently Asked Questions
How is capital gains tax calculated when I sell an investment?
Capital gain is generally the amount realized from a sale minus adjusted cost basis, and tax depends on the asset, holding period, income, and applicable rules. This calculator applies your entered rate only to a positive difference between sale price and purchase price; the IRS capital gains and losses guide explains federal rules.
When is a capital gain long-term?
For most capital assets, a gain is generally long-term when you hold the asset for more than one year; a holding period of one year or less is generally short-term. The calculator labels exactly one year as long-term, so check the actual acquisition and sale dates and IRS holding-period rules before filing.
Does this estimate include state tax or the net investment income tax?
No; it applies only the tax rate you enter and does not separately calculate state or local tax, the net investment income tax, or other taxes. Your total tax can differ based on income, filing status, asset type, and other transactions.
Can a capital loss reduce tax on other gains?
A capital loss may offset capital gains under tax rules, and a net loss may be deductible subject to limits and carryforward rules. This calculator reports zero tax on a loss position but does not net that loss against other investments; see IRS Topic No. 409 for the federal treatment.
Should I sell an investment just because the tax estimate is low?
No; the tax estimate does not compare the investment’s future prospects, transaction fees, portfolio risk, or the cost of delaying a sale. Compare the after-tax proceeds with your alternative use for the money and check whether selling changes your tax bracket or other tax calculations.
