Long-term capital gains are taxed on their own schedule, and the lowest rung of that schedule is zero. Whether your gains land in the 0 percent band, the 15 percent band, or the 20 percent band depends on your total taxable income for the year. That makes the calendar a tool: in a year when your income drops, a sale you might otherwise have made at a higher rate can sometimes be made at no federal capital gains tax at all.

The catch is that the window is easy to miss. Low-income years tend to arrive quietly: the gap between leaving a job and starting Social Security, a sabbatical, an early-retirement stretch, or a year a business runs lean. Recognizing one in advance, and acting before December 31, is the difference between a planned sale and a missed opportunity.

How Long-Term Gains Are Taxed

An asset held longer than a year qualifies for long-term capital gains treatment, which carries lower rates than ordinary income. Those rates step up in bands tied to your taxable income. The lowest band is taxed at 0 percent, the middle at 15 percent, and the highest at 20 percent. Short-term gains, on assets held a year or less, do not get this treatment and are taxed as ordinary income instead.

Long-term gains bandWhat it means for a sale
0 percentGains that fall within this income band carry no federal capital gains tax.
15 percentThe band many investors land in once income rises past the lowest tier.
20 percentReserved for higher incomes, and a 3.8 percent surtax may apply on top.

The key idea is that your gains stack on top of your other income. The more ordinary income you report in a year, the less room remains in the 0 percent band. So the same sale can be tax-free in a lean year and taxed at 15 percent in a busy one. Income, not the size of the gain alone, sets the rate.

Spotting a Low-Income Year Before It Closes

The strategy only works if you see the year coming. Several common situations open the window: the stretch between retiring and claiming Social Security, a year spent between jobs, a planned sabbatical, an early-retirement period before required distributions begin, or a year a business owner deliberately holds income down. In each case, taxable income may dip well below its usual level, leaving room in the lower bands.

Same Sale, Two Different Years Low-income year Income Gain at 0% High-income year Income Gain at 15%

Because the rate depends on income you can often estimate in advance, a low-income year can be planned for rather than stumbled into. A projection early in the year shows roughly how much room sits in the 0 percent band, which tells you how large a gain you could realize before the rate steps up.

The Order Matters guide cover

RETIREMENT ENGINEERING™

The Order Matters

Five retirement decisions and why timing matters.

Realizing Gains on Purpose: Harvesting

When a low-income year arrives, one option is to sell appreciated positions up to the top of the 0 percent band and immediately buy them back. The gain is realized at no federal capital gains tax, and your cost basis resets to the new, higher price. Future sales are then measured against that higher basis, which can mean less taxable gain later. Unlike the rule that governs selling at a loss, there is no waiting period for repurchasing after a gain, though state taxes and trading costs still apply.

This is the mirror image of harvesting losses. Where loss harvesting banks a deduction in a high-income year, gain harvesting banks tax-free appreciation in a low-income one. Both are timing moves, and both reward planning over reaction.

Resetting Cost Basis in a Lean Year Before harvest Old basis Large future gain After harvest New, higher basis Smaller future gain

Where the Strategy Can Backfire

Realizing gains raises your income for the year, and that added income can ripple outward. It can pull more of your Social Security into taxable territory, lift your Medicare premiums about two years later, or reduce a health-insurance subsidy if you buy coverage on your own. A sale that looks free against the 0 percent band can carry these second-order costs, so the room you have is often smaller than the bracket table alone suggests.

There is also the simple risk of overfilling the band. Realize a little too much and the excess is taxed at 15 percent, which is not a disaster but undoes the point of waiting for the low year. Measuring the headroom carefully, and leaving a margin, keeps a planned sale from quietly turning into a taxed one.

A Hypothetical Comparison

Imagine an investor with a large, long-held position who is weighing when to sell. In a normal working year, the gain would stack on a full salary and be taxed in the 15 percent band. In the first full year after leaving work, before Social Security and required distributions begin, that same gain might fall partly or fully within the 0 percent band. Selling in the lean year, rather than the busy one, could change the tax on the sale meaningfully.

Whether the lean-year sale is the better move still depends on the details: how much room the band actually offers, whether the position needs to be trimmed for risk reasons regardless of taxes, and what the second-order effects on Medicare or subsidies would be. The timing is a lever, not a certainty, and the right choice is the one that fits the whole picture.

How a Fiduciary Plans the Timing

As a fiduciary firm, Holland Capital Management treats gain timing as one piece of a coordinated tax plan rather than a standalone trick. The work involves projecting income year by year, flagging the lean years in advance, and lining up sales with the room those years create, while watching the thresholds that can quietly raise the cost. It connects to the rest of a tax-aware approach, including your asset location strategy and any Roth conversion strategy you are running, since both also compete for the same low-income room. Our philosophy is simple to state and demanding to practice: Preserve. Strengthen. Grow.™

The aim is to make sure the lean years do real work for you. Left unplanned, they pass without notice. Planned for, they can be among the most valuable tax years you have.

Frequently Asked Questions

How do I know if I am in a low-income year?

Project your taxable income early in the year. Years between jobs, the stretch after retiring but before Social Security and required distributions, sabbaticals, and lean business years are common candidates. If your projected income leaves room below the top of the 0 percent capital gains band, you may have a window.

Can I really pay zero tax on a stock sale?

Long-term gains that fall within the 0 percent band carry no federal capital gains tax. The gain still counts as income for other purposes, so the practical room is often smaller than the band suggests, and state tax may still apply.

What is gain harvesting?

It means selling appreciated positions in a low-income year up to the top of the 0 percent band, then repurchasing them. The gain is realized tax-free at the federal level and your cost basis resets higher, which can reduce taxable gain on future sales.

Is there a wash-sale rule for gains?

The wash-sale rule applies to losses, not gains, so you can repurchase a position right after realizing a gain. Trading costs and state taxes still apply, so the move is not entirely free even when the federal rate is zero.

How does realizing gains affect Medicare or Social Security?

Realized gains raise your income, which can increase how much of your Social Security is taxable and may lift your Medicare premiums about two years later. These effects can shrink the room you thought you had, so they belong in the math.

Should I wait for a low-income year to sell something I need to sell now?

Not always. If a position carries too much risk or no longer fits your plan, that can outweigh the tax saving from waiting. You can read more in our overview of tax-efficient investing, which puts timing in the context of the wider plan.

Does this work for short-term gains too?

No. Short-term gains, on assets held a year or less, are taxed as ordinary income and do not get the lower capital gains bands. The timing strategy applies to long-term gains.