# Capital Gains Calculator

> Estimate capital gains taxes on investments. Compare short-term vs long-term tax rates.

**Category**: Income & Taxes  
**URL**: https://www.digitalcalculator.info/capital-gains-calculator/  
**Last Updated**: 2026-11-17  
**Privacy**: Calculations run in your browser, and nothing you enter is exported or shared with another tool unless you choose to. See the [privacy policy](https://www.digitalcalculator.info/privacy-policy/) for what the site does collect.

## What it answers

Estimate taxes on investment gains

**Quick answer (the page's default example):** For a $5,000 capital gain (sold $15,000 asset purchased for $10,000): If held over 1 year, you pay $750 in total tax (15% federal long-term rate). If held 1 year or less, you pay $1,100 in total tax (ordinary income, your 22% bracket). Holding longer saves you $350.

## Inputs

| Input | Default | Range | Unit / note |
| --- | --- | --- | --- |
| Asset Type | Stock / ETF (options: Stock / ETF, Cryptocurrency, Real Estate, Collectibles (art, coins, metals), Other Investment) | — | — |
| Purchase Price | 10,000 | — | cost basis |
| Sale Price | 15,000 | — | proceeds |
| Quantity / Units | 1 | 0.001–…, step 0.001 | shares, coins, etc. |
| Purchase Date | — | — | — |
| Sale Date | — | — | — |
| Tax Year | 2026 (options: 2025, 2026) | — | — |
| Filing Status | Single (options: Single, Married Filing Jointly, Married Filing Separately, Head of Household) | — | — |
| Annual Taxable Income | 75,000 | — | excluding this gain |
| Include state capital gains tax | unchecked | — | — |
| State Tax Rate | 5.0 | 0–20, step 0.1 | % (0–20) |

## Outputs

Values shown are the page's default example; enter your own figures on the page.

- **Tax classification**: Long-Term
- **Federal tax rate (effective)**: 15%

Also on the page, with no amount in the default example: Total Tax Owed, Federal Tax, State Tax, Days held, Purchase cost, Sale proceeds, Capital gain / loss, After-tax total return (not annualized), Federal tax owed.

## Key Takeaways

-   This sale: **a $5,000 long-term gain** — $750 total tax, a 15.0% effective rate
-   Long-term treatment (0%, 15%, or 20%) beats short-term ordinary rates of 10–37% on this sale
-   Capital losses offset gains **dollar-for-dollar**, plus $3,000/year against ordinary income at your filing status
-   The NIIT adds **3.8%** on investment income for high earners (MAGI > $200K single / $250K joint / $125K married filing separately) — not triggered at the income shown
-   Eight states have **no capital gains tax**: AK, FL, NV, NH, SD, TN, TX, WY — WA taxes long-term gains above an indexed threshold (7%/9.9%)

## Short-Term vs Long-Term Capital Gains

The single biggest lever in capital gains tax planning is your holding period. Selling one day after the one-year anniversary of your purchase, rather than on it, flips your gain from ordinary-income rates (10–37%) to preferential long-term rates (0%, 15%, or 20%).

| Classification | Holding Period | Tax Rate | Example |
| --- | --- | --- | --- |
| **Short-Term** | 1 year or less | 10% – 37% (ordinary income rates) | Buy stock Jan 1, sell Dec 31 same year |
| **Long-Term** | More than 1 year | 0%, 15%, or 20% (preferential rates) | Buy stock Jan 1, sell Jan 2+ next year |

### Why It Matters

For someone in the 24% tax bracket, holding an investment one more day (selling the day after the one-year anniversary of the purchase instead of on it) can drop the federal tax rate from 24% to 15% — a 9 percentage point swing on every dollar of gain.

### The One-Year Rule

To qualify for long-term capital gains treatment, you must hold the asset for **more than one year**. The holding period starts the day after you purchase the asset and includes the day you sell it.

## 2026 Capital Gains Tax Brackets

Long-term capital gains tax rates depend on your taxable income and filing status. The 2026 brackets below are the official values published by the IRS in Rev. Proc. 2025-32 (October 2025):

| Tax Rate | Single Filers | Married Filing Jointly | Married Filing Separately | Head of Household |
| --- | --- | --- | --- | --- |
| **0%** | Up to $49,450 | Up to $98,900 | Up to $49,450 | Up to $66,200 |
| **15%** | $49,451 – $545,500 | $98,901 – $613,700 | $49,451 – $306,850 | $66,201 – $579,600 |
| **20%** | Over $545,500 | Over $613,700 | Over $306,850 | Over $579,600 |

Source: [IRS Rev. Proc. 2025-32](https://www.irs.gov/pub/irs-drop/rp-25-32.pdf), section 4.03; checked September 27, 2026.

**Net Investment Income Tax (NIIT):** High earners may also owe an additional 3.8% surtax on capital gains if MAGI exceeds $200,000 (single), $250,000 (married filing jointly) or $125,000 (married filing separately). This can bring the effective top federal rate to 23.8%.

## How to Reduce Capital Gains Taxes

### Hold Investments Longer

The simplest strategy: hold assets for more than one year to qualify for the lower long-term capital gains rates (0%, 15%, or 20%) instead of paying ordinary income rates up to 37%.

### Harvest Tax Losses

Offset capital gains by selling losing investments. Capital losses reduce gains dollar-for-dollar; if losses exceed gains, deduct up to $3,000 per year against ordinary income and carry the rest forward.

### Use Tax-Advantaged Accounts

Invest through IRAs, 401(k)s, or other retirement accounts where gains grow tax-deferred or tax-free. Roth IRAs allow completely tax-free withdrawals in retirement, including capital gains.

### Time Your Sales Strategically

Consider spreading large gains across multiple tax years, selling in lower-income years, or using the 0% long-term rate if your income is low enough (under $49,450 single / $98,900 married for 2026 per IRS Rev. Proc. 2025-32).

## Frequently Asked Questions

### What is capital gains tax?

Capital gains tax is a tax on the profit made from selling an investment or asset. The tax rate depends on how long you held the asset: short-term capital gains (held 1 year or less) are taxed as ordinary income at rates from 10% to 37%, while long-term capital gains (held more than 1 year) are taxed at preferential rates of 0%, 15%, or 20% depending on your income.

### What's the difference between short-term and long-term capital gains?

The key difference is the holding period and tax rate. Short-term capital gains are for assets held 1 year or less and are taxed at ordinary income rates (10–37%). Long-term capital gains are for assets held more than 1 year and are taxed at preferential rates (0%, 15%, or 20%).

### Do capital losses reduce my taxes?

Yes, capital losses offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to **$3,000 per year** ($1,500 if married filing separately) against ordinary income. Excess losses carry forward indefinitely. This is the basis for "tax-loss harvesting."

### Do I pay capital gains tax on cryptocurrency?

Yes — the IRS treats cryptocurrency as property, so capital gains tax applies when you sell crypto for a profit. Same short-term vs long-term rules apply. Even crypto-to-crypto trades are taxable events.

### What is tax-loss harvesting?

Tax-loss harvesting is selling investments at a loss to offset capital gains from profitable investments. Be aware of the **wash sale rule**, which disallows the loss if you buy a "substantially identical" security within 30 days before or after the sale.

### How can I reduce my capital gains tax legally?

Several legal strategies: (1) hold over one year for lower long-term rates, (2) tax-loss harvesting, (3) use tax-advantaged accounts (401(k)s, IRAs, Roth), (4) time sales for lower-income years (qualify for the 0% rate), (5) donate appreciated assets to charity, (6) use 1031 exchanges for real estate.

### Are there any states with no capital gains tax?

Yes — eight states have no state capital gains tax: **Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, and Wyoming**. New Hampshire is the most recent addition — it taxed interest and dividends until that tax was repealed for taxable periods beginning after December 31, 2024, and it has never taxed capital gains. Washington has no income tax but levies a separate capital gains *excise* tax: 7% on long-term gains above an inflation-indexed deduction ($278,000 for 2025), plus 9.9% on gains above $1 million.

### What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional **3.8% surtax** on investment income for high-income taxpayers with MAGI above $200,000 (single), $250,000 (married filing jointly) or $125,000 (married filing separately). It applies to the lesser of net investment income or the excess MAGI above the threshold.

## How This Calculator Works

This calculator first determines whether your gain is short-term or long-term from the purchase and sale dates you enter, then applies the matching tax treatment: short-term gains stack on top of your ordinary income and are taxed at your regular income-tax brackets, while long-term gains use the separate, lower long-term capital-gains brackets. On top of either result, it adds the Net Investment Income Tax surcharge when your modified adjusted gross income clears the statutory NIIT threshold for your filing status. See Official Sources below for the IRS guidance behind each piece.

## Sources

- [IRS Topic No. 409: Capital Gains and Losses](https://www.irs.gov/taxtopics/tc409)
- [IRS Publication 550: Investment Income and Expenses](https://www.irs.gov/publications/p550)
- [IRS Topic No. 559: Net Investment Income Tax](https://www.irs.gov/taxtopics/tc559)
- [IRS: Qualified Opportunity Zones FAQ](https://www.irs.gov/credits-deductions/opportunity-zones-frequently-asked-questions)
- [Tax Foundation: State Individual Income Tax Rates and Brackets, 2026](https://taxfoundation.org/data/all/state/state-income-tax-rates-2026/)

## Important Notice

Disclaimer: This calculator provides estimates for educational purposes only. Results are not financial advice and may differ from actual outcomes. Consult a qualified tax professional before making important financial decisions. Calculations assume standard tax situations and may not account for all special circumstances.

## Related Terms

capital gains, tax, investment, profit, calculate capital gains tax, investment tax calculator, investment tax calculator, stock gains tax

## Last updated

2026-11-17

## How to cite

Capital Gains Calculator, Digital Calculator (Markco Labs LLC), https://www.digitalcalculator.info/capital-gains-calculator/, last updated 2026-11-17.

---

*This is an AI-readable companion to the [interactive calculator](https://www.digitalcalculator.info/capital-gains-calculator/). Calculations run in your browser, and nothing you enter is exported or shared with another tool unless you choose to.*
