Home / Helpful Guides / Tax-Loss Harvesting Guide
INVESTMENTS

Tax-Loss Harvesting: A Practical Guide for Investors

Tax-loss harvesting is one of those strategies that sounds more complicated than it is. You sell an investment that’s down, book the loss on your tax return, and use it to offset gains you’ve realized elsewhere. The portfolio stays roughly the same. Your tax bill goes down. But the details — wash sale rules, loss ordering, when it actually helps versus when it doesn’t — are where most people get tripped up.

The Basic Concept

When you sell an investment for less than you paid, you realize a capital loss. That loss offsets capital gains dollar for dollar under IRC Section 1211. If you sold Stock A for a $20,000 gain and Stock B for a $15,000 loss in the same year, you only pay tax on the $5,000 net gain.

The idea behind harvesting is that you don’t wait for losses to happen accidentally. For Tax Loss Harvesting Guide, you look for them deliberately, sell the losing position to capture the tax benefit, and immediately reinvest in something similar (but not identical) to maintain your market exposure. You keep your investment strategy intact while pulling forward a tax benefit you’d otherwise have to wait for.

The math works because of a simple principle: a dollar of tax saved today is worth more than a dollar of tax saved ten years from now. Even though harvesting reduces your cost basis in the replacement investment (meaning you’ll pay more tax when you eventually sell it), the time value of the deferral is real.

How Losses Match Against Gains

The IRS has specific ordering rules for how losses offset gains under IRC Section 1(h). Getting this wrong can change the value of the strategy significantly.

Short-term losses first offset short-term gains. Long-term losses first offset long-term gains. If you have excess losses in one category, the surplus crosses over to offset gains in the other. Why does this matter? Because short-term gains are taxed at ordinary income rates (up to 37% federally), while long-term gains are taxed at preferential rates (0%, 15%, or 20%). A short-term loss offsetting a short-term gain saves you more per dollar than a long-term loss offsetting a long-term gain.

This means the type of loss you harvest matters. If you have short-term gains to offset, harvesting a short-term loss gives you the biggest bang. But you don’t always get to choose — the loss character depends on how long you held the asset before selling.

The $3,000 Annual Deduction Against Ordinary Income

If your capital losses exceed your capital gains for the year, you can deduct up to $3,000 of the excess ($1,500 if married filing separately) against your ordinary income — wages, business income, interest, whatever. That $3,000 limit under IRC Section 1211(b) hasn’t been adjusted for inflation since it was set in 1978, which is one of the stranger artifacts of the tax code.

Any losses beyond $3,000 carry forward indefinitely under IRC Section 1212. They don’t expire. You’ll use them in future years, first against future gains and then $3,000 at a time against ordinary income. Some investors accumulate six-figure loss carryforwards that take decades to work through.

This carryforward mechanism is what makes harvesting valuable even in years when you don’t have gains. Every loss you bank today is a future deduction waiting to happen. If you expect to sell a business, exercise stock options, or realize a large gain down the road, building up losses now creates a tax cushion for that future event.

The Wash Sale Rule: The One Rule You Can’t Ignore

Here’s where people get into trouble. The wash sale rule (IRC Section 1091) says that if you sell a security at a loss and buy a “substantially identical”. Security within 30 days before or after the sale, the loss is disallowed. The 30-day window runs in both directions, creating a 61-day total exclusion period. The IRS explains the rule in Publication 550, Investment Income and Expenses.

The disallowed loss isn’t gone forever — it gets added to the basis of the replacement security. So you’ll eventually get the benefit when you sell the replacement. But the immediate tax deduction disappears, which defeats the purpose of harvesting.

What Counts as “Substantially Identical”?

The IRS has never given a precise definition, which leaves a gray area. Here’s what we know:

Selling shares of the Vanguard S&P 500 ETF (VOO) and buying them back within 30 days is clearly a wash sale. Selling VOO and buying the iShares S&P 500 ETF (IVV) is less clear — they track the same index, but they’re issued by different companies. Most tax professionals treat same-index funds from different providers as risky, though the IRS hasn’t specifically ruled on it.

