Capital Gains Tax Calculator
Use our free capital gains tax calculator to determine your federal tax burden on stock sales, cryptocurrency trades, and property dispositions under updated 2026 IRS rules.
Understanding Capital Gains Tax in the USA
A capital gains tax is a federal levy on the profit realized when you sell a capital asset for more than its cost basis. Your taxable gain equals the net sale price minus your purchase cost, brokerage commissions, and qualifying capital improvements.
Whether you need a capital gains tax calculator on sale of stock or are figuring out the tax liability on a private business sale, the IRS assesses taxes based on two criteria: your holding period and your overall taxable income bracket. High earners may also owe an additional 3.8% Net Investment Income Tax (NIIT).
Short-Term vs. Long-Term Gains
Running a short-term vs long-term capital gains tax calculator comparison shows how much timing matters. The IRS splits assets into two holding categories:
- Short-Term Holding Period: Assets held for 365 days or less. Gains get taxed as ordinary income at standard marginal brackets from 10% to 37%.
- Long-Term Holding Period: Assets held for more than one year. These enjoy favorable capital gains tax rate brackets of 0%, 15%, or 20%.
How to Calculate Capital Gains Tax on Real Estate & Stock Sales
Taxable Gain = Net Sale Proceeds - (Cost Basis + Capital Improvements)When using a capital gains tax calculator on home sale 2026 filings, remember the section 121 primary residence exclusion ($250K for single filers, $500K married filing jointly). If you lived in the property for two of the past five years, that portion of your profit is completely tax-free.
Stock Example: You bought 100 shares for $10,000 and sold them 18 months later for $16,000. Your adjusted cost basis is $10,000, leaving a $6,000 long-term capital gain. At a 15% rate, you owe $900 in federal tax.
2026 Long-Term Capital Gains Tax Rate Brackets
For the 2026 tax year, the IRS indexed income thresholds for inflation. Rates apply to single filers as follows:
| Tax Rate | Taxable Income (Single) |
|---|---|
| 0% | $0 – $49,450 |
| 15% | $49,451 – $545,500 |
| 20% | $545,501+ |
Frequently Asked Questions
How is capital gains tax calculated?
Capital gains tax is calculated by subtracting your adjusted cost basis (original purchase price plus acquisition fees and qualifying improvements) from the gross sale proceeds. That net gain is then multiplied by your applicable tax rate based on holding duration and income.
What is the capital gains tax rate for 2026?
For 2026, long-term capital gains tax rates are 0%, 15%, or 20%, depending on your taxable income and filing status. Short-term gains are taxed at your ordinary federal income tax rate, ranging from 10% to 37%.
Do I have to pay capital gains tax if I reinvest?
Yes, selling stock or crypto at a profit triggers an immediate taxable event in taxable accounts, even if you reinvest the cash right away. For real estate, you can defer taxes by executing a qualifying Section 1031 exchange on investment property.
How much capital gains tax will I pay on stocks?
The tax you pay on stocks depends on how long you held the shares. Holding them over a year qualifies for 0%, 15%, or 20% long-term rates. Selling within a year triggers short-term ordinary income tax rates between 10% and 37%, plus potential Net Investment Income Tax (NIIT).
Capital Gains Estimator
Net ROI: +123.3%
* For informational purposes only. Consult a certified financial planner or CPA for official tax/financial advice.
Check out 4 similar collection of tax calculators