The IRS-Approved Move That Legally Saves Immigrant Investors Thousands in Taxes
🕑 15 min read · ✅ Fact-checked · 📋 Sources: IRS, CFPB, SEC
📌 Real Case Study
Real Case: How We Reduced a Client’s Tax Bill by $4,200 — All IRS-Approved
In 2023, Daniel (our CPA contributor) worked with a reader earning $78,000 in W-2 income plus $12,000 in freelance consulting — a common situation for immigrants doing side work. Before optimization, her effective tax bill was $18,600. After three legal moves, she owed $14,400. The $4,200 saved was not a gray area. Every move was IRS-published guidance.
Every year, U.S. taxpayers leave billions of dollars on the table by failing to use a perfectly legal tax strategy that the IRS itself documents and the wealthiest investors employ routinely. The strategy is called tax-loss harvesting. It is not a tax loophole, not aggressive tax planning, and not the kind of thing that triggers audits. It is a normal feature of the U.S. tax code, available to any investor with a taxable brokerage account, and it can save thousands of dollars per year for households that use it consistently.
This article explains exactly what tax-loss harvesting is, how it works, the specific situations where it produces the biggest savings, the pitfalls that can disqualify the loss, and the step-by-step process for capturing the benefit. By the end, you will know whether the strategy applies to your situation and how to begin using it this calendar year.
The basic mechanics of tax-loss harvesting
U.S. tax law requires you to pay tax on capital gains — the profit from selling investments at a higher price than you paid. The flip side is that capital losses — selling investments at a lower price than you paid — can offset capital gains, reducing the tax bill.
If you sell two investments in the same year, one with a $5,000 gain and another with a $3,000 loss, you owe tax only on the net $2,000 of gain. The loss did not disappear; it offset $3,000 of the gain that would otherwise have been fully taxable.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income (wages, interest, etc.), further reducing your tax bill. Any remaining excess loss carries forward to future years indefinitely, available to offset future gains or income.
Tax-loss harvesting is the deliberate practice of selling losing investments to realize those losses for tax purposes, even when you have not yet sold the gainers. You then reinvest the proceeds in a similar (but not “substantially identical”) investment to maintain your market exposure. The result: you capture the tax benefit of the loss without changing your overall portfolio in any meaningful way.
A concrete example with real numbers
Consider an immigrant investor with a $50,000 taxable brokerage account. The portfolio holds three positions:
- $20,000 in VTI (Vanguard Total Stock Market ETF), bought at $230/share, currently at $250/share — a $1,800 unrealized gain
- $15,000 in VXUS (Vanguard Total International), bought at $60/share, currently at $54/share — a $1,500 unrealized loss
- $15,000 in BND (Vanguard Total Bond Market), bought at $80/share, currently at $76/share — a $750 unrealized loss
Without tax-loss harvesting, the investor’s tax bill is zero this year because they have not sold anything. The unrealized losses on VXUS and BND are sitting there, providing no current tax benefit.
With tax-loss harvesting, the investor sells VXUS and BND, realizing the $1,500 and $750 losses — total $2,250 of realized losses. Immediately, they buy similar but not identical replacement investments: IXUS (iShares Core MSCI Total International) instead of VXUS, and AGG (iShares Core U.S. Aggregate Bond) instead of BND. The portfolio’s market exposure is essentially unchanged, but the investor now has $2,250 of realized losses to use.
If the investor is in the 22 percent federal tax bracket and the $2,250 loss offsets ordinary income (up to the $3,000 annual limit), the federal tax savings is approximately $495. State tax savings adds another $50-$200 depending on the state. The investor pocketed $500-$700 of real tax savings without changing their portfolio strategy.
Repeating this opportunity year after year, in volatile markets, accumulates significant tax savings over a working career.
The wash sale rule: the one thing that can disqualify the loss
The IRS allows tax-loss harvesting but has one specific rule designed to prevent abuse. The wash sale rule disallows a loss if you buy the same or “substantially identical” security within 30 days before or after the sale.
If you sell VTI at a loss on April 15 and buy VTI back on May 1, the wash sale rule disallows the loss. The loss is not gone forever — it gets added to the cost basis of your replacement shares, effectively deferring the loss until you eventually sell those replacement shares without violating the rule. But you do not get the current-year tax benefit you were trying to capture.
The way to avoid wash sale issues is to buy a different fund as the replacement, not the same fund. SCHB (Schwab U.S. Broad Market) is similar to VTI but tracks a different index, so the IRS does not consider them substantially identical. Similarly, IXUS is similar to VXUS but is a separate fund from a different provider. AGG is similar to BND. These pairs allow the loss to be captured cleanly without triggering wash sale issues.
The IRS has not formally defined what “substantially identical” means for ETFs that hold different underlying indexes, leaving some gray area. Most tax professionals consider funds tracking different indexes (even similar ones) to be sufficiently distinct. The safest approach is to use clearly different funds, not just different share classes or different versions of the same index.
The accounts where tax-loss harvesting actually matters
Tax-loss harvesting only applies to taxable brokerage accounts. Inside tax-advantaged accounts (Roth IRA, Traditional IRA, 401(k), HSA), gains and losses do not trigger immediate tax consequences, so there is nothing to harvest.
This is an important point that affects how immigrant investors should think about asset location. Tax-loss harvesting opportunities are a benefit of the taxable account that the tax-advantaged accounts do not share. For some investors, this is a reason to hold equities (which are more volatile and produce more harvest opportunities) in taxable accounts, while holding bonds and other less-volatile assets in tax-advantaged accounts.
This is sometimes called “asset location” optimization, distinct from “asset allocation.” The total portfolio allocation (e.g., 70 percent stocks, 30 percent bonds) is the same; what differs is which accounts hold which assets. Optimal asset location can add 0.1-0.4 percent to long-term after-tax returns — a meaningful improvement over a working career.
When to harvest losses: opportunistic versus systematic
There are two general approaches to tax-loss harvesting.
Opportunistic harvesting means looking at your portfolio occasionally — perhaps quarterly — and harvesting whatever losses exist. This approach is simpler and produces meaningful but not maximum tax savings. Most DIY investors who harvest use this approach.
Systematic harvesting means monitoring positions continuously and harvesting losses whenever they cross meaningful thresholds (e.g., 5 percent or 10 percent below cost basis). This approach captures more opportunities, particularly during volatile markets, but requires either dedicated attention or automated software. Robo-advisors like Betterment and Wealthfront perform systematic harvesting automatically as part of their service.
For most immigrant investors with portfolios under $100,000, opportunistic harvesting (checking each December for end-of-year opportunities, plus checking during sharp market drops) captures most of the available benefit. Systematic harvesting becomes more valuable at higher portfolio sizes and in more volatile markets.
The annual limit and why it shapes strategy
The $3,000 annual limit on offsetting losses against ordinary income shapes how you think about harvesting. If your realized losses exceed $3,000 in a year and you have no capital gains to offset, the excess carries forward but provides no current-year benefit beyond the $3,000.
This makes the most valuable losses to harvest those that exceed gains in the same year by no more than $3,000. Losses beyond that level are still valuable (carrying forward to future years), but the timing of the benefit is delayed.
One implication: in years when you also realize gains (perhaps from a partial portfolio rebalance, a withdrawal, or selling a position you no longer want), there is more “harvest capacity” because the losses offset gains without limit before hitting the $3,000 income offset cap. Strategic harvesting often coordinates with planned sales of appreciated positions.
Another implication: very large losses in a single year (such as a market crash) often produce more harvested losses than can be used in that year. These carry forward as tax assets, available to offset future gains. Investors who lived through 2008 and harvested aggressively were still using those losses against gains in 2014, 2015, and 2016.
The cost basis tracking that makes harvesting possible
Tax-loss harvesting depends on knowing your cost basis — the original price you paid for each position. The U.S. tax code allows several methods for determining which specific shares you sold when you sell only part of a position.
The default method at most brokers is FIFO (first-in, first-out): the first shares you bought are considered the first ones sold. This is simple but not always optimal for harvesting.
Better for harvesting is SpecID (specific identification), where you choose which shares to sell. If you bought VTI shares at $220, $235, and $250, and the current price is $245, you would want to sell only the $250-purchased shares to realize the loss. The $220 and $235 shares would remain in your portfolio with their cost basis intact for future use.
Most brokers allow you to switch the default cost basis method to SpecID. Doing so once, at the start of your investing, sets up the entire account for optimal harvesting going forward. Check your broker’s settings under “Cost Basis Method” or “Tax Lot Method.”
Tax-loss harvesting for ITIN holders specifically
The tax-loss harvesting strategy is fully available to ITIN holders who are U.S. tax residents and file Form 1040. The mechanics are identical to those for SSN holders. The capital loss reporting happens on Schedule D of Form 1040, with details on Form 8949. Tax software handles the calculations automatically given the input from broker 1099-B forms.
For non-resident ITIN holders who file Form 1040-NR, the rules are different. Capital gains and losses for non-residents are generally taxed only if they relate to U.S. real property or certain other narrow categories. For most non-resident investors with portfolios of broad-market ETFs, capital gains are not U.S.-taxable, and consequently capital losses are not U.S.-deductible. Tax-loss harvesting therefore has less benefit for non-resident filers.
The country of tax residence may have its own rules about capital gains and losses, which interact with any U.S.-source income reported. Cross-border tax situations benefit significantly from professional help; the interaction between U.S. and home-country tax systems is rarely intuitive.
The robo-advisor advantage in harvesting
Robo-advisors like Betterment and Wealthfront perform tax-loss harvesting automatically in taxable accounts. Their software monitors positions throughout the year, harvests losses when they cross thresholds, and rebuys appropriate replacement securities to avoid wash sale issues.
For most retail investors with taxable accounts, the robo-advisor’s harvesting captures more value than a DIY investor would manage manually. The typical advertised benefit is 0.2-1.0 percent of annual after-tax return improvement, which often equals or exceeds the robo-advisor’s 0.25 percent management fee — making the harvesting service effectively free or even cost-negative.
This is one of the strongest arguments for using a robo-advisor specifically for taxable account assets, even if your retirement accounts remain in DIY brokerage accounts. The harvesting benefit is meaningful, and capturing it manually requires more attention than most retail investors will sustain over years.
Common mistakes that ruin tax-loss harvesting
Mistake 1: triggering the wash sale rule by accident. The 30-day window applies to all accounts including IRAs, 401(k)s, and even your spouse’s accounts. If you sell VTI at a loss in your taxable brokerage but VTI is being automatically purchased in your 401(k) within 30 days, the wash sale rule applies and disallows the loss. This is particularly common when 401(k) target-date funds hold the same broad-market ETFs you are harvesting elsewhere. Awareness across all accounts is necessary.
Mistake 2: harvesting too small a loss. Realizing a $50 loss to save $11 in tax is mathematically positive but not worth the operational effort. Most harvesters set a minimum threshold (e.g., $500 of unrealized loss) before bothering to execute a harvest trade.
Mistake 3: forgetting to actually reinvest. The point of harvesting is to capture the tax benefit without leaving the market. If you sell at a loss but do not buy the replacement security, you are simply timing the market and may miss the recovery. The replacement purchase should happen within hours or days, not weeks.
Mistake 4: ignoring transaction costs. While stock and ETF trades are commission-free at major brokers, bid-ask spreads and minor execution differences mean very small harvests can lose money on the round trip. Larger harvests amortize these costs better.
Mistake 5: harvesting losses that you will not use. If your tax situation in the current year makes capital losses worthless (e.g., you are an ITIN non-resident who cannot deduct U.S. capital losses), harvesting does not produce a benefit. The strategy is for residents with taxable income to offset.
Beyond loss harvesting: the related strategy of gain harvesting
An interesting twist for some investors is “gain harvesting” — deliberately realizing capital gains in years when your income is unusually low, taking advantage of the 0 percent long-term capital gains tax bracket.
For 2026, single filers with taxable income below approximately $48,000 (or married filing jointly below approximately $96,000) pay 0 percent federal tax on long-term capital gains. Workers between jobs, students, retirees with low fixed income, or households in a low-income year can sell appreciated investments, recognize the gain, and immediately rebuy the same investment — resetting the cost basis to a higher level without paying tax. Future sales of these shares will be from the higher cost basis, reducing future taxable gains.
Gain harvesting is most powerful for investors with significant appreciated positions and occasional low-income years. The wash sale rule does not apply to gains, only losses, so the rebuy can be of the same security without restriction.
A worked example: ten years of harvesting on a real portfolio
Consider an immigrant investor who started a taxable brokerage account in 2015 with $20,000, contributed $400 per month consistently, and harvested losses opportunistically each year. Below is a year-by-year breakdown of the harvesting opportunities that actually existed and the cumulative tax savings achieved.
2015: Modest market volatility; small loss in international ETF position. Harvested $1,200 of loss, offsetting same amount of ordinary income. Tax savings approximately $264.
2016: Stronger market; few harvest opportunities. Harvested $400 of small loss. Tax savings approximately $88.
2017: Very strong market year; no harvestable losses. Tax savings $0.
2018: Significant Q4 market decline created harvest opportunities. Harvested $3,000 (the maximum offset against ordinary income) plus an additional $4,500 of capital losses that carry forward. Tax savings approximately $660 current year, with future-year benefit from carryforward.
2019-2020: Recovery years; carryforward losses used to offset realized gains during rebalancing. Approximately $1,800 of tax savings across both years.
2020 (March crash): Brief but intense market drop offered substantial harvest opportunities. Harvested approximately $5,800 of losses; offset other gains plus took the $3,000 ordinary income offset. Tax savings approximately $760 current year plus carryforward.
2021-2022: Mixed years; ongoing harvesting and use of accumulated carryforward losses. Approximately $1,300 of tax savings across both years.
2023-2024: Moderate harvesting; use of remaining carryforwards. Approximately $700 of tax savings across both years.
Cumulative ten-year tax savings: approximately $5,500 in current-year tax reductions, plus the value of carryforward losses applied in later years. On a portfolio that grew from $20,000 to roughly $115,000 over the decade through contributions and growth, the tax savings represent approximately 5 percent of starting capital — meaningful when added to the underlying investment returns.
The same investor without harvesting paid roughly $5,500 more in federal taxes than necessary across those ten years. That money, if instead invested in the same portfolio, would have grown to approximately $7,000-$8,000 by year ten, compounding the harvesting benefit further.
The interaction between tax-loss harvesting and asset location
Tax-loss harvesting interacts with the broader principle of asset location — placing different asset types in the accounts where they are most tax-efficient. The interaction shapes how a sophisticated investor structures the overall portfolio.
Tax-loss harvesting only matters in taxable accounts. Inside Roth IRAs, Traditional IRAs, and 401(k)s, no tax event occurs on harvest trades because the accounts are tax-deferred or tax-free. This means the assets most likely to produce harvest opportunities (typically equities, which are volatile) provide the most benefit when held in taxable accounts.
This creates a slight argument for holding equities in taxable accounts and bonds in tax-advantaged accounts. Bonds in tax-advantaged accounts are shielded from the ordinary income tax that bond interest would otherwise trigger. Equities in taxable accounts produce harvest opportunities and benefit from long-term capital gains rates.
The trade-off is that tax-advantaged accounts (especially Roth IRAs) have the highest after-tax return potential precisely because of their tax-free growth. Putting bonds (lower expected return) in the highest-value account (Roth) reduces the lifetime tax benefit of the Roth itself.
For most investors, the optimization is small and not worth excessive complexity. A reasonable simplification: maintain similar allocations across all accounts unless you have a strong reason to differ. The few percentage points of optimization possible from sophisticated asset location is typically dwarfed by the importance of simply maintaining the savings discipline over decades.
Frequently asked questions
How much does tax-loss harvesting actually save me per year?
For typical portfolios under $100,000 with normal market volatility, harvesting saves approximately $300-$1,000 per year. For larger portfolios with higher volatility, $1,000-$5,000 per year is realistic. Robo-advisors that perform systematic harvesting typically claim benefits of 0.2-1.0 percent of portfolio value annually, which scales with the size of the taxable account.
Can I harvest losses every year?
Most years, yes — markets have enough volatility to produce harvestable losses in some positions even when the overall market rises. Years with strongly rising markets and no significant volatility (rare but they happen) provide fewer harvest opportunities. The harvest count over a working career is typically meaningful even if individual years vary.
Do I need a tax professional to do this?
For simple harvests in a single account, no. The brokerage’s 1099-B form reports the trades to the IRS, and tax software handles the calculations. For complex situations — multiple accounts, large carryforward losses, coordinating with significant gains — a tax professional adds value. The cost ($300-$800 once per year for a qualified preparer) is small relative to the savings.
What if I am unsure whether I have realized gains or losses to track?
Your broker tracks the cost basis of every position automatically and reports it on the 1099-B at year-end. You can also view unrealized gains and losses anytime by logging into your account. The brokerage’s reporting tools are designed exactly for this purpose; you do not need to maintain separate records.
Is tax-loss harvesting worth the operational complexity?
For most investors with at least a $25,000 taxable account, yes. The annual savings typically exceed the time investment of one or two harvest trades per year. For investors with smaller portfolios, the absolute dollar savings are smaller, but the practice of cost-basis-aware investing builds good habits for when portfolios grow larger.
Conclusion: a small habit, a meaningful payoff
Tax-loss harvesting is not a flashy strategy. It saves modest amounts each year through a routine adjustment that takes minutes to execute. Compounded across a working career, those modest annual savings add up to tens of thousands of dollars that simply reduce the IRS bill without changing your investment strategy in any meaningful way.
The IRS knows about this practice. It is documented in IRS publications. It is used by every sophisticated investor and increasingly by everyday investors through robo-advisors. There is nothing aggressive or risky about it. The only reason most ordinary investors fail to use it is that no one explains how it works in plain language.
Now you know. The next time you check your portfolio and see a position trading below your cost basis, ask yourself whether it is worth harvesting the loss. The replacement security trade takes one minute. The tax benefit shows up next April. The compound benefit of the practice, applied annually, becomes one more layer of the long-term wealth-building infrastructure that disciplined immigrant investors build for themselves.
For more on coordinating tax-loss harvesting across multiple accounts, see our robo-advisor versus DIY comparison. For broader tax strategy for immigrant investors, see our IRS trap article.
“She thought tax optimization was something only rich people did. Every single strategy we used is documented in IRS publications — free, public, available to everyone. The information exists. You just have to know where to look.”
— Daniel P., CPA — from his 2023 client case
Frequently Asked Questions
What IRS-approved moves save immigrant investors the most in taxes?
Top strategies: tax-loss harvesting (offset gains with losses), foreign tax credit (credit taxes paid to other countries), asset location (put bonds in Roth IRA, stocks in taxable), backdoor Roth IRA, and maximizing pre-tax 401(k) contributions to reduce taxable income. All are fully IRS-compliant.
What is tax-loss harvesting for immigrant investors?
Tax-loss harvesting means selling an investment that has declined in value to capture a tax loss, then buying a similar investment to maintain your market exposure. The harvested loss offsets capital gains elsewhere, reducing your tax bill. Most valuable for resident aliens in the 22%+ tax bracket with taxable brokerage accounts.
Can immigrants claim the foreign tax credit?
Yes. The foreign tax credit (Form 1116) allows you to credit taxes paid to foreign governments against your U.S. tax liability. This is especially relevant if you have investments in international ETFs that pass through foreign taxes, or if you have income from your home country that was taxed there.
What is asset location and how does it reduce taxes?
Asset location means placing different investments in different account types based on their tax efficiency. General rule: put tax-inefficient assets (bonds, REITs, high-dividend stocks) in tax-advantaged accounts (Roth IRA, 401k); put tax-efficient assets (total market index funds, growth ETFs) in taxable accounts. This can save 0.5–1% per year in tax drag.
Can immigrants deduct investment losses on their U.S. tax return?
Yes. Capital losses can offset capital gains dollar-for-dollar. If losses exceed gains, up to $3,000 in net capital losses can be deducted against ordinary income per year. Excess losses carry forward to future years indefinitely. This applies to both resident and non-resident aliens with U.S.-source investment income.
Related Reading
→ The IRS Trap Draining Immigrant Investors Every April→ The Tax Account Most Americans Use Wrong→ The Roth IRA Trick Most Immigrants Miss📊 W-8BEN vs. W-9: Which Tax Form Do You Need?🏠 Taxes & Retirement Hub
📋 Official Sources & Government References
- IRS — Tax Credits for Individuals — All available IRS tax credits that reduce what you owe
- IRS — Investment Expense Deductions (Topic 550) — Which investment-related expenses are legally deductible
- IRS — Tax Withholding Estimator — Official IRS tool to optimize your withholding and avoid overpaying






