💰 Capital Gains Tax Calculator
Calculate capital gains tax on your investment profits
Investment Details
Understanding Capital Gains Tax
What Are Capital Gains?
A capital gain is the profit you make when you sell an investment or asset for more than you paid for it. Capital gains are subject to taxation, with the rate depending on how long you held the asset and your income level.
Short-Term vs Long-Term Capital Gains
- Short-Term Capital Gains: Assets held for 12 months or less. Taxed at your ordinary income tax rate (10% to 37%)
- Long-Term Capital Gains: Assets held for more than 12 months. Taxed at preferential rates (0%, 15%, or 20%)
- Tax Advantage: Holding investments for over a year can significantly reduce your tax burden
- Holding Period: Starts the day after you acquire the asset and includes the day you sell it
Cost Basis Calculation
- Purchase Price: Original amount paid for the investment
- Purchase Costs: Commissions, fees, and other acquisition expenses
- Improvements: For real estate, costs of improvements increase basis
- Stock Splits: Adjust basis when stocks split or reverse split
- Reinvested Dividends: Add to cost basis if already taxed
Long-Term Capital Gains Rates (2024)
- 0% Rate: For lower income earners (up to $47,025 single, $94,050 married)
- 15% Rate: For middle income earners ($47,026-$518,900 single)
- 20% Rate: For high income earners (over $518,900 single)
- Net Investment Income Tax: Additional 3.8% surtax may apply for high earners
Strategies to Minimize Capital Gains Tax
- Hold for Long-Term: Wait at least 1 year to qualify for lower rates
- Tax-Loss Harvesting: Offset gains with losses from other investments
- Tax-Advantaged Accounts: Use IRAs and 401(k)s to defer or eliminate capital gains tax
- Gift Appreciated Assets: Consider charitable donations of appreciated stock
- Spread Sales: Sell portions over multiple years to stay in lower brackets
- Primary Residence Exclusion: Up to $250k ($500k married) gain on home sale may be excluded
- Opportunity Zones: Defer gains by investing in qualified opportunity zones
- Time Sales Strategically: Sell in years with lower income to reduce rates
Special Capital Gains Rules
- Collectibles: Taxed at maximum 28% rate (coins, art, antiques)
- Section 1250 Property: Real estate depreciation recapture taxed at 25%
- Qualified Small Business Stock: May exclude up to 100% of gain
- Cryptocurrency: Treated as property, subject to capital gains tax
- Inherited Assets: Step-up in basis to fair market value at date of death
Capital Losses
- Offset Gains: Capital losses can offset capital gains dollar-for-dollar
- Excess Losses: Up to $3,000 per year can offset ordinary income
- Carryforward: Remaining losses can be carried forward to future years indefinitely
- Wash Sale Rule: Can't claim loss if you buy same/similar security within 30 days
Reporting Requirements
- Form 8949: Report each capital asset transaction
- Schedule D: Summarize capital gains and losses
- Form 1099-B: Broker reports your sales to IRS
- State Taxes: Most states tax capital gains as ordinary income
Frequently Asked Questions
How can I avoid paying capital gains tax?
You can't completely avoid it, but you can minimize it: Hold investments over 12 months for lower long-term rates, use tax-advantaged accounts (IRA, 401k), harvest tax losses to offset gains, donate appreciated assets to charity, or use the primary residence exclusion ($250k single, $500k married) when selling your home.
Do I pay capital gains tax if I reinvest the proceeds?
Yes, you still owe capital gains tax even if you reinvest. The tax is triggered when you sell, not when you withdraw money. Exception: 1031 exchanges for real estate and qualified opportunity zone investments allow you to defer taxes by reinvesting in similar properties or qualified funds.
What is the wash sale rule?
The wash sale rule prevents you from claiming a tax loss if you buy the same or substantially identical security within 30 days before or after the sale. If you violate this rule, the loss is disallowed and added to the cost basis of the replacement security. Wait 31 days to repurchase to avoid this rule.
How are cryptocurrency gains taxed?
Cryptocurrency is treated as property, not currency, so capital gains rules apply. Selling, trading, or using crypto to buy goods triggers a taxable event. Hold over 12 months for long-term rates. Track your cost basis carefully - the IRS requires reporting all crypto transactions on Form 8949.
What happens to capital gains when I die?
Your heirs receive a "step-up in basis" - the cost basis resets to the fair market value at your death. This eliminates all unrealized capital gains. For example, if you bought stock for $10,000 that's worth $100,000 when you die, your heirs inherit it with a $100,000 basis and owe no capital gains tax on that $90,000 gain.
Can I deduct capital losses?
Yes! Capital losses offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 per year against ordinary income. Remaining losses carry forward indefinitely to future years. This is called tax-loss harvesting and is a powerful strategy to reduce your tax bill.