What Triggers a Capital Gains Tax Event?
- Selling a stock, ETF, or mutual fund in a taxable brokerage account
- Selling a rental property or investment real estate
- Selling cryptocurrency (Bitcoin, Ethereum, etc.)
- Selling a business or business assets
- Receiving capital gains distributions from mutual funds (even if reinvested)
- Selling collectibles, art, precious metals, or other investment assets
- NOT triggered by: Holding an appreciating investment, trading within an IRA or 401(k), selling your primary home below the exclusion limit ($250K single / $500K joint profit)
The Simple Math of Capital Gains
Capital gains calculation — step by step
| Step | Description | Example |
|---|---|---|
| Sale proceeds | Amount received from sale | $15,000 (sale of 100 shares at $150) |
| Cost basis | Amount originally paid including fees | $8,000 (bought 100 shares at $80) |
| Capital gain | Proceeds minus basis | $15,000 - $8,000 = $7,000 |
| Holding period | More or less than 12 months? | Bought Jan 2023, sold March 2025 = long-term |
| Tax rate | Based on holding period and income | Long-term rate: 15% (at $80K income) |
| Tax owed | Gain times rate | $7,000 × 15% = $1,050 |
A common misconception: you pay capital gains tax only on the gain — the profit above what you paid. If you bought stock for $8,000 and sold it for $15,000, you pay tax on $7,000 (the gain), not $15,000 (the total sale proceeds). Your original $8,000 cost basis is returned to you tax-free.
How Capital Gains Are Reported on Your Tax Return
Your brokerage sends you a Form 1099-B in February showing all sales from the prior year. This information is transferred to Schedule D (Capital Gains and Losses) of your tax return. Tax software automates most of this if you import your 1099-B. You must still verify the cost basis shown is correct — brokers sometimes have inaccurate historical basis information, especially for older accounts or securities acquired through corporate actions.
- Form 1099-B: Issued by your broker in February, shows all sale proceeds and cost basis
- Schedule D: IRS form where you report all capital transactions — part of your Form 1040
- Form 8949: Detailed listing of each individual sale transaction that feeds into Schedule D
- Net Investment Income Tax: Additional Form 8960 if your income exceeds NIIT thresholds
- Carryforward losses: Track on Schedule D; unused losses are documented each year
The Power of Tax-Deferred and Tax-Free Accounts
The most powerful way to avoid capital gains taxes on investments is to hold them inside tax-advantaged accounts. In a traditional IRA or 401(k), you pay no capital gains tax on sales — you pay ordinary income tax only when you withdraw. In a Roth IRA or Roth 401(k), you pay no capital gains tax and no tax on withdrawals at all. Taxable brokerage accounts are for investing beyond what fits in tax-advantaged accounts.
Calculate Your Capital Gains Tax
Enter your purchase price, sale price, and dates to see exactly how much capital gains tax you owe.