Selling an S&P 500 fund and buying a total stock market fund is generally considered safe. The underlying holdings overlap significantly but the indexes are different. Selling a specific stock (Apple) and buying a tech sector ETF is also generally fine — they’re not substantially identical even though one contains the other.

The safest approach: sell the losing position, buy something that tracks a different index or holds different securities, wait 31 days, and swap back if you want. The 30-day waiting period is the price of certainty.

Watch Out for Wash Sales Across Accounts

The wash sale rule applies across all your accounts — including your IRA. This is a trap that catches a lot of people. If you sell a stock at a loss in your taxable brokerage account and your 401(k) or IRA buys the same stock within the 30-day window (through an automatic contribution, a rebalance, or a dividend reinvestment), the loss in your taxable account is disallowed.

Worse, when a wash sale involves an IRA purchase, some tax professionals argue the loss is permanently disallowed — you don’t get to add it to the IRA basis because IRAs don’t track basis in the traditional sense. The IRS addressed this partially in Revenue Ruling 2008-5, but the risk is real enough that you should coordinate across accounts before harvesting.

Turn off dividend reinvestment in your taxable account for any security you’re planning to harvest. Check your 401(k) fund lineup to make sure you’re not buying a substantially identical fund on autopilot. These are easy mistakes to make and painful to unwind.

Direct Indexing: The Modern Approach

Traditional harvesting means selling one fund and buying another. Direct indexing takes it further — instead of owning an S&P 500 ETF, you own all 500 individual stocks (or a representative sample). When any single stock drops, you sell it and replace it with another stock in the same sector. This generates far more harvesting opportunities because individual stocks are more volatile than the index as a whole.

Wealthfront, Parametric, Aperio (now part of BlackRock), and several other platforms offer this as an automated service. The tax benefit is real, especially in the first few years and in volatile markets. Studies suggest direct indexing can add 1-2% of annual after-tax return for high-income investors, though the benefit diminishes over time as cost basis resets.

The trade-off: more complexity, more transactions, more K-1s or 1099-Bs to deal with at filing time. If you’re in a state like Florida where there’s no state income tax, or a high-tax state like California where capital gains are taxed at your full marginal rate, the calculus changes. In high-tax states, direct indexing becomes more attractive because every harvested loss saves you at the state’s top rate too.

When Tax-Loss Harvesting Doesn’t Make Sense

Harvesting isn’t always the right move. A few situations where it can actually hurt:

Low-basis positions you plan to hold until death. Under current law, assets get a stepped-up basis at death under IRC Section 1014. If you hold a stock with a $10 basis and it’s worth $100 when you die, your heirs inherit it at $100 and owe zero capital gains tax. Harvesting losses on other positions to offset gains is fine — but selling the low-basis position itself to harvest and rebuy means you’ve reset the basis and given up the step-up. Think about that before you harvest for the sake of harvesting.

When you expect to be in a lower bracket soon. If you’re retiring next year and your income will drop significantly, the losses you harvest now might be more valuable later when you’d be selling assets anyway. The $3,000 ordinary income deduction saves more at 37% than at 12%. Sometimes patience pays.

When transaction costs eat the benefit. This is less of an issue with zero-commission brokers, but it still applies to illiquid securities, options, or positions where the bid-ask spread is wide. If realizing a $500 loss costs you $200 in spread, you’ve saved $150 in tax (at 30% combined rate) and lost $200 in execution costs. Not a win.

When it triggers state tax complications. Some states don’t follow the federal wash sale rule, or they have different loss carryforward rules. If you’re in a state with unusual capital gains treatment, run the numbers on the state side too.

Year-End Harvesting Timeline

Most investors think about harvesting in December. That’s fine, but starting earlier gives you more flexibility.

