Capital Gains Tax Calculator
Calculate your capital gains tax on any investment — stocks, real estate, or other assets. See your short-term vs long-term tax results instantly.
The Capital Gains Tax Calculator is a free online tool designed to help you calculate and analyze calculate your capital gains tax on stocks, real estate, or any investment. Planning details accurately is crucial for making smart personal or financial decisions, and this calculator provides instant clarity with downloadable PDF reports.
This tool is built to benefit investors, traders, and property owners calculating their federal tax liability on profits from selling stocks, crypto, or real estate. By comparing short-term and long-term holding periods, you can minimize taxes. By evaluating these key calculations, you can determine exactly how different inputs affect your results and align them with your direct planning requirements.
Before using this tool, make sure you have your details ready, such as your purchase price (cost basis), sales price, holding period (short vs long term), filing status, and annual taxable income. This ensures the most accurate calculations.
How to Use the Capital Gains Tax Calculator
- 1
Enter your purchase price and sale price for the asset. Add any improvements or additional costs to your cost basis and enter any selling costs such as agent commissions or broker fees.
- 2
Enter how many years you held the asset. Holding an asset for more than one year qualifies it for lower long-term capital gains tax rates which are 0% 15% or 20% depending on your income.
- 3
Enter your annual income and select your filing status. This determines which tax bracket applies to your capital gain. The calculator uses 2026 federal tax brackets for both long-term and short-term rates.
- 4
Click Calculate to see your tax owed, net gain after tax, and how much you save by holding the asset long-term versus short-term. Download the free PDF report to share with your tax advisor.
Example Calculation
Scenario: A filer purchases stock for $10,000 and sells it 2 years later for $18,000. They file as Single with an annual taxable income of $65,000.
- Input: Purchase Price = $10,000
- Input: Selling Price = $18,000
- Input: Holding Period = 2 Years (Long-Term)
- Input: Filing Status = Single
- Input: Taxable Income = $65,000
Result: The total capital gain is $8,000. Because the stock was held for over a year, the long-term capital gains tax rate of 15% applies. The tax owed is $1,200.00, compared to $1,760.00 if sold as a short-term gain.
Download the PDF report to save your capital gains tax summary. Share this sheet with your CPA during annual tax planning to evaluate tax-loss harvesting opportunities.
Frequently Asked Questions
What is the difference between short-term and long-term capital gains?
Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate. Long-term capital gains apply to assets held for more than one year and are taxed at lower rates (0%, 15%, or 20%).
What is cost basis?
Cost basis is the total price paid to acquire an asset, including purchase price, brokerage commissions, transaction fees, and improvements (in the case of real estate).
How does capital gains tax apply to selling a primary home?
Under the home sale exclusion, single filers can exclude up to $250,000 (and married couples up to $500,000) of capital gains from the sale of their primary residence, provided they owned and lived in it for at least 2 of the last 5 years.
What is tax-loss harvesting?
Tax-loss harvesting is selling investments at a loss to offset capital gains tax liabilities on other profitable investments. You can also offset up to $3,000 of ordinary income annually using net capital losses.
Are cryptocurrencies subject to capital gains tax?
Yes, the IRS treats cryptocurrency as property. Selling, trading, or spending crypto triggers a taxable event subject to short-term or long-term capital gains tax rules.
Can I download my capital gains tax calculations?
Yes, you can generate a clean PDF report detailing your gains, cost basis, holding periods, estimated tax bracket rates, and tax liabilities.
Disclaimer: This report is generated for informational purposes only. TheCalcTool is not a licensed financial legal or tax advisor. Capital gains tax calculations are estimates based on 2026 US federal tax brackets and rates. State capital gains taxes are not included. The Net Investment Income Tax of 3.8% may apply to high-income earners. Tax laws are subject to change. Please consult a qualified tax professional or CPA before making any investment or tax decisions.