Selling a home in Philadelphia, PA raises a different set of tax questions than selling a rental or investment property, because a primary residence is governed by the Section 121 exclusion rather than the like kind exchange rules under Section 1031. This guide explains how capital gains are calculated on a home sale, when the Section 121 exclusion applies, and what happens when a property's use has shifted between personal residence and rental over time, a situation that comes up often in Philadelphia, PA where rowhomes and multi unit properties sometimes serve as both an owner's residence and an income producing asset.
How Capital Gains Are Calculated on a Home Sale
The taxable gain on a home sale equals the sale price, less selling costs such as broker commissions and transfer taxes, minus the home's adjusted basis, which includes the original purchase price plus the cost of qualifying capital improvements made during ownership. Routine repairs and maintenance do not increase basis, but improvements that add value or extend the property's useful life, such as a new roof, a kitchen renovation, or an addition, generally do. Homeowners who kept records of improvements over a long holding period are often surprised at how much those costs reduce the taxable gain once the sale actually happens, which is why we recommend gathering receipts and permits well before a home goes on the market rather than trying to reconstruct the history afterward.
How the Section 121 Exclusion Applies
An eligible homeowner who owned and used the property as a primary residence for at least two of the five years before the sale can exclude up to two hundred fifty thousand dollars of gain from tax, or up to five hundred thousand dollars for a married couple filing jointly, provided both spouses meet the use test. This exclusion can generally be claimed once every two years, and it applies automatically to gain up to the threshold without requiring the homeowner to reinvest the proceeds in another home, unlike a 1031 exchange, which requires reinvestment in like kind property to defer the tax. Because a primary residence is held for personal use rather than investment or business use, it generally does not qualify for 1031 exchange treatment at all, which is an important distinction for Philadelphia, PA homeowners who may have heard about 1031 exchanges in the context of investment property and assume the same rules apply to their own home.
The picture becomes more complex when a property's use has changed over time, such as a homeowner who converted a former Philadelphia, PA residence into a rental property before eventually selling it, or a rowhome with an owner occupied unit and a separately rented unit. In these situations, the gain may need to be allocated between the portion eligible for the Section 121 exclusion and the portion that was used as investment property and could potentially qualify for 1031 treatment if the investor intends to reinvest rather than cash out. We work with each homeowner's tax advisor to review the specific use history, including the dates the property functioned as a primary residence versus a rental, and to determine whether a partial exclusion, a full exclusion, or a combination of exclusion and exchange treatment fits the facts.
Because a straightforward home sale of a primary residence, without a 1031 exchange, is not affected by Pennsylvania's conformity to Section 1031 under Act 53 of 2022, homeowners should not assume that law changed anything about how their home sale is taxed. That conformity only matters when the property being sold was held for investment or business use and the owner is completing an actual like kind exchange. We help Philadelphia, PA homeowners confirm which category their sale falls into, calculate the exclusion accurately, and identify whether any portion of a mixed use property might benefit from exchange treatment before the sale closes.
Divorced or separated homeowners face a specific wrinkle in the ownership and use test, since a spouse who moves out of the marital home as part of a separation can still satisfy the use requirement for the years the other spouse continues living in the property under a divorce or separation agreement, provided the departing spouse retains an ownership interest in the home. Without this special rule, a spouse who relocates during a lengthy separation could otherwise lose Section 121 eligibility simply because they no longer physically occupied the property, even though the sale proceeds are being divided as part of the settlement. We also recommend that any Philadelphia, PA homeowner planning a sale keep organized records of capital improvements as they are made, including contractor invoices and permits, rather than attempting to reconstruct that history from memory once the property is under contract, since basis documentation gathered years after the fact is often incomplete and can understate the improvements that legitimately increased the home's basis.
Homeowners should also confirm how a home office deduction claimed during ownership affects the exclusion, since depreciation claimed against a dedicated home office space is generally recaptured at sale in the same way depreciation on a rental property would be, even though the remaining gain on the residential portion of the home may still qualify for the Section 121 exclusion. We review any home office depreciation history for Philadelphia, PA homeowners who worked from a dedicated space within their residence, since this detail is easy to overlook when the home has otherwise functioned as a primary residence throughout the ownership period.
Deliverables
WHAT THIS INCLUDES
- •Home sale gain calculation using original purchase price and documented capital improvements
- •Section 121 exclusion eligibility review against the ownership and use tests
- •Use history review for properties that shifted between residence and rental
- •Coordination with the homeowner's tax advisor on allocation between exclusion and exchange treatment
Use Cases
COMMON SITUATIONS
- •Homeowners preparing to sell a long held Philadelphia, PA residence and wanting to confirm exclusion eligibility
- •Owners of a rowhome or multi unit property with mixed personal and rental use history
- •Homeowners who converted a former residence into a rental and are now planning a sale or 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.