Can Cost Segregation Offset Capital Gains? Rules and Examples

Published by the Seneca Cost Segregation Team:

Free Estimate

Turn 20-40% of your property cost into immediate tax savings

Average first-year deduction is $171,243. Get a no-cost property estimate from our team.

Get Free Estimate

Table of Contents

Dylan Scandalios

Dylan Scandalios

Co-founder & CEO, Seneca Cost Segregation

Dylan Scandalios is the Co-founder and CEO of Seneca Cost Segregation where he has helped real estate investors save millions on their taxes. Before starting Seneca Cost Segregation, Dylan led Sales and Product teams and initiatives for multiple multi-million and multi-billion dollar companies in the United States. A real estate investor himself, Dylan Scandalios is always looking to help other investors invest in their next project faster and build a long-term moat.

Can cost segregation offset capital gains? Sometimes, and the answer depends on where the gain came from and how the IRS classifies your rental activity. A study creates a large depreciation deduction, but the passive activity rules, the excess business loss cap, and depreciation recapture each decide how much of that deduction can meet a gain in the year you need it.

As co-founder of Seneca Cost Segregation and a real estate investor myself, I’ve worked with owners who reach out in the same year they close a large sale, hoping a new purchase and a study will erase the tax bill. What we see consistently is that the study does produce the deduction, and the type of gain decides whether that deduction is usable now, later, or only in part.

So I want to separate the cases plainly: gains from another rental, gains from stocks and other investments, gains on the property you sell, and boot from a 1031 exchange. For each one I point to the IRS publication that sets the rule and show where the savings actually land on your return, which is often somewhere other than the gain itself.

TL;DR — Can Cost Segregation Offset Capital Gains

Six points to have in hand before you buy a property or order a study to soften a gain.

  • ●Selling another rental: a passive loss from a study can absorb a passive gain from selling a different rental in the same year, with no real estate professional status required.
  • ●Selling stock or funds: a passive owner cannot use the loss against a portfolio gain, so the deduction waits for future passive income or a full taxable sale of the studied property.
  • ●Qualifying as a real estate professional: the loss turns nonpassive and can reach a stock gain, up to the 2026 excess business loss threshold of $512,000 on a joint return, with anything above it carried forward.
  • ●Reading the savings correctly: the deduction comes off income taxed at ordinary rates before it touches the gain, which is why our first example saves about $46,000 on a $200,000 deduction instead of the $30,000 a flat 15% would suggest.
  • ●Selling the studied property: suspended losses release on a fully taxable sale to an unrelated buyer, but depreciation on short-life components comes back as ordinary income up to the gain on those components.
  • ●Getting the timing right: a property has to be placed in service in the gain year to produce a deduction that year, and a look-back study can bring missed depreciation on a property you already own into the current return.
☰
Free estimate tool
Size the deduction against your gain
Get a ballpark first-year deduction for your property, then bring it to your CPA alongside this year’s expected gain.
Use the calculator →

How Cost Segregation Reduces Tax in a Gain Year

A study produces a deduction, and a gain in the same tax year sits in the same pool of taxable income that the deduction reduces.

Cost segregation
An engineering-based analysis that breaks a building’s cost into its components and assigns each one the shortest recovery period the tax law allows. Items such as cabinetry, specialty electrical, flooring, and site work move out of the 27.5- or 39-year building schedule into 5-, 7-, or 15-year classes, which puts them within reach of bonus depreciation.

Depreciation Is an Ordinary Deduction

The deduction a study creates is depreciation on a rental or business asset, which reduces income dollar for dollar once the loss rules allow it. Capital losses work differently, since net capital losses above your gains are capped at $3,000 a year ($1,500 if married filing separately), and depreciation carries no such cap.

Under P.L. 119-21, components with a recovery period of 20 years or less that were acquired and placed in service after January 19, 2025 qualify for 100% bonus depreciation, as IRS Publication 946 describes. The building shell stays on its long schedule, so the size of the first-year deduction depends on how much of the cost the study can move into those shorter classes.

The Deduction Reduces Ordinary Income Before the Gain

Long-term gains on assets held more than a year are taxed at 0%, 15%, or 20%, and the IRS figures that tax with a worksheet that stacks the gain on top of your ordinary income. The Schedule D Tax Worksheet starts with taxable income, subtracts the gain taxed at preferential rates, and taxes what remains at ordinary rates.

A deduction lowers taxable income at the top of that worksheet. The ordinary layer shrinks first, and the gain layer only starts to shrink once ordinary income is used up.

