Capital Gains Tax Calculator
Updated for tax year 2026
How much tax will I pay on a $50,000 long-term capital gain in 2026?
For a single filer with $100,000 of other taxable income, $7,500: the whole gain falls in the 15% band, and estimated MAGI of $150,000 is under the $200,000 net investment income tax threshold. Sold within a year, the same gain would cost $11,886 at ordinary rates. A married couple with $240,000 of other taxable income would pay $9,020 ($7,500 plus $1,520 of the 3.8% NIIT).
This capital gains tax calculator estimates the federal tax on selling stock, funds, crypto, property or other investments in tax year 2026. Enter what you paid, what you sold for, your costs, how long you held the asset and your other taxable income, and it shows your gain, the tax on it and your effective rate.
Short-term gains are taxed as ordinary income. Long-term gains get the 0%, 15% and 20% rates, stacked on top of your other income, and higher earners may also owe the 3.8% net investment income tax. Figures come from IRS Rev. Proc. 2025-32, are for 2026 and will be updated for 2027. Federal estimate only, not tax advice.
Enter your details
How to Use the Capital Gains Tax Calculator
- 1
Choose the holding period
Long-term if you owned the asset more than one year, short-term if one year or less.
- 2
Enter the sale
Purchase price (cost basis), sale price, and buying and selling costs such as commissions or, for property, closing costs and improvements.
- 3
Enter your other income
Your filing status and other taxable income for the year, after deductions, without this sale.
How capital gains tax is calculated
Your gain is the sale price minus your cost basis minus buying and selling costs. A short-term gain is added to ordinary income, so the calculator finds the tax on your other income with and without the gain and reports the difference.
A long-term gain is stacked on top of your other taxable income: the part below the 0% breakpoint is tax-free, the next part is taxed at 15% and anything above the upper breakpoint at 20%. The 3.8% net investment income tax applies to the smaller of your investment income and the amount your modified AGI exceeds $200,000 (single or head of household) or $250,000 (married filing jointly).
Gain = sale price − purchase price − costs
Short-term tax = tax(other income + gain) − tax(other income)
Long-term tax = 0% / 15% / 20% on the gain layered above other income
NIIT = 3.8% × min(gain, MAGI − threshold), MAGI ≈ other taxable income + gain2026 long-term capital gains tax brackets
Breakpoints apply to total taxable income, including the gain. Short-term gains use the ordinary brackets from 10% to 37%; see the federal income tax calculator for those.
| Filing status | 0% rate | 15% rate | 20% rate |
|---|---|---|---|
| Single | Up to $49,450 | $49,450 – $545,500 | Over $545,500 |
| Married filing jointly | Up to $98,900 | $98,900 – $613,700 | Over $613,700 |
| Head of household | Up to $66,200 | $66,200 – $579,600 | Over $579,600 |
Tax on a $10,000 long-term gain by other income (2026)
Computed with this calculator, including the NIIT where it applies. The last column is the same gain held one year or less, single filer.
| Other taxable income | Single | Married filing jointly | Single, short-term |
|---|---|---|---|
| $40,000 | $83 | $0 | $1,200 |
| $75,000 | $1,500 | $0 | $2,200 |
| $150,000 | $1,500 | $1,500 | $2,400 |
| $300,000 | $1,880 | $1,880 | $3,880 |
| $600,000 | $2,380 | $1,880 | $3,880 |
Worked examples
- Single, $60,000 of other taxable income, shares bought for $10,000 and sold for $25,000: a $15,000 gain. Long-term it is all in the 15% band, $2,250. Short-term it is taxed at 22%, $3,300.
- Single, $30,000 of other taxable income and a $15,000 long-term gain: taxable income of $45,000 stays below $49,450, so the gain is taxed at 0%.
- Married, $240,000 of other taxable income, asset bought for $50,000 and sold for $100,500 with $500 of costs: a $50,000 gain taxed $7,500 at 15%, plus NIIT on the $40,000 above $250,000, $1,520. Total $9,020, 18.0% of the gain.
Legal ways to lower capital gains tax
- Hold for more than one year to get long-term rates.
- Harvest losses to offset gains. Net losses can offset up to $3,000 of ordinary income a year ($1,500 married filing separately) and the rest carries forward. Buying a substantially identical security within 30 days before or after the sale disallows the loss (wash-sale rule).
- Realize gains in low-income years, when more of the gain fits in the 0% band.
- Give appreciated stock held over a year to charity instead of cash.
- Pre-tax 401(k) and HSA contributions lower taxable income and MAGI. Business owners can lower it with deductions such as Section 179.
When to talk to a CPA or enrolled agent
The calculator approximates MAGI as other taxable income plus the gain, so it can understate the NIIT near the threshold, and treats this sale as your only investment income. It does not model collectibles (28%), unrecaptured real estate depreciation (25%), the home-sale exclusion, installment sales, Opportunity Zones, the AMT or state tax. Get help before selling a home, rental, business or large concentrated position, or if you have inherited assets or unclear cost basis.
Features
- Gain = sale price minus purchase price minus buying and selling costs
- Short-term gains taxed as ordinary income at your bracket (the extra tax the gain adds)
- Long-term gains taxed at 0%, 15% and 20%, stacked on top of your other taxable income
- Estimates the 3.8% net investment income tax above the MAGI threshold
- Compares short-term vs long-term tax on the same gain
- Table of the 2026 0% / 15% / 20% breakpoints for each filing status
Frequently Asked Questions
What are the capital gains tax rates for 2026?
Short-term gains are taxed at ordinary rates from 10% to 37%. Long-term gains are taxed at 0% up to $49,450 of taxable income for single filers ($98,900 joint, $66,200 head of household), 15% up to $545,500 ($613,700 joint, $579,600 head of household) and 20% above. The 3.8% NIIT may also apply.
How long do I have to hold a stock to get long-term rates?
More than one year. The holding period starts the day after you buy, so an asset bought on March 10, 2025 must be sold on March 11, 2026 or later. Inherited assets are treated as long-term regardless of how long you held them.
Can I pay 0% tax on capital gains?
Yes, on the part of the gain that keeps taxable income within $49,450 single, $98,900 married filing jointly or $66,200 head of household for 2026. A couple with $80,000 of other taxable income can realize $18,900 of long-term gains at 0%; gains above the breakpoint are taxed at 15%.
What is the 3.8% net investment income tax?
An extra tax on investment income, including capital gains, dividends, interest and rents, when modified AGI exceeds $200,000 single or head of household, or $250,000 married filing jointly. It applies to the smaller of net investment income and the excess. The thresholds are not indexed for inflation.
Are crypto gains taxed the same way?
Yes. The IRS treats cryptocurrency as property, so selling, swapping or spending it is a taxable disposal with the same short- and long-term rules. Keep cost-basis records for each lot; brokers now report sales on Form 1099-DA.
Do I pay capital gains tax if I reinvest the money?
Yes. Reinvesting the proceeds in a taxable account does not defer the tax; the sale itself is the taxable event. Exceptions include sales inside a 401(k) or IRA, like-kind exchanges of real property, and Qualified Opportunity Fund investments.
Sources and review
Prepared by the Codezyra editorial team. The figures and rules on this page were checked against these official sources:
- IRS Topic No. 409, Capital gains and losses
- IRS Topic No. 559, Net investment income tax
- IRS: Tax inflation adjustments for tax year 2026 (Rev. Proc. 2025-32)
- IRS Publication 550, Investment Income and Expenses
- IRS: About Form 8949, Sales and Other Dispositions of Capital Assets
This is general information, not personal tax, legal or medical advice.
Last reviewed