Direct Indexing for Real Estate Investors: Offsetting §1231 Gains with a Pre-Sale Loss Bank
Selling a rental property triggers §1231 gains, §1250 depreciation recapture, and often NIIT. Direct indexing capital losses can offset the long-term capital gain portion — but not the depreciation recapture bucket. Here's the exact breakdown, with a worked California example.
The three-bucket tax structure of a real estate sale
When you sell a depreciated rental or commercial property held more than one year, the gain doesn't fall into a single tax bucket. It splits into two or three distinct characters — each with its own rate, each treated differently on your return:
| Gain type | Federal rate | NIIT? | DI losses can offset? |
|---|---|---|---|
| §1250 unrecaptured depreciation (straight-line taken) | Max 25%1 | Yes (if passive) | No — separate rate tier |
| §1231 net gain above recapture (held >1 year) | 0% / 15% / 20% (LTCG) | Yes (if passive) | Yes — capital losses offset directly |
| §1231 lookback recharacterization (see below) | Ordinary income rates | No | No — ordinary income, not capital gain |
This structure explains why direct indexing is not a universal real estate tax solution — but it is a powerful one for investors with large §1231 LTCG exposure. At the 2026 combined federal rate of 23.8% (20% LTCG + 3.8% NIIT) plus California's 13.3%, every $100,000 of §1231 gain that DI capital losses offset is worth $37,100 in avoided tax.2
What direct indexing can offset: the §1231 LTCG bucket
A net §1231 gain is the gain from selling depreciable real property held more than one year, after subtracting all recapture. It is treated as long-term capital gain at the preferential rates (0%, 15%, or 20% depending on your tax bracket).
Capital losses harvested in a direct indexing account appear on Schedule D, net against capital gains, and reduce your taxable §1231 LTCG dollar-for-dollar. At a 23.8% combined federal rate (or 37.1% in California), the tax value of each dollar of DI loss against this gain is:
| Filing status / state | Rate on §1231 LTCG | Tax saved per $10K DI loss |
|---|---|---|
| MFJ, no state income tax (TX/FL/WA) | 23.8% | $2,380 |
| Single, top bracket, New York | 23.8% + 10.9% = 34.7% | $3,470 |
| MFJ, top bracket, California | 23.8% + 13.3% = 37.1% | $3,710 |
| MFJ, 15% LTCG bracket, no state tax | 15% + 3.8% = 18.8% | $1,880 |
For a California investor in the top bracket — common for the physicians, tech executives, and business owners who tend to hold rental properties — direct indexing generates the highest-value losses in the portfolio at exactly the moment a large real estate gain is coming.
What direct indexing cannot offset: §1250 unrecaptured depreciation
For each year you owned a rental property, you deducted depreciation — typically $10,000-$30,000/year on a residential unit, based on cost over 27.5 years. When you sell at a gain, the IRS recaptures that deduction. For residential rental property depreciated on the straight-line method (the standard approach), the accumulated depreciation on the building is §1250 "unrecaptured" gain, taxed at a maximum federal rate of 25%.1
This 25% cap is a separate rate tier from LTCG rates. Capital losses — including DI harvested losses — net against capital gains on Schedule D, but they reduce the zero/15/20% gain buckets first, not the 25% tier directly. For most high-income real estate investors, the §1250 recapture is effectively unavoidable at the federal level.
In California, the distinction matters less: CA taxes all capital gains (including §1250 recapture) at ordinary income rates up to 13.3%, not at a 25% cap. DI capital losses reduce CA Schedule D net gains and apply against both recapture and §1231 gains for state tax purposes — meaning the CA savings from DI are not limited to just the §1231 bucket.
The §1231 lookback rule: the most-overlooked trap
Under IRC §1231(c), if you recognized net §1231 losses in any of the five preceding tax years — and those losses have not yet been "recaptured" by subsequent §1231 gains — your current net §1231 gain is recharacterized as ordinary income to the extent of those prior losses.3
In practice, this creates an invisible tax time bomb for real estate investors who sold properties at a loss during the 2008-2012 downturn, the early-2020 disruption, or any other period of real estate stress. Those prior §1231 losses converted to ordinary deductions at the time — saving tax at 37% ordinary rates. When a subsequent §1231 gain appears, the IRS claws back the rate advantage: gains up to the amount of prior losses are taxed at ordinary income rates, not LTCG rates.
Why DI doesn't help here: The recharacterized ordinary income is not a capital gain. Capital losses — including DI losses — can only offset capital gain income. A $200,000 §1231 gain that the lookback rule converts to ordinary income cannot be offset by DI capital losses. This can be a $37,000-$74,000 surprise if not anticipated.
NIIT, real estate, and direct indexing
The 3.8% net investment income tax applies to the lesser of (a) net investment income or (b) the amount by which MAGI exceeds $200,000 for single filers or $250,000 for married filing jointly (not inflation-adjusted).4 Passive rental income and passive capital gains from property sale are net investment income.
Because direct indexing capital losses reduce your net §1231 LTCG — and NIIT applies to that same income — DI losses produce NIIT savings alongside the regular LTCG savings. At a 3.8% NIIT rate on top of the 20% LTCG rate, each dollar of DI loss in the top bracket saves $0.238 in federal tax, not $0.20.
Real estate professional exception. If you qualify as a real estate professional under IRC §469(c)(7) — 750+ hours annually in real property trades or businesses, more than in any other profession, with material participation — rental income and gains from property sales may be reclassified as non-passive. Non-passive rental gains are not subject to NIIT. If this applies to you, the NIIT savings component of DI disappears, reducing the federal benefit from 23.8% to 20% per dollar of offset. The state savings are unchanged.
Worked example: California physician selling a rental condo
Scenario: A physician in San Francisco purchased a two-unit rental condo in 2014 for $700,000. The building component ($560,000, 80% of purchase price) has been depreciated on a 27.5-year straight-line schedule: $20,364/year × 12 years = $244,364 in accumulated depreciation through 2026. Selling price: $1.35M.
- Original cost: $700,000
- Less accumulated depreciation: ($244,364)
- Adjusted basis: $455,636
- Sale price: $1,350,000
- Total gain: $894,364
| Gain bucket | Amount | Federal rate | CA rate |
|---|---|---|---|
| §1250 unrecaptured depreciation | $244,364 | 25% | 13.3% (ordinary) |
| §1231 net LTCG (gain above recapture) | $650,000 | 23.8% (20% + NIIT) | 13.3% |
Tax without DI:
- §1250 recapture federal: $244,364 × 25% = $61,091
- §1250 recapture CA: $244,364 × 13.3% = $32,500
- §1231 LTCG federal: $650,000 × 23.8% = $154,700
- §1231 LTCG CA: $650,000 × 13.3% = $86,450
- Total tax: $334,741
With a $200,000 DI loss bank (accumulated over 18 months with a $500,000 Parametric account at 1.5% annual harvest rate):
- §1250 recapture: unchanged at $93,591 federal + CA (DI losses don't offset this bucket)
- §1231 LTCG offset by $200K DI losses → taxable §1231 LTCG reduced to $450,000
- §1231 LTCG federal: $450,000 × 23.8% = $107,100 (saves $47,600)
- §1231 LTCG CA: $450,000 × 13.3% = $59,850 (saves $26,600)
- Total tax: $260,541
- Total savings: $74,200
The $200,000 DI loss bank offset taxes at an effective combined rate of $74,200 / $200,000 = 37.1 cents per dollar of loss — the full California top-bracket rate. A fee-only advisor builds this loss bank before the closing date and coordinates the exact lot harvest timing to maximize the offset in the sale year.
Building the loss bank: timing and sizing
The pre-sale loss bank strategy requires lead time. Direct indexing at a 1.0-1.5% annual harvest rate accumulates losses gradually over months, not days. If you're planning to sell a property 18 months from now, you have a realistic window to build $15,000-$22,500 per $1M in DI assets over that period at standard rates. High-volatility periods (market corrections, sector rotations) can accelerate harvesting significantly.
| DI account size | Annual losses at 1.0% harvest | Annual losses at 1.5% harvest | 18-month loss bank |
|---|---|---|---|
| $250,000 | $2,500 | $3,750 | $3,750–$5,625 |
| $500,000 | $5,000 | $7,500 | $7,500–$11,250 |
| $1,000,000 | $10,000 | $15,000 | $15,000–$22,500 |
| $2,000,000 | $20,000 | $30,000 | $30,000–$45,000 |
For a property sale generating $500,000+ in §1231 LTCG, you need a DI account of $2M+ to generate a loss bank that meaningfully offsets the gain within 18 months — or you start earlier with a $1M account over 3-4 years. The advisor's role is to size the DI account against the expected gain and begin accumulating losses the appropriate number of years in advance.
The 1031 exchange vs. DI offset: when each wins
A §1031 like-kind exchange defers 100% of the gain into a replacement property — no capital gains tax in the sale year at all. Direct indexing offsets a portion of the gain permanently (losses used against gains are not deferred, they eliminate the tax). These are not complementary strategies on the same sale; they are competing choices.
| §1031 exchange | DI loss offset | |
|---|---|---|
| Tax outcome | 100% deferral (tax paid later on replacement) | Partial elimination (on DI offset amount) |
| Capital deployment | Must reinvest in like-kind real property | Capital freed for liquid portfolio |
| Basis carry-forward | Low basis carries into replacement | No carryforward — gain eliminated |
| Best for | Investors staying in real estate | Investors diversifying into financial assets |
| §1250 recapture | Also deferred | Cannot eliminate |
| Estate planning | Step-up at death eliminates all deferred gain | Step-up also available on remaining portfolio |
Some investors use a hybrid: 1031 exchange a portion of the portfolio into fewer, larger properties, while selling other positions and using DI losses on those. The advisor coordinates which properties to exchange vs. sell based on depreciation recapture profiles and the investor's desire to remain in real estate.
Platform selection for real estate investors
Real estate investors running a pre-sale loss bank strategy typically have complex account structures — taxable brokerage, retirement accounts, LLC-held real estate, perhaps a partnership. Wash-sale risk is elevated when the DI account holds individual stocks that appear in other accounts or ETFs you hold alongside real estate holdings.
| Platform | Cross-account wash-sale? | Advisor timing coordination? | Fit for pre-sale strategy |
|---|---|---|---|
| Parametric (advisor) | Yes — advisor coordinates | Yes | Strong |
| BlackRock Aperio (advisor) | Yes — advisor coordinates | Yes | Strong — $1M+ positions |
| Vanguard Personalized Indexing | Partial | Yes (VPI advisor) | Good |
| Schwab Personalized Indexing | Schwab accounts only | No | Moderate |
| Wealthfront / Frec | No | No | Not suitable |
Related guides
- Direct Indexing for K-1 Investors (PE/RE LPs): §1231 Gain from Partnerships
- Capital Loss Carryforwards and Direct Indexing: Deploying §1212 Losses
- Direct Indexing and the §1014 Step-Up: Harvest Losses in Life, Step Up Gains at Death
- Direct Indexing for High-Income Earners: State Tax Multiplier and NIIT
- Parametric Portfolio Associates: Platform Review
- BlackRock Aperio: Platform Review
- Match with a fee-only direct indexing specialist
Sources
- 26 U.S.C. § 1250 — Gain from dispositions of certain depreciable realty. Unrecaptured §1250 gain (the portion of §1231 gain equal to straight-line depreciation previously allowed) is taxed at a maximum federal rate of 25% per IRC §1(h)(1)(D). This rate applies to residential rental property depreciated on the straight-line method — the standard method for residential rentals over 27.5 years.
- IRS Topic 559 — Net Investment Income Tax. NIIT of 3.8% applies to lesser of net investment income or MAGI exceeding $200,000 (single) / $250,000 (MFJ). Passive rental income and passive gains on sale of rental property are included in net investment income. Thresholds are not indexed for inflation. 2026 LTCG rates: 0% / 15% / 20%; combined top federal rate on §1231 LTCG is 23.8%. California taxes all capital gains as ordinary income at up to 13.3%, per FTB guidance.
- 26 U.S.C. § 1231(c) — Nonrecaptured net section 1231 losses. Any net §1231 gain in the current year is recharacterized as ordinary income to the extent of nonrecaptured net §1231 losses from the five preceding tax years. These losses are recaptured in chronological order (oldest year first). The recharacterized ordinary income is not eligible for capital gain rates and cannot be offset by capital losses.
- IRS Topic 559 — Net Investment Income Tax (NIIT). Real estate professionals who materially participate in real property trades or businesses may reclassify rental income as non-passive under IRC §469(c)(7), removing it from NIIT exposure. Requirements: 750+ hours in real property activities per year, more time than any other profession. See IRS Publication 925 for material participation tests.
- IRS Publication 544 — Sales and Other Dispositions of Assets. Comprehensive guidance on §1231, §1245, and §1250 gain characterization, recapture rules, and the five-year lookback rule for nonrecaptured §1231 losses. Form 4797 computation instructions for business property sales including real estate.
- Kiplinger — IRS Capital Gains Tax Thresholds for 2026. 2026 LTCG brackets: 0% for MFJ taxable income ≤ $98,900; 15% for $98,900–$613,700; 20% above $613,700. Single filer 20% threshold: $583,750. Values reflect IRS Rev. Proc. 2025-32 and OBBBA adjustments.
Tax rates and thresholds verified against 2026 IRS guidance and IRC statutory provisions as of May 2026. The worked example uses hypothetical figures for illustration only. Depreciation recapture calculations depend on your actual depreciation schedules, cost segregation elections, and prior dispositions. The §1231 lookback rule requires a full review of your prior five years' returns. This page is informational only and does not constitute tax, investment, or legal advice. Verify all values with a qualified tax professional before transacting.
Plan your pre-sale loss bank
The window to build a meaningful DI loss bank closes 12–24 months before your property sale. A fee-only direct indexing specialist can size the DI account against your expected §1231 LTCG, check your §1231 lookback exposure, and determine whether the pre-sale strategy makes sense given your income, state taxes, and depreciation profile. Free match, no obligation.
Direct Indexing Advisor Match is a matching service. DirectIndexingAdvisorMatch is a referral service, not a licensed advisory firm. We may receive compensation from professionals in our network. Content is for informational purposes only and does not constitute financial, tax, legal, or investment advice.