Capital Gains Tax Calculator
Estimate your capital gain, taxable gain, federal and state capital gains tax and after-tax proceeds for 2026 or 2025, with the holding period worked out from your dates.
U.S. federal + state · Tax year 2026 · Single
Estimated Capital Gains Tax (2026)
$2,175.00
Total estimated tax on a $14,500.00 long-term gain.
- Capital Gain
- $14,500.00
- Holding Period
- 2 years 3 months · Long-term
- Taxable Capital Gain
- $14,500.00
- Federal Tax
- $2,175.00
- State Tax (Texas)
- $0.00
- Total Estimated Tax
- $2,175.00
- Net Proceeds After Tax
- $32,325.00
- Effective Tax Rate
- 15.00%
- After-Tax Profit
- $12,325.00
Effective tax rate = total estimated tax ÷ capital gain. Net proceeds = selling price − selling expenses − tax.
Results are estimates, not tax advice. Actual tax depends on your complete financial situation, including other gains and losses, deductions and credits, and tax laws and thresholds can change. Depreciation recapture, the 28% rate on collectibles, AMT, special asset rules and local taxes are not included. State capital gains tax rules vary by state and may change. This calculator provides an estimate and should not be considered tax advice.
How Your Estimate Was Calculated
- 1.Sale price$35,000.00
- 2.− Adjusted cost basis−$20,000.00
- 3.− Selling expenses−$500.00
- 4.= Capital gain$14,500.00
Tax on the gain
Your $14,500.00 gain is added on top of $80,000.00 of taxable income, so it fills the long-term capital gains brackets from $80,000.00 to $94,500.00:
- $14,500.00 × 15% = $2,175.00
- Federal long-term tax = $2,175.00
- State: No broad state income tax on capital gains. = $0.00
- Total = $2,175.00; net proceeds = $34,500.00 − $2,175.00 = $32,325.00
Where the Sale Price Goes
- Purchase cost (adjusted basis)$20,000.00 (57.1%)
- Selling expenses$500.00 (1.4%)
- Estimated tax$2,175.00 (6.2%)
- After-tax profit$12,325.00 (35.2%)
Purchase cost $20,000.00 → capital gain $14,500.00 → estimated tax $2,175.00 → after-tax proceeds $32,325.00.
Short-Term vs. Long-Term
| Metric | Short-Term | Long-Term (yours) |
|---|---|---|
| Tax treatment | Ordinary income rates | Preferential 0/15/20% rates |
| Federal tax | $3,190.00 | $2,175.00 |
| NIIT | $0.00 | $0.00 |
| State tax | $0.00 | $0.00 |
| Total estimated tax | $3,190.00 | $2,175.00 |
| After-tax proceeds | $31,310.00 | $32,325.00 |
Long-term treatment would save about $1,015.00 on this gain. Actual treatment depends on your complete tax situation.
2026 Federal Rates for Single
Long-term gains (taxable income incl. the gain)
- 0% up to $49,450
- 15% $49,450 – $545,500
- 20% over $545,500
Short-term gains: ordinary brackets
- 10% $0 – $12,400
- 12% $12,400 – $50,400
- 22% $50,400 – $105,700
- 24% $105,700 – $201,775
- 32% $201,775 – $256,225
- 35% $256,225 – $640,600
- 37% $640,600 and up
With $80,000.00 of other taxable income, your long-term gain is taxed at 15%. Only the part of the gain inside each band is taxed at that band's rate. The 3.8% net investment income tax is separate: it applies to the smaller of your investment income and the amount your modified AGI exceeds $200,000 (not inflation-indexed).
What If? Scenario Analysis
| Scenario | Gain / Loss | Total Tax | After-Tax Proceeds | Change |
|---|---|---|---|---|
| Current scenario | $14,500.00 | $2,175.00 | $32,325.00 | — |
| Sell for $40,000 instead | $19,500.00 | $2,925.00 | $36,575.00 | +$4,250.00 |
| Taxable income of $150,000 | $14,500.00 | $2,175.00 | $32,325.00 | +$0.00 |
Each row reruns the full estimate with one change. Higher income can push a gain into a higher bracket or above the NIIT threshold.
Federal rules: 2026 IRS brackets and capital gains breakpoints. State rates: Tax Foundation 2026 state income tax rates; state capital gains rules as listed (2026).
This capital gains tax calculator estimates the tax on selling an investment: stocks, mutual funds, ETFs, cryptocurrency, real estate or other assets. Enter the purchase and sale prices, dates and costs, your filing status, taxable income and state, and it works out your adjusted cost basis, capital gain or loss, holding period, short- or long-term status, federal capital gains tax, net investment income tax, estimated state tax, total tax, effective rate and after-tax proceeds.
It also compares short-term and long-term treatment, explains which 0%, 15% or 20% bracket applies, and lets you test an alternative sale price or income. Results are estimates for U.S. federal tax years 2026 and 2025, not tax advice.
Capital Gains Tax Calculator
This capital gains tax calculator estimates how much tax you may owe when you sell an investment for more than you paid. Enter the purchase and sale prices, dates and costs, and it works out your adjusted cost basis, capital gain or loss, whether the gain is short-term or long-term, the estimated federal capital gains tax, the 3.8% net investment income tax where it applies, an estimated state tax and your after-tax proceeds. It is useful for investors selling stocks, funds, ETFs or crypto, people selling property, and anyone who wants to calculate capital gains tax before deciding when to sell. It is an estimator for U.S. federal tax years 2026 and 2025, not a tax return.
How to Calculate Capital Gains Tax
- Determine the selling price: the total amount you received for the asset.
- Determine the adjusted cost basis: what you paid plus purchase commissions, improvements and other eligible adjustments.
- Calculate the gain or loss: selling price − adjusted basis − selling expenses.
- Check the holding period: more than one year is long-term; one year or less is short-term.
- Find the applicable rate: ordinary income brackets for short-term gains, 0%, 15% or 20% for long-term gains, depending on your taxable income and filing status.
- Estimate federal and state tax: add the 3.8% net investment income tax if your income is above the threshold, and your state's tax.
- Calculate after-tax proceeds: selling price − selling expenses − total tax.
Estimated tax = tax on (taxable income + gain) − tax on taxable income alone, + NIIT + state tax
Capital Gains Tax Formula
Capital Gain = Selling Price − Adjusted Cost Basis − Eligible Selling Expenses
Adjusted Cost Basis = Original Cost + Eligible Adjustments
- Selling price: the gross amount of the sale.
- Adjusted cost basis: the original purchase price plus costs of buying (commissions, fees), capital improvements to property and other eligible adjustments, such as reinvested dividends that were already taxed.
- Eligible selling expenses: costs of selling, such as brokerage commissions, transaction fees or real estate closing costs.
A positive result is a capital gain; a negative result is a capital loss, which produces no capital gains tax.
Short-Term vs Long-Term Capital Gains
The holding period starts the day after you buy and ends on the day you sell. If you hold an asset for more than one year, the gain is long-term; one year or less is short-term. Bought on March 15, 2025, an asset sold on March 15, 2026 is still short-term; sold on March 16, 2026 it is long-term.
Short-term gains are taxed as ordinary income at rates from 10% to 37%. Long-term gains (and qualified dividends) get preferential rates of 0%, 15% or 20%. That is why the holding period matters: in the example below the same $14,500.00 gain is taxed $3,190.00 short-term but $2,175.00 long-term. Some assets have their own rules, such as collectibles (up to 28%), depreciation on real estate and inherited property (always treated as long-term), so the simple one-year test does not cover every case.
How Capital Gains Tax Is Calculated
Capital gains are not always taxed at one flat rate. Your gain is added on top of your other taxable income, and the brackets apply to where it lands. For 2026, a single filer pays 0% on long-term gains that fall within taxable income up to $49,450, 15% up to $545,500 and 20% above that (married filing jointly: $98,900 and $613,700; head of household: $66,200 and $579,600). A gain that straddles a threshold is taxed partly at each rate. Short-term gains do the same with the ordinary income brackets.
Filing status changes the thresholds, and income changes where the gain starts. Separately, the 3.8% net investment income tax applies to the smaller of your investment income or the amount your modified AGI exceeds $200,000 (single and head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). The calculator shows it as its own line rather than adding it to the 15% or 20% rate.
Capital Gains Tax on Stocks
Use the calculator for shares, mutual funds and ETFs: enter what you paid, your purchase commission, the sale price and the selling commission. Example (2026, single, $120,000 of taxable income, held over a year): 100 shares bought at $50 ($5,000.00) with a $10.00 commission and sold at $80 ($8,000.00) with a $10.00 commission.
- Adjusted basis = $5,000.00 + $10.00 = $5,010.00
- Gain = $8,000.00 − $5,010.00 − $10.00 = $2,980.00
- Estimated federal tax at 15% = $447.00; after-tax proceeds $7,543.00
For the profit side of a trade, including short positions and dividends, see the stock profit calculator; for income from holding shares, the dividend calculator.
Capital Gains Tax on Cryptocurrency
In the U.S., cryptocurrency is treated as property. Selling it, trading one coin for another or spending it can be a taxable event, creating a capital gain or loss measured from your cost basis, with the same short-term and long-term rules as stocks. Fees paid to buy can usually be added to basis and fees paid to sell reduce the proceeds. Record-keeping and cost-basis methods matter, so check current IRS guidance or a tax professional for your situation. The crypto profit calculator handles multiple purchases and fees.
Capital Gains Tax on Real Estate
Real estate has extra rules a simple calculator cannot fully represent. If the property was your main home and you owned and lived in it for at least two of the last five years, up to $250,000 of gain ($500,000 married filing jointly) may be excluded; the calculator lets you apply this exclusion. Capital improvements add to your basis, and closing costs count as selling expenses. For rental property, depreciation you claimed (or could have claimed) reduces your basis and is taxed at up to 25% on sale, which is not included here. Like-kind exchanges, partial exclusions and state rules can also apply, so verify the rules that fit your situation.
Capital Gains Tax Example
1. Long-term investment gain (example)
Purchase price $20,000.00, sale price $35,000.00, selling costs $500.00, held more than one year, single filer, $80,000 of taxable income, 2026, no state income tax.
- Adjusted cost basis: $20,000.00
- Capital gain: $35,000.00 − $20,000.00 − $500.00 = $14,500.00
- Applicable estimated rate: 15% (taxable income of $80,000 + the gain stays between $49,450 and $545,500)
- Estimated tax: $14,500.00 × 15% = $2,175.00
- Net proceeds: $35,000.00 − $500.00 − $2,175.00 = $32,325.00
2. Short-term investment gain (example)
Bought for $10,000.00 and sold seven months later for $15,000.00 with $50.00 of fees, single, $60,000 of taxable income. Gain = $15,000.00 − $10,000.00 − $50.00 = $4,950.00. Held one year or less, it is taxed as ordinary income at 22%: $1,089.00 of federal tax, leaving $13,861.00 after tax.
3. Capital loss (example)
Bought for $30,000.00 and sold for $25,000.00: capital loss $5,000.00, and no capital gains tax. With no other gains, up to $3,000 ($1,500 married filing separately) can offset other income in one year, worth about $660.00 at a 22% bracket, and the remaining $2,000.00 carries forward.
Related Tax and Investment Tools
To see how a gain affects your whole return, use the income tax calculator or the tax refund calculator, which include long-term gains with your other income. To project growth before you sell, try the investment calculator or compound interest calculator, and the inflation calculator shows how much of a long-held gain is just inflation.
How to Use the Capital Gains Tax Calculator
- Choose the asset type and enter the purchase price, selling price, purchase date and sale date; the holding period and short- or long-term status are worked out for you.
- Add purchase commissions, selling expenses, improvements or other eligible adjustments to get your adjusted cost basis.
- Choose your filing status and tax year, and enter your annual taxable income without this sale.
- Select your state, and optionally replace the default state rate with your own marginal rate.
- Read the capital gain, federal and state tax, net investment income tax, total tax and after-tax proceeds, with each step shown.
- Compare short-term and long-term treatment and try an alternative sale price or income in the What If? table.
Frequently Asked Questions
How do I calculate capital gains tax?
Subtract your adjusted cost basis (purchase price plus eligible costs) and selling expenses from the selling price to get the gain. Then apply your ordinary income rates if you held the asset one year or less, or the 0%, 15% or 20% long-term rates if you held it longer, based on where the gain falls on top of your other taxable income. Add the 3.8% net investment income tax and state tax if they apply.
What is the capital gains tax rate?
Long-term gains are taxed at 0%, 15% or 20% federally. For 2026 a single filer pays 0% on gains within taxable income up to $49,450, 15% up to $545,500 and 20% above (married filing jointly: $98,900 and $613,700). Short-term gains are taxed at ordinary rates of 10% to 37%. High earners may also owe the 3.8% net investment income tax, and most states tax gains too.
What is the difference between short-term and long-term capital gains?
A gain on an asset held more than one year is long-term and gets the lower 0/15/20% rates. A gain on an asset held one year or less is short-term and is taxed as ordinary income. The holding period starts the day after you buy, so an asset bought on March 15 must be sold on March 16 of the next year or later to be long-term.
Are capital gains included in taxable income?
Yes. Capital gains are part of your gross and taxable income, and they can push other tax items such as credits or the net investment income tax over thresholds. Long-term gains are simply taxed at their own rates within that income; short-term gains are taxed like wages.
How is capital gains tax calculated on stocks?
Your basis is what you paid for the shares plus the purchase commission; selling commissions and fees reduce the proceeds. The difference is the gain, taxed at long-term or short-term rates depending on how long you held the shares. For example, shares bought for $5,010 including fees and sold for $7,990 after fees give a $2,980 gain, about $447 of federal tax at 15%.
How are capital losses treated?
A loss means no capital gains tax on that sale. Losses first offset capital gains; if losses are larger, up to $3,000 a year ($1,500 married filing separately) can reduce other income, and the rest carries forward to future years. Losses on personal-use property, such as your home, are not deductible.
Do I pay capital gains tax when I sell an investment?
Only if you sell for a gain in a taxable account. Selling for a loss or at break-even creates no capital gains tax, and sales inside retirement accounts such as a 401(k) or IRA are not taxed when they happen. Tax is generally due for the year of the sale, which may mean estimated payments.
Does holding an investment longer reduce capital gains tax?
Often. Holding more than one year turns a short-term gain into a long-term gain, taxed at 0/15/20% instead of ordinary rates. For a single filer with $80,000 of taxable income in 2026, a $14,500 gain is taxed about $3,190 short-term but $2,175 long-term. The price can change while you wait, so the tax saving is not the only factor.
Is capital gains tax the same in every state?
No. Most states tax capital gains as ordinary income, some exclude part of long-term gains (for example Arkansas, North Dakota, South Carolina and Wisconsin), Washington has a separate tax on large long-term gains, Missouri now exempts capital gains, and states such as Florida and Texas have no income tax. State rules change, so treat the state figure as an estimate.
Does capital gains tax apply to cryptocurrency?
Yes. The IRS treats cryptocurrency as property, so selling it, swapping it for another coin or spending it can create a capital gain or loss with the same short-term and long-term rules as stocks.
How does filing status affect capital gains tax?
Filing status sets the income thresholds for each rate. Married couples filing jointly have roughly double the 0% and 15% thresholds of single filers, head of household is in between, and married filing separately has the lowest 15%/20% threshold. It also changes the net investment income tax threshold and the home sale exclusion.
Is this calculator an exact tax calculation?
No. It estimates the tax on one sale using the published federal brackets and simplified state rates. It does not see your other gains and losses, deductions, credits, the alternative minimum tax, depreciation recapture or special asset rules, and modified AGI is approximated by taxable income for the net investment income tax. Use it for planning and confirm with a tax professional or your tax software.
Related Calculators
Income Tax Calculator
Estimate U.S. federal income tax for 2026 or 2025: taxable income, tax by bracket, credits, and marginal and effective tax rates.
Tax Refund Calculator
Estimate your U.S. federal tax refund or amount owed for 2026 or 2025 from income, deductions, credits and taxes already paid.
Stock Profit Calculator
Calculate stock profit or loss after trading costs, ROI, break-even and target exit prices, for long or short trades.
Crypto Profit Calculator
Calculate crypto profit or loss after exchange and network fees, ROI, break-even price and net proceeds, with an average-cost tool for multiple purchases.
Investment Calculator
Calculate investment returns, compound annual growth rate (CAGR), and portfolio value.
Dividend Calculator
Calculate dividend income and yield, project dividend growth and reinvestment (DRIP), and find the investment needed for a target monthly income.
Self-Employment Tax Calculator
Estimate self-employment tax for 2026 or 2025: Social Security, Medicare and Additional Medicare Tax, the deductible half and quarterly amounts.
Loan Calculator
Calculate monthly loan payments, interest charges, and loan payoff terms.
More Finance Calculators
Last updated: October 25, 2026.