October-November: Review your portfolio for unrealized losses. Identify positions where the loss is large enough to matter and where a replacement investment is available. Check for any upcoming distributions from mutual funds (these generate gains you might want to offset).

Early December: Execute the harvesting trades. Sell the losing positions and buy replacements. Make sure the settlement dates fall within the current tax year (stock trades settle T+1, so a trade on December 30 settles on December 31).

Late December: Review any mutual fund capital gain distributions that came through. Some funds distribute large gains in December, and having harvested losses earlier in the month can offset them.

January: After 31 days have passed, decide whether to swap back to your original holdings. If you preferred the replacement investment, keep it. There’s no requirement to swap back.

One thing to keep in mind: the best harvesting opportunities don’t happen on a schedule. Market drops in March or September create losses that won’t exist by December. If you only look once a year, you miss the best windows.

Reporting Harvested Losses on Your Return

Harvested losses show up on Form 8949 and flow to Schedule D of your Form 1040. Each sale gets its own line: date acquired, date sold, proceeds, cost basis, and gain or loss. Your broker’s 1099-B should have most of this information, but double-check the cost basis — especially if you transferred shares between brokers or acquired them through an employee stock plan.

If a wash sale occurred, your broker will report it on the 1099-B with a “W”. Code and an adjustment amount. The disallowed loss gets added to your basis in the replacement shares. Make sure your records reflect this adjustment, because the IRS will cross-reference the reported wash sale against your Schedule D.

Loss carryforwards from prior years go on line 6 of Schedule D. You should track your carryforward balance year over year — the IRS doesn’t send you a reminder. If you switch CPAs, make sure the new preparer has your prior-year carryforward schedule. We’ve seen clients leave tens of thousands of dollars in carryforward losses behind simply because the information didn’t transfer. If you’re concerned about an IRS review of your reported losses, see our IRS audit guide for what to expect.

Frequently Asked Questions

What does this tax loss harvesting guide cover, and is it investment advice?

This page explains how the federal tax code treats losses you realize in a taxable investment account. It is a tax explainer, not investment advice. The Reed Corporation is a certified public accounting and tax firm. We do not recommend which securities to buy or sell, and we do not manage portfolios. Nothing here tells you to trade. What we describe is how a realized loss is reported and used after you or your own licensed advisor decide to sell. Harvesting is a timing tool. It changes when tax is paid, and sometimes how much, but it does not erase the eventual tax on an investment you later sell at a gain. Losses are listed on Form 8949 and summarized on Schedule D, and the governing rules sit in Publication 550.

Selling an investment that has fallen below its cost basis turns a paper loss into a realized loss that can offset gains you have already taken. A loss that exists only on a statement does nothing for your tax until you sell. Once realized, a capital loss first offsets capital gains of the same holding period, then gains of the other period, and any remainder can offset up to 3,000 dollars of ordinary income for the year. Whatever is still unused carries forward to later years. This tax loss harvesting guide walks through each of those steps in the answers that follow.

Suppose you hold a fund now worth 12,000 dollars that you bought for 20,000 dollars, and separately you already realized an 8,000 dollar gain earlier in the year. Selling the fund locks in an 8,000 dollar loss that cancels the 8,000 dollar gain, dropping the taxable gain to zero. If you had taken no gain at all, that same 8,000 dollar loss would offset 3,000 dollars of ordinary income this year and carry 5,000 dollars forward. A common mistake is believing a paper loss lowers your tax on its own. It does not. The loss has to be realized through a sale and reported before it counts for anything.

One more framing point helps before the details. A realized loss is only useful if you have gains to offset or ordinary income to reduce, so the value of harvesting depends on the rest of your return. A loss taken in a year with large short-term gains is worth more than the same loss in a year with only a small long-term gain, because short-term gains are taxed at higher ordinary rates. We look at the whole projected return before deciding whether a loss does much for you this year or is better saved through the carryforward.

