Selling a rental property has two moving parts most owners underestimate: a federal tax bill that can approach 29% of your gain once capital gains, depreciation recapture, and the net investment income surtax stack together, and a set of legal duties to the tenants living there. Knowing how to sell a rental property well means planning for both before you list, because the tax strategies that save real money (a 1031 exchange, a partial primary-residence exclusion) run on deadlines, and the tenant rules govern what you can do from the day you decide to sell.
What You’ll Owe in Tax
Your taxable gain is the difference between the sale price and your adjusted basis. Adjusted basis starts with what you paid for the property (including purchase closing costs), goes up for capital improvements like a new roof, an HVAC replacement, added square footage, a kitchen remodel, or new flooring, and goes down by every dollar of depreciation you claimed. The trap in that last piece: the IRS reduces your basis by the depreciation you were allowed to claim, even if you never actually took the deduction on your returns.1Internal Revenue Service. Publication 527, Residential Rental Property
Routine repairs and maintenance don’t add to basis; only true capital improvements do. Keep receipts, because every qualifying dollar of improvement reduces your taxable gain at sale.
The Capital Gains Rate
If you’ve owned the property longer than a year, the profit is a long-term capital gain. For 2026, most sellers pay 15% at the federal level. The 20% rate applies above $545,500 for single filers and $613,700 for married couples filing jointly. Sellers with lower incomes may pay 0% on some or all of the gain.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Depreciation Recapture at 25%
Beyond the capital gains rate, you owe a separate tax on all the depreciation taken (or allowed) during ownership. This is unrecaptured Section 1250 gain, and it’s taxed at a flat 25% regardless of your bracket.3eCFR. 26 CFR 1.453-12 – Allocation of Unrecaptured Section 1250 Gain
An example makes the math concrete. You bought a rental for $300,000, claimed $80,000 in depreciation over ten years, and sell for $350,000. Your adjusted basis is $220,000 and your total gain is $130,000. The first $80,000 is taxed at 25% ($20,000). The remaining $50,000 is taxed at your capital gains rate of 15% or 20%. Sellers routinely forget the recapture piece and end up short at tax time.
The 3.8% Net Investment Income Tax
Higher-income sellers face a 3.8% surtax on net investment income, which includes the gain from selling a rental. It applies to the smaller of your net investment income or the amount your modified adjusted gross income exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately). These thresholds are not indexed to inflation and haven’t moved since 2013.4Internal Revenue Service. Topic No. 559, Net Investment Income Tax
Stack the three together — 20% capital gains, 25% recapture, and 3.8% NIIT — and portions of a profitable sale can face a federal rate near 29%. State income tax, where it applies, sits on top of that. Seller closing costs (agent commissions, title insurance, escrow, transfer taxes, attorney fees) also reduce your taxable gain, so keeping detailed records of every cost tied to the sale matters for the tax return as much as for your net.
Deferring the Tax With a 1031 Exchange
A Section 1031 exchange defers all of the taxes above by rolling your proceeds into another investment property of equal or greater value. “Like-kind” is broad for real estate: a warehouse, a vacation rental, or vacant land can all qualify, so long as the replacement is held for investment or business use.5Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment
The timing rules are strict and unforgiving. You have 45 days after your sale closes to identify replacement properties in writing. You then have 180 days from the sale date to close on the replacement, or until your tax return is due for the year of the sale (including extensions), whichever comes first. Sellers who close late in the year and don’t file for an extension often collapse the 180-day window without realizing it.
You cannot touch the money. A qualified intermediary must receive the sale proceeds at closing and pay them directly to the seller of your replacement property. If the funds land in your account even briefly, the exchange fails and the full tax bill comes due. Line up the intermediary before you close on the sale, not after.
The Partial Exclusion for a Former Home
If you lived in the property as your primary home before renting it out, Section 121 may let you exclude up to $250,000 of gain, or $500,000 for married couples filing jointly. You must have owned and used it as your main home for at least two of the five years before the sale.6Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
Time spent as a rental after 2008 counts as “nonqualified use,” and gain is allocated between qualified and nonqualified periods. If you owned the property for ten years, lived in it for four and rented it for six, roughly 60% of the gain is taxed normally and 40% is eligible for the exclusion up to the cap. Depreciation recapture still applies to the rental years, so the 25% tax on prior depreciation deductions doesn’t go away.
Your Legal Obligations to Tenants
Selling doesn’t void an existing lease. In nearly every jurisdiction, the lease travels with the property, and the buyer inherits the landlord role on the same terms. Fixed-term tenants have the right to stay until their lease ends. Month-to-month tenants can usually be given notice under local law. Buyers price all of this in: a long lease at below-market rent can depress your sale price, while a solid tenant at market rent can lift it.
Some leases include a termination-upon-sale clause; where those are enforceable, you still have to follow the notice procedures the lease itself spells out. A few jurisdictions give tenants a right of first refusal, meaning you must offer the property to them before listing publicly. In rent-controlled or strong tenant-protection areas, displacing a tenant through the sale can trigger relocation payments running into thousands of dollars per household. Check local rules and your lease language before you commit to a listing date.
During marketing, tenants still get their normal privacy protections. Most jurisdictions require 24 to 48 hours of written notice before entry for photos, showings, inspections, or appraisals, with entries limited to reasonable business hours. Coordinating a showing schedule with tenants early tends to pay for itself; cooperative tenants who keep the place presentable protect your price.
Documentation Buyers Will Want
Buyers of rental property are buying a cash-flow stream as much as a building. Pull these materials together well before you list:
- Profit and loss statements covering the past two to three years, showing gross rental income, operating expenses, and net operating income.
- Current lease agreements for every unit and a rent roll listing each tenant’s name, monthly payment, lease start and end dates, and security deposit amount.
- Maintenance and capital improvement logs with receipts. These support your asking price during buyer inspections and back up your adjusted basis on the tax return.
- Current occupancy permits, certificates of compliance, and recent housing inspection reports. Expired permits can hold up closing.
Tenant estoppel certificates deserve their own step. Each tenant signs a short form confirming the key terms of their tenancy — rent amount, security deposit, lease dates, and whether the landlord owes any unfulfilled promises. Buyers use these to verify that the income you’ve represented matches what the tenants actually agreed to, and their absence is a common last-minute obstacle. Give tenants reasonable time to complete them.
A written notice of intent to sell isn’t legally required everywhere, but it reduces friction. Identify the listing agent, provide a contact for showing requests, and give an approximate listing date so tenants can prepare for the increased activity.
Closing the Sale
A few items at closing are specific to rentals. All tenant security deposits must transfer to the buyer, usually as a credit on the closing statement that reduces your net proceeds. The buyer assumes responsibility for those deposits going forward, and your liability ends once the transfer is documented. Keep a clean accounting of every deposit; disputes over missing or misapplied deposits are one of the most common post-closing headaches in rental sales.
After closing, send every tenant a formal letter announcing the ownership change with the new owner’s name, contact information, and payment instructions. Many jurisdictions require notice from both the outgoing and incoming owner, so coordinate with the buyer so tenants hear promptly from both sides.