The short answer. Tax-loss harvesting means selling investments in a taxable account that are worth less than you paid, so the realized losses offset capital gains and up to $3,000 of ordinary income a year ($1,500 if married filing separately), with any excess carried forward to later years. You choose which tax lots to sell (specific identification) and reinvest in a similar but not substantially identical holding so the 30-day wash-sale rule does not disallow the loss. In 2026 a top-bracket Chicago couple can owe 28.75% on long-term gains and 45.75% on short-term gains.
How does tax-loss harvesting work, step by step?
Tax-loss harvesting works in four steps: find taxable positions below cost, sell the specific lots with the largest losses, reinvest in a similar holding that is not substantially identical, and use the loss against gains, then income, then future years.
- Find the losses. Review each taxable account, lot by lot. IRAs, 401(k)s and Roth accounts are excluded because their gains and losses are not taxed currently.
- Sell the right lots. Usually those with the highest cost.
- Replace the exposure. Buy a similar investment the same day so the portfolio stays at its target allocation.
- Use the loss. Losses offset gains of the same type first, then the other type, then up to $3,000 of ordinary income, and the rest carries forward (IRS Topic 409).
How much is a harvested loss worth for an Illinois investor in 2026?
For a married Chicago-area couple in the top brackets in 2026, a harvested loss that offsets a long-term gain saves up to 28.75 cents per dollar, and one that offsets a short-term gain saves up to 45.75 cents, counting federal tax, the 3.8% net investment income tax and Illinois’s flat 4.95% income tax.
| Tax (married filing jointly, 2026) | Long-term gain (held more than one year) | Short-term gain (held one year or less) |
|---|---|---|
| Top federal rate | 20% on taxable income above $613,700 | 37% on taxable income above $768,700 |
| Net investment income tax | 3.8% above $250,000 of modified AGI | 3.8% above $250,000 of modified AGI |
| Illinois income tax | 4.95% | 4.95% |
| Top combined rate | 28.75% | 45.75% |
Federal thresholds are from IRS Rev. Proc. 2025-32; long-term gains are taxed at 0% up to $98,900 of joint taxable income. The net investment income tax threshold is from the IRS. Illinois taxes income at 4.95% (Illinois Department of Revenue) starting from federal adjusted gross income (IL-1040 instructions), so a loss that lowers federal income also lowers Illinois tax.
Which tax lots should you sell?
Sell the lots with the highest cost basis, which produce the largest loss, and identify them to the custodian at the time of the trade. If you do not, federal rules treat the oldest shares as sold first (first in, first out), and those are often the lots with the biggest gains.
Each purchase is a separate tax lot with its own cost and date. Stock held at a broker is adequately identified when you give a specific instruction at the time of sale and the broker confirms it in writing; without that, the earliest lot is charged (26 C.F.R. § 1.1012-1(c)). Most custodians let you set specific identification or highest cost first as the account default; mutual fund shares may use average cost instead, so check the method before trading.
What is the wash-sale rule, and what counts as substantially identical?
The wash-sale rule disallows a loss if you buy substantially identical stock or securities, or an option to buy them, within 30 days before or after the sale, a 61-day window in total (26 U.S.C. § 1091). The disallowed loss is added to the cost of the new shares.
The IRS has no bright-line test for “substantially identical”; it weighs the facts, and one company’s shares are ordinarily not substantially identical to another company’s (IRS Publication 550). The rule reaches the whole household. Purchases by a spouse or a company you control count, and if your IRA or Roth IRA buys the same security within the window, the loss is disallowed and does not increase the IRA’s basis, so it is lost permanently (IRS Rev. Rul. 2008-5). Automatic dividend reinvestment is a common trigger.
What should you buy as a replacement security?
Buy something that keeps the same role in the portfolio but is clearly a different security, such as a stock in the same industry, or a fund with a different index, manager or strategy, and hold it at least 31 days before deciding whether to switch back.
- Stock sold: a different company with similar exposure, or a sector fund.
- Fund sold: a fund that follows a different index or approach in the same asset class.
- Bond sold: a different issuer, maturity or coupon.
- A whole index: direct indexing replaces holdings stock by stock.
How do capital loss carryforwards work?
A net capital loss above the yearly $3,000 limit carries forward to the next tax year and keeps its character as short-term or long-term; whatever is still unused carries forward again, year after year, until it is absorbed by future gains or the $3,000 annual deduction (26 U.S.C. § 1212(b)).
Carryforwards are tracked on your tax return, not by the custodian. A large one is valuable ahead of a business sale, a concentrated stock diversification or a real estate sale.
What does tax-loss harvesting look like in numbers?
In a hypothetical example, a Hinsdale couple in the top brackets sells two losing lots for a $70,000 loss, wipes out a $50,000 long-term gain, deducts $3,000 against income and carries $17,000 forward, saving roughly $15,600 of 2026 federal and Illinois tax.
The couple owns 3,000 shares of a stock fund now priced at $80, bought in three lots, and earlier in 2026 realized a $50,000 long-term gain.
- Lot A: 1,000 shares bought in 2019 at $40 (a $40,000 gain).
- Lot B: 1,000 shares bought in 2024 at $110 (a $30,000 long-term loss).
- Lot C: 1,000 shares bought in March 2026 at $120 (a $40,000 short-term loss).
- Sale: they sell 2,000 shares and identify Lots B and C, realizing $70,000 of losses. Under first in, first out, the same sale would have used Lots A and B and produced a $10,000 net gain.
- Netting: the $30,000 long-term loss cuts the $50,000 gain to $20,000, the $40,000 short-term loss absorbs that, and a $20,000 net loss remains.
- Result: $3,000 offsets ordinary income and $17,000 carries into 2027 as a short-term loss. Tax avoided on the $50,000 gain at 28.75% is $14,375, plus about $1,260 on the $3,000 at 37% and 4.95%.
- Reinvestment: the $160,000 of proceeds goes into a similar, not substantially identical, fund the same day.
The figures are hypothetical and simplified. The replacement’s $160,000 basis is lower than the old lots’ basis, so part of the benefit is a deferral repaid if it is later sold at a gain.
When does tax-loss harvesting not make sense?
Tax-loss harvesting adds little when your gains would be taxed at 0% anyway, when the account is an IRA or 401(k), when trading costs or bid-ask spreads exceed the tax value, or when the replacement would leave the portfolio meaningfully off its target allocation.
It also matters less for assets you expect to hold until death, since inherited assets generally receive a new cost basis. A loss is never a reason to own a worse portfolio.
How is year-round or long/short harvesting different?
The mechanics are the same; year-round and long/short programs change how often losses are found. Reviewing accounts after every sharp decline, not only in December, catches losses that vanish when markets recover.
Long/short strategies aim to keep producing losses after years of rising markets but add cost, leverage and complexity. Our article Turning Losses Into Opportunities covers that approach, and What Is After-Tax Asset Allocation? explains where harvesting fits with asset location.
Where does Vistamark fit?
The VistaWealth Office is the private wealth practice of Vistamark, an independent, employee- and partner-owned firm headquartered in Hinsdale, Illinois, in the Chicago area. It reviews a family’s taxable accounts lot by lot through the year, sells by specific identification, checks for wash sales across every account in the household, including IRAs and trusts, and coordinates realized gains, losses and carryforwards with the family’s CPA.
This article is general information, not tax, legal or investment advice.
Sources
- Internal Revenue Service: Topic No. 409, Capital Gains and Losses
- Internal Revenue Service: Rev. Proc. 2025-32 (2026 inflation adjustments), Internal Revenue Bulletin 2025-45
- Internal Revenue Service: Net Investment Income Tax
- Internal Revenue Service: Publication 550, Investment Income and Expenses
- Internal Revenue Service: Rev. Rul. 2008-5, Wash Sales and IRAs
- Legal Information Institute: 26 U.S.C. § 1091, Loss From Wash Sales
- Legal Information Institute: 26 U.S.C. § 1212, Capital Loss Carrybacks and Carryovers
- Legal Information Institute: 26 C.F.R. § 1.1012-1, Basis of Property (identifying lots sold)
- Illinois Department of Revenue: Income Tax Rates
- Illinois Department of Revenue: IL-1040 Instructions, Step 2, Income
This article is part of our Tax Planning Guide, which collects our writing on the topic with answers to common questions.
Market Compass · weekly
Get the Compass by email
One concise recap of the week’s market-moving events and what to watch next, written by our CIO at the end of each market week.
This article is for informational and educational purposes only and does not constitute investment, legal, tax or accounting advice, or an offer or solicitation to buy or sell any security. Views are those of the author as of the publication date and are subject to change. Vistamark Investments is an SEC-registered investment adviser; see our disclosures.