One boundary matters before anything else. Harvesting only works in a taxable brokerage account. Losses inside an individual retirement account or a 401(k) have no current tax effect, because gains and losses inside those accounts are not reported year to year. So the same fund that produces a useful loss in your taxable account produces nothing if it is held in your retirement account. This is why the account location of a position, not only the position itself, decides whether a loss is available to you at all.

Going forward, treat this as a set of tax mechanics that your investment decisions feed into, rather than a reason to trade. The answers below cover the 3,000 dollar limit and the carryforward, the short-term and long-term netting order, the wash sale rule, and how lot selection changes the result. Our tax strategy consulting team and our individual tax return preparers apply these same rules when they build your Schedule D.

How do realized losses offset gains, and what is the 3,000 dollar limit against ordinary income?

The offset happens in a set order on Schedule D. First you net your capital losses against your capital gains for the year. If losses exceed gains, the leftover net capital loss can reduce other income, but only up to 3,000 dollars in a single year, or 1,500 dollars if you file married separately. Any net loss beyond that limit does not vanish. It carries forward to the next year and keeps going until it is used. This ordering is not optional, and tax software follows it automatically once the trades are entered correctly. Publication 550 and the instructions behind Form 1040 spell out the same ordering.

The carryforward has no expiration during your lifetime. A large loss can shelter gains and shave 3,000 dollars off ordinary income year after year until the balance runs out. The carried loss keeps its character, so a long-term loss carried forward stays long-term and a short-term loss stays short-term, which affects how it nets in future years. One limit to remember is that capital losses generally do not pass to your heirs, so an unused carryforward can be lost at death if it was never applied.

Say you realize 25,000 dollars of capital losses in a year when you also took 6,000 dollars of capital gains. The losses first wipe out the 6,000 dollars of gains, leaving a 19,000 dollar net loss. Of that, 3,000 dollars reduces your ordinary income this year, and the remaining 16,000 dollars carries forward. Next year, if you have no gains, another 3,000 dollars comes off ordinary income, leaving 13,000 dollars to carry again. At 3,000 dollars a year, a purely carried loss like this takes more than five years to use up unless future gains absorb it faster.

A common mistake is expecting the whole 19,000 dollar loss to hit ordinary income in the first year. The annual cap is 3,000 dollars against ordinary income, no more, regardless of how large the loss is. Another frequent error is failing to carry the balance forward on the next return, which can strand thousands of dollars of deductions that were fully available. This tax loss harvesting guide keeps returning to one point. The 3,000 dollar cap is annual, but the carryforward itself does not expire while you are alive.

The 3,000 dollar figure has not changed in decades, so it does not keep pace with inflation, and a large loss can take many years to absorb through ordinary income alone. That is why offsetting gains is the faster path. Consider a couple filing jointly with a 40,000 dollar carryforward who then realize a 30,000 dollar gain the next year. The carryforward first cancels the entire 30,000 dollar gain, then 3,000 dollars of the remaining 10,000 dollars reduces ordinary income, leaving 7,000 dollars to carry again. The gain was covered at no current tax cost, which is worth far more than the slow annual 3,000 dollar reduction against wages.

Our individual tax return preparers track the carryforward from year to year so nothing is left behind, and our tax strategy consulting team estimates how quickly future gains might absorb it. The number sits on the Schedule D carryover worksheet, which is easy to overlook when you switch preparers or software. Going forward, keep your own record of the unused balance, because a carryforward is only as good as the return that remembers to claim it.

How does the short-term versus long-term netting order work, and why does it matter?

Every capital gain and loss carries a holding period. An asset held for one year or less is short-term, and its gain is taxed at your ordinary income rate. An asset held for more than one year is long-term, and its gain gets a lower long-term rate that reaches 20 percent at the top, with 15 percent and 0 percent brackets below it. On Schedule D, short-term losses first offset short-term gains, and long-term losses first offset long-term gains. Only after that within-group netting do you cross the two groups, applying any net loss in one group against a net gain in the other. Getting the sequence right is what makes the final number on Schedule D correct. Publication 550 and Form 8949 follow this same sequence.

