The IRS splits capital gains into two buckets: hold for one year or less and the gain is taxed as ordinary income (up to 37%); hold longer and preferential rates apply (0%, 15%, or 20%). That one threshold, combined with tax-loss harvesting and the step-up in basis at death, is where most of the tax-planning leverage lives.
On this page
- Short-term vs. long-term: the one-year line
- The $9,000 lesson from waiting eight months
- Tax-loss harvesting: turning losers into a tool
- The wash sale rule: the 30-day clock
- Qualified dividends: a second application of the long-term rate
- The step-up in basis: the most underutilized rule in estate planning
- How to use what you know
In December 2023, a hypothetical investor sells a stock position she has held for eleven months, pockets a $60,000 gain, and files her taxes in April expecting the 15% capital gains rate. What she gets instead is ordinary income tax at 22%, a difference of $4,200, because she sold 31 days too early. The holding period is the most important number in capital gains taxation, and almost nobody thinks about it until it is too late.
Let's start with how the machine actually works.
Short-term vs. long-term: the one-year line
A capital gain is the profit from selling an asset for more than you paid.1 The IRS divides those gains into two buckets based on how long you held the asset before selling. Hold for one year or less and you have a short-term gain, taxed at your ordinary income rate, the same rate that applies to your paycheck. Hold for more than one year and you have a long-term gain, eligible for preferential rates that are meaningfully lower than ordinary income rates.1
For 2025, the long-term rates break down like this. Single filers pay 0% on long-term gains if their taxable income stays at or below $48,350, 15% on income from $48,350 up to $533,400, and 20% above that.1 Married filers get wider brackets: 0% up to $96,700, 15% up to $600,050, and 20% above. What this really means is that a middle-income investor pays less than a quarter of what a short-term trader pays on the same dollar of profit.
The $9,000 lesson from waiting eight months
Here is a worked example that makes the rate gap concrete. You own a stock position with a $100,000 unrealized gain. You are in the 22% ordinary income bracket.
Option A: You sell after six months. The gain is short-term, taxed at 22%, and your bill is $22,000.
Option B: You wait eight more months, crossing the one-year threshold. The same $100,000 gain is now long-term, taxed at 15%, and your bill is $15,000.
The difference is $7,000, earned by doing nothing except holding for an extra season. I view this as one of the clearest risk-free returns in investing, because patience itself has a dollar value here. The stock does not have to do anything new. You just have to wait.
For investors who are close to the 20% long-term threshold, there is another layer. High earners also face the Net Investment Income Tax (NIIT), an additional 3.8% applied to investment income when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers.2 At the top, the effective rate on long-term gains reaches 23.8%, still well below the 37% top rate on short-term gains.
Tax-loss harvesting: turning losers into a tool
Tax-loss harvesting is the practice of intentionally selling positions that are down to offset the gains you have realized elsewhere, reducing the net taxable amount for the year.3
Let's walk through a realistic December portfolio. You have two winning positions you have sold this year, generating $27,000 in long-term gains. You also hold two positions currently sitting at losses: one is down $3,000, another is down $4,000, and you have no strong conviction that they will recover soon.
Without harvesting, you owe 15% on $27,000, which is $4,050.
With harvesting, you sell both losing positions and realize $7,000 in losses. Your net gain drops to $20,000, and you owe 15% on that, which is $3,000. You saved $1,050, and you immediately purchased replacement securities with a similar risk profile so your overall market exposure barely changed.
The IRS allows you to deduct up to $3,000 per year in net capital losses against ordinary income if your losses exceed your gains.1 Anything above $3,000 carries forward to future years indefinitely. There is no expiration on that carry-forward, which means a large loss year can offset gains for many years into the future.3
The wash sale rule: the 30-day clock
Harvesting only works if you respect the wash sale rule. The IRS disallows a loss if you buy the same security or a substantially identical one within 30 days before or after the sale date.4 The disallowed loss does not vanish outright: it gets added to the cost basis of the new purchase, deferring rather than eliminating the tax benefit. But deferring a benefit is meaningfully worse than taking it now, particularly in a year when you have gains to offset.
The workaround is straightforward. Sell the losing position, then immediately buy a different security in the same asset class. If you are harvesting a loss on an Apple holding, buy a technology ETF or Microsoft, not Apple. You maintain your sector exposure, you capture the deduction, and after 30 days you can purchase Apple again if you still want it.4
This is the part most guides skip, so let me be direct: the wash sale rule applies across all accounts you control. If you sell a security at a loss in your taxable account and your spouse buys the same security in an IRA within the 30-day window, the loss is still disallowed. The IRS looks at substantially identical securities across all accounts the same person or household controls.3
Qualified dividends: a second application of the long-term rate
The long-term capital gains rates also apply to qualified dividends, not just asset sales.5 A dividend qualifies if it is paid by a U.S. corporation or qualified foreign corporation, and if you held the stock for more than 60 days during the 121-day period surrounding the ex-dividend date.
Own 100 shares of a company that pays $0.25 per share. That is $25 in dividends. If the holding requirement is met, that $25 is taxed at 15% for most investors, costing $3.75. If you bought the shares two weeks before the ex-dividend date and do not meet the 60-day threshold, the same $25 is ordinary income, taxed at your bracket rate, potentially 22% or higher. The math changes on exactly the same payment based entirely on how long you held the shares before that dividend went out.5
REIT dividends are almost always ordinary, not qualified. That is worth knowing before you structure a dividend-income strategy around real estate investment trusts.
The step-up in basis: the most underutilized rule in estate planning
When you inherit an appreciated asset, its cost basis steps up to the fair market value on the date of death.1 The IRS effectively resets the clock and erases the original owner's embedded gain.
Here is what that means in practice. You buy a stock for $10,000. Over 30 years it grows to $80,000. If you sell it yourself, you owe long-term capital gains tax on $70,000 of appreciation. At 15%, that is $10,500 going to the IRS.
If instead you hold the position until you die and leave it to an heir, the heir inherits with a basis of $80,000. If they sell the day after inheriting, they owe nothing in capital gains tax. The $70,000 gain disappears entirely from a tax perspective.1 This is why holding highly appreciated positions through death can be the most tax-efficient transfer of wealth in the tax code, and why financial advisors often counsel clients not to sell low-basis stock they intend to leave to heirs.
Proper reporting of all of this flows through Form 8949, where you record each sale with dates, proceeds, and adjusted basis, then carry the totals to Schedule D.6
How to use what you know
Overall, the capital gains system rewards patience and planning in ways few other tax rules do. Track your holding periods; know when you cross one year on each position. Run a year-end audit of your portfolio losses every November, before the tax-loss harvesting window gets crowded. When you harvest, buy a substitute on the same day rather than sitting in cash, because missing even a few trading days in a volatile market can cost more than the tax you saved. And if you hold appreciated assets with no near-term need to sell, think about who inherits them and whether a stepped-up basis changes the calculus.
The difference between someone who thinks about these rules and someone who does not is not sophistication. It is attention.