A framing we hear from clients and CPAs alike is that the study cancels the gain at 15% or 20%. The reality of how the math works is usually better for a high earner, since the deduction saves tax at ordinary rates while the gain keeps its lower rate.

Lower taxable income can also pull part of a gain into a lower bracket. For 2026, the 15% rate on a joint return runs up to $613,700 of taxable income and gain above that point is taxed at 20%, according to the IRS inflation adjustments in Revenue Procedure 2025-32.

Which Capital Gains a Study Can Reach

The source of the gain decides which rule applies, so start by finding your gain in the table below.

Source of the gain How the IRS treats it Can a study’s loss reach it this year?
Selling another rental you own Passive activity income Yes, a passive loss can offset it
Selling stocks, funds, or other investments Portfolio income Only with a nonpassive loss, and only up to the excess business loss cap
Selling a business you actively run Nonpassive income Only with a nonpassive rental loss, subject to the same cap
Selling the property that was studied Passive gain that also frees suspended losses Yes on a full taxable sale, with recapture on the accelerated components
Boot received in a 1031 exchange of a rental Recognized gain on passive activity property Yes, a passive loss can offset the recognized part

Each row has its own mechanics, covered in the sections that follow.

Gains From Selling Another Rental Property

Owners who sell one rental and buy or already hold another are in the strongest position, even with no special tax status.

Passive Losses Can Absorb a Passive Gain

IRS Publication 925 says passive activity income generally includes gain from disposing of property used in a passive activity. Rental activities are passive for most owners, including owners who materially participate, unless they qualify as real estate professionals.

Passive losses are allowed against passive income in the same year. A study on the rental you buy, or on a rental you already hold, can therefore produce a loss that the gain on the sold property makes usable right away.

Where the Savings Actually Land

The illustration below follows a married couple filing jointly with $350,000 of wages who sell Rental A for a $300,000 long-term gain and buy Rental B in the same year. Assume a study and bonus depreciation give Rental B a $200,000 net loss, and treat the whole gain on Rental A as long-term capital gain to keep the example readable.

Line item No study on Rental B Study on Rental B
Wages $350,000 $350,000
Long-term gain on Rental A $300,000 $300,000
Net loss on Rental B $0 ($200,000)
Taxable income after the $32,200 standard deduction $617,800 $417,800
Portion taxed at ordinary rates $317,800 $117,800
Gain taxed at preferential rates $300,000 $300,000
2026 federal income tax $106,673 $60,340

Figures are illustrative estimates. Your own result will turn on your cost basis, the mix of components the study finds, and your effective tax rate. Confirm all projections with your CPA before making financial decisions.

The tax drops by $46,333, and almost all of it comes from the ordinary layer falling out of the 24% and 22% brackets. The gain keeps its 15% rate, apart from $4,100 that sat above the $613,700 line without the study and falls back under it with the study.

Working with investors who sell and buy in the same year, what we see consistently is that the placed-in-service date of the replacement property decides more of the outcome than the size of the study. A real sale will also carry depreciation recapture, which changes the rates on part of the gain and is covered below.

Gains From Stocks and Other Investments

Gains from selling stock, funds, or other investments are where most expectations about cost segregation run ahead of the rules.

Passive Owners Carry the Loss Forward

Publication 925 excludes portfolio income from passive activity income, and it lists gain on property held for investment as portfolio income. A passive rental loss therefore cannot offset a stock gain, whatever its size.

Take the same couple and replace the rental sale with a $300,000 gain on stock. The $200,000 loss on Rental B is suspended, and the current-year offset is $0.

The $25,000 special allowance for owners who actively participate does not change the outcome here. The allowance shrinks by 50% of modified adjusted gross income above $100,000 and disappears at $150,000, so a household with a six-figure gain is almost always past it.

Real Estate Professionals and Short-Term Rental Operators

A rental loss turns nonpassive in two common situations, and a nonpassive loss can offset portfolio gains. The first is real estate professional status, which requires more than half of your personal services and more than 750 hours in real property trades or businesses in which you materially participate.

The second covers short-term rentals: an activity with an average customer stay of 7 days or less is not treated as a rental activity, so material participation can make its loss nonpassive. The short-term rental tax loophole explains the participation tests, and our guide on whether cost segregation can offset W-2 income walks through real estate professional status in more depth.

Where the Excess Business Loss Limit Caps the Offset

Even a nonpassive loss has a ceiling. According to the Instructions for Form 461, a noncorporate taxpayer cannot deduct an excess business loss in the current year, and the excess carries forward as a net operating loss.

