
Selling a rental hands you two tax bills, and most owners only plan for one. They budget for capital gains, forget about depreciation, and then the accountant calls in April with a number nobody expected. If you want to sell a rental property without paying taxes, start with this: you can legally shrink both bills. In the right setup, you can push them off for years. Those moves only work if you know about them before closing, though, and I’ve bought from enough landlords to see the same mistake over and over. Tax planning gets handled last, when it belongs at the very start, before the property ever hits the market.
How Does Capital Gains Tax Work on a Rental Property Sale?
Prices have kept climbing. The National Association of Realtors put the September 2026 median existing-home price at $417,500, the 39th straight month of year-over-year gains. That’s good news for your equity. It’s less fun at tax time, since the IRS taxes your gain, and your gain has nothing to do with your mortgage payoff or the size of the check you walk away with.
Start with the sale price and subtract your selling costs. Then subtract your adjusted basis, which is what you paid, plus capital improvements, minus every dollar of depreciation you claimed. That last step trips up a lot of the sellers I’ve bought houses from. A new roof, new windows, or an added bathroom raises your basis and shrinks the taxable number. Patching drywall or swapping a faucet doesn’t count.
Hold the rental for more than a year, and the profit gets long-term capital gains rates of 0%, 15%, or 20%, depending on your taxable income and filing status. Sell within twelve months, and it’s short-term, which just means your ordinary bracket. Higher earners can also owe the 3.8% net investment income tax on top.
Lost paperwork costs sellers real money, and most never notice. Maybe the closing statement from 1998 is gone, or the receipts for the garage rebuild went out with the recycling. Every improvement you can prove lowers the capital gains profit the IRS gets to tax. I’ve seen shoeboxes of old receipts save owners real money at my closing table. Don’t toss anything until your CPA has looked.
If you’re looking for a simpler way to sell your rental, you can request a cash offer from us. Contact us to see what your property could sell for without making repairs or going through the traditional listing process.
What Is Depreciation Recapture and How Much Will You Owe?
Plenty of investors never see this one coming. The IRS taxes the depreciation you were allowed to take, whether you claimed it or not. Skipping the deduction on your returns doesn’t get you off the hook at closing. You just paid more tax during the rental years and still owe at the end.
That slice of the profit is called unrecaptured Section 1250 gain. It’s taxed at your ordinary rate, capped at 25%, so it lands above the long-term capital gains brackets and below the top ordinary rate. Own a property for fifteen or twenty years, and this number gets big. Depreciation piles up quietly every year the property is rented.
Appliances, carpet, and anything a cost segregation study broke out get different treatment. That’s Section 1245 property. Recapture on it comes back as ordinary income at your full rate, which tops out at 37%. Investors who front-loaded deductions with cost segregation sometimes forget they were borrowing from their future selves.
Picture a landlord who bought a duplex decades ago and depreciated it on schedule. The recapture bill can end up bigger than the tax on the rise in value. I’ve watched sellers do napkin math at the kitchen table with only the long-term rate, then learn the real bill is half again as large. Sit down with a tax professional and get actual numbers before you sign a listing agreement or accept an offer. All of this lands on Form 4797, and March is a bad time to meet that form for the first time.
Can You Sell a Rental Property Without Paying Taxes?

