The tax consequences of selling a medical office building or surgery center are frequently the most underestimated component of the transaction. Physicians who focus exclusively on their sale price often walk away with significantly less than they expected once federal capital gains taxes, state taxes, depreciation recapture, and net investment income tax are applied. Understanding the full tax picture before you sell — not after — is essential to making an informed decision and maximizing what you actually keep.

This guide covers the primary tax obligations triggered by a medical real estate sale, how to calculate your approximate tax exposure, and the strategies most commonly used by physician-owners to defer, reduce, or restructure that exposure. It is educational in nature — every physician's situation is different, and you should work with a qualified CPA or tax advisor before making any decisions.

The Four Tax Categories That Apply to Medical Real Estate Sales

When a physician sells a medical office building or surgery center, the proceeds are subject to up to four separate tax categories. Understanding each one — and how they interact — is the starting point for any meaningful tax planning.

1. Long-Term Capital Gains Tax

If you have owned your medical building for more than one year, the gain on sale is taxed as a long-term capital gain. The federal long-term capital gains rate depends on your taxable income:

  • 0% — Single filers with taxable income up to $49,450; married filing jointly up to $98,900
  • 15% — Single filers from $49,451 to $545,500; married filing jointly from $98,901 to $613,700
  • 20% — Single filers above $545,500; married filing jointly above $613,700

Most physician-owners selling medical real estate will fall into the 20% federal long-term capital gains bracket. On a $5M gain, that's $1,000,000 in federal capital gains tax before any other taxes are applied.

2. Depreciation Recapture

This is the tax that surprises most physician-owners. Over the years you've owned your building, you've taken depreciation deductions that reduced your taxable income. When you sell, the IRS requires you to "recapture" those deductions — taxing them at a flat 25% federal rate, regardless of your income level.

Depreciation recapture applies to the total accumulated depreciation you've claimed on the property since purchase. For a building purchased for $2M with a 39-year depreciation schedule, after 15 years of ownership you would have claimed approximately $769,000 in depreciation deductions — and would owe roughly $192,000 in federal depreciation recapture tax on those amounts when you sell.

The gain subject to depreciation recapture is taxed separately from and in addition to your long-term capital gains. It does not benefit from the lower capital gains rates.

3. Net Investment Income Tax (NIIT)

The Affordable Care Act added a 3.8% Net Investment Income Tax on capital gains for higher-income taxpayers. This applies to single filers with modified adjusted gross income above $200,000 and married filing jointly above $250,000.

Because most physician-owners exceed these thresholds, the 3.8% NIIT effectively adds to their capital gains rate — bringing the total federal capital gains rate to 23.8% for most physician sellers (20% + 3.8%).

4. State Capital Gains Tax

Most states tax capital gains as ordinary income or at a separate capital gains rate. State tax rates vary significantly:

  • No state income tax: Texas, Florida, Tennessee, Nevada, Washington, Wyoming, South Dakota, Alaska, New Hampshire
  • Low state rates (under 5%): North Carolina (3.99%), Indiana (3.23%), Pennsylvania (3.07%)
  • High state rates (above 8%): California (13.3%), New York (10.9%), New Jersey (10.75%), Oregon (9.9%)

State taxes can add substantially to your total tax bill. A California physician selling a $5M building at a $3M gain would owe an additional $399,000 in state income tax on top of federal obligations.

Calculating Your Total Tax Exposure: A Working Example

To understand how these taxes stack up in practice, consider a physician who purchased a medical office building in 2011 for $2,000,000 and sells it today for $5,000,000.

Step 1: Calculate the Adjusted Cost Basis

Start with the original purchase price and add capital improvements, then subtract accumulated depreciation:

  • Original purchase price: $2,000,000
  • Capital improvements over 15 years: $200,000
  • Accumulated depreciation (15 years at $51,282/yr): ($769,231)
  • Adjusted cost basis: $1,430,769

Step 2: Calculate Total Gain

  • Sale price: $5,000,000
  • Less selling costs (brokerage, legal, closing): ($150,000)
  • Less adjusted cost basis: ($1,430,769)
  • Total taxable gain: $3,419,231

Step 3: Allocate the Gain

  • Depreciation recapture (taxed at 25%): $769,231
  • Long-term capital gain (taxed at 20% + 3.8% NIIT): $2,650,000

Step 4: Calculate Federal Tax

  • Federal depreciation recapture tax (25%): $192,308
  • Federal long-term capital gains tax (20%): $530,000
  • Net Investment Income Tax (3.8%): $100,700
  • Total federal tax: $823,008

Step 5: Add State Tax (Georgia example at 5.75%)

  • State capital gains tax: $196,606

Total Tax Bill: Approximately $1,019,614

On a $5,000,000 sale, the physician nets approximately $3,830,386 after taxes and selling costs — roughly 77 cents on the dollar before any tax planning strategies are applied.

Key Insight

