Capital gains tax calculator
See how a gain is taxed at long-term and short-term rates, whether the 3.8% net investment income tax applies, and what holding for more than a year changes. It’s an estimate from your numbers, not advice; Krystal checks the real picture on a call.
Tax on the gain
Long-Term (> 1 year)$7,500
An effective rate of 15.0%, leaving $42,500 after tax.
Short-term against long-term
Comparison
Short-term: $11,118
| Item | Value |
|---|---|
| Short-term | $11,118 |
| Long-term (yours) | $7,500 |
Holding for more than a year means $3,618 less tax than short-term rates ($7,500 against $11,118).
The gain, by capital gains rate
Share of the gain
$7,500
- 15%$50,000 · tax $7,500
15%: $50,000 · tax $7,500
| Slice | Value |
|---|---|
| 15% | $50,000 · tax $7,500 |
| Rate | Gain in bracket | Tax |
|---|---|---|
| 15% | $50,000 | $7,500 |
| Total | $50,000 | $7,500 |
An estimate for education, not tax advice. Federal tax only, using the 2025 capital gains rates from IRS Revenue Procedure 2024-40.
How the estimate works
Stacking on ordinary income
Capital gains sit on top of your ordinary income. Wages and other ordinary income fill the brackets first; the gain fills the room left in each one. So $20,000 of gain on a $40,000 salary is taxed at a different rate from the same gain on a $200,000 salary.
The three long-term rates
For 2025, gains on assets held more than a year are taxed at 0%, 15% or 20%. Single filers pay 0% on gains up to $48,350 of total taxable income, 15% up to $533,400 and 20% above that. The married filing jointly thresholds are roughly double. Short-term gains are taxed as ordinary income.
The 3.8% net investment income tax
When MAGI is over $200,000 (single) or $250,000 (married filing jointly), an extra 3.8% applies to investment income. That makes the top long-term rate 23.8%.
Capital gains questions
What is the difference between short-term and long-term capital gains?
Short-term capital gains (assets held 1 year or less) are taxed as ordinary income at your marginal tax rate. Long-term capital gains (assets held more than 1 year) receive preferential rates of 0%, 15%, or 20% depending on your income level.
What is the Net Investment Income Tax (NIIT)?
The NIIT is an additional 3.8% tax on investment income (including capital gains) for taxpayers with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly). It applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold.
How are capital gains "stacked" on top of ordinary income?
The IRS taxes ordinary income first, then capital gains are "stacked" on top. This means your capital gains rate depends on your total taxable income. If ordinary income already fills the 0% bracket, your gains start in the 15% bracket.
Can I offset capital gains with capital losses?
Yes. Capital losses offset capital gains dollar-for-dollar. If your losses exceed gains, you can deduct up to $3,000 of net losses against ordinary income per year, carrying excess losses forward to future years.
How does the holding period affect my tax bill?
Holding an asset for more than one year before selling qualifies it for long-term capital gains rates (0%, 15%, or 20%), which are significantly lower than ordinary income rates (10% to 37%). Use the calculator above to see an illustrative estimate of the difference for your numbers.
Start with fifteen minutes.
Krystal calls you to see whether LeCPA fits what you’re building.