Capital Gains Calculator

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.

Before selling a large position or filing a return, consult a qualified CPA, enrolled agent, or tax attorney.

← Back to the calculator