What this property or sale question changes
Selling an investment property triggers two separate federal tax calculations, not one. The first is depreciation recapture on the amount you deducted over your holding period, taxed at a rate up to 25 percent under the unrecaptured Section 1250 gain rules. The second is capital gains tax on the remaining appreciation, taxed at long-term rates of 0, 15, or 20 percent depending on your income, plus a possible 3.8 percent net investment income tax if your modified adjusted gross income exceeds the statutory threshold.
Because investment property does not qualify for the Section 121 homeowner exclusion, none of this gain is shelterable through personal-residence rules. The only broadly available deferral tool for real property held for investment or business use is a Section 1031 exchange, which postpones both the recapture and the capital gains portion by rolling the gain into replacement property rather than realizing it in cash.
Building the actual gain number
Start with your original purchase price plus acquisition costs, then add every capital improvement you made and can document: a new roof, a renovated unit, a major system replacement. Subtract total depreciation claimed on Schedule E or Form 4562 over your ownership period; that reduction is what creates your adjusted basis, which is almost always lower than what you paid. Your taxable gain is net sale proceeds, after selling costs and any prorated items, minus that adjusted basis.
Owners who have held a property for a decade or more are frequently surprised that a large share of their gain is depreciation they already benefited from as a deduction, and that portion comes back at the recapture rate rather than the lower capital gains rate.
Depreciation recapture, calculated separately
Recapture applies specifically to straight-line depreciation taken on the building (land is never depreciable), capped at 25 percent regardless of your ordinary income bracket. If you also used cost segregation to accelerate depreciation on components like flooring, fixtures, or site improvements, those components can trigger ordinary-income recapture under Section 1245 rather than the more favorable Section 1250 treatment, which is a materially different result and worth confirming with a preparer before selling.
IRS Publication 544 covers the mechanics of gain calculation and recapture on business and investment property in detail, and is the primary reference for how these two categories interact on a single sale.
How a 1031 exchange changes the outcome
A Section 1031 exchange does not eliminate either the capital gains liability or the recapture liability; it defers both by carrying your adjusted basis into the replacement property instead of resetting it through a taxable sale. To defer the full gain, the replacement property generally needs to be of equal or greater value, financed with equal or greater debt (or offset with additional cash), and acquired through a qualified intermediary under the 45-day identification and 180-day closing deadlines.
Falling short on value, debt, or timing does not disqualify the exchange outright, but it typically creates boot, cash or debt relief that is taxed in the year of the exchange even while the rest of the gain remains deferred.
Alternatives when a 1031 exchange does not fit
Not every seller wants to keep buying replacement real estate on a deadline. An installment sale spreads the gain, and the resulting tax, over the years in which payments are actually received, which can smooth a large gain across lower brackets without the identification and closing timelines a 1031 exchange requires. A qualified opportunity fund investment can defer gain if the proceeds are reinvested within 180 days, under a different set of holding-period rules than a 1031 exchange.
Owners who want to stay in real estate but no longer want to manage a direct property sometimes use a 1031 exchange into a Delaware statutory trust, which holds institutional-grade real estate and is designed to qualify as replacement property while removing landlord duties from the investor.
What to gather before you sell
Pull your depreciation schedule for every year of ownership, your original purchase settlement statement, and receipts for capital improvements. These documents let a preparer separate the recapture portion of your gain from the capital gains portion before you list the property, not after closing when your options have narrowed. If a 1031 exchange is even a possibility, line up a qualified intermediary before signing a purchase agreement, since the exchange structure must be in place before the sale closes.
Run the numbers both ways: what you would net after paying tax outright, and what deferral would require in replacement debt and equity. That comparison, done in advance, is what actually determines whether deferral makes sense for a given sale.
What to clarify before acting on Capital Gains Tax On Investment Property
How capital gains tax is calculated on the sale of rental or investment real estate, what depreciation recapture adds on top, and how a 1031 exchange defers both. The practical review should begin before the property is listed or the closing calendar begins to control the available choices. An early review gives the owner time to correct missing records, compare a taxable sale with exchange treatment, define replacement criteria, and bring the right professionals into the transaction.
Gather purchase and closing records, capital improvements, selling expenses, depreciation schedules, ownership changes, inherited-property documents, debt, and expected net proceeds. Those records turn a broad question into a supportable property-use timeline and an actual estimate of sale proceeds. They also expose issues that generic calculators miss, including periods of mixed use, depreciation that must be accounted for, ownership changes, debt replacement, co-owner differences, and expenses that change adjusted basis.
A sale decision becomes clearer after calculating net proceeds, adjusted basis, eligible exclusions, depreciation recapture, state exposure, and the cost of every alternative. Gross sale price alone does not answer the tax question. The result should be a written set of priorities for the sale: the amount of liquidity needed, the income expected from replacement property, the level of control the owner wants, the management work the owner is willing to keep, and the risks that require additional diligence.
Use the 45-day window for decisions, not discovery.
When a 1031 exchange remains a viable path, define the acquisition brief before the relinquished property closes. Primary and backup candidates should be compared for price, debt, income, control, workload, inspections, insurance, financing, title, sponsor or tenant exposure, and the probability of closing on time. Waiting until identification begins often turns a deliberate strategy into a search for whatever happens to be available.
For an investor exchanging out of a directly managed rental, a DST offers passive replacement ownership that can defer both the capital gains and recapture liability while removing day-to-day landlord responsibilities. Projected income is not guaranteed, private offerings can be illiquid, and sponsor-controlled investments require a complete review of offering documents, fees, conflicts, leverage, property risks, investor eligibility, and suitability through an appropriately licensed professional.
The next useful conversation connects this topic with the rest of the sale. Related questions may include depreciation recapture explained in full, how the 45-day identification rule works, comparing a 1031 exchange to an installment sale. Addressing those questions together helps the owner avoid solving one tax issue while creating an ownership, income, financing, or liquidity problem after closing.