
ETF vs Mutual Fund: Which Is Better for Beginners? Explore costs, tax implications, and trading flexibility for informed investment decisions.
Work out the gain on a sale, estimate the tax at your rate, and see your after-tax profit. Enter the cost basis, sale price and your tax rate, then press Calculate.
Written by TopicDrill Editorial Team·Updated June 2026
Advertisement
The calculator subtracts your selling costs from the sale price to get net proceeds, then subtracts your cost basis to find the capital gain. It applies your chosen tax rate to any positive gain and shows the tax owed alongside your after-tax profit.
Choosing long term or short term simply suggests a typical default rate, which you can override with your own figure. The split chart shows how much of your gain you keep versus how much goes to tax, which makes the cost of selling easy to see.
Buy an asset for $10,000 and sell it for $15,000 with $100 in selling costs. Your net proceeds are $14,900 and your gain is $4,900. At a 15% long term rate the tax is $735, leaving an after-tax profit of about $4,165.
This is an estimate. Actual capital gains tax depends on your total income, filing status and the rules in your jurisdiction, so treat the result as a planning tool and confirm with a tax professional. For official guidance, the Internal Revenue Service is the authoritative source. You can also explore our other free calculators.
A capital gain is the profit you make when you sell an asset for more than you paid for it. The amount is your net sale proceeds minus your cost basis. If you sell for less than your basis, you have a capital loss instead.
Cost basis is generally what you originally paid for an asset, including purchase costs. Subtracting it from your net proceeds gives your taxable gain. Keeping accurate records of basis is important because it directly reduces the gain you are taxed on.
Short term gains apply to assets held one year or less and are usually taxed at higher ordinary income rates. Long term gains apply to assets held longer than a year and often qualify for lower tax rates, which is why holding period matters.
Yes. Capital losses can offset capital gains, which lowers the amount you are taxed on, and limited net losses may offset other income. This calculator shows a loss as a negative result so you can see when a sale would not generate a taxable gain.

ETF vs Mutual Fund: Which Is Better for Beginners? Explore costs, tax implications, and trading flexibility for informed investment decisions.

Invest $1,000 today and the answer to "what's it worth in 10 years?" ranges from about $1,040 in a basic savings account to roughly $2,594 at the stock market's long-run average. Here's the math behind every scenario — plus how inflation, fees and taxes change the real number.

There's no single magic number for retirement — but there are proven formulas that get you close. Using the 4% rule, most people need roughly 25 times their annual spending invested. Here's how to find your personal target, factoring in Social Security, healthcare, inflation and lifestyle.
Advertisement