Capital Gains Tax Calculator — Short vs. Long Term (2026 Brackets)
Calculate capital gains tax for stocks, crypto, and real estate. Enter purchase price, sale price, holding period, income, and filing status. Uses 2026 IRS brackets with NIIT (3.8%) and state tax support.
Capital Gains Tax
Results update instantly as you type
Enter Values
Embed Code
Copy and paste this HTML snippet into any web page to embed this calculator directly.
<iframe src="http://127.0.0.1:54963/embed/finance/capital-gains-tax-calculator?ref=embed" title="Capital Gains Tax Calculator — Short vs. Long Term (2026 Brackets)" width="100%" style="max-width:600px; border:none; height:500px;" loading="lazy"></iframe>
Direct Link
Share this link to let others open the calculator in their browser.
The Formula
Capital gains tax is calculated based on the holding period (short-term vs. long-term), your total taxable income, and filing status. Short-term gains are taxed at ordinary income rates, while long-term gains benefit from preferential rates of 0%, 15%, or 20%. An additional 3.8% Net Investment Income Tax (NIIT) may apply for high-income taxpayers.
Variable Definitions
Holding Period
The number of days between purchase and sale. Assets held 365 days or less are short-term; assets held longer than 365 days are long-term and qualify for lower tax rates.
Cost Basis
The original purchase price of the asset, including commissions, fees, and improvements (for real estate). A higher cost basis reduces your taxable gain.
Long-Term Capital Gains Rate
Preferential tax rates of 0%, 15%, or 20% for assets held more than one year. The rate depends on your total taxable income and filing status. In 2026, 0% rate applies up to $47,025 for single filers.
Net Investment Income Tax
An additional 3.8% tax on the lesser of net investment income or the excess of modified adjusted gross income over threshold amounts ($200,000 single, $250,000 married filing jointly).
Effective Tax Rate
The total tax paid (federal + NIIT + state) divided by the total capital gain. This represents your true blended tax rate on the investment gain.
How to Use This Calculator
- 1
Select the asset type (stocks, bonds, crypto, real estate, or collectibles).
- 2
Enter the purchase and sale dates to calculate the holding period.
- 3
Enter your cost basis (what you paid) and sale proceeds.
- 4
Provide your annual ordinary income and filing status to determine the correct tax bracket.
- 5
Optionally enter your state capital gains tax rate for a complete picture of your tax liability.
Common Applications
- Estimate your federal and state capital gains tax liability before selling stocks, real estate, or other appreciated investments.
- Compare the tax impact of short-term versus long-term holding periods to decide the optimal time to sell an asset.
- Plan tax-loss harvesting strategies by modeling how realized gains and losses offset each other in a given tax year.
- Evaluate the after-tax return of an investment sale to make informed decisions about portfolio rebalancing.
Long-term gains (held >365 days) get preferential rates. Short-term gains are taxed as ordinary income. NIIT adds 3.8% above income thresholds.
Understanding the Concept
Capital gains tax is one of the most important considerations for investors when selling assets. The tax treatment depends primarily on how long you held the asset before selling. Short-term capital gains (assets held for 365 days or less) are taxed as ordinary income at your marginal tax rate, which can be as high as 37%. This is a significant tax disadvantage compared to long-term gains, which benefit from preferential rates of 0%, 15%, or 20% depending on your income level. The difference is substantial: a high-income earner in the 37% bracket pays nearly twice the tax on short-term gains compared to long-term gains. This tax preference is a key reason why financial advisors recommend a "buy and hold" investment strategy. For 2026, the 0% long-term capital gains rate applies to single filers with total taxable income up to $47,025, married filing jointly up to $94,050, and heads of household up to $63,000. The 15% rate applies to most middle-income taxpayers, and the 20% rate applies to high-income earners. The Net Investment Income Tax (NIIT) adds an additional 3.8% for single filers with modified AGI exceeding $200,000 ($250,000 for married filing jointly). This surtax was introduced as part of the Affordable Care Act to help fund Medicare and applies to the lesser of your net investment income or the excess over the threshold. State taxes vary widely — some states like Texas, Florida, and Nevada have no state income tax, while others like California (up to 13.3%) and New York (up to 10.9%) can significantly increase the total tax burden on capital gains. Understanding these rules allows investors to make tax-aware decisions about when to sell assets and how to structure their investment portfolio.
Frequently Asked Questions
Sources & References
Related Guides
Related Calculators
Reviews
No reviews yet. Be the first to share your experience with Capital Gains Tax Calculator — Short vs. Long Term (2026 Brackets).
Write a Review