The order matters because a short-term loss used against a short-term gain saves tax at the higher ordinary rate, while the same loss used against a long-term gain saves only at the lower long-term rate. If you have both kinds of gain, the holding period of the loss you harvest changes how much you actually save. A short-term loss is the more valuable tool when short-term gains are on the table. The reverse is also true. A long-term loss works fine against a long-term gain, and it only reaches a short-term gain after the within-group netting is done, which can still be an efficient result when you have no long-term gains to absorb it.

Imagine 10,000 dollars of short-term gain taxed at a 32 percent ordinary rate and 10,000 dollars of long-term gain taxed at 15 percent. A 10,000 dollar short-term loss, netted first against the short-term gain, saves 3,200 dollars. That same 10,000 dollar loss applied against the long-term gain would save only 1,500 dollars. The dollar amount of the loss is identical. The tax saved is more than twice as large when the holding periods are matched with intent rather than by default.

A common mistake is harvesting without checking holding periods, which can waste a valuable short-term loss against a low-rate long-term gain. Selling one lot instead of another can change a gain into a loss or shift a short-term result into a long-term one. Brokerage software nets by the statutory rules, but it does not decide which lots you sell, so the choice of what to harvest is still yours. This tax loss harvesting guide treats holding period as the first thing to check before you act, because the same loss is worth more against short-term income.

Timing around the one-year mark also matters. A position sold at day 364 produces a short-term result, while the same position sold two days later is long-term, and for a gain that difference can be the gap between the ordinary rate and the long-term rate. For a loss you are harvesting, a short-term loss is often the more useful one, so selling just before a lot crosses into long-term status can be the better tax move even though the economic position is identical. Consider a 9,000 dollar loss that is short-term. Against a short-term gain taxed at 35 percent it saves 3,150 dollars, while the same loss gone long-term and used against a long-term gain at 15 percent would save only 1,350 dollars.

Our tax strategy consulting team reviews the holding-period mix before year end, and our bookkeeping team keeps the purchase dates that decide short-term versus long-term status. The purchase confirmations and reinvestment records are what prove a holding period if a return is ever questioned. Going forward, sort your positions by holding period before you harvest, so each loss is aimed at the income it shelters best.

How does the wash sale rule interact with harvesting?

The wash sale rule is the trap that catches the most harvesters. If you sell a security at a loss and buy the same security, or one that is substantially identical, within 30 days before or 30 days after the sale, the loss is disallowed for the moment. That is a 61-day window centered on the sale date. The rule exists so a taxpayer cannot claim a loss while keeping the very same economic position. It is described in Publication 550, and a wash sale is flagged with a code on Form 8949 before it flows to Schedule D.

A disallowed loss is not gone. It is added to the cost basis of the replacement shares, and the holding period of the old shares tacks onto the new ones. When you finally sell the replacement shares without repurchasing, the deferred loss comes through. The rule reaches across all of your accounts, including your spouse’s accounts and your own individual retirement account. A repurchase inside an individual retirement account is the harsh case, because the basis add-back does not apply there, so the loss is permanently disallowed rather than deferred. Substantially identical is a facts question. Two share classes of the very same fund are usually treated as identical, while two different funds that merely track similar markets often are not, though the line can be close.

Say you sell 100 shares at a 5,000 dollar loss and buy 100 shares of the same fund ten days later in the same taxable account. The 5,000 dollar loss is disallowed for now and added to the basis of the new shares, so a later clean sale captures it. The deferred loss is still valuable, but only when you eventually let the position go without a quick repurchase. Now change one fact. If that repurchase happened inside your individual retirement account, the 5,000 dollar loss is lost for good, with no basis add-back to recover it. Same trade, very different outcome, driven only by which account did the buying.

