
You’ve collected rent checks for years, maybe decades. Somewhere in there came the first broken water heater and the third tenant who vanished owing two months’ rent. Now you’re ready to sell, and someone drops three terms on you: capital gains tax, depreciation recapture, and net investment income tax. A good investment suddenly feels like it’ll cost you a quarter of your equity on the way out.
It doesn’t have to go that way. There are legal, IRS-approved ways to cut or defer what you owe. Plenty of landlords leave real money on the table because nobody walked them through the options before closing day.
What You Need to Know Before You Sell
Sit across the table from enough sellers, and you hear the same line. “I just want to know what I’m going to walk away with.” That’s the right question, and tax turns out to be a big part of the answer.
The IRS taxes your profit in two separate buckets, and most people plan for only one. Capital gains tax hits the rise in your property’s value since you bought it. Hold the place more than a year, and that gain gets taxed at 0%, 15%, or 20%. Depreciation recapture hits something else entirely: every depreciation deduction you took while tenants lived in it. That one gets taxed at your ordinary rate, and it carries a ceiling all its own.
One pattern shows up again and again. A couple never planned to be landlords. They inherited a house, turned it into a rental, and kept it because the income helped. Nineteen years later they want out, and nobody has ever told them what the exit costs. Know that number early, and you can build the sale around it.
Selling costs matter too. On a traditional listing, plan for 6% to 10% of the sale price once you count commissions and closing costs. Commissions carry most of that, and they come off the top of your proceeds. The national median existing-home price hit $434,100 in July 2026, up 2.0% in a year and the 37th straight month of gains. At those rates a mid-priced sale costs a seller roughly $26,000 to $43,000 before the IRS gets a look.
What Is Capital Gains Tax on Rental Property, and How Does It Work?
Capital gains tax on a rental looks like simple math. Sale price minus purchase price, then pay a percentage. It isn’t.

All those write-offs cut your basis, so the numbers shift before you start. Your profit is your sale price minus your adjusted basis. That basis sits well below what you paid, because every year of depreciation chipped away at it. Your taxable gain ends up larger than the raw price growth.
Real estate gains split into short-term and long-term. Hold an asset for more than one year, and the gain is long-term. Hold it for exactly a year or less, and it’s short-term, taxed at ordinary rates that reach 37%. Getting past that one-year mark is almost always worth it on a big gain.
The 2026 long-term brackets fall like this. Single filers owe nothing while taxable income stays at or below $49,450. Married couples filing jointly get that 0% treatment up to $98,900. Above those lines the rate is 15%, running to $545,500 single and $613,700 jointly. Past that, you pay 20%.
One more layer catches higher earners. The net investment income tax adds 3.8% once your modified adjusted gross income passes $200,000 single or head of household, or $250,000 filing jointly. Add that to the top long-term rate, and you end up with a combined federal rate of 23.8%, before your state takes a share.
What Is Depreciation Recapture, and Why Does It Matter?
Skip this section and you’ll walk into closing thinking you owe one number and walk out owing another.
You take the tax benefit of depreciation while you own the place, and at sale the IRS collects on it. That’s depreciation recapture. On a residential property it goes by the name of unrecaptured Section 1250 gain, and it gets taxed at your ordinary rate with a hard ceiling of 25%. Sit in a lower bracket; you pay less than that ceiling, never more.
Now the part sellers miss: the IRS charges recapture on depreciation you were “allowed or allowable” to take. Never claimed the deduction? You still owe recapture on what you could have claimed. Skipping the annual write-off to dodge the later bill simply doesn’t work.
The IRS lets you depreciate a residential rental’s structure over 27.5 years, land excluded. Fifteen years of those write-offs on a building worth $250,000 comes to roughly $136,000. That whole amount faces recapture when you sell the property.
Appliances and equipment get harsher treatment. Section 1245 property, meaning equipment, machinery, and vehicles, gets recaptured at your ordinary rate with no 25% ceiling. The building carries that ceiling, but the fridge and the HVAC unit you wrote off separately do not, so they can cost you more than you expect. Run the full math with a CPA before you sign a listing agreement.
How Much Tax Do You Owe When You Sell a Rental Property?
Take a landlord who buys a rental for $220,000, with $200,000 of that in the structure. She claims depreciation for twelve years, then sells for $380,000. On paper that reads like a $160,000 gain. The real math covers more ground.
| Step | Amount |
|---|---|
| Purchase price | $220,000 |
| Twelve years of depreciation on a $200,000 structure | $87,000 |
| Adjusted basis | $133,000 |
| Sale price | $380,000 |
| Taxable gain | $247,000 |
| Recapture portion | $87,000 |
| Capital gain portion | $160,000 |
Your adjusted basis is where every calculation starts: what you paid, minus the depreciation you claimed. The gain isn’t $160,000 once you run it properly. It’s $247,000, split between the recapture piece at up to 25% and the capital gain piece at your long-term rate.
A middle-income seller here might owe the full recapture rate on that piece and a lower rate on the rest. Add the 3.8% surtax if income clears the line. Stack those on a gain that size, and the federal bill runs well into the five figures.
State tax sits on top. Most states treat capital gains as ordinary income, and a few high-tax states add another 9% to 13%. None of this information should alarm you. It’s meant to help you price the sale with a clear view of what you net. Talking to a Company That Buys Houses early gives you a chance to model the numbers side by side before you commit to a path.
What Are the Best Legal Ways to Avoid Capital Gains Tax on Rental Property?
“Avoid taxes” sounds like something that lands you in trouble. These strategies don’t. They’re written into the code.

