Skip to content
Samantha Mallon

Taxes & Money

Taxes When Selling a Rental Property in PA or NJ: Depreciation Recapture, the Exclusion You Probably Lost, and the 1031 Question

Selling a rental is taxed nothing like selling a home: the $250,000/$500,000 exclusion usually does not apply, every dollar of depreciation you took (or should have taken) is recaptured at up to 25%, and the 3.8% net investment income tax can stack on top. This guide walks through the real math with a worked example, the 2-of-5-year rules for converted homes, the 1031 exchange (which Pennsylvania finally recognizes as of 2023), New Jersey’s nonresident withholding, and the decisions worth making before the listing goes live.

By Samantha Mallon, SRES®, licensed in PA & NJ · Reviewed August 5, 2026 · 13 min read

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:

Illustrative federal math (simplified; your CPA runs the real version)
LineAmount
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 crossedup 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

This guide is for general information, drawn from the official sources listed below and current as of August 5, 2026. It is not tax or legal advice; rules change and individual situations differ, so confirm anything that affects your money with a CPA, tax preparer, or attorney before acting.

Sources

Every guide on this site is built from primary sources (government agencies and recognized research institutions) and reviewed before publication.

Questions landlords ask about rental sale taxes

I never claimed depreciation on my rental. Do I still owe recapture?

Painfully, yes. The tax code reduces your basis by depreciation “allowed or allowable,” meaning the deduction you were entitled to take reduces your basis whether or not you actually took it, and the gain attributable to it is taxed as unrecaptured section 1250 gain at up to 25%. Landlords who skipped depreciation get the worst of both worlds: no deduction in the rental years, full recapture at sale. There is a repair: a CPA can often file Form 3115 to claim the missed depreciation as a catch-up deduction in the year of sale, which at least gives you the benefit before the recapture takes it back. This is the single best reason for a long-time landlord to see an accountant before, not after, closing.

We lived in the house for years before renting it out. Can we still use the $250,000/$500,000 exclusion?

Possibly, and the timing is everything. The section 121 exclusion requires the house to have been your principal residence for 2 of the 5 years before the sale, so a home converted to a rental keeps full exclusion eligibility for roughly three years after you move out; sell inside that window and most of the gain can still be excluded (though never the part attributable to post-1997 depreciation). Miss the window and the exclusion is gone entirely. Renting first and moving back in works less well: years the home spent as a rental before it became your residence count as “nonqualified use” and proportionally shrink the exclusion. If you are near the boundary, the sale date is worth tens of thousands of dollars; model it before you list.

How does a 1031 exchange actually work, and is it worth it for one rental?

A 1031 exchange defers all of the tax, gain and recapture alike, by rolling the proceeds into replacement investment property through a qualified intermediary: you never touch the money, you identify replacements within 45 days of closing, and you complete the purchase within 180 days. Since Act 53 of 2022, Pennsylvania finally conforms, so exchanges in tax years 2023 and later defer state income tax too. Whether it is worth it for a single tired-landlord rental depends on the honest question: do you actually want to own more investment property? Exchanging into another active rental just relocates the job you are quitting. Some retiring landlords exchange into passive fractional interests (DSTs) instead; others conclude that paying the tax once and being genuinely done is the better life decision. Both are legitimate; only one should be chosen by default.

What do Pennsylvania and New Jersey themselves take from a rental sale?

Pennsylvania taxes the gain at its flat 3.07% personal income tax rate, and as of tax year 2023 it honors 1031 deferrals; realty transfer tax applies to the deed regardless. New Jersey taxes the gain under its progressive gross income tax, and if you no longer live in New Jersey when you sell, the state collects an estimated tax payment at closing through the GIT/REP process (the so-called exit tax, commonly 2% of the sale price as a prepayment, reconciled on your return). Both states’ numbers stack on top of the federal capital gains, recapture, and possibly net investment income tax. Local wage taxes do not apply, but Philadelphia deed transfer tax and municipal certificate fees do; the net proceeds calculator covers those.

Does the 3.8% net investment income tax apply to my sale?

It applies if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), thresholds the sale itself frequently pushes you over, and rental gains are squarely net investment income. The tax is 3.8% of the lesser of your net investment income or the amount by which MAGI exceeds the threshold. Practically, a large one-time rental gain often triggers NIIT in the sale year even for households that never otherwise pay it, and it can also raise Medicare IRMAA premiums two years later for sellers on Medicare. An installment sale spreading gain across years is one of the standard tools for managing both effects.

About the author

Samantha Mallon, SRES®

Samantha is a real estate agent with Compass, licensed in Pennsylvania (RS365940) and New Jersey (2440598), holding the SRES® (Seniors Real Estate Specialist®) designation. Before real estate she earned a finance degree at Rutgers and a master’s in analytics at Georgia Tech, and worked in management consulting at Deloitte, a background she now applies to pricing, preparation, and honest guidance for sellers navigating downsizing, longtime homes, and family transitions across Greater Philadelphia and South Jersey.

Thinking about your own next chapter?

A conversation costs nothing and commits you to nothing. Start with a free home valuation or just ask the question you’ve been sitting on.