About Capital Gains Tax Calculator
Capital Gains Tax Calculator estimates what you'll owe when you sell an investment: stocks, crypto, property, or your home. Enter your purchase and sale price, how long you held it, your filing status, taxable income, and state, and see your federal capital gains tax, the 3.8% net investment income tax, and an estimated state tax instantly.
Short-term vs. long-term, side by side
The single biggest lever on capital gains tax is your holding period. The calculator applies 2026 ordinary income brackets to short-term gains and the 0% / 15% / 20% long-term brackets to assets held over a year, and it shows exactly how much holding past the one-year mark saves you.
Home sales handled
Selling your primary residence? One checkbox applies the IRS Section 121 exclusion, removing up to $250,000 of gain ($500,000 married filing jointly) before any tax is calculated.
Private and free
Every calculation runs locally in your browser. Nothing you enter is uploaded, stored, or sent anywhere. No sign-up, nothing to install. For details on the cookies used by advertising, see our Privacy Policy.
Important disclaimer
This calculator is for general informational and educational purposes only. It does not provide, and must not be relied on as, tax advice, investment advice, legal advice, or financial advice.
- Estimates only. Real tax returns involve many factors this tool simplifies: other capital gains and losses, itemized deductions, credits, the alternative minimum tax, wash-sale rules, cost-basis adjustments, and more.
- Tax rules change. Figures here reflect 2026 federal rates as published in Rev. Proc. 2025-32 and state rates as of publication. Legislatures amend tax law every year.
- State simplifications. Most states tax capital gains as ordinary income, and this tool estimates state tax that way. Several states offer exclusions or reduced rates for long-term gains, and local taxes are not included.
- No professional relationship. Using this site does not create any advisor–client, accountant–client, or attorney–client relationship.
- No liability. We accept no liability for decisions made or actions taken based on this tool's output.
Before selling a large position or filing a return, consult a qualified CPA, enrolled agent, or tax attorney.
← Back to the calculator