Capital Gains Tax Basics

Aug 9, 2026

investing-basics
tax-planning

Capital Gains Tax Basics

When you sell an investment for more than you paid, the profit is a capital gain — and how long you held the asset largely determines how it is taxed.

Short-term vs long-term

Holding an investment just past the one-year mark can meaningfully change the tax bill on a sale.

Cost basis matters

Your gain is the sale price minus your cost basis — generally what you paid, including reinvested dividends. Keeping good basis records (or confirming your custodian's records) prevents overpaying tax when you sell.

Offsetting gains with losses

Capital losses offset capital gains dollar for dollar. If losses exceed gains, up to $3,000 per year can offset ordinary income, and the remainder carries forward to future years. This is the mechanism behind tax-loss harvesting.

The net investment income tax

Higher-income households may owe an additional 3.8% net investment income tax (NIIT) on top of capital gains rates once modified adjusted gross income crosses the statutory thresholds.

Special situations

Key takeaways

This article is for educational purposes only and is not tax advice. Consult your tax professional about your specific situation.