The tax exposure on a medical real estate sale is rarely small. Understanding your approximate liability before you go to market allows you to evaluate tax deferral strategies, time the transaction appropriately, and negotiate from a position of knowledge rather than surprise.

Tax Deferral and Reduction Strategies

The good news is that physician-owners have several legitimate strategies available to defer, reduce, or restructure their tax exposure. None of these eliminates taxes entirely — but used correctly, they can materially change the after-tax outcome of your sale.

Strategy 1: The 1031 Exchange

A 1031 exchange allows you to defer all capital gains taxes by reinvesting your sale proceeds into a "like-kind" replacement property. The rules are strict:

  • You must identify a replacement property within 45 days of closing
  • You must close on the replacement property within 180 days of closing
  • A qualified intermediary must hold the proceeds — you cannot touch the money
  • The replacement property must be of equal or greater value
  • All equity must be reinvested (receiving any "boot" triggers proportional tax)

A successful 1031 exchange defers the entire $823,000 in federal taxes in our example above — allowing that capital to continue compounding in a new investment rather than going to the IRS. The tax is not forgiven; it is deferred until you eventually sell the replacement property without another exchange.

For physicians who want to continue investing in real estate but diversify away from a single property, a 1031 into a DST (Delaware Statutory Trust) or NNN property provides passive income without active management responsibilities.

Strategy 2: Installment Sale

In an installment sale, the buyer pays the purchase price over multiple years rather than in a lump sum at closing. This spreads your taxable gain across multiple tax years, which can keep you in a lower tax bracket and reduce or eliminate NIIT exposure in certain years.

The primary limitation of an installment sale is that institutional buyers — the buyers who pay the highest prices for medical real estate — almost never agree to installment terms. They buy with cash or financing at closing. Installment sales are more common in smaller, private transactions where the buyer pool is narrower.

Strategy 3: Charitable Remainder Trust (CRT)

A Charitable Remainder Trust allows you to contribute your property to a trust, which then sells it without paying capital gains tax. The trust pays you an income stream for a defined period or for life, and the remainder passes to a designated charity at the end of the trust term.

A CRT is most appropriate for physicians with charitable intent who are approaching retirement and seeking income replacement. It is a complex strategy that requires careful legal and tax structuring — not suitable for all situations.

Strategy 4: Opportunity Zone Investment

The Opportunity Zone program allows investors to defer capital gains by reinvesting proceeds into a Qualified Opportunity Fund within 180 days of the sale. Unlike a 1031 exchange, the reinvestment does not need to be in like-kind real estate — it can be in any qualified opportunity zone business or property.

Opportunity zone investments have become more selective as the program has matured. The tax benefits are most compelling for investors with large gains who have a long investment horizon.

Strategy 5: Transaction Timing

Sometimes the most effective tax planning is simply timing. If you are approaching retirement and expect your income to drop significantly, selling in a year when your total income is lower can move you into a lower capital gains bracket or reduce NIIT exposure. Similarly, if Congress is debating capital gains rate increases, accelerating a sale may be appropriate.

Strategy 6: Sale-Leaseback with Installment Elements

In a sale-leaseback transaction, certain deal structures allow for installment-like tax treatment on portions of the proceeds depending on how the transaction is structured. This is a nuanced area that requires coordination between your real estate advisor and tax counsel.

Strategy 7: Physician Reinvestment Programs

A growing number of institutional buyers — including private equity-backed healthcare real estate platforms — offer physician sellers the option to reinvest a portion of their sale proceeds directly into the acquiring entity or portfolio. Rather than receiving 100% of your equity in cash (and the corresponding immediate tax liability), you convert a portion into an equity stake in a larger, diversified medical real estate vehicle.

The mechanics vary by structure, but the core concept is straightforward: you sell your building to an institutional platform, defer taxes on the reinvested portion, and become a co-investor in a portfolio that may include dozens of medical assets across multiple markets. You receive distributions as a limited partner or member — typically at yields of 5–8% annually — while participating in the portfolio's appreciation over time.

For physicians who believe in the long-term value of medical real estate but want to exit the single-asset risk and management burden of ownership, a reinvestment program captures both objectives. The reinvested portion defers the tax event until the physician ultimately liquidates their platform interest, typically at a fund exit or recapitalization 5–10 years out.

Physician reinvestment is most appropriate when the buyer platform is well-capitalized and transparent, the reinvestment yield justifies the illiquidity, and your overall estate and tax planning allows for a deferred recognition event. Your CPA and financial advisor should review any reinvestment term sheet alongside the real estate transaction documents.

Strategy 8: UPREIT (Umbrella Partnership REIT)

An UPREIT — Umbrella Partnership Real Estate Investment Trust — allows a property owner to contribute their real estate to a REIT's operating partnership in exchange for Operating Partnership Units (OP Units) rather than selling for cash. Because this is a contribution, not a sale, the capital gains tax event is deferred until the physician converts their OP Units into REIT shares or cash.

