The Philadelphia Main Line · The Rosenthal Group · BHHS Fox & RoachCall or text (267) 626-7613
Call Reid

PA capital gains tax on a Main Line home sale

Key takeaway

PA capital gains tax is a flat 3.07% in 2026, but the gain on a qualifying principal residence is exempt, and Revenue's guide states no dollar cap. So on a long-held Main Line home the federal bill is the big one, and your job on the Pennsylvania side is to keep the exemption: don't move out and rent the house without counting the two-of-five-year window first. If you inherited the home, the PA inheritance tax on the house comes before any of this.

Who this guide is for

You own a Main Line home you've held for years, or you've inherited one, and you want to know what Pennsylvania and the IRS will take when you sell.

PA capital gains tax at a glance

PA rate on a taxable gain, 20263.07% flat, no long-term or short-term split
PA principal residence testOwned and occupied two of the last five years
PA dollar cap on the exemptionNone stated in Revenue's guide
Federal exclusion$250,000, or $500,000 on a joint return
Federal top long-term rate20%, plus 3.8% net investment income tax where it applies

Do you pay PA capital gains tax when you sell your Main Line home?

Not if it qualifies as your principal residence: you've owned and occupied it two of the last five years, and the whole gain is exempt from Pennsylvania tax. The decision that matters is to stay inside that window. For joint sellers with a $3M gain, at top federal rates, it's worth $211,100:

$3M gain, joint sellersPA taxFederal taxable gainFederal at 23.8%Total
Qualifying principal residence$0$2,500,000$595,000$595,000
Second home, or a home that failed the test$92,100$3,000,000$714,000$806,100
Cost of not qualifying$92,100$119,000$211,100

This is simplified: it assumes top rates on the whole taxable gain, and it ignores selling costs and improvements. Your actual gain starts from your basis.

Capital gains tax on typical Main Line homes held ten years

A typical home bought ten years ago in Gladwyne or Villanova now clears the federal joint exclusion, and in the other four towns it doesn't. The table backs a ten-year purchase price out of Zillow's typical home value for each ZIP (September 2026) and its ten-year change, then applies the federal exclusion and the top 23.8% rate.

ZIPValue nowImplied value 10 years agoGainFederal tax, jointFederal tax, singlePA tax if qualifying
Gladwyne 19035$1,625,035$842,817$782,218$67,168$126,668$0
Villanova 19085$1,611,051$839,045$772,006$64,737$124,237$0
Haverford 19041$1,167,168$683,314$483,854$0$55,657$0
Bryn Mawr 19010$923,610$502,946$420,664$0$40,618$0
Wynnewood 19096$819,197$443,480$375,717$0$29,921$0
Wayne 19087$833,507$459,460$374,047$0$29,523$0

A ZIP's index change isn't any one home's gain, and these are the middle of each market. A home priced above its ZIP's typical value can sit further over the line, so run your own numbers.

Gladwyne and Villanova capital gains tax

These are the two ZIPs where the typical ten-year gain passes $500,000, by about $282,000 and $272,000. A joint seller of a typical Gladwyne home pays about $67,168 federally and $0 to Pennsylvania. Add the seller's half of a 2% transfer tax, about $16,250, and the sale's tax bill is about $83,418.

Haverford and Bryn Mawr capital gains tax

The typical ten-year gain here sits under the joint exclusion and well over the single one, so filing status decides the bill. A joint seller of a typical Haverford home pays $0, and a single seller pays about $55,657. Bryn Mawr's typical value is under $1M, so at $1M and up expect a larger gain. Ask your CPA how the exclusion applies if a spouse has died, since this page doesn't cover that rule.

Wayne and Wynnewood capital gains tax

The typical gain is about $375,000, comfortably inside the joint exclusion, and these ZIPs' typical values sit under $1M. In the $1M-and-up part of these markets, the gain can be larger, so use your own purchase price. A single seller at the typical gain pays about $29,500 to $29,900 federally.

What is the capital gains tax rate in Pennsylvania for 2026?

The rate is 3.07%, the same flat rate as other Pennsylvania income, because the state makes no special provision for capital gains. A $1M taxable gain costs $30,700, whether you held the asset for ten years or ten months.

No long-term capital gains tax rate in Pennsylvania

Pennsylvania has no long-term or short-term split, so holding longer doesn't lower the state rate. That changes the timing logic you'd use federally: on a second home, waiting past a year helps with the IRS and adds nothing on the Pennsylvania side. A $500,000 taxable gain costs $15,350 either way.

Local earned income tax on capital gains

Easttown's 0.5% EIT is reported to exempt unearned income, and Lower Merion and Haverford Township have no EIT at all, so a home sale shouldn't add a local income tax line there. Check Radnor and Tredyffrin on DCED's lookup. On a confirmed township, this line adds $0, and the Pennsylvania income tax guide has the township-by-township figures.