“Sounds like something that gets you audited.” I hear that a lot. It isn’t, because every strategy here sits right in the tax code, and the IRS publishes instructions for each one.
Section 1031 is the big one. Roll the proceeds from one investment property into another like-kind property, and the tax is deferred. It isn’t forgiven, since the old gain carries into the new property’s basis. Two deadlines run the whole process, and both start the day you transfer the property you’re giving up. You have 45 days to identify replacement property in writing. You have to close within 180 days, or by your return’s due date with extensions, whichever comes first. A qualified intermediary holds the money the entire time.
Owners selling a main home get a different break under Section 121. If you owned the home and lived in it as your main residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain. Married couples filing jointly can exclude up to $500,000. IRS Topic 701 covers both tests. There’s one catch. A house you got through a 1031 exchange has to be held at least five years before this exclusion is available.
Capital losses can shrink your capital gains, too. Sell a losing stock position, or a second rental at a loss, in the same tax year, and that loss offsets gain on the rental property you sold.
Early last year, a longtime landlord in San Bernardino, California, called me in the middle of a divorce. Neither spouse wanted the duplex. The detached garage was still stacked with paint cans from a repaint nobody finished. What they wanted most was a firm date. We closed on a Tuesday, and their attorneys split the proceeds that same week, which is about as fast as these sales ever move for me. If you’re considering a sale, cash home buyers in Los Angeles and other California cities can provide another option to compare with a traditional listing.
What Changes When Your Rental Used to Be Your Home
A lot of investors figure they can move back into a former rental for two years, sell, and let the main residence exclusion wipe out the gain. It won’t. The exclusion never covers depreciation you claimed while the place was rented. That piece stays taxable as unrecaptured Section 1250 gain, however long you live there afterward.
Years of rental use can also shrink how much of the remaining gain you’re allowed to exclude. IRS Publication 523 walks through who qualifies and the worksheets step by step. Hand it to your preparer. Price out the result before you commit two years of your life to the plan.
Converting the other way has its own trap. If the replacement property from a 1031 later becomes your residence, that five-year clock still applies before you sell.
Mixed-use properties get murkier. Live in one unit of a duplex and rent the other, and a single closing statement splits into two tax treatments.
None of this means the strategies fail. Your math just has to run on your own facts and your own depreciation history. Have someone who sees the whole picture run it. Free internet advice on rental property taxes is worth about what you paid for it, and yes, I’m aware I’m writing on the internet.
When Is the Best Time to Sell Your Rental Property?

Owners usually get the strategy right and the calendar wrong. Close in late October with a 1031 underway, and your 180-day window runs past the next filing deadline, so extending your return becomes part of the plan. Close in February and you’ve got room to shop for replacement properties.
Buyers have more leverage right now, too. Inventory hit 1.60 million homes in September 2026, up 4.6% from a year earlier. Freddie Mac’s 30-year fixed rate averaged 6.86% across its September readings, and it reached 7.40% by mid-October. Properties are sitting longer as a result. Realtor.com data tracked by the St. Louis Fed put median days on market at 61 in September, up from 53 in June.
Sellers who still price like it’s 2022 end up watching a rental sit empty for two months. All the while, carrying costs eat the premium they held out for. Landlords who’d rather not wait it out can see how we buy houses in California for cash, tenants and all.
Vacancy timing deserves a hard look. An empty unit shows better to retail buyers, yet it earns zero rent while taxes, insurance, and the mortgage keep coming. Investors buy income. Owner-occupants buy condition. Decide which buyer you’re after first, then decide whether the lease stays.
Personal timing can matter more than either. Retiring next year into a lower bracket, or taking a big loss somewhere else, can change what you owe more than waiting on the market would.
If you want to avoid waiting on the market, Eazy House Sale can provide a cash offer for your rental property based on its current condition. There’s no need to wait for a tenant, make repairs, or keep paying carrying costs while the property sits.
Can You Sell a Rental Property with Tenants Still Living There?
Yes. Selling with good tenants in place is often smarter than emptying the building first.
A lease stays with the property when the owner changes. Sell a unit with ten months left on a fixed-term lease, and the buyer inherits the tenancy, the rent, and the security deposit. Month-to-month setups bend more easily, though state and local notice rules still apply, and some cities require relocation payments. A local housing authority or a landlord-tenant attorney can confirm the notice period where your property sits.
Tenants who feel blindsided turn into a problem fast. They refuse showings, the lawn goes unmowed, and the listing photos look like a crime scene. I’ve had sellers hand me keys to properties where the tenant hadn’t been told a thing. I’ve also had sellers talk it through over coffee first. That second group closes cleaner every time.
Investor demand backs this up. Investors and second-home buyers made up 20% of September 2026 transactions, according to NAR, up from 15% a year earlier. That buyer doesn’t want your tenant gone. They want the rent roll and the lease.
Cash-for-keys works when a tenancy really does need to end. You offer a sum to move out by a set date, put it in writing, and skip an eviction that could drag past your closing. Some tenant situations are messy enough that no retail buyer will touch them, and I’ve seen that stall sales for months. Selling directly to a local buyer lets you hand over the property with the tenants still in it. You skip showings, too. Before you serve any notice, find out whether you can evict a tenant if you sell your house in Los Angeles and what the rules require.
How Do You Sell a Rental Property Step by Step?

