Tax Loss Harvesting — How a Loss Position Can Offset a Large Capital Gain (and the Wash Sale Rule to Watch)
- Tax Wealth Consultant

- 2 days ago
- 9 min read

Imagine you sold an investment this year and realized a large capital gain — a profitable stock, a fund, a business interest. That gain is now sitting on your tax return, waiting to be taxed. Then you look at the rest of your portfolio and notice something: you also hold a position that has dropped well below what you paid for it. That combination — a large gain in one place, an unrealized loss in another — is the exact situation where a strategy called tax loss harvesting may come into play. Used correctly, the loss can be used to offset capital gains and reduce the tax on that profit.
This article explains tax loss harvesting 2026 rules from a tax advisor's point of view: what it is, how capital losses offset capital gains, the $3,000 annual limit, how unused carryforward losses work, and — critically — the wash sale rule that can quietly disallow your loss if you are not careful. Understanding carryforward losses matters because a large loss rarely gets used in a single year. One important note up front: this is general tax information, not investment advice or a recommendation. The decision to sell any specific investment belongs with you and your financial advisor, who manages your portfolio and your investment strategy. A tax advisor near me can explain the tax side; your financial advisor handles the trades. As a tax planning firm Irvine families rely on, we walk through the tax loss harvesting 2026 mechanics and the carryforward losses picture so the tax impact is clear — and as a tax planning firm Irvine residents trust, we keep this current every year. Every figure and rule below comes directly from the Internal Revenue Code and IRS guidance.
The Scenario: A Big Gain and a Loss You Forgot About

Tax loss harvesting starts to matter in a very specific situation: you have realized — or are about to realize — a meaningful capital gain, and you also hold an investment currently worth less than you paid for it. On its own, the loss position is just a paper loss. But the tax code allows a realized capital loss to offset a realized capital gain. So the loss you may have been quietly ignoring could become a tool to reduce the tax on the gain you just took (source: IRC §1211; IRS Topic 409).
A loss only counts for tax purposes when it is REALIZED — meaning the investment is actually sold. An investment that has dropped in value but that you still hold is an unrealized (paper) loss, and it does nothing on your tax return until you sell. The same is true of gains. Tax loss harvesting is the deliberate act of realizing a loss — selling the losing position — so that the now-realized capital loss can offset a realized capital gain in the same year. Whether selling that particular position makes sense for your overall portfolio is an investment question for your financial advisor; the tax treatment of the resulting loss is what this article explains (source: IRS Topic 409; IRS Publication 550).
What Tax Loss Harvesting Actually Does

Tax loss harvesting is the practice of selling an investment at a loss so the capital loss can offset capital gains, reducing the tax otherwise owed on those gains. The capital gains tax you pay is based on your NET capital gain — your total gains minus your total losses — so adding a realized loss to the equation directly lowers the gain that gets taxed (source: IRC §1211; IRS Topic 409).
WHAT HARVESTING A LOSS CAN DO
Offset capital gains dollar for dollar — a $10,000 realized loss can cancel out $10,000 of realized capital gains
If losses exceed gains, deduct up to $3,000 of the excess against ordinary income each year ($1,500 if married filing separately)
Carry any remaining unused loss forward to future tax years
Apply whether you itemize or take the standard deduction — the capital loss deduction does not require itemizing
One important limitation to set expectations: tax loss harvesting generally DEFERS tax rather than erasing it, and it works only in TAXABLE accounts. Investments inside tax-advantaged accounts such as IRAs and 401(k)s do not generate harvestable capital losses, because their growth is already tax-sheltered. And because selling the loss position changes your portfolio, the investment side of the decision — whether to sell, and what (if anything) to buy instead — is one to make with your financial advisor (source: IRS Topic 409; IRS Publication 550).
How Gains and Losses Are Netted

