Capital Gains Tax on Real Estate in Pennsylvania — What Sellers Actually Owe
Capital gains tax is one of the most misunderstood financial aspects of selling a home. Most Pennsylvania homeowners who have lived in their home for more than two years owe nothing in federal capital gains tax on the sale — but the rules have specific requirements and the exceptions matter. Pennsylvania also has its own income tax that applies to real estate gains differently than the federal rules.
Questions about selling your home in Pennsylvania?
Josh Wernick - REALTOR®
Text or call · Same-day response · Keller Williams Real Estate
The Federal Primary Residence Exclusion
The IRS allows homeowners to exclude up to $250,000 of capital gains from the sale of a primary residence — $500,000 for married couples filing jointly. This exclusion is available if you have owned and used the home as your primary residence for at least two of the five years immediately before the sale.
What this means practically: if you bought your Bucks County home for $350,000 and sell it for $750,000, your gain is $400,000. As a married couple you can exclude $500,000 — meaning you owe zero federal capital gains tax. As a single filer you can exclude $250,000 — meaning $150,000 of the gain is taxable.
The two-out-of-five-year rule
You must have owned the home and used it as your primary residence for at least 24 months out of the 60 months immediately preceding the sale. The 24 months do not have to be consecutive. You can use the exclusion once every two years.
What counts as your cost basis
Your gain is not simply sale price minus purchase price. Your cost basis includes your original purchase price plus capital improvements — new roof, addition, kitchen renovation, HVAC replacement. Improvements increase your basis and reduce your taxable gain. Keep records of every capital improvement you make.
Pennsylvania State Tax on Real Estate Sales
Pennsylvania does not follow the federal capital gains exclusion rules. Pennsylvania treats the gain from a home sale as ordinary income subject to Pennsylvania's flat income tax rate — currently 3.07 percent. Pennsylvania's treatment differs enough from federal rules that the interaction between the two requires specific advice from a tax professional for your situation. This page provides general information — not tax advice.
When You Do Owe Capital Gains Tax
You may owe capital gains tax if you sell before living in the home for two years, if your gain exceeds the exclusion limits, if the property is not your primary residence, if you are selling an investment property, or if you have used the exclusion on another property sale within the past two years.
Thinking about selling your Pennsylvania home?
Text me your situation. I'll tell you what the sale would produce and recommend connecting you with a tax professional for the capital gains analysis specific to your property.
Capital Gains Tax Pennsylvania Real Estate — FAQ
Do I have to pay capital gains tax when I sell my house in Pennsylvania?
Most homeowners who have lived in their home as primary residence for at least two of the past five years owe no federal capital gains tax — the IRS primary residence exclusion covers up to $250,000 for single filers and $500,000 for married couples filing jointly. Pennsylvania state income tax at 3.07% may still apply. Consult a tax professional for advice specific to your sale.
How long do I have to live in my house to avoid capital gains tax in Pennsylvania?
For the federal primary residence exclusion, at least 24 of the 60 months immediately before the sale. The 24 months do not have to be consecutive. For Pennsylvania state tax treatment, the rules differ — consult a Pennsylvania CPA.
What is the capital gains tax rate on real estate in Pennsylvania?
Federal long-term capital gains rates are 0%, 15%, or 20% depending on income — applied to gains above the exclusion. Pennsylvania state income tax applies at a flat 3.07% to taxable gains. Consult a tax professional for your specific situation.
Does Pennsylvania have a capital gains tax on home sales?
Pennsylvania treats gains from real estate sales as ordinary income subject to the flat 3.07% personal income tax rate. Pennsylvania does not automatically follow the federal primary residence exclusion. A Pennsylvania CPA can advise on specific state tax liability.