Skip To Content

Do Pennsylvania Home Sellers Owe Capital Gains Tax?

Pennsylvania does not recognize the federal Section 121 primary residence exclusion — the one that lets most U.S. homeowners exclude up to $250,000 (or $500,000 for married couples) of gain from federal taxes. PA has its own exemption: if you’ve owned and used the home as your principal residence for at least two of the five years before the sale, your entire gain is exempt from Pennsylvania personal income tax. Sellers who don’t meet that threshold — including owners of investment properties, second homes, or homes held briefly — pay PA’s flat 3.07% income tax on the full gain.

If you’re planning to sell your home in Lancaster County, the question of capital gains taxes almost certainly comes up.

And it’s usually followed by some version of: “Wait — don’t I get to exclude that on my primary residence?”

The short answer: federally, yes. In Pennsylvania, it’s more complicated.

Here’s what you actually need to know before you list.

The Federal Rule Most People Know (and Misapply to PA)

The federal tax code — specifically Section 121 — lets most homeowners exclude up to $250,000 of capital gains ($500,000 for married couples filing jointly) when selling their primary residence, as long as they’ve lived there for at least two of the five years before the sale.

That’s the rule most sellers know. And it’s a genuinely powerful exclusion. On a $400,000 home in Lancaster County that you bought for $250,000, your gain might be around $150,000 — well under the federal limit, meaning you likely owe nothing to the IRS.

But here’s where sellers get caught off guard: Pennsylvania does not honor the federal Section 121 exclusion. At all.

PA has its own rules for taxing gains from home sales — and they don’t map neatly onto the federal framework.

How Pennsylvania Actually Handles Capital Gains on Home Sales

Pennsylvania imposes a flat 3.07% personal income tax on capital gains. There’s no distinction between short-term and long-term gains — no preferential rates, no graduated scale. It’s 3.07% on all of it.

The good news: PA does have its own primary residence exemption. If you’ve owned and used the property as your principal residence for at least two of the five years before the sale date, your gain is fully exempt from Pennsylvania personal income tax.

So for most Lancaster County homeowners selling the house they live in — you’re likely covered.

But PA’s exemption works differently from the federal one in a few important ways.

There’s no dollar cap in PA. The federal exclusion stops at $250,000 (or $500,000). PA’s exemption is all-or-nothing: if you qualify, your entire gain is exempt, regardless of size.

The rules apply separately. Qualifying for the federal exclusion doesn’t automatically mean you qualify for the PA exemption — and vice versa. You need to meet each requirement independently.

The IRS and PA can reach different conclusions. You could owe zero federal capital gains tax and still face a PA tax liability, or qualify for PA’s exemption but not hit the federal threshold. They’re calculated on separate tracks.

Who Actually Owes PA Capital Gains Tax on a Home Sale

Most Lancaster County sellers selling their primary residence will qualify for PA’s exemption. But these situations are where it gets complicated:

Investment property owners. If you’re selling a rental property in Lancaster County — even one you may have lived in previously but haven’t occupied in two of the last five years — you generally don’t qualify for PA’s principal residence exemption. You’d owe 3.07% on your net gain.

Second home sellers. A vacation property or second home doesn’t qualify as your principal residence. PA will tax the gain at 3.07%.

Short-term sellers. If you bought a home and need to sell within two years of purchase — due to a job relocation, divorce, or life change — you may not meet the two-of-five-year requirement. Partial exclusions exist at the federal level; Pennsylvania’s treatment may differ.

Sellers of properties with business use. If part of your home was used as a business or rental and you claimed depreciation on it, the gain attributable to that portion may still be taxable in PA even if the rest qualifies for the exemption.

If any of these situations applies to you, running the numbers before you list is worth the time. A surprise tax bill at settlement is the last thing you want.

Calculating Your Gain for PA Purposes

Your capital gain isn’t simply “what I sold it for minus what I paid.” The actual calculation looks like this:

  • Sale price
  • Minus: seller closing costs (commissions, realty transfer tax, deed prep, title fees)
  • Minus: your adjusted basis (original purchase price + cost of capital improvements — additions, major systems, renovations)
  • Your net capital gain

The Pennsylvania realty transfer tax — which runs 2% total on most Lancaster County sales, typically split 1% buyer / 1% seller — is a selling cost, so it reduces your gain calculation. But it’s a separate tax from capital gains and is paid regardless of whether you have a gain.

