Capital Gains Tax Calculator (2026)
Long-term gains are taxed at 0%, 15% or 20%, stacked on top of your other income. For a single filer with $50,000 of other income in 2026, a $30,000 gain costs $2,167.50, not 15% of it.
- IRS worksheet, line by line
- Stocks, crypto & home sales
- Updated Nov 10, 2026
Taxed at 15% $14,450Taxed at 0% $15,550
- Taxable income before the gain$33,900
- Gain at 0% (room under $49,450)$15,550
- Gain at 15%$14,450
- Tax on the gain$2,167.50
Capital gains tax depends on how long you held the asset and on your taxable income. Held more than one year, the gain is long-term and taxed at 0%, 15% or 20%. Held one year or less, it's short-term and taxed at the same ordinary income rates as wages, 10% to 37% (IRS Topic 409). For 2026, a single filer pays 0% on long-term gains up to $49,450 of taxable income and 15% up to $545,500. Because the gain sits on top of your other income, it can straddle brackets: for a single filer taking the 2026 standard deduction, a $30,000 long-term gain with $50,000 of other income costs $2,167.50 in federal tax (7.2% of the gain). This capital gains tax calculator follows the IRS worksheet line by line.
2026 Long-Term Capital Gains Tax Rates
The rate depends on your taxable income (income after deductions, including the gain), not on the size of the gain alone. These are the 2026 thresholds from Rev. Proc. 2025-32, section 3.03:
| Filing status | 0% rate | 15% rate | 20% rate |
|---|---|---|---|
| Single | Up to $49,450 | $49,450 to $545,500 | Over $545,500 |
| Married filing jointly | Up to $98,900 | $98,900 to $613,700 | Over $613,700 |
| Head of household | Up to $66,200 | $66,200 to $579,600 | Over $579,600 |
| Married filing separately | Up to $49,450 | $49,450 to $306,850 | Over $306,850 |
For 2027 the 0% bracket for a single filer rises to $51,050 and the 15% bracket to $563,200 (Rev. Proc. 2026-35); pick 2027 in the calculator to use them. Short-term gains have no separate table: they're added to your wages and taxed at the ordinary income tax brackets. A few gains have higher maximum rates: 28% for collectibles such as coins or art and for the taxable part of qualified small business stock, and 25% for unrecaptured section 1250 gain on depreciated real estate (Topic 409).
How the Gain Is Taxed: The IRS Worksheet, Step by Step
Long-term gains don't get one flat rate. The IRS Qualified Dividends and Capital Gain Tax Worksheet in the Form 1040 instructions fills the brackets from the bottom up: your ordinary income goes first, and the gain sits on top. The calculator runs all 25 lines:
- Lines 1–5: taxable income, minus the gain, leaves your ordinary taxable income.
- Lines 6–9: whatever room is left under the 0% threshold ($49,450 single for 2026) is filled by the gain at 0%.
- Lines 10–18: the next part of the gain, up to the 15% threshold, is taxed at 15%.
- Lines 19–21: anything above that is taxed at 20%.
- Lines 22–25: add regular tax on the ordinary income; your tax is the smaller of that total or regular tax on everything.
Example: a single filer with $50,000 of other income takes the $16,100 standard deduction, leaving $33,900 of ordinary taxable income. They sell stock for $50,000 that cost $20,000, a $30,000 long-term gain. The 0% bracket runs to $49,450, so the first $15,550 of the gain is taxed at 0% and the remaining $14,450 at 15%, which is $2,167.50. That's 7.2% of the gain, not 15%.
Short-Term vs. Long-Term: Same Gain, Two Tax Bills
Held one year or less, the same gain is taxed as ordinary income at your top bracket. Here is the federal tax on a $30,000 gain for a single filer in 2026, from the calculator:
| Other income | Short-term (1 year or less) | Long-term (over 1 year) | Difference |
|---|---|---|---|
| $30,000 | $3,600 | $0 | $3,600 |
| $50,000 | $4,950 | $2,167.50 | $2,782.50 |
| $100,000 | $6,764 | $4,500 | $2,264 |
| $200,000 | $9,310 * | $5,640 * | $3,670 |
| $400,000 | $11,640 * | $5,640 * | $6,000 |
* Includes the 3.8% net investment income tax.
To count the holding period, start on the day after you acquired the asset; the day you sell counts. In the IRS example, property bought January 31, 2024 and sold January 29, 2025 is short-term, while a sale on February 6, 2025 is long-term (IRS Publication 550). Crossing that line can cut the bill sharply, as the table shows.
Tax on a $100,000 Long-Term Gain at Different Incomes
"How much capital gains tax will I pay on $100,000?" depends on what else you earn. These totals include the 3.8% net investment income tax where it applies:
| Other income | Single | Married filing jointly |
|---|---|---|
| $0 | $5,167.50 | $0 |
| $50,000 | $12,667.50 | $2,835 |
| $100,000 | $15,000 | $10,335 |
| $200,000 | $18,800 * | $16,900 * |
| $400,000 | $18,800 * | $18,800 * |
| $600,000 | $23,800 * | $21,505 * |
* Includes the 3.8% net investment income tax. With no other income, a single filer's first $16,100 is covered by the standard deduction and most of the rest falls in the 0% bracket. At high incomes, the whole gain is taxed at 20% plus 3.8%.
Selling Your Home: The $250,000/$500,000 Exclusion
If you sell your main home, you can exclude up to $250,000 of gain, or $500,000 on a joint return, when you owned it and lived in it for at least 2 of the 5 years before the sale and didn't use the exclusion on another home in the previous 2 years. On a joint return, either spouse can meet the ownership test, but both must meet the use test for the full $500,000 (IRS Topic 701). A surviving spouse who sells within 2 years of the spouse's death may also qualify for $500,000 (Publication 523). Your gain is the sale price minus selling expenses, minus your basis including improvements (Publication 523).
Example: a married couple sells for $900,000, pays $50,000 in selling costs and has a $300,000 basis. The gain is $550,000; $500,000 is excluded, and the remaining $50,000 is a long-term gain. With $150,000 of other income the federal tax is $7,500. A loss on your home isn't deductible. If you rented the home out after moving out, you can still qualify as long as you meet the 2-of-5-year tests on the sale date; Publication 523 gives an example where renting after the last use as a home doesn't reduce the exclusion. Gain equal to depreciation claimed after May 6, 1997 can't be excluded, though. Property that was never your main home, such as a pure rental or investment property, gets no exclusion.
Selling Rental or Investment Property
Gain on a rental or investment property is generally taxed at the same rates: short-term or long-term by holding period. Two things often add to the bill. The part of the gain that comes from depreciation you claimed on real estate (unrecaptured section 1250 gain) is taxed at up to 25% (Topic 409) and reported on Form 4797, and the 3.8% net investment income tax can apply. Enter your adjusted basis, after subtracting depreciation (Publication 551); the calculator then taxes the depreciation part at 0% to 20% instead of up to 25%, so it can understate the tax on a depreciated rental.
A like-kind (section 1031) exchange of real property held for business or investment into other such property defers the gain rather than eliminating it; since 2018 it applies only to real property, and property held mainly for sale doesn't qualify (Form 8824 instructions). If you inherited the property, your basis is generally its fair market value on the date of death (Publication 551), which often shrinks the gain.
The 3.8% Net Investment Income Tax
On top of the capital gains rate, you owe 3.8% on the smaller of your net investment income or the amount your modified adjusted gross income exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). Gains on stocks, funds and real estate count, but the excluded part of a home-sale gain doesn't (IRS Topic 559). These thresholds are fixed in the law and aren't adjusted for inflation (26 U.S.C. § 1411). The calculator treats this sale as your only investment income; interest, dividends and rents would add to it.
Capital Losses: $3,000 a Year
Losses first offset your capital gains. If you end the year with a net loss, you can deduct up to $3,000 of it against other income ($1,500 if married filing separately), and carry the rest forward to later years (Topic 409). A single filer with $60,000 of income who sells for $10,000 stock that cost $18,000 has a loss of $8,000: $3,000 is deductible this year, saving $360, and $5,000 carries forward. Losses on personal-use property, like your home or car, aren't deductible.
What This Calculator Doesn't Cover
- Collectibles (28%), qualified small business stock, and unrecaptured section 1250 gain or depreciation recapture on rental property; like-kind exchanges
- Other gains and losses in the same year, loss carryovers from earlier years, and wash sales
- Qualified dividends, which share the same brackets, and other investment income for the 3.8% tax
- A reduced home-sale exclusion for a move before 2 years, and homes with business or rental use
- Alternative minimum tax, credits, the 2025–2028 senior and other new deductions, and state income tax
Interest from savings and CDs is taxed differently, as ordinary income; see the CD calculator. Withdrawals from a traditional 401(k) are ordinary income too; see the 401(k) withdrawal tax calculator. Income from a sale also raises your AGI, which can make more of your Social Security benefits taxable. If you sell as part of a business, see the self-employment tax calculator; for tax on wages, the paycheck calculator.
Frequently Asked Questions
How much capital gains tax will I pay on $100,000?
For 2026, a single filer with $50,000 of other income pays $12,667.50 in federal tax on a $100,000 long-term gain; with $200,000 of other income it's $18,800, including the 3.8% net investment income tax. Held one year or less, the gain is taxed at ordinary rates instead. The table above shows more incomes.
How do I calculate my capital gains tax?
Subtract your cost basis and selling costs from the sale price to get the gain. If you held the asset one year or less, add the gain to your income and use the regular brackets. If you held it longer, stack the gain on top of your ordinary taxable income and tax each part at 0%, 15% or 20%, using the IRS worksheet. Then check whether the 3.8% net investment income tax applies.
Is capital gains tax 15% or 20%?
It depends on your taxable income. For 2026 the 15% band covers single taxable income from $49,450 to $545,500 ($98,900 to $613,700 joint); 20% applies only above that, and 0% below it. Because a gain can straddle bands, part of it may be taxed at one rate and part at the next. If the 3.8% net investment income tax also applies, the top combined rates are 18.8% and 23.8%.
How can I avoid paying capital gains tax?
There's no single way, but legal ways to lower it include holding for more than one year, selling in a year when your income is low enough for the 0% rate, offsetting gains with losses, and using the home-sale exclusion if you qualify. For investment real estate, a like-kind exchange defers the gain, and inherited property generally starts with a basis equal to its value at death. Sales inside retirement accounts like a 401(k) or IRA aren't taxed as capital gains; withdrawals follow the account's own rules.
Do I pay capital gains tax on crypto?
Yes. The IRS treats digital assets as property, so selling or trading them follows the same short-term and long-term rules as stock (IRS, Digital assets). Enter the sale and cost the same way.
When do I pay capital gains tax?
For the year you sell. You report it on Form 8949 and Schedule D with your return. Capital gains usually have no tax withheld, so if you expect to owe $1,000 or more for the year you may need to make estimated tax payments to avoid an underpayment penalty (IRS, Estimated taxes).
Sources
- IRS Topic No. 409, Capital gains and losses
- Rev. Proc. 2025-32, section 3.03 (2026 maximum capital gains rate amounts)
- Rev. Proc. 2026-35 (2027 amounts)
- IRS Form 1040 instructions, Qualified Dividends and Capital Gain Tax Worksheet
- IRS Topic No. 559, Net investment income tax and 26 U.S.C. § 1411
- IRS Topic No. 701, Sale of your home and Publication 523
- IRS Publication 550, Investment Income and Expenses
- IRS Publication 551, Basis of Assets
- IRS Instructions for Form 8824, Like-Kind Exchanges
- IRS, Digital assets
- IRS, Estimated taxes
Estimates only, for general education; not tax or investment advice. For your own return, follow the IRS instructions or consult a tax professional.