Capital Gains Tax Calculator
Work out the tax on selling stocks, funds or other investments.
Your numbers
Your numbers stay on this device. Nothing here is saved or sent anywhere.
Split
Breakdown
| Item | Amount |
|---|---|
| Sale price | $25,000 |
| What you paid | $10,000 |
| Gain | $15,000 |
| Federal tax | $2,250 |
| Net investment income tax | $0 |
| State tax | $0 |
| Profit after tax | $12,750 |
An illustration based on what you entered. Actual outcomes may differ.
The planner puts this next to your salary, taxes, 401(k), Social Security, loans and goals — year by year until 90. Free, no sign-up.
Assumptions
- The whole gain is realized this year.
- Net investment income tax (3.8%) applies above $200,000 ($250,000 joint) of income.
- State tax treats the gain as ordinary income at a flat rate.
What this leaves out: Collectibles (28%), real estate depreciation recapture, the home-sale exclusion and loss carryforwards are not included.
2026: 0% up to $49,450 of taxable income ($98,900 joint), 15% up to $545,500 ($613,700 joint). 2027: 0% up to $51,050 ($102,100 joint), 15% up to $563,200 ($633,600 joint). 20% above.
How to use the Capital Gains Tax Calculator
- Enter your numbers: tax year, what you paid (cost basis), sale price, held for and the other details.
- The result updates as you type. Total tax on the gain is shown at the top, with the details below it.
- Change one number at a time to see which one makes the biggest difference.
- Use Reset to go back to the example numbers.
Worked example
With these numbers:
- Tax year: 2026
- What you paid (cost basis): $10,000
- Sale price: $25,000
- Held for: More than a year (long-term)
- Filing status: Single
- Other taxable income: $60,000
- State income tax rate: 0%
Total tax on the gain: $2,250 · Profit after tax: $12,750 · Federal capital gains tax: $2,250 · Net investment income tax: $0
Frequently asked questions
How are long-term gains taxed?
Gains on investments held more than a year are taxed at 0%, 15% or 20%, depending on your taxable income. The 0% rate applies up to $49,450 of taxable income for single filers in 2026 ($98,900 joint), and up to $51,050 in 2027 ($102,100 joint).
How are short-term gains taxed?
Gains on investments held a year or less are added to your income and taxed at your ordinary bracket, like wages.
What is the net investment income tax?
An extra 3.8% on investment income for people with income above $200,000 ($250,000 for married couples filing jointly).
Related calculators
- Paycheck Calculator
See your take-home pay after federal and state tax, Social Security, Medicare and 401(k).
- Federal Income Tax Calculator
Estimate your 2026 or 2027 federal income tax, effective rate and tax bracket.
- 401(k) Calculator
Project your 401(k) at retirement with your contributions and the employer match.
- Roth vs Traditional Calculator
Compare a Roth and a traditional 401(k) or IRA after tax.
See your whole financial life
One calculator answers one question. The free WealthArc planner puts your salary, taxes, 401(k), Social Security, loans and goals together, year by year until 90.
Start planning — no sign-up