Does Pennsylvania follow the $500,000 home sale exclusion?

No. Pennsylvania has its own principal residence exemption, and Revenue's guide states no dollar cap, while the federal exclusion stops at $250,000, or $500,000 on a joint return. That gap is why a Main Line seller can owe the IRS a large sum and Pennsylvania nothing.

RulePennsylvaniaFederal
Dollar limit on a qualifying homeNone stated$250,000 or $500,000 joint
Use testOwned and occupied two of the last five years24 of the last 60 months
Gain above the limitNot applicableTaxed, up to 20% plus 3.8%
Loss on the homeNot allowedAsk your CPA
ReportingNo schedule for an exempt saleRequired if you received a 1099-S

Pennsylvania principal residence test

You need to have owned and occupied the home for two of the last five years, for a sale on or after January 1, 1998. Pass it and the gain adds $0 of PA tax, with no schedule required for an exempt sale. Partial cases exist, so have a CPA read anything short of two full years.

Federal capital gains tax exclusion

The federal exclusion is $250,000 for one seller and $500,000 on a joint return, with the same 24-of-60-month tests. Every dollar above it is taxed, at up to 23.8% for a high earner. On a $3M gain it removes $119,000 from the federal bill, and the remaining $595,000 still has to be paid.

What triggers the 20% capital gains tax rate?

High taxable income triggers it, and a large gain on a home can push you there in the sale year. The IRS's Topic 409 publishes the income thresholds each year. The 3.8% net investment income tax is a separate test, which starts at $250,000 of modified adjusted gross income on a joint return, so a $1M taxable gain could cost up to $238,000 federally when both apply.

When a Main Line home loses the capital gains tax exemption

It loses the exemption, in whole or in part, once you fall outside the two-of-five-year window or use part of the house for business or rental. These are the cases that matter on a long-held house.

Moving out and renting: capital gains tax on a $2M gain

Moving out starts the clock. After more than three years away you've used up the window, and a sale no longer qualifies for either exemption. On a $2M gain for joint sellers, that means $61,400 to Pennsylvania plus $119,000 of lost federal exclusion, or $180,400 you could have avoided by selling sooner. Count the window before you sign a lease, and ask your CPA about depreciation too, since that's a further federal cost not included here.

Carriage houses and home offices: partial capital gains tax

The exemption doesn't cover a business or rental portion, and Pennsylvania's Schedule PA-19 apportions mixed use. If 20% of a $3M gain were allocated to a rented carriage house or similar space, that $600,000 would cost $18,420 in PA tax. Ask your CPA how the portion gets measured, because that number sets the bill.

Second home capital gains tax

A second home doesn't qualify unless you meet the principal residence test on it, so its gain is taxed at 3.07%. A $3M gain on a non-qualifying home costs $92,100 in Pennsylvania. The federal bill on that gain has no exclusion either, which is why the table at the top shows $806,100.

Selling at a capital loss in Pennsylvania

You can't claim a Pennsylvania loss on a principal residence. Pennsylvania also has no loss carryover and no offset across classes or between spouses, so a loss on any other asset counts only against gains in the same class and year. Leave a $200,000 loss unmatched and you've given up $6,140 of tax savings.

How is an inherited home taxed when sold in PA?

It's taxed on the gain above fair market value on the date of death, which is the basis Pennsylvania gives you, with no six-month alternate date. If you inherit at $3M and sell at $3.1M, the PA tax is $3,070 on the $100,000 gain. If the home becomes your own principal residence and you meet the two-of-five-year test, that falls to $0. The inheritance tax is a separate bill, paid on the full value, and the Main Line cost of living page covers what you'd pay to keep the house in the meantime.

How to avoid paying capital gains tax on a Main Line sale

Stay inside the principal residence window first, since that alone removes the Pennsylvania tax. After that, the work is on the federal bill: raising your basis, and choosing the right structure for a home that isn't your residence.

Basis records and capital gains tax

Your gain is the sale price less your basis, and qualifying improvements raise the basis. Above the federal exclusion, $400,000 of documented improvements can save up to $95,200 at 23.8%. So pull decades of contractor invoices before you list, and ask your CPA which costs count.

1031 exchange and PA capital gains tax

Pennsylvania has followed federal like-kind deferral under IRC 1031 since January 1, 2023, so an exchange on an investment property can defer both. That's useful on a rental: it could defer $92,100 of PA tax on a $3M gain. The IRS limits these exchanges to real property used for business or held as an investment, which leaves out a home you hold for personal use, and that home is exempt in Pennsylvania anyway.

Installment sale capital gains tax