The 2026 threshold is $256,000, or $512,000 on a joint return. Two details in the Form 461 instructions matter for a gain year: wages are left out of the business income side, and capital gains count only to the extent they come from a trade or business, so a stock gain does not raise the ceiling.

Here is a joint-filing couple who qualify as real estate professionals, assuming their rentals rise to the level of a trade or business. They have $150,000 of wages, a $400,000 long-term stock gain, and a $700,000 nonpassive rental loss from a study, with no other business income.

Line item Amount
Nonpassive rental loss from the study $700,000
Business income available to absorb it $0
2026 joint excess business loss threshold $512,000
Loss allowed this year $512,000
Excess carried forward as a net operating loss $188,000
2026 federal income tax without the study $75,340
2026 federal income tax with the study $0

Figures are illustrative estimates for one household, and a different basis, component mix, or tax rate would change every line. Confirm all projections with your CPA before making financial decisions.

The allowed $512,000 wipes out the wages first and then most of the gain, and what little gain remains falls inside the 0% bracket. The other $188,000 keeps its value as a carryforward against income in later years.

★
Planning a sale?
See how recapture works on each component
Section 1245 and 1250 property are recaptured differently when you sell. Know which bucket each component lands in before you time a study around a gain.
Compare 1245 and 1250 →

Gains on the Property You Sell

Selling the property that was studied brings two rules into play at once, one that helps and one that takes some of the benefit back.

Suspended Losses Are Released on a Full Taxable Sale

Publication 925 allows prior-year unallowed losses, along with current-year losses, in full in the year you dispose of your entire interest in the activity. The sale has to be a transaction in which all realized gain or loss is recognized, and the buyer cannot be related to you.

Once released, those losses are no longer limited to passive income, so they can offset the gain on the sale and other income on the same return, subject to the excess business loss cap described above.

Recapture Turns Part of the Gain Into Ordinary Income

Accelerated depreciation lowers your basis, which raises the gain when you sell. IRS Publication 544 treats gain on section 1245 property, which covers most 5- and 7-year components, as ordinary income up to the lesser of the depreciation allowed or allowable and the gain realized on that property.

The second limit is the one owners overlook. If $200,000 of 5- and 7-year components were fully expensed and $60,000 of the sale price is allocated to them, the ordinary income on those components is $60,000, since the gain on them is $60,000.

Depreciation on the building itself is handled differently, and the part of the gain tied to it is generally unrecaptured section 1250 gain taxed at a maximum 25%. The allocation of the sale price needs support, and the component schedule from the original study is where your CPA starts.

How a 1031 Exchange Changes the Math

A like-kind exchange now applies only to real property, and Publication 544 has you recognize gain to the extent you receive money or other non-like-kind property, the boot. Recognized boot on a rental is gain on passive activity property, so a passive loss from a study can absorb it.

The catch is the replacement property’s basis. Publication 946 allows bonus depreciation on the carryover basis of new replacement property, but on used replacement property only the excess basis (the additional cash, debt, or other consideration you put in) qualifies.

Publication 544 also shows that section 1245 recapture can arise in an exchange even when most of the gain is deferred. Our guide to partial 1031 exchange rules covers boot, basis, and recapture on a cost segregated property in more detail.

How to Plan a Study Around a Large Gain

The planning comes down to three decisions, and each one is easier to make before the sale closes than after.

Place the Property in Service in the Gain Year

Depreciation begins when property is placed in service, which Publication 946 defines as ready and available for its specific use. A closing in late December produces a deduction for that year only if the property is ready and available to rent before December 31.

Use a Look-Back Study on Property You Already Own

You do not need a new purchase if you already hold a rental that was never studied. A cost segregation look-back study uses Form 3115 to take the missed depreciation as a single Section 481(a) catch-up deduction in the current year, with no amended returns.

The catch-up follows the same passive and excess business loss rules as any other depreciation. For a passive owner, it pairs best with a gain on another rental in the same year.

Model the Gain, the Loss, and the Exit With Your CPA

The numbers above move with your filing status, other income, and holding plans, so the model belongs with your CPA before you commit. Our approach to CPA integration of study results starts from three inputs: the expected gain and its source, the study’s first-year deduction by class, and how long you plan to hold the property.

Mistakes to Avoid When Offsetting Capital Gains

