Featured Images_Tax-Gain Harvesting

What Is Tax-Gain Harvesting? Rules, Examples, and Tax Trade-Offs

fc3b2ff4bed40a22798965654b5ce6ca749896be
James N. Robinson Partner / Wealth Advisor
RICP® AIF® Updated Nov 13, 2026
Fact Checked
How is this page fact-checked?
At ARQ Wealth, all of our content is reviewed by Certified Financial Planners® to ensure it is accurate and clear.

Featured Images_Tax-Gain Harvesting

Tax-gain harvesting means deliberately selling an appreciated investment when a favorable long-term capital gains rate applies, potentially as low as 0% in a lower-income year. Repurchasing the investment can raise its cost basis, reducing the gain taxed on a later sale. State taxes and other income-linked costs still need to be considered.

It sounds like a loophole. It isn’t. It’s built directly into the tax code, and for the right household in the right year, it can permanently reduce a future tax bill without changing a single thing about what they own.

What Is Tax-Gain Harvesting?

Tax-gain harvesting means intentionally selling an appreciated investment in a year when your taxable income is low, so the profit qualifies for a favorable long-term capital gains rate, potentially as low as 0%. You can then immediately repurchase the same investment, which resets its cost basis to the current, higher price.

The mechanics matter here. Cost basis is what you originally paid for an investment, and it’s the number the IRS uses to calculate your taxable gain when you eventually sell. If you bought a stock fund for $40,000 and it’s now worth $70,000, you’re sitting on $30,000 of unrealized gain that will come due when you sell. Tax-gain harvesting lets you pay that bill now, potentially at a 0% rate and start the clock over with a new cost basis of $70,000. Any future growth from that point forward is what gets taxed later.

For 2026, single filers can realize long-term capital gains at a 0% federal rate if their total taxable income—including the gain—remains at or below $49,450. Married couples filing jointly have a $98,900 ceiling. Above those thresholds, the rate rises to 15% and, for high earners, to 20%. These thresholds are adjusted for inflation most years, so it’s worth checking the current figures before acting rather than relying on last year’s brackets.

The Basic Rules

A few rules determine whether this strategy actually works as intended.

First, the investment must qualify as a long-term holding, meaning you’ve owned it for more than one year. Gains on anything held for a year or less are short-term and taxed as ordinary income, with no 0% bracket available at any income level.

Second, the 0% rate is based on your total taxable income for the year, not just the gain. The IRS doesn’t consider the capital gain in a vacuum — it adds the gain to all your other income and checks where that total falls relative to the bracket thresholds. That’s why an accurate full-year income projection matters more than the size of the gain alone.

Third, there’s no dollar cap on how much gain you can realize at 0%; the only limit is the gap between your other income and the bracket ceiling. If you realize more than that gap allows, the excess is taxed at 15% (or 20% for high earners), rather than being disqualified entirely. You don’t lose the benefit on the portion that fits; you just pay a normal rate on the portion that doesn’t.

Fourth, and often overlooked: the strategy has to make sense for the specific asset. Selling a highly appreciated position in a taxable brokerage account is the classic example. Assets already held in a Roth or traditional IRA don’t need this treatment at all, since their gains are either tax-free or tax-deferred under a different mechanism.

Who Tends to Benefit

This strategy isn’t for everyone, and it isn’t really about being wealthy; it’s about timing. The people who benefit most share one trait: a year in which their taxable income falls well below their usual level.

That includes retirees in the gap between leaving work and starting Social Security or required minimum distributions, when their only income may be modest pension payments or dividends. It includes someone who was laid off midyear or left a job to start a business that hasn’t yet turned a profit. It includes a couple on a sabbatical, a parent who stepped away from paid work, or a self-employed person coming off a slow year. Even a graduate student or early-career worker with a modest income and an old brokerage account from a gift or inheritance can sometimes take advantage of it.

The common denominator is a temporary dip in ordinary income that creates room in the 0% bracket. If your income is above the 0% threshold, the immediate benefit is less clear. Harvesting gains at 15% can still help if you reasonably expect a higher future rate, but compare the upfront tax and lost tax deferral before selling.

