
A landlord called me in August about a duplex he’d owned since the nineties. He wanted a fast closing. Then his accountant ran the numbers on what he’d owe, and the whole conversation changed shape.
When you sell rental property, you don’t pay just one tax. You’re usually facing three or four of them stacked together, and they don’t share a rate. Plenty of careful owners still get caught at the closing table by a bill nobody flagged for them.
Most of that capital gains tax bill can be pushed off or shrunk, and now and then it disappears. Timing is the catch, since the planning has to happen before you sign anything.
What Is Capital Gains Tax on Real Estate?
The IRS figures capital gains tax on real estate from the gap between your sale price and your adjusted basis. Those two numbers usually sit much further apart than the purchase contract suggests.
Your basis starts with what you paid. Add capital improvements like a new roof, re-piping, or an addition off the back. Then subtract every dollar of depreciation you claimed while the place was a rental. That last step is what turns a modest profit into a large taxable gain. Picture a landlord who bought a duplex for $180,000 and wrote off depreciation for two decades. By the time the sign goes in the yard, his basis in the property sits far below what he paid.
How long you’ve held the property decides the rate. Sell after one year or less and the profit counts as a short-term gain. That’s taxed like ordinary income, at rates that top out at 37% federally. Hold longer than a year and the lower long-term rates apply instead.
For 2026, the IRS set the 0% bracket at taxable income up to $49,450 for single filers and $98,900 for married couples filing jointly. The 20% rate starts once taxable income passes $545,500 single or $613,700 joint. Everyone in between pays 15%. Watch the words “taxable income.” Your profit stacks on top of your wages and other income, so one big sale can push you into a higher band.
Sellers often figure their gain as sale price minus purchase price and budget from there. Accumulated depreciation throws that math off, sometimes by six figures on a property held fifteen or twenty years. Pull your old returns and find the depreciation schedule before you decide what the sale nets you. Taxes are only part of the picture, and our guide to selling an investment property in Massachusetts covers the tenant and closing questions too.
What Are the Best Ways to Avoid or Defer Capital Gains Tax on Investment Property?

A 1031 like-kind exchange is the biggest lever most landlords have. Both clocks start together on the day your rental transfers. You get 45 days to identify the replacement property in writing. Closing on it has to happen within 180 days, or by your return’s due date with extensions if that comes first. Weekends and holidays count.
Two details sink more exchanges than anything else I’ve seen. First, the proceeds can never touch your hands or your bank account. A qualified intermediary has to hold them. Second, the identification list has to be written, signed, and delivered on time. A phone call with your agent won’t do.
Any U.S. real property is like-kind to any other U.S. real property for this purpose. A tired single-family rental can become raw land, a strip center, or an apartment building. To defer all of the capital gains tax, you generally need to buy something worth at least as much and reinvest every dollar of cash.
Moving into the rental is the other big lever. Live there as your primary residence for two of the five years before you sell. The Section 121 exclusion may then shelter up to $250,000 of gain, or $500,000 for married couples filing jointly. Two catches trip people up. Depreciation claimed after May 6, 1997 stays taxable no matter what. And rental years after 2008 that came before you moved in usually shrink the share you can exclude.
Installment sales defer part of the gain by spreading it across several tax years, so less of it hits a high rate in any single year. Seller financing works the same way and pays you interest, though you’re trading a lump sum of cash for monthly payments.
Heirs generally inherit property at a stepped-up basis, which is why some long-time landlords never sell. That’s a talk for an estate attorney.
When Is the Best Time to Sell Rental Property to Minimize Taxes?
Sometimes the smartest move is waiting until January. If this year brought a big bonus, a business sale, or a Roth conversion, closing in a lower-income year can drop your gain into a lower band. Retirement works the same way. A landlord who stops working in June and sells the next spring often pays a lower rate on the very same property.
Watch the calendar if you plan to defer through an exchange. Close in November or December and your return’s due date can land before your 180-day window ends. That’s why fourth-quarter exchangers file an extension almost by reflex.
Control over the date is one reason some landlords skip the listing and sell for cash. A rental with deferred maintenance or a tenant in place is hard to show and slow to sell. Naples Home Buyers buys houses in that condition, and sellers tell us the best part is picking their own closing date. If your CPA says December 29 costs less than January 5, you can close on December 29. We buy houses in Russell, Springfield, and the towns around them.
Early last year a young couple inherited a three-bedroom from an aunt, with thirty years of belongings still inside. The garage alone held fishing rods and a stack of half-finished furniture projects. Their siblings wanted the money and none of the cleanout. We bought it as-is on a Friday with everything left in place, and the family split the proceeds instead of their weekends.
What Other Taxes Should You Consider When Selling Investment Property?

