Gain Tax Calculator

Enter the values the gain tax form asks for and the result is computed here, in the page, with no sign-up and no upload. Change one field at a time to see how sensitive the gain tax figure is to that assumption.

Investment Information

Note: Capital gains tax rates vary based on holding period, income level, and asset type. You can offset capital gains with capital losses.

Assets

Embed tool Add this tool to your website Get embed code

Add this calculator to a related page with a visible HeyCal source link.

Instant results No signup required Standard formulas Free to use

Frequently Asked Questions about Gain Tax Calculator

How do I sanity-check the gain tax result?

Rerun the calculator with a known example and compare it against the figure you expect; then swap back to your own numbers.

Which gain tax inputs change the outcome most?

Adjust one field at a time. The figure that shifts the result hardest is the assumption worth double-checking before you rely on it.

How do I calculate capital gains tax on stocks I sold this year?

You need three things for each stock: the purchase price (cost basis), the sale price, and the holding period (less than one year = short-term; one year or more = long-term). Enter each stock as a separate asset in the calculator, and it will apply the correct federal rate based on your total taxable income. Don’t forget to include any state tax if applicable.

Does this capital gains tax calculator work for rental property or primary residence?

Yes, it includes real estate as an asset type. Keep in mind that for a primary residence, you may qualify for the IRS Section 121 exclusion ($250,000 or $500,000 for married couples). This calculator estimates tax on the gain before exclusions. For pure investment real estate, it correctly applies long-term rates and notes potential depreciation recapture in the tips section.

Can I use this tool if I have capital losses from previous years?

The current version focuses on offsetting losses from the same tax year. If you have carryover losses from prior years, you can manually enter that total as a capital loss to offset. The tool will apply it against your current-year gains following IRS rules (short-term losses first, then long-term). For complex carryover situations, always cross-check with a tax professional.

Is it safe to use a free online capital gains tax calculator without uploading data?

Absolutely safe with this specific tool. All calculations happen inside your browser. Your financial data never makes a network request to any server. You can even disconnect from the internet after loading the page, and the calculator will continue to work. This makes it one of the most privacy-focused capital gains tax calculators available online.