Selling a rental property in Philadelphia, PA typically triggers two separate layers of tax: depreciation recapture on the portion of the gain attributable to depreciation already claimed, and long term capital gains tax on the remaining appreciation. Understanding how these two pieces are calculated, and how they interact with a 1031 exchange, helps investors decide whether to sell outright or defer the tax by reinvesting in a replacement property. This guide walks through the mechanics of the calculation, the specific rules that apply to a Philadelphia, PA rental sale, and how Pennsylvania's 2022 conformity to Section 1031 changed the state level picture for local investors.
How the Taxable Gain Is Calculated
The starting point for any capital gains calculation is the property's adjusted basis, which is the original purchase price, plus the cost of any capital improvements made during ownership, minus the total depreciation deductions claimed over the holding period. The sale price, less selling costs such as broker commissions and transfer taxes, is compared against that adjusted basis to determine the total realized gain. Because depreciation reduces basis year over year, a rental property held for a decade or more often shows a much larger gain than the simple difference between the original purchase price and the sale price would suggest, since depreciation has been quietly increasing the taxable gain the entire time the investor was also receiving depreciation deductions against rental income. The portion of the gain equal to the depreciation claimed is generally taxed separately as unrecaptured Section 1250 gain, and it is calculated and taxed before the remaining capital gain, which means it is often the least favorable portion of the sale proceeds from a tax perspective.
Philadelphia, PA investors should also account for the net investment income tax, an additional federal tax that can apply to rental gains once the investor's modified adjusted gross income crosses certain thresholds, along with the City of Philadelphia's realty transfer tax and any recording fees due at closing regardless of whether the sale is taxable or part of a 1031 exchange. None of these transfer or documentary costs are deferred by a 1031 exchange, since Section 1031 defers income tax on the qualifying gain but does not eliminate transfer or recording taxes tied to the transaction itself. We help investors build a complete closing cost picture, separate from the income tax question, so the decision to sell or exchange is made with full visibility into every cost involved.
How a 1031 Exchange Changes the Outcome
A properly structured 1031 exchange defers both the capital gains tax and the depreciation recapture by carrying the relinquished property's adjusted basis forward into the replacement property, rather than resetting the basis to the new purchase price. This means the tax is not eliminated, only postponed, and the deferred gain becomes relevant again if the replacement property is eventually sold outside of another exchange. Investors who intend to keep reinvesting in real property, rather than eventually cashing out entirely, can continue this deferral indefinitely across successive exchanges, and the basis adjustment that would otherwise apply at death under the stepped up basis rule can permanently eliminate the deferred gain for the investor's heirs if the property is still held at that time.
Under Act 53 of 2022, Pennsylvania now conforms to Section 1031 for exchanges completed after December 31, 2022, which means a properly executed exchange defers Pennsylvania personal income tax on the gain in addition to the federal deferral, using the Commonwealth's flat personal income tax rate rather than a bracketed rate. Before that law took effect, Pennsylvania taxed the gain at the state level in the year of the sale even when the federal exchange was valid, so investors evaluating an older Philadelphia, PA exchange should confirm which rules applied to that specific transaction. For a current sale, we help investors compare the after tax proceeds of a straight sale against the deferred position available through a 1031 exchange, coordinate with the investor's tax preparer on Form 8824 reporting, and build a replacement property timeline that respects the forty five day identification period and the one hundred eighty day closing deadline from the start.
Investors should also consider how passive activity loss rules interact with a rental property disposition, since suspended passive losses accumulated over years of ownership, often triggered by the passive loss limitation once the investor's income exceeds certain thresholds, generally become fully deductible in the year of a fully taxable sale, offsetting some of the reported gain. A 1031 exchange does not trigger this release of suspended losses, since the exchange is not treated as a fully taxable disposition, so an investor sitting on a large suspended passive loss balance should model both outcomes carefully before assuming an exchange is automatically the better result. In some cases, the tax benefit of releasing years of suspended losses in a taxable sale meaningfully offsets the capital gains and recapture tax due, narrowing the gap between the two strategies more than a simple gain deferral comparison would suggest. We coordinate with each Philadelphia, PA investor's tax preparer to pull the actual suspended loss carryforward amount from prior year returns before finalizing a recommendation, since this figure is not always top of mind for an investor focused primarily on the sale price and the exchange deadline.
Deliverables
WHAT THIS INCLUDES
- •Adjusted basis and gain calculation covering depreciation history and capital improvements
- •Separation of unrecaptured Section 1250 gain from remaining long term capital gain
- •Comparison of after tax proceeds from a taxable sale versus a 1031 exchange
- •Review of City of Philadelphia realty transfer tax and closing cost exposure
- •Coordination with the investor's tax advisor on Form 8824 reporting
Use Cases
COMMON SITUATIONS
- •Investors comparing the after tax outcome of selling a long held Philadelphia, PA rental property versus exchanging into a new one
- •Owners who have claimed significant depreciation and want to understand their recapture exposure before listing a property
- •Investors confirming how Act 53 of 2022 affects the Pennsylvania tax treatment of a planned exchange
Example of the type of engagement we can handle
EXAMPLE ENGAGEMENT
Contact us to discuss your situation in Philadelphia, PA. We can share references upon request.
Educational content only. Not tax, legal, or investment advice.