Estimating How Much to Realize

The goal is to fill the 0% bracket without spilling over it, so determining the right amount to sell requires a bit of arithmetic.

Start with your projected taxable income for the year, before any gain — including wages, self-employment income, interest, dividends, pension payments, and other items that count. Subtract that amount from the 0% bracket ceiling for your filing status. Whatever’s left is roughly how much long-term capital gain you can realize at 0%.

Suppose a single filer expects $30,000 of ordinary taxable income this year, and the 0% capital gains threshold is $49,450. That leaves about $19,450 of room. Selling investments with a combined gain of up to that amount would generally incur no federal capital gains tax. Selling more than that would push the excess into the 15% bracket—not a disaster, but worth doing on purpose rather than by accident.

This is where working with a financial planner or tax preparer earns its keep. Getting the estimate right requires knowing your full income picture for the year, not just what you’ve earned so far. Small changes (i.e., a year-end bonus, a large capital gains distribution from a mutual fund, or an unexpected 1099) can shift the ceiling and eat into the room you were counting on.

Tax-Gain Harvesting vs. Tax-Loss Harvesting

These two strategies are often confused because they share a name and a season. Both tend to come up around year-end tax planning, but they work in opposite directions and serve different households.

Tax-loss harvesting means selling an investment that has lost value so the loss can offset other capital gains or up to $3,000 of ordinary income per year, with any excess carried forward to future years. It’s most useful for higher earners with substantial capital gains elsewhere in their portfolio, and it works regardless of your tax bracket.

Tax-gain harvesting means selling an investment that has gained value, specifically to take advantage of a low-income year and a 0% tax rate. It is often most useful in a temporarily low-income year. A higher-income investor may also compare realizing gains at 15% now with an expected 20% rate later, after accounting for other taxes and the value of deferral.

Some households can use both in the same year across different holdings, depending on which positions are up and which are down. But they’re not two versions of the same trick — they’re solutions to two different problems.

Turn an Unrealized Gain Into a Higher Cost Basis

Why the Wash-Sale Rule Doesn’t Apply Here

Anyone who’s read about tax-loss harvesting has probably encountered the wash-sale rule: if you sell an investment at a loss and buy a “substantially identical” one within 30 days before or after, the IRS disallows the loss for tax purposes. It exists to prevent people from claiming a tax loss without actually changing their investment position.

The wash-sale rule applies to losses, not gains. There’s no equivalent rule that prevents you from immediately repurchasing an investment after selling it for a gain. If anything, the IRS is happy to let you realize a taxable gain and buy right back in—you’ve just paid tax on income you weren’t required to pay tax on, and you’ve reset your basis higher in the process. That’s exactly why you can execute tax-gain harvesting with what’s sometimes called a same-day or next-day repurchase, without the 30-day waiting period that governs loss harvesting.

Worth noting: buying back the same fund is common but not required. Some investors use the sale as an opportunity to shift to a more tax-efficient fund, rebalance to a different allocation, or simplify a portfolio that’s accumulated too many similar holdings over the years.

How It Interacts with Other Parts of Your Tax Picture

A capital gain doesn’t exist in isolation. It lands on top of your other income and can ripple into parts of the tax code that have nothing to do with capital gains rates on paper.

Ordinary income. Long-term capital gains stack on top of ordinary income when the IRS determines which bracket they fall into. A dollar of ordinary income and a dollar of capital gain don’t cost the same in taxes, but the capital gain still counts toward how much room is left in your 0% bracket. Realize too much, and part of the gain spills into the 15% tier.

State taxes. The federal 0% rate doesn’t automatically mean 0% overall. Most states tax capital gains as ordinary income, with no special low rate. A strategy that’s free at the federal level might still generate a state tax bill, so it’s worth checking your state’s rules—or having someone check them for you—before assuming the entire transaction is tax-free.