Depreciation recapture is its own layer. On a residential rental depreciated the standard way, the part of your gain that matches the depreciation you claimed is called unrecaptured Section 1250 gain. The IRS taxes it at a maximum 25% rate. That’s a ceiling, so lower-income sellers can pay less.
Then there’s the net investment income tax, an extra 3.8%. It kicks in once modified adjusted gross income passes $200,000 for single filers or $250,000 for joint filers. A big gain can push you over that line by itself, and the surtax sits on top of your other rates.
Maybe you ran a cost segregation study and wrote off appliances, carpet, or cabinetry with accelerated depreciation. That depreciation comes back as ordinary income at your full rate, with no 25% cap. Fast deductions feel great on the way in. You pay for them on the way out.
Massachusetts adds its own layer. For 2026, the state taxes long-term capital gains at a 5% rate and short-term gains at 8.5%. Income above $1,107,750 also picks up a 4% surtax, and one large sale can be what puts you over. Connecticut rentals follow that state’s income tax rules, so ask your preparer for that figure.
Closing costs belong in your projection too. Massachusetts charges a deed excise tax of $4.56 per $1,000 of sale price in most counties, and the seller usually pays it. Commissions, prorated property taxes, and repair credits all cut your proceeds, and they shrink the taxable gain as well.
One item works in your favor. Passive losses you couldn’t use in earlier years generally free up when you sell the whole property in a fully taxable transaction. They stay frozen if you exchange. For a landlord who carried losses for a decade, that release can offset a real chunk of the gain, so ask your preparer to check before you assume the worst. If your rental is worth less than you paid, read our breakdown of selling rental property at a loss in Massachusetts before you set a price.
Should You Hire a Financial Advisor to Reduce Taxes on Investments?
A seller came to us planning to cash out of two rentals in the same year. Her CPA split the closings across two tax years and routed one into an exchange. Her federal bill dropped by more than the fee she paid for the advice.
So yes, hire someone, with one caveat. A general financial advisor who mostly picks mutual funds is the wrong fit for a rental property sale. Look for a CPA or enrolled agent who handles exchanges, depreciation recapture, and passive loss carryforwards for real estate investors. Ask how many of those they’ve closed in the last two years.
Expect to pay a few hundred dollars for a consultation and more for the return in the year of sale. Against a five- or six-figure tax bill, that math isn’t close.
An intermediary is a separate hire, and in practice an exchange can’t run without one. Tax practitioners point out that you can’t be in actual or constructive receipt of the money, and the intermediary is what keeps you out of it. Line one up before you go under contract, well ahead of closing.
Skip the paid help when the numbers are small and simple. One rental, a modest gain, income well inside the 0% band, and no exchange planned is a job your usual preparer can handle. If a fast cash sale fits your plan better than a listing, here’s how you can sell your house fast in Massachusetts without repairs or showings.
Sellers lose real money in the gap between contract and closing. Once you’ve signed, your options shrink fast, because an exchange has to be set up before the deed transfers. When a seller calls us and mentions taxes, we suggest a call to their accountant before we put anything on paper. A two-week delay up front can be worth far more than a faster closing. Once your accountant has the tax side mapped out, Naples Home Buyers can help with the sale itself.
What Are Common Questions About Capital Gains Deferral?

