Can depreciation from a new real estate investment offset a large capital gain from selling my business or land?

Real estateTax efficiency

Can depreciation from a new real estate investment offset a large capital gain from selling my business or land?

It can, depending on the kind of gain. Depreciation from a real estate investment usually creates passive losses, and some investors may use them to offset passive gains, like selling a rental property or a stake in a partnership they did not run. Real estate professionals may go further. For a business sale, company stock or land, other tools often fit, some of them real estate too.

For educational purposes only. Nothing on this page is investment, legal or tax advice, and nothing here is an offer to buy or sell any security. Ocean Ridge Capital Partners, LLC is not a registered investment adviser, broker-dealer, law firm or accounting firm.

What this question is really asking

You have sold, or are about to sell, a company or a piece of land, and a big gain lands this tax year. You have heard real estate can soften the tax bill. It can, for the right gain and the right investor. The work is matching the tool to the gain before you pick a deal.

When can real estate depreciation offset a gain?

It starts with the kind of gain. These are general rules. Your CPA classifies your gain, and that decides which tools fit.

Kind of gainCan passive real estate losses offset it?Tools worth asking your CPA about
Sale of a rental property, or a stake in an LLC or partnership you did not runGenerally yesReal estate depreciation
Sale of a business you ranGenerally noReal estate professional status, installment sale, oil and gas (#53)
Sale of C corporation stockGenerally noSection 1202 small business stock, opportunity zone fund
Sale of landUsually noOpportunity zone fund, installment sale

If the gain is passive, how much can one deal offset?

Say the gain is passive and you invest in a real estate deal the same tax year. Depreciation passed to you varies by deal, so both cases are shown.

Hypothetical, same tax yearConservative caseBase case
Assumption: passive gain on the sale$500,000$500,000
Assumption: amount invested in real estate$250,000$250,000
Assumption: first-year depreciation passed to you30% of the investment60% of the investment
Passive loss available this year$75,000$150,000
Share of the gain sheltered15%30%

Hypothetical illustration only. Not based on any actual investment and not a projection of future results.

A bigger check, or a few deals, shelters more. Losses you cannot use this year carry forward to offset future passive gains. Depreciation lowers your cost basis, what the tax code counts as your cost, so some tax comes back when the property sells, but you keep and invest that money in the meantime.

What if you or your spouse is a real estate professional?

Then the picture opens up. Real estate professionals who materially participate in their rentals, meaning regular, hands-on work, may treat the losses as non-passive, so they may offset other income too, within annual limits. IRS Publication 925 sets two tests. More than 750 hours a year, and more than half your working time, in real estate businesses. On a joint return, it can apply if either spouse meets both alone.

What about a business sale, company stock or land?

  • Opportunity zone funds. Investing a capital gain in a qualified opportunity fund, which usually owns real estate, within 180 days can defer tax on it. The rules changed in 2025, so confirm the current version.
  • Installment sales. Taking payment over several years spreads the gain across tax years.
  • Section 1202. If you sold qualified small business stock, much of the gain may already be excluded.
  • Oil and gas working interests. A deduction that can reach active income without real estate professional status (see #53).

How we think about it

Most pitches stop at “real estate shelters your gain.” It is true for some gains and expensive for others. So we start where your CPA starts, with the kind of gain, then match it to the deals and tools that fit.

Even when depreciation cannot reach this year’s gain, it shelters the deal’s own cash flow and carries forward. Over a career of investing, that compounds.

Where this does not apply

Inside a retirement account there is no personal tax to shelter, so depreciation does nothing there. State taxes can differ from the federal picture. And none of this replaces your CPA’s read of your own return.

Related questions

What is cost segregation?

A study that splits a building into parts with shorter tax lives, so more depreciation lands in the early years.

Does this work against my W-2 income?

Generally not for passive investors. Real estate professional status, short-term rentals you actively run, and oil and gas working interests (see <a href="/insights/oil-gas-offset-w2-income">#53</a>) are the main routes that can.

If you are weighing a deal this year, book an investor strategy call.

Published · Last reviewed

Next step

Big tax year coming? Bring your CPA in first, then talk to us.

Book a 25-minute call with Morgan

Not ready to talk? Take the investor quiz and we will send what fits.

Keep reading

More in Tax: what is real, what is deferred, who qualifies

See every answer