# Capital Gains Tax Calculator

Estimate capital gains tax on stocks, real estate, or other investments. Calculate short-term and long-term capital gains rates. Free tax calculator.

## What this calculates

Estimate how much capital gains tax you will owe when selling investments, property, or other assets. Enter your purchase and sale prices, holding period, and income to see your tax liability.

## Inputs

- **Purchase Price (Cost Basis)** ($) — min 0 — What you originally paid for the asset.
- **Sale Price** ($) — min 0 — What you sold or plan to sell the asset for.
- **Holding Period** — options: Short-term (held 1 year or less), Long-term (held more than 1 year) — How long you held the asset before selling.
- **Annual Taxable Income** ($) — min 0 — Your taxable income (excluding this gain) for bracket determination.
- **Filing Status** — options: Single, Married Filing Jointly — Your tax filing status.

## Outputs

- **Capital Gain** — formatted as currency — The profit from the sale.
- **Tax Rate** — formatted as percentage — The applicable capital gains tax rate.
- **Estimated Tax Owed** — formatted as currency — Estimated capital gains tax.
- **Net Proceeds After Tax** — formatted as currency — Sale price minus purchase price minus tax.

## Details

Capital gains tax is the tax on profits from selling an asset for more than you paid for it. The tax rate depends on how long you held the asset and your taxable income level.

Long-term capital gains (assets held more than one year) are taxed at preferential rates: 0%, 15%, or 20%, depending on your income. Short-term capital gains (assets held one year or less) are taxed as ordinary income at your regular tax bracket rate.

For 2024, single filers pay 0% on long-term gains if taxable income plus gains is below $47,025, 15% up to $518,900, and 20% above that. High-income taxpayers may also owe the 3.8% Net Investment Income Tax (NIIT). Strategic use of holding periods and tax-loss harvesting can significantly reduce capital gains tax liability.

## Frequently Asked Questions

**Q: What is the difference between short-term and long-term capital gains?**

A: The distinction is based on how long you held the asset before selling. Assets held for one year or less generate short-term capital gains, taxed at your ordinary income tax rate (up to 37%). Assets held for more than one year generate long-term capital gains, taxed at lower rates of 0%, 15%, or 20%. This creates a significant tax incentive to hold investments for at least one year and one day before selling.

**Q: How can I reduce capital gains tax?**

A: Several strategies can reduce capital gains tax: hold investments longer than one year for lower long-term rates, use tax-loss harvesting to offset gains with losses, contribute to tax-advantaged accounts (IRA, 401k), use the primary residence exclusion ($250K/$500K for home sales), gift appreciated assets to charity, and time sales to years when your income is lower. Consult a tax advisor for strategies specific to your situation.

**Q: Are there capital gains taxes on home sales?**

A: If you sell your primary residence after living in it for at least 2 of the last 5 years, you can exclude up to $250,000 of capital gains from tax ($500,000 for married couples filing jointly). Gains above these thresholds are taxed at capital gains rates. Investment properties do not qualify for this exclusion but may benefit from 1031 exchanges, which defer capital gains by reinvesting in similar property.

**Q: What is the Net Investment Income Tax?**

A: The Net Investment Income Tax (NIIT) is an additional 3.8% tax on investment income, including capital gains, for high earners. It applies to single filers with modified adjusted gross income over $200,000 and married couples over $250,000. This means high-income taxpayers may pay a combined rate of up to 23.8% on long-term capital gains (20% base rate + 3.8% NIIT). This calculator provides a simplified estimate and does not include NIIT.

**Q: Can capital losses offset capital gains?**

A: Yes, capital losses can offset capital gains dollar for dollar. If your total capital losses exceed gains, you can deduct up to $3,000 of net capital losses against ordinary income per year ($1,500 if married filing separately). Excess losses beyond $3,000 can be carried forward to future tax years indefinitely. This is the basis of tax-loss harvesting, a strategy of strategically selling losing investments to reduce tax liability on gains.

---

Source: https://vastcalc.com/calculators/finance/capital-gains-tax
Category: Finance
Last updated: 2026-04-21