A common mistake is harvesting in a taxable account while an automatic dividend reinvestment, a payroll retirement contribution, a robo-advisor rebalance, or a spouse’s separate purchase quietly buys the same fund inside the 61-day window. The wash sale section of this tax loss harvesting guide is where people slip most often, usually through automatic buying they forgot was switched on. Turning off reinvestment on a position you plan to harvest removes most of the risk.

There is a legitimate way to stay invested without a wash sale, and it is a tax point rather than a trading tip. If the replacement security is not substantially identical to the one you sold, the loss is allowed even though you bought back into the market. Where the line falls between merely similar and substantially identical is a facts question that turns on the specific holdings, and it is one to review carefully with your advisor before you act. Consider a taxpayer who harvests a 7,000 dollar loss and waits the full 31 days before repurchasing the identical fund. The wait sidesteps the rule entirely, and the 7,000 dollar loss is allowed in full this year.

Our bookkeeping team watches the trade dates across accounts so a reinvestment does not undo a harvest, and our tax strategy consulting team checks the 61-day window before and after any planned sale. Going forward, pause automatic reinvestment on any position you intend to harvest, and review every account you and your spouse hold, not only the one where the sale happens.

How does lot selection work, and how does harvesting affect the net investment income tax?

When you own several lots of the same security bought at different prices, the lot you choose to sell decides your gain or loss. Specific identification lets you name the exact shares to sell, usually the highest-cost lots, to produce the largest loss or the smallest gain. To use it, you tell the broker which lots to sell at or before the trade and keep the confirmation. If you say nothing, most brokers default to first-in first-out, which sells your oldest, often lowest-cost, shares first. Mutual funds may also offer an average-cost method. Keeping clear records is what makes specific identification hold up, because the method you claim has to match what the broker reported to the government. The basis rules behind all of this are in Publication 551, and the sale is reported on Schedule D.

Harvesting also reaches the 3.8 percent net investment income tax. A realized capital loss reduces your net capital gain, and net capital gain is part of the net investment income base on Form 8960. So a well-placed loss can save regular capital-gains tax and the extra 3.8 percent at the same time, which raises the real value of the loss for higher-income households. For a household already over the income threshold, that combined saving can approach a quarter of the loss in tax terms, depending on the bracket. The disposition rules that support all of this appear in Publication 544.

Suppose you hold two lots of one stock, one bought for 8,000 dollars and one bought for 15,000 dollars, and each lot is now worth 10,000 dollars. Selling the 15,000 dollar lot with specific identification realizes a 5,000 dollar loss. Selling the 8,000 dollar lot instead would realize a 2,000 dollar gain. Same stock, same sale-day price, opposite tax results, decided entirely by which lot you identify. A common mistake is letting the account default to first-in first-out, which can hand you a gain in the exact moment you were trying to harvest a loss. Over several lots and several years, that default can quietly convert intended losses into unwanted gains and push net investment income higher than needed.

Two habits separate the taxpayers who get real value from harvesting from those who leave money behind. The first is looking across the whole year rather than only in late December, because a sharp market dip in the spring can offer losses that have recovered by year end. The second is keeping the cost-basis records that let you prove which lots you sold, since the tax benefit rests on documentation the broker and the government can match. Consider a filer who harvests a 6,000 dollar loss in a March dip, then sees the position recover by December. The loss is locked in for the year even though the holding bounced back, as long as a wash sale did not undo it.

Use this tax loss harvesting guide as a starting point for the tax mechanics, not as a recommendation to buy or sell any security. Clients who want the numbers run against their own brokerage records can request a consultation with our team, and we will coordinate with your own investment advisor rather than direct your trades. Our bookkeeping team keeps the cost-basis and lot records that make specific identification possible. Our tax strategy consulting team plans the timing, and our individual tax return preparers report the result correctly on Schedule D. Going forward, confirm your broker’s default cost-basis method now, before your next sale, so the lot you sell is the lot you actually meant to sell.

Contact Us