Capital gains tax is one of the most controllable taxes you face as an investor — the rate you pay depends heavily on decisions you make before you sell. Understanding how holding periods, income levels, and tax strategies interact can mean the difference between keeping 80 cents of every dollar gained and keeping far less. This guide explains the key mechanics and strategies that apply in 2025.
The One-Year Rule
The single most impactful capital gains tax strategy is also the simplest: hold your investment for at least one year and one day before selling. This converts short-term capital gains — taxed as ordinary income at rates up to 37% — into long-term capital gains, taxed at preferential rates of 0%, 15%, or 20% depending on your total income and filing status. For an investor in the 32% ordinary income bracket selling an asset with a $50,000 gain, the difference between short-term and long-term treatment is roughly $6,000 in federal taxes on that single transaction. The decision to wait a few weeks or months to cross the one-year threshold is almost always the highest-ROI tax decision an investor can make. It requires no complex planning, no special accounts, and no professional advice — just patience. If you are approaching the one-year mark on an appreciated asset, enter your numbers into this calculator and compare the short-term versus long-term tax outcomes before you sell.
The 0% Bracket Opportunity
In 2025, single filers with total taxable income under $48,350 pay zero federal tax on long-term capital gains; for married filing jointly, the threshold is $96,700. This creates a genuine tax planning opportunity for retirees drawing down savings before Social Security begins, early retirees in low-income years, and anyone who has left employment temporarily. If your ordinary income falls well below these thresholds, you can strategically sell appreciated long-term holdings — including low-basis stock, index funds, or real estate — and pay no federal capital gains tax on the proceeds. This technique, sometimes called "gain harvesting," is the mirror image of tax-loss harvesting: instead of realizing losses, you deliberately realize gains while your rate is zero, resetting your cost basis higher for future sales. Coordinating this with Roth conversions, deductible retirement contributions, and other income-shifting moves requires careful planning, but the tax savings can be substantial for households in transitional income years.
Tax-Loss Harvesting Mechanics
Tax-loss harvesting means selling investments at a loss to offset capital gains elsewhere in your portfolio, reducing your overall tax bill. Long-term losses offset long-term gains first, and short-term losses offset short-term gains first; only after same-type netting do losses cross over to offset the other category. If your total capital losses exceed your total capital gains for the year, up to $3,000 of the net loss can offset ordinary income, with any remaining excess carried forward indefinitely to future years. The critical limitation is the wash-sale rule: if you sell a security at a loss and repurchase the same or a substantially identical security within 30 days before or after the sale, the IRS disallows the loss deduction entirely. To preserve the tax loss while maintaining market exposure, you can buy a similar but not identical fund — for example, replacing an S&P 500 index fund with a total market fund — for 31 days before switching back. Done consistently, tax-loss harvesting can add 0.2–0.5% per year in after-tax returns over a long investment horizon.
Depreciation Recapture on Real Estate
Rental property owners who sell often discover that their tax bill is larger than the standard long-term capital gains rate suggests, because of depreciation recapture. The IRS requires you to depreciate residential rental property over 27.5 years, reducing your cost basis by the depreciation claimed each year. When you sell, the accumulated depreciation is "recaptured" and taxed at a maximum rate of 25% under Section 1250, separate from the capital gains rate that applies to the remaining gain. For example, if you bought a rental for $200,000, claimed $30,000 in depreciation over the years, and sold for $350,000, you have a $150,000 total gain — but $30,000 of it is taxed at up to 25% and only $120,000 at the standard long-term rate. You owe recapture tax even if you are in the 0% long-term bracket. A 1031 like-kind exchange defers both the capital gains tax and the depreciation recapture tax by rolling all proceeds into a replacement property within 180 days, allowing you to defer tax indefinitely across successive exchanges.