If you’ve owned your home for 10 or 20 years and made significant improvements, your actual gain may be substantially smaller than the raw appreciation suggests. Documenting those improvements matters.

A Practical Example

Let’s say you bought a home in Manheim Township in 2010 for $220,000. You’ve lived there as your primary residence ever since. You’re selling now for $430,000.

  • Sale price: $430,000
  • Selling costs (~6%): -$25,800
  • Adjusted basis (purchase price + $30,000 in improvements): -$250,000
  • Net gain: $154,200

Federally: well under the $250,000 exclusion. You owe nothing to the IRS.

In Pennsylvania: you’ve owned and used it as your primary residence for 16 years — you meet PA’s two-of-five-year rule. Your gain is fully exempt from PA personal income tax as well.

You’re clear on both fronts.

Now change one fact: instead of living there continuously, you moved out in 2023 and turned it into a rental. You still sell in 2026. You haven’t used it as your principal residence within two of the last five years. Pennsylvania’s exemption may no longer apply — meaning you could owe 3.07% on $154,200, or roughly $4,724 in PA state income tax.

The federal outcome might look identical in both scenarios. The PA outcome would not.

What This Means Before You List

You don’t need to be a tax attorney to sell your home in Lancaster County. But you do need to know which scenario you’re in — and ideally before you list, not at settlement.

A few practical steps:

  • Know your adjusted basis. Gather your purchase records and documentation of major capital improvements. The higher your adjusted basis, the lower your taxable gain — and improvements made to sell-prep a home (paint, landscaping, minor repairs) don’t count the same way as additions and system replacements do.
  • Confirm your occupancy history. If you’ve lived in the home for two of the last five years, you likely qualify for both federal and PA exemptions. If you’re close to the line, verify with a tax advisor before you list.
  • Run a full net sheet. A real net sheet covers not just your sale price and commission, but also transfer taxes, title costs, and any tax exposure specific to your property. That’s what tells you what you’ll actually walk away with — and whether your asking price makes sense.

Every seller’s situation is different. Two homeowners in the same Hempfield neighborhood with the same list price can have meaningfully different net outcomes depending on their cost basis, ownership history, and how they’ve used the property.

That’s exactly the kind of thing I walk through with every seller before we talk pricing. If you want a clear picture of your numbers — including what to expect from the state tax side — reach out to The Craig Hartranft Team. I’m happy to put together a personalized net sheet for your situation.


Frequently Asked Questions

Does Pennsylvania tax capital gains from home sales?

Yes — Pennsylvania imposes a flat 3.07% personal income tax on capital gains, including gains from home sales. However, if you’ve owned and used the home as your principal residence for at least two of the five years before the sale, your gain is fully exempt from PA personal income tax. The exemption applies to your entire gain, with no dollar cap.

Does Pennsylvania recognize the federal $250,000/$500,000 home sale exclusion?

No. Pennsylvania does not honor the federal Section 121 exclusion. PA has its own principal residence exemption, which works independently of the federal rules. You may qualify for both, either, or neither — depending on your circumstances — and you need to meet each set of requirements separately.

What is the PA capital gains tax rate on home sales?

Pennsylvania taxes all capital gains — including real estate — as ordinary income at a flat 3.07% rate. There’s no distinction between short-term and long-term gains in Pennsylvania, and no graduated brackets for higher-income sellers. If you don’t qualify for PA’s principal residence exemption, you owe 3.07% on your entire net gain.

What if I’ve used part of my home as a rental or home office?

Gains attributable to the portion of the home used for rental or business purposes — including space where you claimed depreciation — may remain taxable in PA even if you otherwise qualify for the principal residence exemption. This is a situation worth discussing with a tax professional before you list.

Do I owe PA capital gains tax if I’m selling an investment property in Lancaster County?

Yes. Investment properties don’t qualify for PA’s principal residence exemption. If you’re selling a rental, second home, or other investment property in Lancaster County, you’ll owe PA’s flat 3.07% on your net capital gain, regardless of your federal tax treatment.


About Craig Hartranft
Craig Hartranft is a top-ranked Lancaster County REALTOR® and Founder of The Craig Hartranft Team, Berkshire Hathaway’s #1 real estate team in Lancaster County, with 460 homes sold and $195M+ in sales in 2025, plus over 1,400 five-star reviews across Google and Zillow.

Comments are closed.

Contact Us Now

*
*
*
*

<-- Client Provided 11/13/24-- >