1031 Exchange When Selling at a Loss
A lower price does not always mean no gain
If you sell investment property for less than its adjusted basis, there is no gain to defer and a 1031 exchange may not be needed. But depreciation lowers your basis every year you own the property, so a building can sell below its purchase price and still produce a taxable gain. Have a CPA compute the adjusted basis before you decide.
The basis worksheet: 5 parts. The start is free on this page.
Updated November 15, 2026 by Private Exchange Group. 2 minute read. Not tax or legal advice.
The short version
- Gain is measured against adjusted basis, not purchase price, so depreciation can create a gain even when the price fell.
- The IRS reduces basis by depreciation you deducted or could have deducted, even in years you never claimed it.
- A loss realized in a like-kind exchange is not recognized, so exchanging a property with a true loss defers the loss too.
- A net Section 1231 loss is an ordinary loss, which is why a true loss deserves a CPA's review before any exchange.
The price fell and the tax bill may not have
An owner who sells a building for less than they paid often assumes there is nothing to tax. That assumption skips a step. The tax code measures gain from your adjusted basis, not from the price on the original closing statement. For rental and commercial property held a long time, years of depreciation can put adjusted basis well below what you paid.
The IRS defines a gain as the amount you realize on a sale above the property's adjusted basis, and a loss as adjusted basis above the amount realized. Basis starts with what you paid, goes up for capital improvements and goes down for depreciation. That last adjustment is what turns many below-cost sales into taxable ones.
Depreciation lowers basis whether you claimed it or not
IRS Publication 551 tells owners to decrease basis by the depreciation they deducted or could have deducted. If you never took a depreciation deduction, basis still goes down by the full amount you were entitled to. Owners who skipped depreciation on a rental get the worst of both: no deduction in past years and a lower basis now.
Gain tied to that depreciation also has its own rate. The IRS says unrecaptured Section 1250 gain from selling real property is taxed at a maximum 25% rate, while other long-term capital gain is taxed at 0%, 15% or 20% depending on taxable income. Your CPA splits the gain between those categories.
Before closing or not at all
Three ways a sale stops being an exchange
Touch money. Pay tax.
If the proceeds are paid to you or to someone acting for you, the sale is taxable. The intermediary has to be in place before the closing.
Day 45 passes
You have 45 calendar days from the closing to name, in writing, the property you may buy. Weekends and holidays count.
You come out with cash
Cash you keep, or a loan you pay off and do not replace, is taxed up to the amount of your gain.
General rules, not tax or legal advice.
A worked example with a shopping center
Say an owner bought a shopping center for $3,000,000 and over the years claimed $900,000 of depreciation, with no improvements. The adjusted basis is now $2,100,000. A buyer offers $2,600,000, which is $400,000 less than the purchase price. The table shows why that sale still produces a gain. These are round hypothetical numbers that leave out selling costs and other adjustments.
In that example an exchange could defer a $500,000 gain, and because the gain is smaller than the depreciation taken, a CPA would likely treat it as unrecaptured Section 1250 gain. Change the facts and the answer flips. Had the owner claimed only $200,000 of depreciation, adjusted basis would be $2,800,000 and the same sale would show a $200,000 loss, with nothing to defer.
Swipe the table sideways to see every column
Example only, using round hypothetical numbers
When the sale is a true loss
If the numbers show a true loss, an exchange can work against you. Section 1031 says no gain or loss is recognized on a qualifying exchange, and IRS Publication 544 states that if you realize a loss on the exchange, no loss is recognized. The loss is not deducted this year and carries into the basis of the replacement property.
Publication 544 also says a net Section 1231 loss is an ordinary loss, and rental real estate used in a business and held more than 1 year generally falls under Section 1231. An ordinary loss can offset other income in ways a capital loss cannot. Whether that helps you depends on the rest of your return, which is your CPA's call.
The sensible order is numbers first and structure second. Ask your CPA for adjusted basis and estimated gain before you list, or start with our capital gains estimator. If there is a gain, the exchange must be opened before closing. If there is a true loss, you may not need an intermediary at all, and PEG will tell you so.
Questions people ask
If I sell for less than I paid do I still owe capital gains?
You might. Tax is figured on the amount you realize minus your adjusted basis, not minus the original price. Depreciation lowers adjusted basis every year you own a rental or commercial property, so a sale below your purchase price can still show a gain. A CPA can compute your adjusted basis from your returns and closing statements.
Should I do a 1031 if my property lost value?
Only if the numbers show a gain. When adjusted basis is above the sale price there is nothing to defer, and an exchange would only push the loss into the next property's basis. When depreciation has pushed basis below the sale price, an exchange can defer that gain. Your CPA should run both sets of numbers before you open anything.
Can I deduct a loss on a 1031 exchange?
No. Section 1031 provides that no gain or loss is recognized on a qualifying exchange, and the IRS confirms that you cannot recognize a loss in a like-kind exchange. A loss you would otherwise deduct carries into the replacement property's basis. That is why owners with a true loss usually look at a regular sale with their CPA first.
How do I find my adjusted basis on a rental?
Start with the purchase price and certain purchase costs, add the cost of capital improvements, and subtract the depreciation you claimed or were entitled to claim. Your closing statement, improvement invoices and past returns with depreciation schedules hold most of what you need. IRS Publication 551 explains each adjustment, and your CPA confirms the final figure.


Know where you stand before you close
Tell us when the sale closes and what you own. You will hear where you stand and what has to happen first.
- Whether the property qualifies
- Your 2 deadlines on a calendar
- What your closing agent needs
Asking commits you to nothing. It keeps the option open.
