If you sold a stock, fund, rental property, or other investment for more than you paid, the profit is generally taxable. Understanding capital gains tax basics helps you plan sales, avoid surprise bills, and keep more of what you earn. The rules hinge on two questions: what kind of asset you sold, and how long you held it before selling.
What Counts as a Capital Gain
A capital gain is the difference between your basis in an asset and the amount you receive when you sell it. Basis usually starts as what you paid, plus certain costs like commissions or improvements to property, and it can be adjusted over time.
Capital assets include stocks, bonds, mutual funds, exchange-traded funds, cryptocurrency, and real estate held for investment. The IRS treats most property you own and use for personal or investment purposes as a capital asset. Your home is a special case: a primary residence can qualify for a large exclusion, but investment property and second homes generally do not.
Not every gain is a capital gain. Inventory sold by a business, for example, is ordinary income. Depreciation you claimed on rental property is generally recaptured and taxed at ordinary rates up to a limit, which is why real estate sales need careful planning.
Short-Term vs. Long-Term: The Holding Period Rule
The single most important distinction in capital gains tax basics is the holding period. The IRS treats a gain as short-term if you held the asset for one year or less, and long-term if you held it for more than one year. The clock generally starts the day after you acquire the asset and ends on the day you sell it.
- Short-term gains are taxed as ordinary income, using the same brackets that apply to wages—currently ranging from 10% to 37% for federal purposes.
- Long-term gains get preferential rates: generally 0%, 15%, or 20%, depending on your taxable income and filing status.
That gap can be substantial. An investor in the 24% ordinary bracket who sells after 13 months may pay 15% on the same profit instead of 24%, a meaningful difference on a large position. Holding periods also matter for wash sales, which disallow a loss if you buy a substantially identical security within 30 days before or after the sale.
How the Long-Term Rates and Brackets Work
Long-term capital gains are stacked on top of your ordinary income to determine which rate applies. For 2024, the 0% rate generally applies to taxable income up to $47,025 for single filers and $94,050 for married couples filing jointly. The 15% rate covers income above those thresholds up to $518,900 single and $583,750 joint, with the 20% rate applying above that. These thresholds are adjusted for inflation each year, so confirm the current figures before you sell.
Higher-income taxpayers may also owe the net investment income tax, an additional 3.8% on the lesser of net investment income or the amount by which modified adjusted gross income exceeds $200,000 single or $250,000 joint. State income tax may apply as well, and a few states tax capital gains at ordinary rates.
Capital losses can offset capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 per year against ordinary income ($1,500 if married filing separately) and carry the remainder forward to future years.
Common Ways to Reduce Capital Gains Tax
Tax planning around capital gains is legal and often straightforward. Consider these approaches:
- Hold longer. Waiting past the one-year mark can cut your federal rate significantly.
- Harvest losses. Sell underperforming positions to offset gains, while watching the wash-sale rule.
- Use tax-advantaged accounts. Gains inside an IRA or 401(k) are not taxed annually, and qualified withdrawals from a Roth IRA are tax-free.
- Time sales across tax years. Spreading gains over two calendar years can keep you in a lower bracket.
- Check your basis. Reinvested dividends and capital improvements raise basis and reduce taxable gain.
- Consider charitable giving. Donating appreciated shares held more than a year can avoid the gain entirely and may produce a deduction.
Report sales on IRS Form 8949 and Schedule D of your Form 1040. Brokerages typically issue Form 1099-B, which reports proceeds and, for covered securities, your basis.
What to Remember
Capital gains tax basics come down to basis, holding period, and bracket. Short-term gains are taxed as ordinary income, while long-term gains get 0%, 15%, or 20% rates plus a possible 3.8% net investment income tax. Losses can offset gains, and strategies like holding past one year, harvesting losses, and using retirement accounts can lower your bill. Because thresholds and rules change, verify current IRS figures or consult a tax professional before making large sales.








