Capital Gains Tax Calculator 2026 — Short-Term & Long-Term Federal Tax
Calculate federal capital gains tax on stocks, real estate, and other assets. Includes 2026 short-term and long-term tax rates, NIIT surcharge, and state capital gains estimates.
Capital Gains Tax Calculator
📌 2026 Rates: Long-term gains: 0%, 15%, or 20% based on income. Short-term gains: taxed as ordinary income (up to 37%). An additional 3.8% NIIT applies above $200K/$250K income.
Quick Answer
A single filer who bought stock for $10,000 and sold it for $40,000 after holding it over one year owes long-term capital gains tax. In the 15% LTCG bracket (most common for middle-income earners), the tax is $4,500 on the $30,000 gain. If held under one year (short-term), the same gain is taxed as ordinary income — potentially $6,600 or more at the 22% bracket.
How the Capital Gains Tax Calculator Works Step by Step
Capital gains tax is the tax on profit from selling assets — stocks, bonds, real estate, cryptocurrency, collectibles, and other investments. The tax rate depends critically on how long you held the asset. Short-term capital gains (assets held 1 year or less) are taxed as ordinary income, at your marginal income tax rate (10–37%). Long-term capital gains (assets held more than 1 year) are taxed at preferential rates: 0%, 15%, or 20% depending on taxable income.
The 2026 long-term capital gains brackets for a single filer: 0% rate applies to income up to $47,025 (so a person in the 12% income bracket pays nothing on long-term gains). 15% rate applies from $47,025 to $518,900. 20% rate applies above $518,900. For a married couple filing jointly: 0% up to $94,050, 15% up to $583,750, 20% above. This tax preference for long-term investing is one of the strongest incentives the tax code contains for patient, long-term investing.
The calculation: gain = sale price minus cost basis (purchase price + commissions + improvements for real estate). Report on Schedule D. Losses can offset gains — a $5,000 stock loss reduces a $15,000 gain to $10,000 taxable gain. Up to $3,000 of net capital losses can offset ordinary income each year; unused losses carry forward indefinitely.
Understanding Each Capital Gains Tax Calculator Input Field
Each field in the Capital Gains Tax Calculator serves a specific purpose. Here's why each input matters and how to provide the most accurate values:
Purchase Price (Cost Basis)
What you originally paid for the asset, including commissions. For stocks purchased in multiple lots at different prices, each lot has its own cost basis — you can choose which lot to sell (specific identification) to minimize taxes.
Sale Price (Proceeds)
What you received from selling the asset, after subtracting transaction fees/commissions.
Holding Period
Assets held more than 365 days qualify for long-term rates (0%, 15%, or 20%). Assets held 365 days or less are short-term and taxed as ordinary income (10–37%).
Filing Status and Income
Your total taxable income (including the capital gain) determines which LTCG bracket applies. The 0% bracket is available if your total income stays below $47,025 (single) or $94,050 (MFJ) in 2026.
Capital Gains Tax Calculator Formula and Methodology Explained
The Capital Gains Tax Calculatoruses the following validated formula. Understanding the math helps you interpret results accurately and trust the calculations you're relying on.
How the Capital Gains Tax Calculator Formula Works
The capital gain is simply the difference between what you received (proceeds) and what you paid (cost basis, including commissions and any adjustments). For inherited assets, basis is the fair market value at the date of inheritance ('stepped-up basis'). For gifted assets, basis carries over from the original owner. The applicable tax rate is determined by both your holding period (short vs long-term) and your total taxable income for the year.
When to Use the Capital Gains Tax Calculator
- →Before selling appreciated investments to understand the tax cost and whether to defer to the next tax year
- →When considering tax-loss harvesting — selling losers to offset winners and reduce tax liability
- →For real estate sale planning to understand capital gains on investment properties
- →When cryptocurrency transactions generate gains that must be reported
💡 Expert Tips for Using the Capital Gains Tax Calculator Accurately
Hold appreciated assets at least 366 days to convert a short-term gain (taxed at up to 37%) to a long-term gain (taxed at 0–20%) — this timing decision alone can cut the tax by more than half.
Tax-loss harvesting: deliberately sell investments at a loss to offset capital gains from winning investments — saving up to 20% of the offset amount in taxes.
In years when your income is low (retirement, career break), you may qualify for the 0% long-term capital gains rate — an opportunity to rebalance a portfolio tax-free.
For real estate: the primary residence exclusion exempts the first $250,000 ($500,000 for married couples) of gain from capital gains tax if you've lived in the home 2 of the last 5 years.
⚠️ Common Capital Gains Tax Calculator Mistakes to Avoid
- ✗Confusing the 'step up in basis' rule for inherited assets — heirs receive inherited assets at the fair market value at the date of death, often eliminating capital gains tax entirely
- ✗Not tracking cost basis for assets purchased at multiple prices over time — FIFO (first in, first out) is the default, but specific identification can minimize taxable gains
- ✗Forgetting the 3.8% Net Investment Income Tax (NIIT) that applies on top of LTCG rates for high earners (AGI over $200k single / $250k married)
- ✗Assuming cryptocurrency is tax-free — crypto gains are treated as property sales, with both short-term and long-term capital gains rules applying to every sale or trade
Frequently Asked Questions
Everything you need to know about the Capital Gains Tax Calculator. Can't find your answer? Contact us.
More Free Calculators
Explore our complete library of professional calculators, all free with no signup required.
Blog & Guides
Learn more with our expert guides written and reviewed by Team Cloud Calculators App.