Moving into the rental before you sell is the option sellers ask about most. Live there at least two of the five years before the sale, and you may qualify for the Section 121 exclusion. That shelters up to $250,000 of gain for single filers, or $500,000 for married couples filing jointly. Read the fine print, though, because for a long-time landlord the shelter shrinks quickly. Any stretch after 2008 when the place wasn’t your home counts as nonqualified use, and the gain gets split pro rata across those years. Nineteen years as a rental against two as your home, and roughly a tenth of the gain qualifies, with recapture never qualifying at all. Your CPA can run the fraction before you move a single box.
Another route is harvesting losses from other investments in the same tax year to offset the gain. Investors sometimes time the rental sale alongside a position they’re ready to exit at a loss, which cuts the net taxable gain.
Installment sales spread the gain across several years. You take the price in payments instead of a lump sum, which can hold you in a lower bracket. Irrevocable trusts are another route, and mostly an estate planning one. Both get messy fast, and the details hang on your income, your estate plan, and your goals. You need a tax attorney or CPA here.
How a 1031 Exchange Can Defer Your Tax Bill
None of those options roll every dollar of equity into another investment without writing the IRS a check first. Section 1031 does.
Under Section 1031 of the Internal Revenue Code, you can defer both capital gains and recapture by trading into another like-kind property. The tax waits until you sell the replacement without another exchange. Run the chain over and over, and you can defer across a whole career. At death your heirs get a stepped-up basis that can wipe out the deferred gain. Raise that with your estate attorney before you plan an exit.
The rules leave no room for error. You have to name a replacement property in writing within 45 calendar days of closing on the one you sold. Then you close on it within 180 calendar days, or by your return due date with extensions if that comes first. Both clocks run at the same time, and weekends and holidays count. Miss the 45-day deadline and the exchange usually dies. The IRS can treat the whole thing as a plain sale, leaving capital gains, recapture, and state tax all due that year.
You also have to use a qualified intermediary and never take receipt of the money, actual or constructive. Touch the cash and the deferral is gone. The replacement has to be real estate held for investment or business use, so your home won’t qualify. Rental houses, apartment buildings, commercial buildings, raw land, and some long-term leaseholds all clear the bar.
A 1031 fits when you want to keep growing a portfolio. If you’re done with real estate for good, sell outright and manage the bill another way. Here is how we buy houses if you want to see that route besides the exchange.
When Is the Right Time to Sell Your Rental Property?
The market looks strong, so holding out for a better price next year feels smart. That logic holds up until you price what the rental property costs you right now.
Carrying costs cover property taxes, insurance, upkeep, and vacancy, and a house sitting empty for three months earns nothing while it keeps spending your money. Deferred repairs pile up on top, and a roof that needs work now becomes an emergency next year, which buyers will price into every offer they make. Wait for a higher price while the property slides, and you often net the same or less than selling today in good shape.
Tax timing matters as well. Sell after mid-October, and your exchange window gets squeezed, because the replacement has to close by the earlier of 180 days or your return due date. Begin a 1031 on October 17, 2026, and both those dates land on April 15, 2027. Push the sale a week later, and the return date arrives first, costing you days off the window. Filing an extension gives the full 180 days back, so talk to your CPA before you assume the shorter deadline.
Sell your rental property when the math works, not when the headlines look best. In July 2026, there were 1.54 million homes for sale nationally, a 4.6-month supply. A home spent a median of 29 days on the market before going under contract. Closing adds another four to six weeks after that. Waiting a year for growth that may never arrive, paying carrying costs the whole time, and maybe missing a good tax position is a gamble that doesn’t always pay.
Can You Sell a Rental Property with Tenants Still Living There?

