Concept of tax filing and accounting. Close up of US individual income tax return form with pen and calculator on office desk, symbolizing financial planning, budget management and payment accuracy.
Seller Tax Guide

Capital Gains Tax When Selling a Home in Pennsylvania: What Lehigh Valley Sellers Should Know

Published: November 2026 Author: Chris Troxell Team Seller Strategy, Taxes, Pennsylvania Real Estate

Most Pennsylvania homeowners owe no capital gains tax when they sell their main home. Federal law lets you exclude up to $250,000 of profit ($500,000 for married couples filing jointly) if you owned and lived in the home for at least two of the last five years. Pennsylvania has its own rule: if you meet the same two out of five year test, the entire gain is exempt from the state's 3.07% personal income tax, with no dollar cap. Rentals, second homes and quick resales are where tax bills usually show up.

It's one of the first questions sellers ask once they see what their home is worth today: “Will I owe taxes on all that?” For most Lehigh Valley homeowners, the answer is good news. For a few, especially long time owners, landlords and anyone selling a vacation home, it pays to run the numbers before listing.

This guide walks through the federal and Pennsylvania rules in plain language, with a couple of local examples. For help with the rest of the selling process, visit our seller resources page. One quick note before we dive in: we're real estate agents, not tax advisors, so treat this as a starting point for a conversation with your accountant.

Federal Exclusion

$250K / $500K

Single / married filing jointly

Pennsylvania Exemption

No Cap

Entire gain excluded at the 3.07% rate

The Test

2 of 5

Years owned and lived in, before the sale

Do you pay capital gains tax when you sell your home in Pennsylvania? Usually not, as long as it's your primary residence and you've lived there a while. Two separate tax systems apply to a home sale here, the federal income tax and Pennsylvania's personal income tax, and each has its own break for a main home. Most sellers qualify for both.

The Federal Home Sale Exclusion: $250,000 and $500,000

Under federal law, you can exclude up to $250,000 of gain from the sale of your main home or up to $500,000 if you're married and file jointly. To qualify, you generally need to have owned the home and lived in it as your primary residence for at least two of the five years before the sale. The two years don't have to be consecutive, and you can typically use the exclusion once every two years.

Single Filer

$250,000

Of profit excluded from federal capital gains tax.

Married Filing Jointly

$500,000

Of profit excluded from federal capital gains tax.

If you have to sell sooner because of a job change, a health issue or certain other unforeseen events, you may qualify for a partial exclusion. Those limits have been unchanged since 1997, and several bills in Congress would raise or eliminate them. As of early November 2026, none has become law.

Where people get caught is in the exceptions: selling within two years of buying, selling a home that was rented out or used as a second home or selling after decades of appreciation that push the profit past the federal limit.

Pennsylvania's Home Sale Exemption Has No Dollar Cap

Pennsylvania doesn't simply follow the federal rule. It has its own exemption, and in one important way it's more generous. If you owned and used the home as your principal residence for at least two of the five years before the sale, the Department of Revenue allows you to exclude the entire gain from state income tax, with no $250,000 or $500,000 ceiling.

There are a couple of catches. You generally can't claim the state exemption if you already used it on another home within the previous two years, unless the sale was caused by circumstances beyond your control. And if you don't qualify, the gain is taxed at Pennsylvania's flat 3.07% rate, since the state has no lower rate for long term gains. Local earned income taxes in the Lehigh Valley apply to wages, not to home sale profits.

The Key Difference

Sell for a $600,000 gain and the federal government may tax part of it, but Pennsylvania taxes none of it as long as you meet the two out of five year test. That's the single biggest reason a long time Pennsylvania homeowner's tax bill is smaller than expected.

How to Calculate Your Gain on a Home Sale

Your taxable gain isn't simply the sale price minus what you paid. Start with the sale price, subtract your selling costs, such as commission and your share of the transfer tax, then subtract your adjusted basis. Your basis is generally what you paid for the home, plus certain closing costs from the purchase, plus capital improvements like a new roof, an addition or a remodeled kitchen. Routine repairs and maintenance don't count.

The Formula

Sale price what the buyer pays
− Selling costs commission, transfer tax
− Adjusted basis purchase price + improvements
= Your gain the taxable number