Each of these shows up in sale years, and each one is avoidable with a model built before the transaction.

  • ●Assuming any rental loss offsets a stock gain: a passive owner’s loss stays suspended against portfolio income, so the expected refund never arrives. Confirm whether your loss is passive before you buy for the deduction.
  • ●Expecting the deduction to come off the gain first: the worksheet takes it from ordinary income first, which can make a projection built at 15% or 20% wrong in both directions. Ask your CPA to run the actual worksheet.
  • ●Ignoring the excess business loss cap: a real estate professional with a very large loss can still carry a big part of it forward as a net operating loss. Size the study’s deduction against the threshold for your filing status.
  • ●Selling to a related party or keeping part of the interest: suspended losses are released only on a fully taxable disposition of your entire interest to an unrelated buyer. Check the structure of the sale before you count on the release.
  • ●Studying a property you plan to sell soon without modeling recapture: part of the deduction can come back as ordinary income on the sale. Model the hold period and the likely allocation of the sale price before you order the study.
  • ●Forgetting the state return: a state that does not follow federal bonus depreciation will give you a smaller deduction on its return. Ask your CPA for a state-level projection as well.
✓
No-commitment estimate
Model the study before the sale closes
Our engineers build a free preliminary estimate and proposal from your property details, and you pay only if you move forward.
Get your free estimate →

Frequently Asked Questions

Below are the questions we hear most from owners trying to line up a cost segregation deduction with a capital gain.

Can Cost Segregation Offset Short-Term Capital Gains?+

The same passive and excess business loss rules apply to short-term gains. The difference is the rate, since net short-term gains are taxed as ordinary income, so a deduction that reaches them saves tax at your ordinary rate either way.

Can I Buy a Rental in December to Offset a Gain From Earlier in the Year?+

Yes, if the property is placed in service before the year ends, meaning ready and available to rent, and the loss rules allow the deduction against that gain. A gain on another rental is the cleanest match, while a stock gain needs a nonpassive loss.

Can a Cost Segregation Study Offset the Gain From Selling My Business?+

Gain from an active business you materially participate in is not passive income, so a passive rental loss cannot offset it. A nonpassive rental loss can, and the Form 461 instructions count capital gain attributable to a trade or business on the business income side of the excess business loss math.

What Happens If the Loss Is Bigger Than My Gain?+

A passive loss above your passive income is suspended and carried forward until you have more passive income or sell the property in a fully taxable sale. A nonpassive loss above the excess business loss threshold carries forward as a net operating loss.

Should I Elect Out of Bonus Depreciation If I Have No Gain to Absorb the Loss?+

Possibly, and the election is made by property class for everything in that class placed in service during the year. Our bonus depreciation election-out example shows how spreading the deduction can match it to years when you can use it.

Does the Offset Carry Over to My State Return?+

Not always, since each state decides whether to follow federal bonus depreciation. California does not conform to bonus depreciation, for example, so the same study produces a smaller first-year deduction on a California return.

Will a Study Done in a Big Sale Year Draw IRS Attention?+

A study holds up when its components, costs, and method are documented, whatever year it lands in. Our reports carry Head of Engineering sign-off, and audit defense is included with every study, with zero IRS audits triggered or lost to date.

Do the Same Rules Apply When I Own Through an LLC or Partnership?+

Yes, the passive activity rules apply to the owners of partnerships and S corporations, and your basis and at-risk limits are applied before the passive rules. Selling your entire partnership interest in a fully taxable sale generally frees the suspended losses tied to it.

How Seneca Builds a Study Around a Sale Year

A study ordered with a large gain in view has to be both timely and defensible. Our in-house engineering team builds a full component breakdown from an onsite or virtual tour, whichever you prefer, and our Head of Engineering signs off on every report before it reaches your CPA, backed by 10,200+ properties assessed and AuditDefense on every study. Your dedicated Project Manager, Engineering team, and Advisor keep you updated at each stage, studies are delivered in 5 to 10 business days once we have what we need from you, and the cost segregation calculator gives you a first read on the deduction to set against your gain.

Conclusion

A cost segregation study can reduce the tax on a capital gain, but the gain’s source sets the terms. A gain on another rental is the easiest match, a stock gain needs a nonpassive loss and still runs into the excess business loss cap, and a sale of the studied property trades released losses for recapture.

The savings also tend to land on ordinary income first, which often makes the result better than the headline promise. Model the whole year with your CPA before you buy, sell, or order a study.

When you are ready to see the deduction for your property, request a free preliminary estimate and proposal from our engineers. You pay only if you decide to move forward.

dylan scandalios - cost segregation expert - Seneca Cost Segregation

Dylan Scandalios

Cost Segregation Expert | Owner of Seneca Cost Segregation​

Looking for a 100% IRS-approved way to lower your taxes? We’ll create a no-cost estimate, walk through it with you, and complete the study showing the deduction available to you in just weeks.

Get started and our team will create a free estimate to outline how much you could save.