The tax code follows a specific order when matching capital gains and losses, and the order matters because long-term and short-term gains are taxed differently. Long-term capital gains (on assets held more than a year) are taxed at preferential rates of 0%, 15%, or 20% under IRC §1(h); short-term gains (one year or less) are taxed as ordinary income. Here is the netting order (source: IRC §1(h); IRS Topic 409; IRS Publication 550).
THE NETTING ORDER
Step 1: short-term losses first offset short-term gains; long-term losses first offset long-term gains (like against like)
Step 2: if losses remain in one category, they cross over to offset gains in the other category
Step 3: if total capital losses still exceed total capital gains, up to $3,000 of the net loss offsets ordinary income that year
Step 4: any remaining net loss carries forward to future years
This ordering is why harvesting a loss is especially valuable against a large short-term gain, which would otherwise be taxed at the higher ordinary-income rates. But the rules apply automatically in the set order; you do not get to freely choose which gain a loss offsets. The capital gains and losses are reported on IRS Form 8949 and summarized on Schedule D, where the netting is calculated (source: IRS Form 8949; IRS Schedule D).
A Simple Example — and the $3,000 Limit

A simple example shows how a loss position offsets a gain. The numbers below are illustrative only — your actual result depends on your full tax picture (source: IRC §1211; IRS Topic 409).
Suppose you realized a $10,000 long-term capital gain by selling a profitable stock this year. You also hold a different stock that is now worth $10,000 less than you paid for it. • If you sell the losing stock, you realize a $10,000 capital loss. • That $10,000 loss offsets your $10,000 gain. Net capital gain: $0. • Result: no capital gains tax on that gain for the year. Now suppose the losing stock had instead dropped $13,000: • You realize a $13,000 capital loss; it offsets the $10,000 gain (net gain $0), leaving $3,000 of excess loss. • That $3,000 offsets your ordinary income this year (the annual maximum). • If the loss were $15,000, you would offset the $10,000 gain, deduct $3,000 against ordinary income, and carry the remaining $2,000 forward to next year. |
THE $3,000 ANNUAL LIMIT AND CARRYFORWARD
Capital losses first offset capital gains with NO dollar limit — a large gain can be fully offset by an equally large loss
Only the EXCESS loss beyond your gains is capped: up to $3,000 per year against ordinary income ($1,500 married filing separately), under IRC §1211(b)
Unused losses carry forward INDEFINITELY under IRC §1212 — there is no expiration
Carryforward losses keep their character (short-term or long-term) into future years
The $3,000 figure confuses many people, so it is worth being precise: the $3,000 limit applies ONLY to the portion of a net loss that exceeds your capital gains and is used against ordinary income. There is no $3,000 cap on using losses to offset capital gains — that offset is dollar-for-dollar and unlimited. This is exactly why harvesting a loss to offset a large capital gain can be so effective in the year of a big gain (source: IRC §1211(b); IRC §1212).
The Wash Sale Rule — The Trap to Watch

Here is the rule that catches careless harvesters: the wash sale rule. Under IRC §1091, if you sell a security at a loss and buy the SAME or a 'substantially identical' security within 30 days BEFORE or 30 days AFTER the sale, the loss is DISALLOWED for that year. Because the window runs 30 days on each side of the sale plus the sale date itself, it spans 61 total days. The rule exists to stop taxpayers from booking a tax loss while staying in essentially the same investment position (source: IRC §1091; IRS Publication 550).
KEY WASH SALE FACTS
The window is 30 days before AND 30 days after the sale — a 61-day total period
It applies to the same security OR a 'substantially identical' one
It applies across ALL your accounts — including purchases in your IRA and purchases by your spouse
A disallowed loss is not destroyed: it is added to the cost basis of the replacement shares, deferring the benefit until you sell those — except a wash sale into an IRA, where the loss is permanently forfeited with no basis increase (Rev. Rul. 2008-5)
Wash sales are reported on Form 8949 with code 'W' and the disallowed amount adjusted in the gain/loss column
The wash sale rule is the single most common way a tax loss harvesting plan goes wrong: an investor sells a stock for the loss, then — wanting to stay invested — buys it right back inside the 30-day window, and the loss they were counting on disappears for the year. Staying invested while avoiding a wash sale (for example, by waiting out the window or using a genuinely different, not 'substantially identical,' investment) is an INVESTMENT decision that must be coordinated with your financial advisor. The determination of whether two securities are 'substantially identical' depends on the facts and is not always obvious — another reason to coordinate the trade with your advisor and confirm the tax treatment with your tax professional (source: IRC §1091; IRS Publication 550).
Why This Is a Team Effort With Your Financial Advisor

