
ETF vs Mutual Fund: Which Is Better for Beginners? Explore costs, tax implications, and trading flexibility for informed investment decisions.
See what you might owe when you sell an investment for a profit. Enter your cost basis, sale price, other income and holding period, then press Calculate to estimate the federal tax.
Written by TopicDrill Editorial Team·Updated June 2026
Advertisement
The tool starts with your gain, which is the sale price minus the price you originally paid, known as your cost basis. If the result is negative you have a loss and owe no capital gains tax. If it is positive, the way it is taxed depends entirely on how long you held the asset.
For a long-term gain the calculator stacks the gain on top of your other taxable income and fills the 0, 15 and 20 percent rate bands in order. For a short-term gain it instead measures how much extra ordinary income tax the gain adds at your marginal rates. The chart shows exactly how many dollars land in each band.
Suppose you bought stock for 20,000 dollars, sold it for 50,000 dollars after three years, and have 90,000 dollars of other income as a single filer. The 30,000 dollar long-term gain sits above your income, so most of it is taxed at 15 percent, giving roughly 4,500 dollars of tax. Because your income stays under the threshold, no net investment income tax applies here.
Brackets and thresholds change each year and vary by filing status, so the figures here are estimates based on recent federal numbers. State taxes are not included. For the official rules straight from the source, see the IRS guide to capital gains. If you are reinvesting the proceeds, our future value calculator can project how the after-tax amount might grow.
A short-term gain comes from an asset you held one year or less, and it is taxed at your ordinary income rates. A long-term gain comes from an asset held more than a year, and it gets the lower 0, 15 or 20 percent rates. Holding for just over a year can sharply cut the bill.
Long-term rates depend on your total taxable income, not the gain alone. The gain stacks on top of your other income, so the first dollars may fall in the 0 percent band, the next in the 15 percent band, and the highest dollars in the 20 percent band, all based on income breakpoints for your filing status.
The net investment income tax is an extra 3.8 percent that applies to investment income, including capital gains, once your modified adjusted gross income passes a threshold of 200,000 dollars for single filers or 250,000 dollars for joint filers. It is charged on the smaller of the gain and the amount over the threshold.
No. This tool estimates only US federal capital gains tax and the net investment income tax. Many states tax capital gains as ordinary income, so your real total may be higher. Treat the result as an estimate and confirm specifics with a tax professional.

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