Capital Gains Tax Calculator
Estimate your potential tax liability on investment sales.
Understanding Capital Gains Tax Calculations
A capital gain occurs when you sell an asset—such as stocks, bonds, or real estate—for more than the original purchase price. The difference between the selling price (minus expenses) and the purchase price is your profit, which the IRS taxes at specific rates.
Short-Term vs. Long-Term Capital Gains
The duration you hold an asset significantly impacts the tax rate you pay:
- Short-Term Capital Gains: These apply to assets held for one year or less. They are taxed as "ordinary income," meaning they fall into your standard income tax brackets (ranging from 10% to 37%).
- Long-Term Capital Gains: These apply to assets held for longer than one year. These rates are typically much lower than ordinary income rates, often 0%, 15%, or 20% depending on your total taxable income and filing status.
How to Calculate Your Capital Gains Rate
To calculate your tax liability, follow these steps:
- Determine the Cost Basis: This is the price you paid for the asset plus any associated costs like commissions or legal fees.
- Calculate the Realized Amount: This is the final sale price minus any selling costs (like broker fees).
- Subtract Basis from Realized Amount: If the number is positive, you have a capital gain. If negative, you have a capital loss.
- Identify Your Tax Bracket: Add your capital gain to your other annual income to see which long-term or short-term bracket you fall into.
Example Calculation
Imagine you are a single filer earning $60,000 per year. You sell a stock you held for 2 years for a $10,000 profit. Since you held it for more than a year, it qualifies as a long-term capital gain. Based on current IRS brackets for 2024, a single filer earning between $47,026 and $518,900 pays a 15% long-term capital gains rate. Your tax would be 15% of $10,000, which is $1,500.
Strategies to Minimize Tax
Investors often use Tax-Loss Harvesting to offset gains. This involves selling underperforming assets at a loss to neutralize the gains from profitable sales. Additionally, holding assets for at least a year and a day is the most common way to drastically reduce your tax bill.