The net investment income tax. High earners pay an additional 3.8% surtax on investment income once modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. Because these thresholds aren’t tied to the low-income years that make tax-gain harvesting attractive, most people using this strategy won’t be anywhere near the NIIT threshold. But it’s a relevant check for anyone whose income is more irregular than “consistently low.”

Social Security taxation. For retirees receiving Social Security benefits, a capital gain can increase the portion of those benefits that’s subject to tax because the formula that determines taxability includes most other income sources. A gain that’s “free” on its own line item can still raise the tax bill on a different line item entirely.

Medicare premiums. Medicare Part B and Part D premiums are based on modified adjusted gross income from two years prior, through a surcharge system known as IRMAA. A large one-time gain can push income over an IRMAA threshold and trigger higher premiums two years later — a cost that’s easy to overlook because it shows up so far removed from the original transaction.

Tax-Gain Harvesting vs. Roth Conversion. A Roth conversion adds ordinary income, which can use up room below the 0% capital gains threshold and cause some gains to be taxed at 15%. Long-term gains do not, by themselves, push ordinary income into a higher ordinary-income bracket. Compare each strategy’s current tax cost, future tax savings, and effects on income-linked benefits before deciding how much to convert or harvest.

A Worked Example

Consider a married couple, both 63, who retired last year. After deductions, their projected taxable income before capital gains is $28,000, from a small pension and interest income. Their 2026 married-filing-jointly 0% capital gains threshold is $98,900.

That leaves roughly $70,900 of room before they’d owe any federal tax on a long-term capital gain. They have a taxable brokerage account holding an index fund bought years ago for $60,000 and now worth $115,000 — a $55,000 unrealized gain.

Because $55,000 fits comfortably within their $70,900 of available room, they could sell the entire position, owe $0 in federal capital gains tax, and repurchase the same fund the same day. Their cost basis would reset from $60,000 to $115,000. If they eventually sell that position again in a higher-income year, only the growth above $115,000 would be taxable, permanently reducing the gain they would owe tax on in the future.

They should still review their state’s treatment of capital gains, confirm the pension and interest figures are accurate for the full year, and weigh whether some of that $70,900 of bracket room might be better spent on a partial Roth conversion. But the core move — selling at 0%, buying back immediately, and resetting basis — is exactly what tax-gain harvesting is designed to do.

Where ARQ Wealth Fits In

Strategies like this look simple in an example and get complicated fast in real life because they depend on the full shape of a household’s income, not just the size of a single investment gain. That kind of analysis benefits from a second set of eyes with no stake in the transaction itself.

ARQ Wealth is a fee-only fiduciary firm, which means we’re compensated directly by our clients and don’t earn commissions on the investments or insurance products we might recommend. Our only obligation is to the people we work with — not to a fund company, not to a brokerage, not to anyone else with a product to sell. When we walk through a decision like tax-gain harvesting, the only question we’re answering is whether it serves your goals.

This article is educational, not personalized advice. Tax law changes often, so verify the numbers here against current figures before you act. If you’re considering realizing a gain this year, it’s worth talking to a financial planner and a tax professional who can review your full return — federal, state, and everything in between — before you place the trade.

Similar Articles

Tax-gain harvesting means deliberately selling an appreciated investment when a favorable long-term capital gains rate applies, potentially as low as 0% in a lower-income year....

If you search for how to avoid taxes on RMD withdrawals, you’ll find plenty of confident promises. Here’s the plain version. You generally can’t skip...

Disclaimer: The opinions expressed in this blog post are for general informational purposes only and are not intended to provide specific advice or recommendations for any individual. It is only intended to provide education about the financial industry. As always, please remember that investing involves risk of loss of principal and capital; past performance and market environments are no guarantee of future results. ARQ Wealth Advisors, LLC is a registered investment adviser with the U.S. Securities and Exchange Commission. Advisory services are only offered to clients or prospective clients where ARQ Wealth Advisors, LLC and its representatives are properly licensed or exempt from licensure. No advice may be rendered by ARQ Wealth Advisors, LLC unless a client service agreement is in place. Likes and dislikes are not considered an endorsement for our firm.