The UPREIT structure is particularly compelling for physicians with highly appreciated medical buildings in strong markets. The mechanics:

  • The physician contributes the property to the REIT's operating partnership at fair market value
  • In exchange, they receive OP Units equal in value to the property's equity (after any assumed debt)
  • No capital gains tax is triggered at contribution — the deferred gain transfers to the OP Units
  • OP Units typically pay distributions equivalent to the REIT's dividend, providing ongoing income
  • After a lockout period (typically 1–2 years), OP Units can be converted to publicly traded REIT shares — at which point the gain is recognized — or held indefinitely
  • At death, the OP Units receive a stepped-up basis, potentially eliminating the deferred gain entirely for heirs

The UPREIT is one of the most powerful tax deferral tools available to owners of highly appreciated medical real estate — and one of the least understood. It requires that an active REIT is acquiring in your market and your asset profile fits their acquisition criteria. Not every physician will have access to this structure, but for those who do, it deserves serious analysis alongside a traditional 1031 exchange.

UPREIT contributions are complex transactions requiring securities counsel, real estate counsel, and a CPA working in coordination. The OP Units are illiquid securities, and the distribution yield may differ from a market-rate cash return on the property's equity. These trade-offs need careful evaluation before proceeding.

The Interaction Between Real Estate Taxes and Practice Sale Taxes

For physicians selling both their practice and their real estate in proximity to each other, the combined tax picture requires careful planning. Both transactions generate taxable gains in the same year, which can push you into higher brackets and increase your NIIT exposure significantly.

Several approaches help manage this:

  • Stagger the transactions across tax years — sell the real estate in one calendar year and the practice in the next, splitting the gains
  • Apply a 1031 exchange to the real estate — deferring the real estate gain while recognizing the practice sale gain in full
  • Maximize retirement plan contributions — in the sale year, maximizing contributions to defined benefit plans, profit sharing plans, and SEP-IRAs can reduce your taxable income meaningfully

This is precisely why coordinating your real estate transaction and your practice transition with a team that understands both sides of the equation matters so much. CREG handles the real estate side; your healthcare M&A advisor handles the practice side; and your CPA or tax attorney coordinates the overall tax strategy across both.

Common Tax Mistakes Physician-Sellers Make

1. Not Calculating the Tax Exposure Until After Signing

The most common and costly mistake. Once you've signed a purchase agreement, your tax planning options narrow dramatically. Run the numbers before you agree to a price — not after.

2. Ignoring Depreciation Recapture

Many physicians focus on capital gains rates and forget about depreciation recapture entirely. On a building owned for 15-20 years, recapture can add $150,000-$400,000 in tax liability that wasn't budgeted for.

3. Missing the 45-Day 1031 Identification Deadline

The 1031 exchange timeline is unforgiving. Missing the 45-day identification window eliminates the entire deferral benefit — you cannot get an extension for most circumstances. Planning the exchange before closing, not after, is essential.

4. Assuming All States Treat Capital Gains the Same

State tax treatment varies enormously. A physician who owns buildings in multiple states needs to understand each state's rules separately.

5. Not Updating the Cost Basis Analysis

If you've made significant capital improvements over the years — a new roof, HVAC replacement, interior renovations — those costs should be added to your cost basis, reducing your taxable gain. Many physicians never update their basis analysis and overpay taxes as a result.

6. Failing to Coordinate with a CPA Early Enough

Your real estate broker can help you understand the conceptual tax framework. Your CPA provides the specific, tailored analysis your situation requires. Bringing your CPA into the conversation at the start of the transaction — not at year-end — is the single most important step you can take.

When Does It Make Sense to Sell Despite the Tax Bill?

A significant tax bill is not a reason to avoid selling. It is a cost of a successful investment — and one that needs to be weighed against the opportunity cost of holding.

Selling makes sense despite taxes when:

  • The after-tax proceeds, reinvested at a reasonable rate, generate more income than the building's net cash flow after debt service
  • A 1031 exchange into a passive NNN property eliminates active management obligations while deferring taxes
  • Holding exposes you to concentration risk — all your wealth in a single illiquid asset in a single market
  • The building requires significant capital expenditure that the sale price already reflects, and reinvesting would be wasted
  • Practice transition is imminent and the real estate will be difficult to sell once you're no longer the operating tenant

The math is straightforward: if your building generates $200,000/year in net cash flow and you pay $1,000,000 in taxes on a $5,000,000 sale, you need your after-tax proceeds to generate a return above 4% to justify the sale. In the current market environment, that threshold is achievable — which is why many physician-owners are making the decision to sell.

Understand Your Tax Position Before You Go to Market

CREG Healthcare works alongside your CPA and tax advisors to ensure the real estate transaction is structured in a way that supports your overall tax strategy. We provide confidential broker opinions of value that include a high-level tax exposure estimate so you can make an informed decision before committing to a sale process.

Request a Confidential Consultation