Published September 21, 2026

Capital Gains Tax When Selling Your Home in Pennsylvania

Author Avatar

Written by Jarred Smith

Premier Home Team blog header titled

Capital Gains Tax When Selling Your Home in Pennsylvania

EXECUTIVE SUMMARY

If you're selling your primary residence in Pennsylvania, you may not owe capital gains tax at all. Homeowners who meet certain ownership and residency requirements may qualify for exclusions at both the federal and Pennsylvania levels. If you don't qualify, how much you owe can depend on your profit, how long you've owned the home, your adjusted cost basis, and how the property was used.

If you're thinking about selling your Philadelphia-area home, one of the biggest financial questions you probably have is how much of your profit you'll actually keep after taxes.

At Premier Home Team, we've helped hundreds of Philadelphia-area sellers navigate this exact question. We're not CPAs, but our experience working alongside accountants and tax attorneys helps us know when sellers need to bring in a tax professional.

Here's what we'll cover:

  • when a home sale may qualify for a capital gains exclusion.
  • how to calculate your potential gain.
  • what Pennsylvania sellers need to know.
  • which situations deserve extra attention before you sell.

Do You Have to Pay Capital Gains Tax When You Sell?

Maybe, but many homeowners selling their primary residence won't.

At the federal level, the primary residence exclusion allows qualifying single filers to exclude up to $250,000 of gain from the sale of their home, and qualifying married couples filing jointly to exclude up to $500,000.

Generally, you need to have owned and lived in the home as your primary residence for at least two of the five years before the sale to qualify.

Pennsylvania also provides an exclusion for a qualifying principal residence. According to the Pennsylvania Department of Revenue, gain from the sale of a principal residence is generally exempt from Pennsylvania personal income tax when the property meets the state's requirements.

And that's why the first question shouldn't be, "What's the capital gains tax rate?"

It should be, "Does my sale qualify for an exclusion?"

What Is Capital Gains Tax on a Home Sale?

Capital gains tax is the tax that may apply on the profit from selling an asset for more than you paid for it. In a home sale, the 'gain' is the difference between the sale price and your adjusted cost basis.

How to Calculate Your Actual Capital Gain

Your taxable gain is: Sale Price minus Selling Costs minus Adjusted Cost Basis.

Your adjusted cost basis starts with what you paid for the home. From there, you add capital improvements (such as a new roof, a finished basement, or a kitchen remodel) and subtract any depreciation you've claimed. The higher your cost basis, the smaller your gain, and the less you owe.

Gather your original purchase documents, including your ALTA settlement sheet, and receipts for improvements you've made over the years, and let your CPA determine what qualifies. Every undocumented improvement could be potential money left on the table.

How Much Capital Gains Tax Could You Owe When You Sell Your Home?

If your gain isn't fully covered by the primary residence exclusion, the federal tax treatment can depend in part on how long you've owned the property and your taxable income.

Federal Rates: Short-Term vs. Long-Term

2025 Federal Long-Term Capital Gains Tax Rates

Filing Status 0% Rate 15% Rate 20% Rate
Single Up to $48,350 $48,351 – $533,400 Over $533,400
Married Filing Jointly Up to $96,700 $96,701 – $600,050 Over $600,050
Married Filing Separately Up to $48,350 $48,351 – $300,000 Over $300,000
Head of Household Up to $64,750 $64,751 – $566,700 Over $566,700

Source: IRS, Tax Year 2025. Rates apply to long-term gains (assets held more than one year). Short-term gains are taxed as ordinary income at your marginal rate.

How long you've owned the home determines which rate applies.

If you've owned your home for less than a year, your gain is taxed as ordinary income at your marginal rate - the same rate as your paycheck. If you've owned it for more than a year, your gain is generally subject to long-term capital gains rates based on your total taxable income.

REAL EXAMPLE

A client who lived in their property for less than a year wanted to sell. When we looked at current comparable sales, the market was down. They were already facing the possibility of bringing money to closing because of the mortgage balance, and the potential tax implications added another financial consideration.

After looking at the overall picture and speaking with the appropriate professionals, they decided staying in the home made more sense at that time.

How is Pennsylvania Capital Gains Tax Different?

Pennsylvania taxes taxable net gains as income, but there's an important exception for homeowners: a qualifying principal residence can be excluded from Pennsylvania personal income tax.

The Pennsylvania Department of Revenue says a principal residence generally must have been owned for at least two of the previous five years and physically occupied and personally used as the owner's principal residence during at least two of those five years.