Get the order wrong, and a paperwork slip can cost you a six-figure deferral. A 1031 exchange can fail the moment sale proceeds hit your bank account, even for a day, even by accident.
Start with your basis file. Pull the closing statement from when you bought, receipts for every improvement, and the depreciation schedules from past returns. Your CPA or prior preparer can usually print that history in an afternoon. Next comes the projection. Ask your tax professional to estimate capital gains tax and depreciation recapture two ways, as a straight sale and as a deferred exchange. Seeing both numbers on paper usually chooses you.
Third, pick your exit before the property goes on the market. An exchange means hiring a qualified intermediary and signing their documents before closing. Selling outright means choosing between retail exposure, an investor buyer, or a direct cash sale.
Fourth, handle the tenancy. Tell renters in writing, gather lease copies and deposit records, and set showing rules everyone can live with. Fifth, price against what’s actually closed nearby in the last 60 to 90 days, and ignore what hopeful neighbors are asking. Finally, close and file. You report the sale whether you owe anything or not, and an exchange goes on Form 8824 for the year of the transfer.
Could you carry the property another two or three months if the first buyer’s financing falls apart? If that question makes you uneasy, a direct sale to a company that buys houses in Glendale and the surrounding California cities takes lender risk off the table, since there’s no lender involved.
Frequently Asked Questions
How Can I Avoid Capital Gains Tax When I Sell a Rental Property?
Most owners end up using one of a few paths. A like-kind exchange defers capital gains tax if you reinvest in another investment property and hit both deadlines above. The primary residence exclusion can wipe out a big chunk of gain once you’ve met the ownership and use tests. Capital losses harvested elsewhere in the same tax year offset gains dollar for dollar. Holding the property until death passes a stepped-up basis to your heirs.
How Much Tax Will I Pay on a $300,000 Rental Property Sale?
Your sale price doesn’t set the tax bill. Your basis does. Say you bought for $180,000, claimed $50,000 in depreciation, and sold for $300,000 with $20,000 in closing costs. Your adjusted basis is $130,000, and your gain is $150,000. The $50,000 tied to depreciation is taxed as unrecaptured Section 1250 gain at up to 25 percent. The other $100,000 gets long-term capital gains rates of 0, 15, or 20 percent, depending on income. You might also owe the 3.8 percent net investment income tax, plus whatever your state charges.
Do I Pay Capital Gains Tax If I Reinvest the Money?
Not automatically. Buying another property with the proceeds does nothing on its own. The deferral comes from the structure, with a qualified intermediary holding the funds and both deadlines met. If you take the check at closing and shop for a new rental the following month, you owe tax on the sale you already made.
What If the Property Sells for Less Than I Paid?
You may get a better break than you’d expect. A rental you’ve held more than a year and actually used as a rental is usually Section 1231 property, and a net loss there is treated as an ordinary loss. That means it can offset wages and other ordinary income without the $3,000 annual cap that applies to capital losses. A personal home sold at a loss gets no deduction at all. Keep in mind that depreciation lowers your basis, so a sale that feels like a loss can still show a taxable gain once your preparer runs the adjusted numbers. Owe the lender more than the rental is worth? It may make sense to short sell rental property in Los Angeles instead of waiting on foreclosure.
If you’re in the middle of weighing an exchange against a clean exit, start by learning what a simple as-is sale would net you. That number gives you a baseline for everything else. Reach out to us at (855) 915-1382 whenever you’re ready, ask anything you need, and run the offer by Eazy House Sale before you decide. Finding out costs nothing, and the answer comes with no obligation.
Helpful California Blog Articles
- How Much It Costs to List a Home on the MLS in California
- Appraisal Required Repairs in California
- How To Sell A House With Foundation Issues In California
- Do Sellers Pay Closing Costs In California
- Do You Need a Lawyer to Add a Name to a House Deed
- How Long Should You Live in a House Before Selling in California
- How to Sell a Flooded House in California
- Selling a House with Solar Panels in California
- How to Sell a Rental Property Without Paying Taxes
