1031 Exchange Philadelphia

Service Detail

HOME SALE CAPITAL GAINS

How capital gains tax works on a home sale in Philadelphia, PA and when the Section 121 exclusion applies instead of a 1031 exchange.

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

Service: Home Sale Gain and Section 121 Review
Location: Philadelphia, PA
Scope: Review a mixed use rowhome sale involving both owner occupied and rented units
Client Situation: Homeowner had lived in one unit of a two unit rowhome while renting the other and needed clarity on how the sale gain would be taxed
Our Approach: We reviewed the use history for each unit, calculated the allocable gain, and coordinated with the homeowner's tax advisor to apply the Section 121 exclusion to the owner occupied portion
Expected Outcome: Homeowner had a documented allocation of the sale gain between the excludable and taxable portions before listing the property

Contact us to discuss your situation in Philadelphia, PA. We can share references upon request.

Educational content only. Not tax, legal, or investment advice.

Common Questions

FREQUENTLY ASKED QUESTIONS ABOUT THIS SERVICE

How much home sale gain can be excluded from tax under Section 121?

An eligible single filer can exclude up to two hundred fifty thousand dollars of gain, and a married couple filing jointly can exclude up to five hundred thousand dollars, provided the ownership and use tests are met and the exclusion has not already been claimed within the prior two years.

Does a 1031 exchange apply to selling a primary residence in Philadelphia, PA?

Generally no, since Section 1031 requires the relinquished property to be held for investment or business use, and a primary residence is instead addressed through the Section 121 exclusion, which does not require reinvestment in a new property.

What happens when a Philadelphia, PA home was both a residence and a rental at different times?

The gain may need to be allocated between the personal use period eligible for the Section 121 exclusion and any period the property was used as investment property, which can affect whether a partial exclusion, full exclusion, or 1031 exchange treatment applies to different portions of the gain.

Explore More

RELATED SERVICES

Related service

Section 121 Exclusion Explained

How the Section 121 primary residence exclusion works for Philadelphia, PA homeowners, and how it differs from a 1031 exchange.

Related service

Second Home Capital Gains Tax

How capital gains tax applies to a second home or vacation property sale in Philadelphia, PA, and where a 1031 exchange fits.

Related service

Capital Gains on Rental Property

How capital gains tax applies when a Philadelphia, PA rental property sells, and how a 1031 exchange defers it.

Related service

Like-Kind Property Explained

What qualifies as like-kind real property in a 1031 exchange after the Tax Cuts and Jobs Act.

Document Builder

IDENTIFICATION LETTER HELPER

Draft a compliant identification letter for delivery to your qualified intermediary. Replace placeholders with final legal descriptions and execution details.

Get Started

READY TO START YOUR 1031 EXCHANGE?

Connect with a Philadelphia exchange advisor to discuss your replacement property goals and timeline.

Educational content only. Not tax or legal advice.