Pennsylvania identifies additional rules for homes with business or rental use. Investment properties and buildings held for investment are also treated differently from a qualifying principal residence.

Here's what that 3.07% actually applies to. It's not your full sale price, it's your taxable net gain: what's left after subtracting your original purchase price, capital improvements, and selling costs. Say you bought your home for $200,000, sold it for $300,000, and put $20,000 into capital improvements along the way.

Item Amount
Sale price $300,000
Purchase price $200,000
Capital improvements $20,000
Adjusted basis $220,000
Taxable net gain $80,000

If this were fully your personal residence and you meet the two-of-five-years test, that full $80,000 gain could be excluded from Pennsylvania income tax. But if part of the home was used for a business or a rental, that portion of the gain doesn't qualify for the exclusion, and it gets taxed at 3.07%. That's why the actual number depends on your specific situation, not just the sale price and the tax rate.

If you're not sure whether your property qualifies for the principal-residence exclusion, that's a question to answer with your CPA before you make financial decisions based on an assumed tax bill.

Before we get into what could reduce your taxable gain: if you're still in the early stages of deciding whether to sell, our team can help you understand the costs and financial considerations of the sale, and when it makes sense to bring in your CPA.

What Could Reduce Your Taxable Gain When You Sell?

Document Every Capital Improvement

Certain capital improvements can raise your cost basis and lower your taxable gain. Go back through your records: roof replacements, HVAC systems, additions, kitchen and bathroom remodels. If you don't have receipts, start tracking down contractor invoices now, before you list, and review eligible improvements with your CPA.

Which Selling Costs Could Reduce Your Taxable Gain?

Some costs associated with selling your home may reduce your taxable gain. These can include commissions, marketing and advertising, home staging, pre-sale inspections and appraisals paid by the seller, and certain settlement fees. Confirm which expenses apply to your situation with your CPA.

Which Home Sales Can Have More Complicated Tax Consequences?

Inherited a Home? The Stepped-Up Basis Works in Your Favor

If you inherited a property, your cost basis is generally reset to the fair market value at the time the previous owner died, not what they originally paid. This stepped-up basis can significantly reduce or eliminate capital gains.

REAL EXAMPLE

We recently worked with a client who had inherited a property from her father and was very concerned about capital gains. Before we listed, we worked with her to understand the property's value and the sale price she was targeting while she addressed the tax implications with the appropriate professional. That preparation helped her make the decision before the home ever hit the market.

Investment Properties, Second Homes, and Rentals

Investment properties, second homes, and homes that have been used for rental or business purposes can be treated differently from a qualifying principal residence.

Pennsylvania specifically has additional rules for business and rental use, including situations in which only part of a property may qualify for the principal-residence exclusion.

If any of these situations apply to you, talk with your CPA about the potential tax impact before you accept an offer so you can factor it into your bottom line.

Understand the Tax Impact Before You Decide to Sell

Whether you'll owe capital gains tax when you sell your home depends on more than how much you paid for it and how much you sell it for.

Before you decide to sell, start by getting a realistic picture of what your home could sell for, your likely selling costs, and your potential proceeds. Those numbers can give your CPA a better starting point for discussing how the tax rules may apply to your situation.

If you're considering selling your Philadelphia-area home, schedule a conversation with Premier Home Team before you commit to listing. We can help you understand the real estate numbers behind the decision so you can have a more informed conversation with your CPA and decide whether selling makes sense.

Frequently Asked Questions About Capital Gains Tax on Home Sales

Do I pay capital gains tax if I sell my house and buy another one?

Buying another home does not automatically exempt you from capital gains tax on the sale. Whether you qualify for the federal primary residence exclusion depends on factors such as the two-of-five-year ownership and residency requirements. Your CPA can confirm how the rules apply to your sale.

Is there a capital gains tax exemption for seniors in Pennsylvania?

Pennsylvania does not offer a state-level capital gains exemption based on age. For federal taxes, the same primary residence exclusion requirements apply regardless of age. Your CPA can confirm how those rules apply to your situation.

When should I bring in a CPA when selling my home?

Early. Once you have a realistic idea of your home's market value, likely selling costs, and potential proceeds, connect with your CPA to discuss the tax implications. Loop them in again when you accept an offer and as you approach closing.

Categories

Seller Strategies
Agent profile image in chat bubble
Agent profile image in chat header

Robin Martin

Realtor® | Premier Home Team | Keller Williams Empower | PLACE

Agent profile image in message

or another way