Estimate your federal capital gains tax using 2026 rates. See short-term vs long-term treatment, NIIT surtax, bracket breakdown, and net proceeds after taxes.
Capital gains tax applies when you sell an asset for more than you paid for it. The tax rate depends on two key factors: how long you held the asset and your total taxable income (see the IRS guide on capital gains and losses). Understanding these rules can save you thousands — or even eliminate your tax liability entirely.
Assets held for 12 months or less are taxed at ordinary income rates (10–37%). Use our tax bracket calculator to find your ordinary rate. Assets held for more than 12 months qualify for preferential long-term rates: 0%, 15%, or 20%. For most taxpayers, this means long-term gains are taxed at 15% — a significant savings over the 22% or 24% ordinary rate many people face.
High earners face an additional 3.8% Net Investment Income Tax on investment income above $200,000 (single) or $250,000 (married filing jointly). This brings the maximum long-term capital gains rate to 23.8%. Our calculator automatically applies this when your income exceeds the threshold.
The 2026 long-term capital gains brackets are based on your taxable income, not just your gains:
Tax-loss harvesting is one of the most effective strategies for reducing capital gains taxes. Here's how it works in practice:
Say you sold Stock A for a $15,000 gain and Stock B has an unrealized $10,000 loss. By selling Stock B before year-end:
Important: The IRS "wash sale rule" prevents you from claiming a loss if you buy back the same or substantially identical security within 30 days before or after the sale. However, you can buy a similar index fund or ETF that tracks a different index.
If your net losses exceed your gains, you can deduct up to $3,000 against ordinary income ($1,500 if married filing separately), with any remaining losses carried forward to future years indefinitely.
Real estate has unique capital gains rules that can significantly reduce or eliminate taxes:
As of 2026, the IRS treats cryptocurrency as property, meaning every sale, swap, or spending event is a taxable capital gains event. Key rules:
When you inherit an asset, your cost basis "steps up" to the fair market value at the date of the decedent's death. This is one of the most powerful tax provisions in the code. For example, if your parent bought stock for $10,000 that was worth $100,000 when they passed away, your cost basis is $100,000 — and you could sell it immediately for $0 in capital gains tax. This eliminates decades of accumulated gains.
A single filer earning $85,000 in salary sells stock for a $50,000 gain. The tax impact depends entirely on holding period:
$50,000 gain taxed at ordinary rates (22-24% bracket)
Federal tax: ~$11,300
Net proceeds: ~$38,700
$50,000 gain taxed at 15% long-term rate
Federal tax: ~$7,500
Net proceeds: ~$42,500
Savings from holding 1 extra month: ~$3,800. If the stock gain pushed total income above $200,000, the 3.8% NIIT would add another $1,900 in tax. Timing your sales around the 12-month mark is one of the simplest and most effective tax strategies available.
Reviewed by Tahir Özcan · Founder, WealthCalc · Editorial policy
Applies 2026 federal capital gains tax rates (0%, 15%, 20%) based on your taxable income and filing status per IRS Rev. Proc. 2025-32. Adds the Net Investment Income Tax (3.8%) on investment income above the statutory MAGI thresholds, and treats short-term gains as ordinary income at your marginal rate.
4 In-Depth Guides
Understand 2026 short-term and long-term capital gains tax rates. Learn tax-loss harvesting, the NIIT surtax, primary residence exclusion, and other strategies to reduce capital gains tax.
Read Full GuideProven strategies to minimize capital gains tax including tax-loss harvesting, the primary residence exclusion, 1031 exchanges, Opportunity Zones, and charitable giving.
Read Full GuideComplete crypto tax guide covering reporting requirements, calculation methods, DeFi taxes, staking income, and legal strategies to minimize crypto tax in 2026.
Read Full GuideLearn how tax-loss harvesting works, when to harvest losses, the wash sale rule, and how much you can save — with 2026 examples and step-by-step instructions.
Read Full GuideShort-term capital gains apply to assets held for 12 months or less and are taxed at your ordinary income tax rate (10–37% in 2026). Long-term capital gains apply to assets held for more than 12 months and receive preferential rates of 0%, 15%, or 20% depending on your income. This difference can mean paying 0% instead of 37% — making holding period one of the most important factors in tax planning.
For 2026, long-term capital gains rates are: 0% for singles with taxable income up to $49,450 ($98,900 married filing jointly), 15% up to $545,500 ($613,700 MFJ), and 20% above those thresholds. Additionally, high earners may owe the 3.8% Net Investment Income Tax (NIIT) on top of these rates, bringing the maximum effective rate to 23.8%.
The NIIT is a 3.8% surtax on investment income (including capital gains, dividends, and interest) 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 by which your MAGI exceeds the threshold. Our calculator automatically includes this when applicable.
Key strategies include: (1) Hold assets for more than 12 months to qualify for lower long-term rates. (2) Tax-loss harvesting — sell losing investments to offset gains. (3) Use tax-advantaged accounts (401(k), IRA, HSA) where gains are tax-deferred or tax-free. (4) Time your sales in lower-income years. (5) Consider Qualified Opportunity Zone investments for deferral. (6) Gift appreciated assets to charity for a double benefit.
You may be eligible for the primary residence exclusion: $250,000 for singles or $500,000 for married couples filing jointly. To qualify, you must have owned and used the home as your primary residence for at least 2 of the last 5 years. Any gain above the exclusion amount is taxed at capital gains rates. Our calculator can help you estimate the tax on the non-excluded portion.
Your cost basis is typically the purchase price plus any commissions or fees paid. For inherited assets, the basis is usually "stepped up" to the fair market value at the date of death. For gifted assets, the basis carries over from the donor. If you reinvested dividends, each reinvestment increases your basis. Most brokerages now track cost basis automatically and report it on your 1099-B.
Get a complete picture of your finances by combining this tool with our other free calculators and in-depth guides.
Last reviewed:
Applies 2026 federal capital gains tax rates (0%, 15%, 20%) based on your taxable income and filing status per IRS Rev. Proc. 2025-32. Adds the Net Investment Income Tax (3.8%) on investment income above the statutory MAGI thresholds, and treats short-term gains as ordinary income at your marginal rate.
Figures are updated whenever the IRS, SSA, CMS, FHFA, HHS, or BLS publishes a new inflation adjustment or statutory change. This tool is for educational purposes only and does not constitute tax, legal, or investment advice. Consult a qualified professional for decisions affecting your personal finances.
Enjoy our free tools?
Help us keep WealthCalc free and ad-light for everyone.
Important Disclaimer
Related Tools
Get a complete picture of your finances with these related free calculators.
Estimate your 2026 federal income tax with detailed bracket breakdowns. See effective rate, marginal rate, and take-home pay instantly.
Calculate your Return on Investment and compare it against S&P 500, bonds, and savings benchmarks. Find annualized returns instantly.
Plan your portfolio growth with inflation-adjusted projections. Compare nominal vs. real returns across conservative, moderate, and aggressive strategies.
Calculate your net paycheck after federal taxes, Social Security, Medicare, and deductions. See exactly what you take home per pay period.
Calculate your Health Savings Account tax savings, investment growth, and the triple tax advantage over time.
Calculate how much you need to retire comfortably using the 4% rule. See if you're on track with 2026 contribution limits and Social Security estimates.
Estimate your capital gains tax on investments, real estate, or other assets using 2026 tax rates.