Pennsylvania doesn't allow the installment method for losses or for an excluded residence gain. So an installment sale doesn't help on the Pennsylvania side of a qualifying home, where the tax is already $0. On a taxable property, ask your CPA how the timing would work, at 3.07% of each year's taxable gain.

Where you lose money on PA capital gains tax

  • Renting out the house for more than three years before selling: $180,400 on a $2M gain for joint sellers, as priced above.
  • Assuming Pennsylvania caps the exemption at $500,000: you'd set aside $76,750 on a $3M gain that you don't owe, since the guide states no cap.
  • Losing your improvement records: up to $95,200 on $400,000 of work above the federal exclusion.
  • Selling a second home expecting a residence exemption: $92,100 in Pennsylvania on a $3M gain.

Confirm your own sale with a Pennsylvania CPA or real estate attorney; nothing here is tax or legal advice. To work out the sale price that goes into all this, the Main Line home selling page explains how pricing works, and Reid can pull recent sales on your road. The transfer tax on a Pennsylvania sale comes on top, at about $40,000 to $50,000 in total on $2M.

PA capital gains tax FAQs

Do you pay capital gains tax in Pennsylvania?

Yes, on taxable gains, at the flat 3.07% rate, with no split between long-term and short-term. A $1M taxable gain costs $30,700. The main exception is a principal residence you've owned and occupied for two of the last five years, which is exempt with no dollar cap stated in Revenue's guide. Federal capital gains tax is separate and has its own limits.

Do I pay PA tax when I sell my house?

Not on the gain, if it qualifies as your principal residence: you must have owned and occupied it for two of the last five years, and no schedule is required for an exempt sale. Business or rental portions aren't covered, and a second home doesn't qualify. Realty transfer tax is a separate charge on the sale, at about 2% to 2.5% in total.

Does Pennsylvania follow the $500,000 home sale exclusion?

No. Pennsylvania has its own principal residence exemption, and Revenue's guide states no dollar cap on it. The federal exclusion stops at $250,000, or $500,000 on a joint return. So on a $3M gain, joint sellers can owe Pennsylvania $0 and still owe about $595,000 federally at top rates. Your own rate and basis may lower that federal figure.

What is the capital gains tax rate in Pennsylvania for 2026?

It's 3.07%, the state's flat personal income tax rate. Pennsylvania makes no provision for a lower capital gains rate, and holding longer doesn't change it. On a $500,000 taxable gain that's $15,350. Federal tax is on top, with a top long-term rate of 20% plus a 3.8% net investment income tax where it applies. Qualifying home gains are exempt in Pennsylvania.

How to avoid paying capital gains tax on a house?

Meet the principal residence test, which removes the Pennsylvania tax and gives you the federal exclusion. Then keep improvement records, because they raise your basis and lower the federal gain: $400,000 of documented work can save up to $95,200 at 23.8%. A rental can use an IRC 1031 exchange, which Pennsylvania has followed since January 1, 2023. Get the details checked before you list.

What triggers the 20% capital gains tax?

The 20% rate is the federal top long-term rate, and it's triggered by high taxable income, with thresholds the IRS publishes each year in Topic 409. A large home gain can push you into it in the sale year. The 3.8% net investment income tax has its own test, starting at $250,000 of modified adjusted gross income on a joint return.

How is an inherited home taxed when sold in PA?

Pennsylvania sets your basis at fair market value on the date of death, and it doesn't recognize the federal six-month alternate date. So you're taxed only on any rise after death: selling at $3.1M after inheriting at $3M costs $3,070 at 3.07%. If it becomes your principal residence and you meet the two-of-five-year test, the gain is exempt. PA inheritance tax is a separate bill.

Sources

Reviewed by Reid Rosenthal

Reid reviewed this page for accuracy on November 5, 2026. Figures come from the sources listed above. Our research process.

Reid Rosenthal is a luxury real estate agent on the Philadelphia Main Line and an Associate Broker who leads The Rosenthal Group at BHHS Fox & Roach, Realtors. RealTrends Verified ranks the team #4 in Philadelphia by sales volume, with $131.59 million across 179 sales in 2025.

  • $131.59MTeam sales in 2025, RealTrends Verified
  • #4Philadelphia team by volume, RealTrends Verified, 2025 data
More about Reid →

What is your home worth today?

A private valuation from Reid, built from recent sales near you rather than an online estimate.

  • Comparable sales near you, not ZIP-wide averages
  • What to fix before listing, and what to leave alone
  • Public or private sale: your choice, with no obligation
Call Reid · (267) 626-7613
1 of 2
Reid RosenthalYour request comes straight to me.

Next: your name, phone and email, with consent to be contacted.

Call Reid · (267) 626-7613
TextCall Reid →
Reid RosenthalAssociate Broker, BHHS Fox & Roach

Before you go

What would your home sell for today?

A private valuation built from recent sales near you rather than an online estimate. No listing obligation.