Skip to main content
1031Property.com — 1031 exchange & DST replacement property specialists
Tax Strategy

Selling a Rental When the Loan Exceeds Your Basis

6 min read

By 1031Property Research TeamLast updated

Researched against current IRS guidance and reviewed before publication. Educational information only — not tax, legal, or investment advice. See our disclosures.

If the mortgage on your rental is larger than your adjusted basis, selling it can produce a tax bill that is bigger than the cash you receive at closing. The reason is that the loan you pay off counts as part of your sale proceeds for tax purposes, even though that money goes straight to the lender. Owners in this position often hear the term phantom gain, and it is one of the most common surprises in a rental sale.

How can a loan be higher than my basis?

Two things usually combine to create the gap.

The first is depreciation. Every year you own a rental, depreciation you claimed, or were entitled to claim, reduces your adjusted basis. After many years, the basis in the building can be a small fraction of what you paid.

The second is refinancing. When you refinance and take cash out, the loan proceeds are not taxable at the time because they are borrowed money. But the new loan stays on the property, and it is not added to your basis. Owners who have refinanced more than once can end up with a loan balance well above their original purchase price, sitting on top of a basis that depreciation has pushed down.

A prior 1031 exchange can widen the gap further. Basis generally carries over from the property you gave up, so an owner who has exchanged several times may have a very low basis in a valuable building with a large loan on it.

Why does the loan payoff count as money I received?

For tax purposes, your amount realized on a sale generally includes the cash you receive plus any debt you are relieved of. When the buyer's money pays off your mortgage, you are relieved of that debt, so it counts.

Your gain is the amount realized, after selling costs, minus your adjusted basis. The size of your loan has no effect on the gain itself. What it does affect is how much of the sale price actually reaches your bank account. A large loan means a small check, but the gain, and the tax on it, is calculated on the whole price.

That is why the cash and the tax can point in opposite directions.

What does this look like with numbers?

The figures below are illustrative only. They are simplified, use top federal rates for illustration, ignore state tax and many details, and are not a projection of anyone's tax.

Suppose an owner bought a rental years ago for 400,000 dollars and has taken 200,000 dollars of depreciation, so the adjusted basis is now 200,000 dollars. Along the way the owner refinanced, and the loan balance today is 550,000 dollars.

The owner sells for 700,000 dollars and pays 42,000 dollars in selling costs.

  • ›Amount realized: 700,000 minus 42,000, which is 658,000 dollars.
  • ›Gain: 658,000 minus the 200,000 dollar basis, which is 458,000 dollars.
  • ›Cash at closing: 658,000 minus the 550,000 dollar loan payoff, which is 108,000 dollars.

Now look at the illustrative federal tax at top rates. The 200,000 dollars of depreciation could be taxed at up to 25 percent, which is up to 50,000 dollars. The remaining 258,000 dollars of gain at a 20 percent capital gains rate is 51,600 dollars. The 3.8 percent net investment income tax on the full 458,000 dollars, where it applies, is about 17,404 dollars. Together that is roughly 119,004 dollars, before any state tax.

In this illustration the federal tax alone is about 11,000 dollars more than the 108,000 dollars the owner received. Actual rates depend on income, filing status, state and the facts of the property, so your own figure could be lower or higher. The point is the shape of the problem, not the number.

How do I check whether this applies to me?

You need three figures, and your CPA can help with each.

  • ›Your current loan payoff, from your lender, not the original loan amount.
  • ›Your adjusted basis, which is your original cost plus qualifying purchase costs and capital improvements, minus depreciation claimed or allowable. If the property came from an earlier exchange, carryover basis matters.
  • ›A realistic net sale price, after commissions and closing costs.

If the loan payoff is close to or above your adjusted basis, run the full calculation before you sign a listing agreement. A quick test is to compare the expected tax with the expected cash. If the tax is close to or above the cash, the sale needs a plan.

Does a 1031 exchange solve the problem?

A properly structured 1031 exchange can defer the gain, including the depreciation recapture, when you sell investment property and acquire like kind replacement property within the deadlines. That can remove the immediate tax, which is why highly leveraged owners often look at an exchange.

There is a catch that matters most for exactly these owners. To defer all of the gain, the general guideline is to acquire replacement property of equal or greater value and to replace the debt that was paid off, either with new debt or with additional cash. If you pay off a 550,000 dollar loan and take on a smaller one without adding cash, the difference can be mortgage boot, which is taxable.

So an owner with a large loan typically needs a lender willing to provide similar leverage on the replacement property, on terms that make sense. Interest rates, debt service coverage requirements and appraisals can all make that harder than it was when the original loan was taken out.

Some investors look at fractional replacement property, such as interests in a Delaware Statutory Trust that carries its own financing, as one way to replace debt. DST interests are securities available only to accredited investors, offered through a licensed broker dealer and definitive offering documents, and investing involves risk including loss of principal. Whether any option suits your situation is a question for your own advisers.

What else should I think about?

  • ›Foreclosure and short sales are not an escape. Losing the property to the lender is generally treated as a sale too, and the same gain can arise.
  • ›An installment sale has its own wrinkle. When a buyer takes over a mortgage that exceeds your basis, the excess can be treated as a payment received in the year of sale.
  • ›Holding is a choice with its own consequences. Some owners keep the property instead of selling, and the basis rules at death are different. That is an estate planning question for an attorney and CPA, not a reason on its own to hold.

Where to start

If your rental has been refinanced or depreciated for many years, find your loan payoff and your adjusted basis before you talk to a buyer. Then ask your CPA to compare the tax on a straight sale with the cash you would actually receive, and ask your Qualified Intermediary what replacing the debt would require. Nothing in this article is tax, legal or investment advice, and every figure above is illustrative.

Ready to see real options?

Get illustrative DST, net-lease, and fund options matched to your situation — free, no obligation.

This article is educational and not tax, legal, or investment advice. 1031 exchanges are complex — consult your own CPA and attorney. DST and fund offerings are securities available to accredited investors only; all examples are illustrative.