Reading time: 3 minutes
Published: November 2, 2024
Modified: August 23, 2025
Use this Capital Gains Tax Calculator to instantly estimate your 2024 or 2025 federal tax on long-term gains from assets like stocks, bonds, mutual funds, and real estate. This tool does not account for losses and applies only to federal taxes.
Your tax rate depends on both your taxable income and the size of your gain. If you’re eligible for the $250,000 or $500,000 capital gains exclusion available on the sale of a primary residence, you can enter that amount manually. This calculator will subtract that exclusion before computing your tax.
After you click Calculate, you’ll see a detailed breakdown of how much of your gain is taxed at 0%, 15%, and 20%, as well as your total tax, effective rate, and cash in hand after taxes.
For more information about capital gains, see How to Calculate Capital Gains on a House Sale.