Many Pennsylvania homeowners can sell their main home without paying capital gains tax on some or all of their profit. The key is understanding which exclusions apply, how your profit is calculated, and whether renting out the property could change your tax situation.
Planning ahead matters most when you are selling for a large profit, turning your home into a rental, or selling an investment property.
*This guide explains the basics for 2026. We are real estate professionals, not tax advisors, so review your situation with a qualified tax professional before making decisions.
Do I have to pay capital gains tax when I sell my house in Pennsylvania?
Not necessarily. Capital gains tax applies to the taxable profit from your house sale, rather than the full selling price.
For example, if you bought a home for $320,000 and sold it for $400,000, the difference is $80,000. Eligible selling expenses, improvements, and other adjustments can change your actual gain.
Federal home-sale exclusion
According to IRS guidance on selling your home, qualifying homeowners can exclude:
- Up to $250,000 of gain for an individual taxpayer.
- Up to $500,000 of gain for a married couple filing jointly who meet the requirements.
To qualify for the full exclusion, you generally must have owned the property and lived in it as your main home for at least two of the five years before selling. Those two years do not have to be consecutive.
You generally cannot use the exclusion if you claimed it on another home sale during the previous two years.
For married couples seeking the full $500,000 exclusion, at least one spouse must meet the ownership requirement, both must meet the residence requirement, and neither can have used the exclusion during the previous two years.
Pennsylvania’s home-sale exclusion
Pennsylvania has a separate exclusion for qualifying sales of a principal residence. It generally requires owning and using the home as your main residence for at least two of the five years before the sale.
Unlike the federal exclusion, Pennsylvania’s qualifying principal-residence exclusion does not have a $250,000 or $500,000 dollar limit.
Rental or business use can change your eligibility. Have your tax advisor check the federal and Pennsylvania rules separately.
What are the capital gains tax rates for selling a house in Pennsylvania?
If your gain is not fully excluded, you may owe federal tax, Pennsylvania tax, or both.
Federal capital gains tax
For property held more than one year, most taxable long-term gains fall into federal tax brackets of 0%, 15%, or 20%.
For 2026, single filers generally fall into these brackets:
- 0%: Total taxable income up to $49,450.
- 15%: Total taxable income over $49,450 through $545,500.
- 20%: Total taxable income over $545,500.
For married couples filing jointly:
- 0%: Total taxable income up to $98,900.
- 15%: Total taxable income over $98,900 through $613,700.
- 20%: Total taxable income over $613,700.
These limits include your taxable gain along with your other taxable income. Different portions of your gain may fall into different brackets.
If you hold a property for one year or less, the gain is generally taxed at ordinary federal income tax rates. Properties bought and sold as part of a flipping business can follow different rules.
Pennsylvania capital gains tax
The PA capital gains tax on real estate generally comes through the state’s 3.07% personal income tax when the gain is taxable.
Pennsylvania does not give you a lower tax rate simply because you owned the property longer.
Additional tax for some sellers
Higher-income sellers may also owe a 3.8% Net Investment Income Tax on some taxable gain.
This can apply when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. Gain covered by the federal home-sale exclusion is not subject to this additional tax.
How much capital gains tax will I pay on $300,000?
It depends on whether $300,000 is your selling price or your profit.
Selling a home for $300,000 does not automatically create a taxable gain of $300,000. You first subtract your adjusted investment in the property and eligible selling expenses.
If $300,000 is your actual gain, here are three examples.
Single homeowner who qualifies for the full exclusion
You could exclude $250,000, leaving $50,000 potentially taxable for federal purposes.
If that entire $50,000 falls into the 15% capital gains bracket, your federal capital gains tax would be $7,500.
Your Pennsylvania tax must be evaluated separately. If you qualify for the state’s principal-residence exclusion, that gain may be exempt from Pennsylvania income tax.
Married couple who qualify for the full exclusion
A married couple filing jointly who qualify for the $500,000 exclusion could exclude the entire $300,000 gain from federal income tax.
Investment property owner
If no exclusion or deferral applies, the entire $300,000 gain may be taxable.
For illustration, if all $300,000 were taxed at 15% federally and 3.07% in Pennsylvania, the combined amount would be $54,210.
These are simplified examples. Depreciation, other income, capital losses, and additional taxes can change the final amount.
How can I legally avoid capital gains taxes on real estate sales?
The right approach depends on whether you are selling your main home, a second home, or an investment property.
1. Check your eligibility before choosing a closing date
To qualify for the full federal home-sale exclusion, you generally must have owned and lived in the home for at least two of the five years before closing. Other requirements also apply.
If you are close to meeting those requirements, your closing date could make a significant difference.
You may qualify for a partial federal exclusion if you sell sooner because of certain work, health, or unforeseen circumstances. Ask your tax advisor to review your dates before you list the property or accept an offer.
2. Understand the rules before turning your home into a rental
There is no automatic two-year tax-free rental period.
If you owned and lived in the home continuously for at least two years immediately before moving out, selling before the third anniversary of your move-out date will generally preserve the federal two-out-of-five-year residence requirement. However, you must still meet the other exclusion requirements.
Rental use can also create taxable gain. The portion of your gain attributable to depreciation allowed or allowable after May 6, 1997 generally cannot be excluded—even if you never claimed those deductions.
Renting the property before making it your main home can also limit how much gain you can exclude.
Pennsylvania’s rules differ from federal rules. Rental or business use can make some or all of the gain ineligible for the state’s principal-residence exclusion. Before becoming a landlord, have your accountant compare the tax consequences of selling now versus selling later.
3. Consider a 1031 exchange for investment property
A 1031 exchange can postpone tax when you exchange qualifying investment or business real estate for other qualifying real estate. It generally does not apply to your personal residence.
For a typical deferred exchange, you must:
- Arrange the exchange before closing, usually through a qualified intermediary.
- Identify replacement property in writing within 45 days after transferring the property you are selling.
- Receive the replacement property within 180 days after that transfer, or your federal income tax return’s due date, including extensions, whichever comes first.
- Follow rules that prevent you from receiving or controlling the sale proceeds.
Receiving cash, other nonqualifying property, or certain debt relief can make part of your gain taxable, even when the exchange otherwise qualifies.
Pennsylvania recognizes qualifying 1031 exchange deferrals for exchanges occurring in tax years beginning after December 31, 2022.
A 1031 exchange postpones tax. It does not automatically eliminate it.
4. Keep records and review your selling timeline
Save your purchase closing statement, improvement receipts, and sale closing statement. These records help your accountant identify eligible costs that may reduce your taxable gain.
If some gain will be taxable, ask whether selling during a lower-income year could reduce your federal tax.
Also, buying another personal home does not automatically eliminate capital gains tax on the home you sell. You still need to qualify for the applicable exclusion or other tax treatment.
*Sources: IRS Publication 523, IRS 2026 inflation-adjusted tax guidance, and Pennsylvania Department of Revenue guidance on property sales and like-kind exchanges.
Planning to sell a house in Philadelphia?
Before putting your home in Philadelphia for sale, ask your tax advisor to estimate your potential tax bill. A Philadelphia realtor can help you estimate the selling price, selling expenses, and proceeds you might receive at closing.
At Venture Philly Group, our Philly realtors can help you compare selling with keeping your property as a rental and plan your next move. Whether you want to sell a house in Philadelphia or explore Philadelphia, PA homes for sale, we are here to help you understand your options.