The first tax surprise for a retiring landlord is discovering that the home-sale rules they half-remember do not apply: no $250,000 exclusion, a special 25% rate on years of depreciation (including depreciation they never claimed), a possible 3.8% investment surtax, and two states with their own ideas stacked on top. None of it is avoidable by not knowing about it, and most of it is manageable with timing and structure decided before the sale. This guide walks the full stack with a worked example. It pairs with our tenant-occupied sale guide for the landlord-tenant side, and, as with everything tax, a CPA runs your actual numbers; this page makes you dangerous enough to ask the right questions.
Why a rental is taxed nothing like a home
A primary residence enjoys the friendliest treatment in the tax code; an investment property gets the standard treatment. Three differences drive everything: the section 121 exclusion generally does not apply (unless the conversion timing rules rescue part of it, below), the depreciation you deducted over the years comes back as taxable unrecaptured section 1250 gain, and the gain counts as investment income for the 3.8% net investment income tax. The result is that two identical houses with identical gains, one lived in and one rented, can produce five-figure differences in tax.
Depreciation recapture: the bill for the deduction
Every year you rented the house, you deducted roughly 1/27.5 of the building’s value against your rental income. Each deduction also reduced your basis, and at sale the gain attributable to that depreciation is taxed at up to 25% rather than the gentler capital gains rates (IRS Publication 544). Three points landlords consistently miss:
- “Allowed or allowable” means no opting out. Basis is reduced by the depreciation you were entitled to whether or not you claimed it. Never taking the deduction does not avoid the recapture; it only wastes the deduction. (A CPA can often recover missed years via a Form 3115 catch-up in the sale year.)
- Recapture routinely exceeds the appreciation tax. On a long-held rental with modest price growth, the depreciation slice of the gain is often the larger slice; a rowhome that barely appreciated can still generate a substantial tax bill purely from 27 years of deductions coming home.
- Recapture dies with you. Like all gain, it disappears in the stepped-up basis heirs receive. For elderly landlords, this is the quiet argument for comparing “sell now” against “hold for the estate,” covered in our family guides, before defaulting to a sale.
A worked example with real numbers
A married couple bought a Delco twin for $150,000 in 2004 ($120,000 building, $30,000 land), rented it for 22 years, and sells for $340,000 with $25,000 of selling costs. Roughly:
| Line | Amount |
|---|---|
| Depreciation taken over 22 years (≈ $4,364/yr) | ≈ $96,000 |
| Adjusted basis ($150,000 − $96,000) | $54,000 |
| Amount realized ($340,000 − $25,000 costs) | $315,000 |
| Total gain | $261,000 |
| Unrecaptured §1250 portion, taxed up to 25% | $96,000 → up to $24,000 |
| Remaining long-term gain, taxed at 15% (typical) | $165,000 → ≈ $24,750 |
| NIIT 3.8% if MAGI thresholds crossed | up to ≈ $9,900 more |
| PA income tax at 3.07% on the gain | ≈ $8,000 |
Call it somewhere in the neighborhood of $55,000 to $65,000 across federal and state layers before transfer taxes, on a house that “only” went up $190,000. This is why the planning section below exists, and why no landlord should learn these numbers for the first time from their April tax return.
The converted home: 2-of-5 and the closing window
The most valuable rental-tax facts belong to accidental landlords, people who moved and rented the old house rather than selling it. Under section 121:
- The exclusion survives about three years after you move out. Two of the last five years as your principal residence keeps the $250,000/$500,000 exclusion alive, so a home rented after you left retains eligibility until roughly the three-year mark. Selling in year two of the rental can shelter most of the gain; selling in year four shelters none. For a household sitting on a large embedded gain, this deadline outranks nearly every market-timing consideration.
- Depreciation is never excluded. Even inside the window, gain attributable to post-May 1997 depreciation is taxed as recapture. The exclusion covers the appreciation, not the deductions.
- Rent-first-then-occupy works worse. Years the house was a rental before becoming your residence count as nonqualified use and proportionally reduce the exclusion; the code closed the move-into-the-rental loophole in 2009. The arithmetic still sometimes favors moving in, but it is a fraction, not a full exclusion.
The 1031 exchange, and PA’s new conformity
A like-kind exchange defers the entire tax stack, gain, recapture, and NIIT, by rolling proceeds into replacement investment real estate: a qualified intermediary holds the money, replacements are identified within 45 days, the purchase completes within 180, and Form 8824 reports it. Two regional notes:
- Pennsylvania finally joined. For exchanges in tax years beginning after December 31, 2022, Act 53 of 2022 conformed PA personal income tax to section 1031 (PA DOR bulletin), ending decades as the lone holdout state. Deed transfer taxes still apply to each leg of the exchange.
- The honest tired-landlord question. An exchange into another rental relocates the job you were trying to quit. Retiring landlords who want deferral without tenants sometimes exchange into passive Delaware Statutory Trust interests; others simply pay the tax and buy their freedom outright. Deferral is a tool, not a commandment, and “pay once and be done” is often the right answer for a single property.
The state layer: PA flat tax, NJ withholding
- Pennsylvania: the gain rides the flat 3.07% personal income tax, computed on PA basis rules, with 1031 deferral now available. No special rental rate, no local income tax on the gain, but deed transfer tax (1% state plus the local share, more in Philadelphia) comes out at closing regardless.
- New Jersey: the gain flows into the progressive gross income tax. Sellers who no longer live in New Jersey meet the GIT/REP estimated payment at closing, the “exit tax,” which is a prepayment (commonly 2% of the price) reconciled on the return, not an extra tax. The Realty Transfer Fee, and on $1M+ sales the seller-paid graduated percent fee, apply as on any sale; the calculator handles both.
Decisions worth making before listing
- 01Reconstruct the depreciation file first. Purchase documents, improvement receipts, and every return’s depreciation schedule. The recapture number defines the whole tax picture, and missed years need the Form 3115 conversation.
- 02Check the conversion window if you ever lived there. The difference between selling in month 34 and month 38 after moving out can be six figures of exclusion. Date math before market timing.
- 03Decide the 1031 question honestly. More property, passive interests, or pay and be free, each fits a different landlord, and intermediaries must be engaged before closing, not after.
- 04Manage the year of the hit. A big gain year interacts with NIIT thresholds, Medicare IRMAA two years later, and bracket stacking; installment sales and timing across tax years are the standard levers. This is the CPA meeting, held in the spring you list, not the spring after.
Samantha works with retiring landlords across Greater Philadelphia and South Jersey, sequencing tenant transitions, sale timing, and the professional bench (CPA, attorney, intermediary) around the owner’s actual goal, which is usually not maximum deferral but a clean, well-priced exit. Start with a free valuation of the property, or describe the situation, how long rented, whether you ever lived there, and what done looks like for you, and she will help you build the right order of operations.