US Capital Gains Tax Calculator
Estimate short-term or long-term capital gains tax using sale price, cost basis, selling expenses, loss carryover, filing status, income, and optional NIIT.
Capital gains estimate
Short + Long Term
Gain, tax, and after-tax result
Enter capital gains details
Estimate short-term or long-term capital gains tax using sale price, cost basis, selling expenses, capital loss carryover, filing status, and other taxable income.
Capital gains tax note
Long-term gains use long-term capital gains brackets. Short-term gains are estimated by comparing ordinary income tax with and without the gain.
Capital gains tax estimate
Total capital gains tax
$8,550
After-tax gain: $48,450
Holding period
Long-term capital gain
Filing status
Single
Net capital gain
$57,000
Effective tax rate
15.00%
Gain calculation
Tax calculation
Applied tax bands
Rate: 15.00% · Over $49,450 to $545,500
This is a simplified capital gains tax estimate. Actual tax may differ because of qualified dividends, capital losses, wash sales, real estate exclusions, depreciation recapture, NIIT, state taxes, AMT, and complete return calculations.
| Item | Amount |
|---|---|
| Sale priceAmount received from the sale. | $150,000 |
| Cost basisOriginal cost or adjusted basis entered by the user. | $90,000 |
| Selling expensesBroker fees, closing costs, or selling expenses entered by the user. | $3,000 |
| Realized gain before lossesSale price minus cost basis and selling expenses. | $57,000 |
| Capital loss carryover usedLoss carryover entered by the user to offset gain. | $0 |
| Net capital gainCapital gain remaining after loss carryover. | $57,000 |
| Other taxable incomeTaxable income before this capital gain. | $85,000 |
| Taxable income including gainOther taxable income plus net capital gain. | $142,000 |
| Regular capital gains taxEstimated using long-term capital gains brackets. | $8,550 |
| Net Investment Income TaxNIIT not included. | $0 |
| Total capital gains taxRegular capital gains tax plus optional NIIT estimate. | $8,550 |
| After-tax gainNet gain remaining after estimated capital gains tax. | $48,450 |
Current net capital gain used in this estimate: 57,000 USD.
Capital gains tax depends on holding period and income level
This calculator estimates short-term and long-term capital gains tax using sale price, basis, expenses, loss carryover, filing status, other taxable income, and optional Net Investment Income Tax. It is designed for planning, not final filing.
Key features
- ✓Estimates short-term and long-term capital gains tax.
- ✓Uses sale price, cost basis, selling expenses, and loss carryover.
- ✓Includes filing status and other taxable income for rate stacking.
- ✓Shows regular capital gains tax and optional NIIT.
- ✓Calculates after-tax gain and effective capital gains tax rate.
- ✓Useful for stocks, crypto, real estate, and investment planning.
How to use this calculator
- 1
Select filing status and holding period.
- 2
Enter sale price, cost basis, and selling expenses.
- 3
Add capital loss carryover if applicable.
- 4
Enter other taxable income before this gain.
- 5
Choose whether to include Net Investment Income Tax.
- 6
Review net gain, capital gains tax, NIIT, after-tax gain, and applied tax bands.
US Capital Gains Tax Calculator for Short-Term and Long-Term Investment Gains
The US Capital Gains Tax Calculator is designed for investors, stock traders, crypto sellers, real estate sellers, business owners, and taxpayers who want a quick estimate of tax on a capital gain. Capital gains tax depends on sale price, cost basis, selling expenses, loss carryovers, holding period, filing status, other taxable income, and whether Net Investment Income Tax may apply. This calculator brings those inputs together to estimate net capital gain, regular capital gains tax, optional NIIT, total tax, after-tax gain, and effective tax rate.
Capital gain starts with the difference between what you receive from a sale and your adjusted basis. In this simplified calculator, sale price is reduced by cost basis and selling expenses to estimate realized gain before losses. If the user enters a capital loss carryover, the calculator subtracts that loss from the realized gain to estimate net capital gain. If the result is negative or zero, the calculator shows no taxable capital gain in this simplified estimate.
Holding period is one of the most important capital gains tax factors. A short-term capital gain generally applies when an asset is held for one year or less, and it is usually taxed at ordinary income tax rates. A long-term capital gain generally applies when an asset is held for more than one year, and it may receive preferential long-term capital gains rates. This calculator lets users select short-term or long-term treatment and applies different logic for each holding period.
For short-term gains, the calculator estimates the tax by comparing ordinary federal income tax with and without the short-term gain. This approach helps approximate how much additional ordinary tax is caused by the gain. Short-term gain can be expensive for higher-income taxpayers because the gain stacks on top of existing income. A taxpayer already in a higher ordinary bracket may see a higher tax cost on a short-term sale than on a similar long-term sale.
For long-term gains, the calculator uses long-term capital gains brackets from the shared US tax-rate file. Long-term gains are stacked on top of other taxable income because the rate depends on the taxpayer’s overall income level. A taxpayer with low other taxable income may have some long-term gain taxed at 0%, while a higher-income taxpayer may have gain taxed at 15% or 20%. The calculator also shows applied tax bands so users can see how much gain falls into each bracket.
Other taxable income is important because capital gains brackets do not operate in isolation. If a taxpayer has wages, business income, retirement income, interest income, or other taxable income, that income can push capital gains into a higher bracket. This is why the calculator asks for other taxable income before the capital gain. Without that input, the estimate would not reflect how income stacking affects long-term capital gains tax.
Selling expenses can reduce the gain in this simplified estimate. Examples may include brokerage commissions, closing costs, transaction fees, or other direct selling expenses. Cost basis may include original purchase cost plus certain adjustments, depending on the asset. Real estate basis can involve improvements, depreciation, and other adjustments. Stock and crypto basis can involve purchase price, fees, splits, transfers, and lot selection. This calculator uses the cost basis amount entered by the user and does not verify basis rules.
Capital loss carryovers can also affect the estimate. A capital loss carryover may offset capital gains, reducing taxable gain. This calculator lets users enter a capital loss carryover amount and subtracts it from the realized gain. It does not apply all capital loss limitation rules or ordinary income offset rules. Users with large losses, wash sales, carryovers, or multiple transactions should verify final treatment with tax software or a qualified tax professional.
The calculator includes an optional Net Investment Income Tax estimate. NIIT can apply to certain investment income for higher-income taxpayers when modified adjusted gross income exceeds the applicable threshold. This calculator uses a simplified method by applying 3.8% to the smaller of the net capital gain or the amount by which simplified income exceeds the threshold. Actual NIIT can require more detailed Form 8960 calculations and may include or exclude different types of income.
Many people search for capital gains tax calculator, long-term capital gains tax calculator, short-term capital gains tax calculator, stock tax calculator, crypto tax calculator, real estate capital gains calculator, investment tax calculator, capital gains rate calculator, and after-tax gain calculator. These searches usually have the same practical goal: the taxpayer wants to know how much tax may be due after selling an asset and how much gain remains after tax.
This calculator can be useful before selling an asset. An investor can compare short-term and long-term holding periods, test different sale prices, include estimated selling costs, and see whether other income pushes the gain into a higher rate band. A real estate seller can estimate a basic gain before considering exclusions or recapture. A crypto investor can estimate taxable gain from a sale. A business owner can use it for a simplified capital asset sale estimate.
This is a simplified capital gains tax estimator, not a full tax return calculation. Actual tax can differ because of qualified dividends, capital losses, wash sales, installment sales, real estate exclusions, depreciation recapture, collectibles rates, section 1250 gain, business asset rules, crypto lot selection, state taxes, NIIT details, AMT, and complete IRS return calculations. Use this tool for planning, then verify final tax with IRS guidance, tax software, or a qualified tax professional.
Frequently asked questions
How does the US capital gains tax calculator work?
It subtracts cost basis and selling expenses from sale price, applies loss carryover, determines net capital gain, then estimates short-term or long-term capital gains tax.
What is the difference between short-term and long-term capital gains?
Short-term gains are generally from assets held one year or less and are estimated at ordinary income rates. Long-term gains are generally from assets held more than one year and may receive preferential rates.
What is cost basis?
Cost basis is the original cost or adjusted tax basis of the asset. It reduces the gain when calculating capital gains tax.
Do selling expenses reduce capital gains?
Yes. In this simplified calculator, selling expenses reduce the realized gain.
What is capital loss carryover?
Capital loss carryover is a prior capital loss that may offset current capital gains. This calculator subtracts the amount entered from the realized gain.
Why does other taxable income matter?
Other taxable income can push capital gains into higher tax brackets, especially for long-term capital gains.
Does this calculator include Net Investment Income Tax?
Yes. You can choose to include a simplified 3.8% NIIT estimate for higher-income taxpayers.
Does this calculator include state capital gains tax?
No. This calculator focuses on federal capital gains tax and optional NIIT. State tax may also apply depending on your state.
Why can actual capital gains tax differ from this estimate?
Actual tax can differ because of wash sales, depreciation recapture, real estate exclusions, collectibles, qualified dividends, AMT, NIIT details, state tax, and complete return calculations.
Is this an official IRS capital gains calculator?
No. This is an independent planning calculator and does not replace IRS forms, tax software, or professional tax advice.
Related calculators
Federal Income Tax Calculator
Estimate federal income tax, taxable income, tax credits, withholding, refund, or amount owed.
Tax Refund Calculator
Estimate federal and state refund or amount owed using income, deductions, credits, and withholding.
Business Tax Calculator
Estimate business profit, tax planning amount, QBI deduction planning, and amount due.
Self Employment Tax Calculator
Estimate self-employment tax, Social Security, Medicare, deductible portion, and quarterly payments.
State Income Tax Calculator
Estimate state income tax using income, deductions, custom rate, credits, and withholding.
Paycheck Tax Calculator
Estimate take-home pay after federal withholding, state withholding, Social Security, Medicare, and deductions.