Example 1 · Macungie

Married couple, long time owners

A married couple in Macungie bought their home in 2006 for $180,000 and sell it this year for $450,000. They spent $40,000 on improvements over the years, and selling costs come to about $30,000. Their gain is about $200,000. That's well under the $500,000 federal exclusion and fully exempt in Pennsylvania. They owe nothing.

Estimated tax owed

$0 federal · $0 Pennsylvania

Example 2 · Center Valley

Single homeowner, larger gain

A single homeowner in Center Valley bought in 1998 for $150,000 and sells for $520,000, with $30,000 in improvements and $35,000 in selling costs. That's a gain of about $305,000. The first $250,000 is excluded federally, leaving roughly $55,000 taxable at the federal level. If that falls in the 15% bracket, the federal bill would be around $8,250. Pennsylvania would tax none of it because the state exemption has no cap.

Estimated tax owed

~$8,250 federal · $0 Pennsylvania

These examples are simplified, but they show why keeping your receipts for improvements matters. Every dollar added to your basis is a dollar that won't be counted as gain.

When Lehigh Valley Sellers Do Owe Capital Gains Tax

Most sellers won't owe a dollar. These are the situations where the math changes and it's worth talking to your accountant before you list.

Long time owners with big gains

Decades of appreciation can push profits past the federal limit, especially for single sellers or in higher priced areas.

Second homes and vacation properties

A Pocono cabin you visit on weekends isn't your primary residence, so the home sale exclusions generally don't apply.

Rental properties

Gains on rentals are taxable, and depreciation you claimed or could have claimed is generally taxed at up to 25% federally when you sell. Investors often look at a 1031 exchange to defer the tax.

Quick resales

Selling before you've owned and lived in the home for two years usually means at least part of the gain is taxable at both levels.

Long Term Rate

0 / 15 / 20%

Based on income

Depreciation Recapture

Up to 25%

On rental property

Net Investment Income Tax

3.8%

Above income thresholds

When federal tax does apply, long term gains are taxed at 0%, 15% or 20% depending on your income, and higher earners may also owe the 3.8% net investment income tax. That surtax kicks in above $200,000 of modified adjusted gross income for single filers and $250,000 for married couples filing jointly.

Inherited Homes, Divorce and Other Special Situations

Inherited homes follow different math. When you inherit a house, your basis is generally stepped up to its value on the date of death, so selling soon afterward often produces little or no gain. Our guide to selling an inherited home in Pennsylvania covers the estate, inheritance tax and practical steps in more detail.

Life changes can affect the rules too. A surviving spouse may still be able to use the full $500,000 federal exclusion if the home is sold within two years of the spouse's death. Divorce, a job relocation or a health issue can also open the door to special treatment, so mention any of these to your accountant early.

Year End Timing: Should You Close in December or January?

The tax year of your sale is generally the year you close, not the year you sign the agreement. If you expect a taxable gain, closing on January 2 instead of December 30 pushes the tax into the following year and gives you an extra year before it's due.

Close in December

The gain lands in this tax year. The bill is due the following April, months sooner.

Close in January

The gain shifts to the next tax year, giving you roughly twelve extra months before payment.

Timing can matter in other ways, too. If your income will be lower next year, for example because you're retiring, a January closing may put your gain in a lower bracket. For retirees, a large gain can also raise Medicare premiums down the road. If the numbers are close, talk to your tax advisor before you pick a closing date.

Steps to Take Before You List

  • 1 Find your original settlement statement from when you bought the home.
  • 2 Gather receipts and permits for major improvements.
  • 3 Confirm the dates you lived in the home, especially if it was ever rented.
  • 4 Get a realistic estimate of your sale price with a free home valuation.
  • 5 Share those numbers with your accountant so there are no surprises in April.

Capital Gains on Home Sales in Pennsylvania FAQ

The questions sellers ask us most often, answered plainly.

Plan Your Lehigh Valley Home Sale With Confidence

Knowing your likely sale price is the first step in knowing your tax picture. The Chris Troxell Team can give you a realistic value, walk you through the selling costs that reduce your gain and coordinate with your accountant on timing.

Chris Troxell Team · Keller Williams Real Estate · Allentown, PA