Capital Gains Tax Calculator
Estimate your capital gains tax on stocks, real estate, or other investments. Enter your purchase and sale prices, holding period, and income to calculate the estimated tax.
Understanding Capital Gains Tax
Capital gains tax is levied on the profit from the sale of an asset such as stocks, bonds, mutual funds, or real estate. The tax rate depends on how long you held the asset (short-term vs. long-term) and your total taxable income. Understanding these rules can help you make smarter decisions about when to sell investments.
Capital Gains Tax Formula
Capital Gain = Sale Price - Cost Basis (purchase price + improvements + transaction costs). Tax Owed = Capital Gain x Tax Rate. For short-term gains, the tax rate equals your ordinary income tax bracket (10%-37%). For long-term gains, preferential rates of 0%, 15%, or 20% apply based on your taxable income.
2024 Long-Term Capital Gains Rates
- 0%: Up to $47,025 (single) / $94,050 (married filing jointly)
- 15%: $47,026 - $518,900 (single) / $94,051 - $583,750 (MFJ)
- 20%: Over $518,900 (single) / Over $583,750 (MFJ)
- +3.8% NIIT: Applies if MAGI exceeds $200,000 (single) / $250,000 (MFJ)
Short-Term vs. Long-Term: Example
Suppose you bought stock for $10,000 and sold it for $15,000 (a $5,000 gain). If held for 11 months (short-term) and you are in the 24% tax bracket, you owe $1,200. If held for 13 months (long-term) and qualify for the 15% rate, you owe only $750 β saving $450 by waiting just two more months.
Tax-Saving Strategies
- Hold investments for more than one year to qualify for lower long-term rates
- Use tax-loss harvesting to offset gains with losses from other investments
- Invest through tax-advantaged accounts (401(k), IRA, Roth IRA) to defer or eliminate capital gains tax
- Consider donating appreciated stock to charity to avoid capital gains tax entirely
- Take advantage of the primary residence exclusion ($250K/$500K) when selling your home
Important Notes
- State capital gains taxes vary β some states (like California at 13.3%) add significant additional tax
- Inherited assets receive a stepped-up cost basis, potentially eliminating years of unrealized gains
- Cryptocurrency is treated as property by the IRS and is subject to the same capital gains tax rules
- This calculator provides a federal estimate only β consult a tax professional for complete tax planning