Tax loss harvesting sits exactly at the intersection of investing and taxes, which is why it works best as a coordinated effort. Your financial advisor manages your portfolio and decides whether selling a position fits your investment strategy, your risk tolerance, and your long-term plan. The tax professional confirms how the resulting loss is treated, how it nets against your gains, whether a wash sale is a risk, and how any carryforward affects future years. Neither side should operate alone (source: general tax principles; IRS Publication 550).
QUESTIONS TO BRING TO YOUR FINANCIAL ADVISOR
Does selling this losing position fit my overall investment plan, or am I selling only for the tax benefit?
If I want to stay invested, how do we avoid a wash sale within the 61-day window?
Would a replacement investment be 'substantially identical,' or genuinely different?
How does the timing of the sale interact with the gain I am trying to offset?
Bringing those questions to your financial advisor, and the tax mechanics to your tax professional, keeps both sides of the decision aligned. The goal is not simply to 'create a loss' — it is to make a sound investment decision whose tax consequences are understood and optimized. That coordination is where a tax advisor near me adds value alongside the advisor who manages your investments (source: IRS Publication 550).
What This Guide Does Not Cover
This guide explains the federal tax mechanics of tax loss harvesting at a general level for 2026. It is not investment advice and not a recommendation to buy or sell any security. It does NOT cover: (1) whether harvesting is appropriate for your specific portfolio — an investment question for your financial advisor; (2) the detailed 'substantially identical' analysis, which is fact-specific; (3) harvesting with mutual funds, ETFs, options, or cryptocurrency, each of which has its own considerations; (4) the net investment income tax under IRC §1411, which can apply to investment gains; (5) state taxation — California taxes capital gains as ordinary income and does not use the federal preferential rates; (6) the interaction of capital gains with the 0% capital gains bracket and other parts of your return. Each of these requires personal analysis with the appropriate professionals.
Where to Go From Here

Tax loss harvesting can be a valuable way to use a loss position to offset a large capital gain — but only when the netting rules, the $3,000 limit, the carryforward mechanics, and especially the wash sale rule are all understood and the investment decision is made soundly with your financial advisor. This is genuinely a team effort: your advisor handles the portfolio, and the tax side handles the numbers. If you are facing a large capital gain this year and want to understand the tax impact — and how a loss position might offset it — Tax Wealth Consultant is a tax planning firm Irvine families trust, serving Orange County and California. We explain the tax treatment, model how your gains and losses net together, flag wash sale risks for you to confirm with your advisor, and help you understand the carryforward picture. We coordinate the tax side; your financial advisor executes the investment decisions. If you have searched for a tax advisor near me to make sense of the tax impact, we are glad to help.
Sources cited in this article: • Internal Revenue Code §1211 — Limitation on capital losses ($3,000 / $1,500 MFS against ordinary income) • Internal Revenue Code §1212 — Capital loss carrybacks and carryovers (indefinite carryforward) • Internal Revenue Code §1091 — Loss from wash sales of stock or securities (30-day / 61-day window) • Internal Revenue Code §1(h) — Maximum capital gains rates (0%, 15%, 20%) • IRS Publication 550 — Investment Income and Expenses (wash sale rule, substantially identical securities) • IRS Topic No. 409 — Capital Gains and Losses • IRS Form 8949 — Sales and Other Dispositions of Capital Assets (wash sale code 'W') • IRS Schedule D (Form 1040) — Capital Gains and Losses • Revenue Ruling 2008-5 — Wash sale into an IRA permanently disallows the loss • This article is general tax information, not investment advice or a recommendation to buy or sell any security. |
Facing a Large Capital Gain? Understand the Tax Side First
Tax Wealth Consultant explains the tax treatment of tax loss harvesting, models how your gains and losses net together, flags wash sale risks to confirm with your advisor, and clarifies your carryforward picture. We handle the tax side and coordinate with your financial advisor, who executes the investment decisions. Facts and clarity — no investment advice, no pressure.
Or call (949) 409-8335 — speak with a tax advisor near me in Irvine today
Or email support@taxwealthconsultant.com




Comments