Selling Investment Property: Taxes and Your Options
Selling a rental or other investment property comes down to three questions asked in order: what the sale would cost in tax, which way out fits, and what has to be signed before the closing. This page takes them in that order, through to day 180.
When you sell an investment property owned for more than a year, the gain is taxed in layers: the depreciation you took, or were allowed to take, comes back at up to 25%, the rest is taxed at 0%, 15% or 20%, a 3.8% surtax applies above set income levels, and your state adds its own tax. Your options are to pay it, defer it with a 1031 exchange into another property or into Delaware statutory trust interests, spread it with an installment sale, move the gain into a qualified opportunity fund, or keep the property. Decide before you sign the sale contract, because an exchange needs a qualified intermediary in place before the closing.
What a sale triggers: three federal layers of tax, then your state
Gain equals the sale price net of selling expenses, minus adjusted basis: what you paid plus improvements, less depreciation. Under section 1016(a)(2) basis falls by the depreciation allowed or allowable, and Publication 551 is blunt that a deduction you never took still cuts basis by the full amount you could have taken. A rental held longer than a year is section 1231 property reported on Form 4797, and its gain is long-term (Publication 544; IRS Topic 409).
Depreciation layer. Gain equal to the straight-line depreciation is unrecaptured section 1250 gain, charged at your ordinary rate with a 25% cap under section 1(h)(1)(E). Depreciation recapture on a rental property sale covers this layer in full.
Appreciation layer. The rest is taxed at 0%, 15% or 20%. In 2026 the 0% rate covers taxable income up to $98,900 for joint filers and $49,450 for single filers, and the 15% rate runs to $613,700 and $545,500 respectively (Rev. Proc. 2025-32).
Net investment income tax.Section 1411 charges 3.8% on whichever is smaller: your net investment income, or modified adjusted gross income above $250,000 on a joint return or $200,000 for a single filer. Rental sale gain generally counts; the non-passive business exception is in the NIIT and real estate professionals.
Two items from earlier returns can shift the result. Net section 1231 losses from the five preceding years that have not yet been applied turn an equal part of this year's net section 1231 gain into ordinary income, as Publication 544 explains. And a fully taxable sale of your entire interest frees the rental's suspended passive losses under section 469(g), while an exchange keeps them suspended; see passive loss rules for landlords.
Worked example: a single filer sells a rental for $720,000 in 2026
Hypothetical figures at 2026 federal rates. A single filer earns $111,100 of salary and takes the $16,100 standard deduction, leaving $95,000 of other taxable income. In 2015 she bought a rental for $400,000, of which $80,000 was land, and over about eleven years was allowed $128,000 of depreciation on the $320,000 building ($320,000 divided by 27.5 years, times eleven). She sells for $720,000, pays $40,000 of selling costs and pays off a $210,000 mortgage. The year's rent is left out to keep the arithmetic visible.
Step
Amount
Working
Amount realized
$680,000
$720,000 less $40,000 of selling costs
Adjusted basis
$272,000
$400,000 less $128,000 of depreciation
Gain
$408,000
$128,000 of depreciation and $280,000 of appreciation
Depreciation layer
$30,718
$10,700 at 22%, $96,075 at 24%, and the last $21,225, which reaches the 32% bracket, capped at 25%
Appreciation layer
$42,000
15% of $280,000; taxable income of $503,000 stays under the $545,500 line
Net investment income tax
$12,126
3.8% of $319,100, the amount by which modified AGI of $519,100 exceeds $200,000
Federal tax on the sale
$84,844
About 20.8% of the gain, before state tax
After the $210,000 payoff, $470,000 of equity remains. Sold and taxed, about $385,156 of it reaches her before state tax. Exchanged, all $470,000 goes to work: to defer everything she buys at least $680,000 of replacement property and covers the $210,000 payoff with a new loan or cash she adds. The net proceeds calculator starts from your own contract price, and sell vs 1031: the numbers follows both paths forward.
Your options, and how early each one has to be arranged
Every option starts from the same tax figure; they differ in what each asks of you and how early it must be in place. Why each one works, and its limits, are set out in how to avoid capital gains tax on a rental property.
Option
Effect on the tax
What it asks of you
Set up by
Sell and pay
Paid with the return for the sale year
Nothing more; the cash is yours to use
No deadline; plan the payment with your CPA
1031 into a property you pick
Defers every layer
Reinvest the equity, replace the debt, accept a carried-over basis
Intermediary before closing; list by day 45, buy by day 180
1031 into DST interests
Defers every layer
Usually accredited investor status; a passive, illiquid holding
Same deadlines; the interest goes on your 45-day list
721 exchange
Deferral carries into operating partnership units
Holding REIT partnership units rather than real estate
Usually later, from a DST interest; see 721 exchange
Qualified opportunity fund
Defers the gain you invest
Invest only the gain, in an illiquid fund
In the 180-day window that starts with the sale; see opportunity zone
Installment sale
Spreads gain over the years you are paid
Carry the buyer's credit; section 453(i) taxes any ordinary recapture in the sale year
In the purchase contract
Keep the property
No tax now; heirs' basis resets to value at death under section 1014
Before you list: four things to settle while the property is still yours
The weeks before the listing are when choices are still cheap: once the contract is signed its terms are hard to change, and once the sale closes an exchange can no longer start.
Decide in principle whether to exchange. If you might, pick a qualified intermediary and have your agent add a clause in which the buyer agrees to cooperate with an exchange at no cost to it. Already under contract? See property under contract without an intermediary.
Pull the basis records. You need the purchase closing statement, improvement invoices, every Form 4562 and the land and building split. The allowable depreciation reduces basis whether or not you can show what you claimed.
Estimate the tax. Run the expected price through the state-by-state rental sale tax calculator, and ask your CPA about suspended passive losses and recent section 1231 losses.
Price the debt. Get a payoff figure and the prepayment terms. The payoff is the debt an exchange must replace, and the boot calculator shows what is taxed if it is not.
From signed contract to day 180: the order of events
Once the contract is signed, the regulations fix the order and attach a date to each step.
Before closing. The exchange agreement is signed and your rights under the sale contract are assigned to the intermediary, who under Reg. section 1.1031(k)-1(g)(4) must be neither you nor a disqualified person; qualified intermediary requirements explains who qualifies.
Day 0, closing. The buyer pays the intermediary. Money that reaches you, in hand or by right, before the replacement does turns the exchange into a sale under the same regulation.
Day 45, midnight. Deliver a signed list: three properties regardless of value, or more if their total value stays within twice the value of what you sold.
Day 180, or the return's due date if sooner. Close on the replacement. A late-year sale may need an extension to keep the full period, as filing an extension to keep the 180 days explains.
With the return. Form 8824 for an exchange, Form 4797 for a taxable sale, Form 6252 for an installment sale, per the Form 4797 instructions.
Breakwater Exchange works as an advisor and securities broker. We design and place the replacement, whether DST interests, a direct title security or a mix, and keep the dates and figures in step with your intermediary and CPA. We are not an intermediary, attorney or accountant and give no tax or legal advice, so treat this page's figures as a starting point for your CPA. Apartment buildings, groups of houses and commercial buildings have their own pages: selling an apartment building, selling several rental houses and selling commercial property.
For a proposal, send the likely price and closing month, your depreciation schedule or adjusted basis, the payoff amount, where the property sits and where you live, and the income you hope the next holding pays. What a free proposal contains lists what you receive; a free consultation suits you better if you want to talk it through first.
Questions owners ask when selling investment property
How long do I have to own a rental before the gain is long-term?
More than one year. A rental sold after a year or less produces short-term gain taxed at ordinary rates, and the depreciation you were allowed still comes back either way. The line matters mainly for a property bought, repaired and resold quickly, which can also raise questions of dealer status.
Will the closing agent withhold tax from my sale proceeds?
Not for federal tax unless you are a foreign person. Then FIRPTA generally makes the buyer withhold 15% of the amount realized, unless a withholding certificate requested on Form 8288-B lowers it. Some states also hold back a share of the price unless the seller files an exemption form in time, and states that withhold at closing names them.
Which tax forms report the sale of a rental?
A taxable sale of a rental held more than a year goes on Form 4797, an exchange on Form 8824, and an installment sale on Form 6252, all filed with the return for the year of the closing. For what the closing agent tells the IRS, see Form 1099-S and the 1031 exchange.
Does it matter whether I close in December or January?
Yes. The closing date sets the tax year that carries the gain. In an exchange it also matters because the 180-day period ends early if the return for that year falls due first, so a sale late in the year may need an extension; the tax-year straddle works through both effects.
What if I start an exchange and find nothing to identify by day 45?
The exchange fails and the sale is taxed in the year it closed. The intermediary can hand the money back only when its agreement and the regulation allow, which is not always the day after the deadline; when a QI can release funds explains the timing.
Can I keep part of the money and exchange the rest?
Yes. Cash you keep is recognized as gain, capped at your total gain, under section 1031(b), and whatever you reinvest within the deadlines stays deferred. Settle the amount before closing, because once the intermediary holds the funds the exchange agreement limits when you can receive them.
Sources
Last reviewed . The rates, thresholds and rules above were read from these primary sources on that date; tax figures change every year, so ask your CPA to confirm them for the year you sell.
Tell us how far along the sale is; an advisor will reply to set up a first call. Based in Irvine, California. Licensed in all 50 states; we work with sellers everywhere by phone and video.
Three of twelve sample structures: asset class, leverage, minimum and hold. The sponsor, the distributions paid and the offering size are what marketplace access adds, after a short suitability call. Request access and the current list follows.
Sample offering: a hypothetical illustration of this structure type, not an actual or current offering.
Sample offerings: hypothetical illustrations of structure types, not actual or current offerings. Photos are representative of each asset class. Current offerings are private placements for accredited investors, described by private placement memorandum.