Reinvesting in another rental sounds like it should be enough. On its own, it isn’t. Take the check at closing, deposit it, and buy a replacement three weeks later, and the IRS treats the first sale as fully taxable. The exchange has to be in place before the money moves.
Partial deferral is the next place things break. Pull cash out of the exchange or buy something cheaper, and that difference is called boot. Boot gets taxed in the year of the sale. Taking on less debt with the new property can create boot too, which surprises people who think only cash counts.
Deferral isn’t forgiveness, either. Your old basis follows you into the replacement property, so the deferred capital gains tax is still waiting for the day you sell without exchanging. Some investors keep rolling for decades and never pay it. Others exchange once or twice, tire of landlording, and pay on the deferred gain at whatever rates apply that year.
Your own home won’t qualify for a like-kind exchange, and neither will a vacation home you mostly use yourself. Property held for investment or business use does. A vacation home can count if it meets the IRS safe harbor, which requires renting it at a fair price for at least 14 days a year and keeping personal use limited. If you stayed in the unit part of the year, get professional eyes on it before you file.
Missing the identification window ends the exchange. Outside of federally declared disaster relief, there’s no grace period and no extension when a replacement falls through.
What’s the Bottom Line on Selling Rental Property Tax-Free?
Selling a rental with zero tax owed is possible but uncommon. For most owners the realistic goal is deferring the big piece and trimming the rest. Released losses help, and so does picking a lower-income year. An exchange, the home sale exclusion, and a stepped-up basis for heirs are the routes that get closest to zero capital gains tax.
Net proceeds matter more than gross price. I’ve watched owners chase an extra $15,000 in sale price while a six-month listing ate it up in carrying costs, two months of vacancy, and a repair credit at inspection.
One seller learned that the hard way. Her contractor’s estimate to redo a 1978 kitchen came back higher than what it would add to the price, and it didn’t cover the subfloor rot under the dishwasher. She sold as-is, kept the renovation money, and spent an afternoon with her CPA instead of six weekends with a contractor.
A direct cash sale fixes problems a listing can’t, like a tenant in place, a worn-out roof, or a closing date you need to control for tax reasons. If your rental property is out that way, our cash home buyers in Palmer can walk the property with you. You can also reach out to Naples Home Buyers for a no-cost offer and compare it with what a renovated listing would net after commissions and tax.
Frequently Asked Questions
Can You Avoid Capital Gains Tax by Reinvesting in Another Property?
Only through a properly structured like-kind exchange, with an intermediary holding the funds. Buying another rental with money that passed through your own account doesn’t defer anything, however fast you buy. Set the exchange up before closing and meet the 45-day and 180-day deadlines, and the capital gains tax deferral holds.
How Much Capital Gains Tax Would I Owe on a $300,000 Gain?
It depends on how much of the gain came from depreciation and what other income you had that year. The depreciation slice is taxed first, at up to 25%. The rest falls into whichever long-term band your total taxable income reaches. A retired couple with little other income can pay far less on the same amount than a high-earning household. Higher earners may owe the investment income surtax on top.
How Can I Pay No Taxes on Rental Income While I Still Own the Property?
Depreciation is the main reason many profitable rentals show a paper loss. Mortgage interest, insurance, property taxes, management fees, and repairs are all deductible against rental income. Depreciation often erases what’s left. Every dollar of it lowers your basis, though, so you’re pushing tax into the sale year rather than escaping it.
How Much Do You Pay the IRS at Closing When You Sell a House?
Usually nothing at the closing table. Your title company files a Form 1099-S reporting the sale to the IRS, and you pay the actual tax when you file your return for that year. Foreign sellers are the exception, since federal law requires withholding at closing on their sales. A big gain may also call for an estimated tax payment, so ask your CPA whether one is due before you file.
If you’re weighing a sale and want to see how it looks without a listing or a renovation, contact us and we’re glad to go through the numbers with you. There’s no obligation, and no hard feelings if the answer is to hold on another year.
Helpful Massachusetts Blog Articles