An occupied property creates friction at sale time, and the rules are tighter than most landlords assume.
When a buyer takes over an occupied property, the leases transfer with it. The new owner becomes the landlord, and a sale does not end a lease or evict anybody. Tenants keep the right to stay until their agreement runs out. State law adds more rules on top of that.
A month-to-month tenant gives you room. You can usually end one with proper written notice, though the notice period changes by state. Texas asks for one month’s written notice under Section 91.001 of the Property Code, whatever the tenant’s length of stay. California requires 60 days once a tenant passes a year. Some sellers offer a cash-for-keys payment to smooth the exit. In strict rent control cities that run into five figures.
Selling occupied isn’t impossible, and many investors actively prefer it, because a tenant in place means rent from day one. Your buyer pool shifts from owner-occupants to investors, which can speed things up. They know income property and don’t need it vacant and show-ready. We buy houses with tenants in place, so nobody has to move out before you close. The same goes when we buy houses in Arlington with a lease still running.
How to Sell a Rental Property Step by Step
What happens between the day you decide to sell and the day you get paid?
Start with your numbers. Pull together four things:
- Your original purchase price
- Total depreciation claimed
- Any capital improvements you made
- Your current mortgage payoff
Those four feed your cost basis and give you a real net sheet before you talk to anybody.
Get a tax estimate from a CPA who handles real estate, and do it before you set your price. Knowing the bill before closing is what lets you pick an exit: a straight sale, a 1031 exchange, an installment sale, or a direct sale.
Then choose the method that fits your property and your timeline. A listing through an agent works when the property is vacant, in good shape, and you have time to run the process. A direct cash sale cuts that to two to four weeks, skips showings, and sidesteps the commission. You pick the closing date. Landlords who would rather skip all of that can see what cash home buyers in Irving offer instead.
Disclose everything accurately, because rental property carries a list of its own: the leases, current rents, security deposits, known repair issues, and any rent control status. Buyers who find problems after closing come after sellers. Full disclosure on the property is what protects you.
Close with a real estate attorney on the final numbers. Check that the tax forms match your CPA’s numbers. Confirm the accommodator is holding funds correctly on a 1031, and make sure the security deposits transfer to the new owner.
One case we hear about all the time. A landlord watches two agent listings expire over fourteen months with no offers. The property is occupied, every showing feels like an imposition on the tenant, and nothing moves. An offer on the property as-is and occupied, with no showings at all, is sometimes the fastest and cleanest path.
Frequently Asked Questions
How Can I Avoid Paying Capital Gains Tax When I Sell My Rental Property?
Four strategies do the work here. A 1031 exchange defers the tax on a replacement property. Moving into the rental can help you reach the Section 121 exclusion, though those years cut it down. An installment sale spreads the gain out over time. Harvesting losses elsewhere offsets it. Section 121 cannot shelter recapture, so even sellers who qualify for the home exclusion still owe some tax. Get a CPA involved before you sign anything.
How Long Do You Need to Own a Rental Property to Avoid Capital Gains?
Hold a rental for more than one year and you get long-term rates. Those top out at 20%, against ordinary rates that reach 37%. For the Section 121 exclusion, you need to have lived in the property as your main home for at least two of the five years before the sale. A 1031 exchange turns on what you do with the money, not on how long you held the property. The replacement does have to be held for investment.
How Much Capital Gains Tax Will I Pay on $300,000?
It hangs on your income, your filing status, and how much of the $300,000 is recaptured depreciation versus plain growth. The recapture piece caps at 25%, and the rest lands at 0%, 15%, or 20% depending on your bracket. A married couple in the top 20% bracket would owe $60,000 on a $300,000 gain, before state tax or the 3.8% surtax. Where recapture makes up part of the gain, the bill runs higher. Run the real numbers with a tax pro using your basis and depreciation schedule.
What Are Some Loopholes in the Capital Gains Tax on Real Estate?
“Loophole” oversells it, though several IRS-approved moves do cut or defer what you owe. The 1031 exchange is the biggest deferral tool investors have. The stepped-up basis at death lets heirs inherit a property and sell it, owing no tax on decades of growth. Installment sales and charitable remainder trusts each fit specific cases. Opportunity Zone investments do too, though the program is mid-transition right now, with new zones taking effect January 1, 2027. None of these are shortcuts, and each carries its own rules, timelines, and costs. None erases recapture without a structure like a charitable trust.
Trying to work out what selling your rental really means for your bottom line? We’re happy to walk through it with you. We buy rental property as-is, occupied or vacant, and we can put a cash offer in front of you with no obligation to accept it. Please fill out the form on our site or reach out to Company That Buys Houses whenever you’re ready to see the numbers. No pressure and no obligation.
Helpful Texas Blog Articles
- Seller Didn’t Disclose Termite Damage in Texas
- What Can I Write Off When I Sell My House in Texas?
- Selling an Inherited House in Texas
- Avoid Closing Costs When Selling Your House in Texas
- Selling Your House Without A Realtor In Texas
- How to Sell a House During a Divorce in Texas
- Sell Your Home Below Market Value in Texas
- Documents Required for Selling Inherited Property in Texas
- Selling a House With Water in the Crawl Space in Texas
- How To Sell A Fire-Damaged House In Texas
- Selling A House With A Lien In Texas
- How Long to Live in a House Before Selling
- How To Sell Rental Property Without Paying Taxes
