How Capital Gains Are Calculated
Your taxable gain is sale price minus cost basis (what you originally paid, plus certain fees or improvements). Only the profit is taxed — never the full sale amount. If you sell an asset for less than you paid, you have a capital loss instead, which can offset other gains.
The single most important variable is how long you held the asset. Cross the one-year mark and your rate can drop dramatically.
Worked Example: Selling Stock
Say you bought 100 shares of a stock at $50 each ($5,000 total) and later sell all 100 shares at $85 each ($8,500 total). Your gain is $3,500.
| Scenario | Holding Period | Tax Rate (24% bracket / 15% LTCG) | Tax Owed |
|---|---|---|---|
| Sold after 8 months | Short-term | 24% (ordinary income) | $840 |
| Sold after 14 months | Long-term | 15% (long-term rate) | $525 |
Waiting just 6 extra months to cross the one-year threshold saves this investor $315 in tax on the same $3,500 gain — a real, common outcome of long-term vs. short-term timing.
2024 Long-Term Capital Gains Brackets (Single Filers)
- 0% rate: Taxable income up to $47,025
- 15% rate: Taxable income $47,026 – $518,900
- 20% rate: Taxable income above $518,900
Married filing jointly thresholds are roughly double. State capital gains taxes may also apply on top of federal rates, depending on where you live.
These figures are illustrative estimates based on general 2024 federal brackets and do not account for your full tax situation, state taxes, or the Net Investment Income Tax. This is not tax advice — consult a licensed tax professional.