Gain Tax Calculator

Quickly calculate capital gains tax on stocks, real estate, and crypto. Understand tax implications, reduce liabilities, and plan investments smartly with our easy-to-use tool.

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

100% browser-based No upload to server Free to use

Frequently Asked Questions About Online Calculators

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.

What’s the difference between short-term and long-term capital gains tax rates?

Short-term gains (assets held less than one year) are taxed at your ordinary income tax rate, which can be as high as 37%. Long-term gains (held one year or more) are taxed at preferential rates: 0%, 15%, or 20%, depending on your taxable income. The difference can be enormous. For example, a $10,000 short-term gain in the 32% bracket costs $3,200 in tax, while the same gain held long-term might cost only $1,500. That’s why holding periods matter so much.

Does this tool include net investment income tax (NIIT)?

The current federal calculation focuses on the standard 0%/15%/20% brackets for most assets and the 28% rate for collectibles. High-income earners (typically over $200,000 for singles or $250,000 for married filing jointly) may owe an additional 3.8% Net Investment Income Tax. The tool’s optimization tips remind you to consider NIIT, but the primary tax amount shown is the core capital gains tax. For precision with NIIT, use the estimate as a baseline and add 3.8% if you exceed those thresholds.

Guide