PA Capital Gains Tax When Selling a House (2026)
Selling a home in the Keystone State raises one question almost every owner asks before signing a listing agreement. How much of the profit goes to the IRS and the state? PA capital gains tax on a home sale has more layers than most sellers realize. The answer depends on how long you owned the property, who lived in it, and how much money you actually pocketed at closing.
This guide walks through how the PA capital gains tax actually works in 2026. It covers how the federal government treats the same sale, and where Pittsburgh and other Western Pennsylvania sellers can run into surprise costs that have nothing to do with capital gains.
Key Takeaways
- Pennsylvania charges a flat 3.07% personal income tax on gains from a home sale, with no short-term or long-term distinction.
- Federal Section 121 lets a single filer exclude up to $250,000 of gain on a primary residence and married couples filing jointly exclude up to $500,000, both subject to a two-of-five-year ownership and use rule.
- Pennsylvania has its own primary residence exclusion under 61 PA Code 103.13(h) with no dollar cap when the seller qualifies.
- Rentals, flips, and short-hold properties get no exclusion and may also face depreciation recapture and the 3.8% Net Investment Income Tax.
- Pittsburgh’s combined realty transfer tax is 5%, compared to 2% in most other PA municipalities.
How PA Capital Gains Tax Works on a Home Sale
Pennsylvania does not have a separate capital gains tax. The state instead taxes gains from a property sale as ordinary personal income at a flat rate of 3.07%. That rate has been steady for years. It applies the same way whether you sold a home, a stock, a small business, or a piece of farmland.
The 3.07% Flat Rate
For purposes of the PA capital gains tax on a home sale, the state treats the profit as part of an income class called net gains from the disposition of property. That figure goes on PA-40 Schedule D when you file your state return. There is no preferential long-term rate. There is no discount for holding the property a long time, and no separate short-term penalty. Gain is gain.
Pennsylvania’s Primary Residence Exclusion
Pennsylvania has its own primary residence exclusion that most sellers do not know about. Under 61 PA Code 103.13(h), the entire gain on the sale of a principal residence can be excluded from PA personal income tax if the seller meets the ownership and use tests.
Those tests look very similar to the federal Section 121 rules. They require two years of ownership and two years of use as a primary residence within the five-year window before the sale. Pennsylvania does not impose a dollar cap on the exclusion the way federal law does. A qualifying seller can wipe out the entire gain at the state level even if the gain exceeds the federal $250,000 or $500,000 limits. The Pennsylvania Department of Revenue publishes the full guidance on this exclusion.
What If You Sell at a Loss?
Most local earned income taxes around the state do not apply to capital gains either, which is good news for sellers in places like Allegheny County. Philadelphia is the major exception with its own School Income Tax.
One detail trips up sellers who lost money on a property. Pennsylvania does not allow capital loss carryforwards. If you sell at a loss, that loss can only offset gains in the same tax year and only within the same income class. You cannot push a loss into next year to offset a future gain. That is a meaningful disadvantage compared to the federal system, where capital losses can carry forward indefinitely.
So at the state level, the formula is simple. Calculate the gain. Apply the primary residence exclusion if you qualify. Pay 3.07% on whatever is left.
PA Capital Gains Tax on a Primary Residence Sale
The federal side is where most sellers actually save money on capital gains tax when selling a house in Pennsylvania. Internal Revenue Code Section 121 lets a single filer exclude up to $250,000 of gain on the sale of a primary residence. A married couple filing jointly can exclude up to $500,000 of gain.
The catch is the two-of-five-year rule. The seller must have owned the home for at least two of the last five years. The seller must also have used it as a primary residence for at least two of the last five years. Those two-year periods do not have to be the same and do not have to be continuous.
A Pittsburgh Single Filer Example
Take a real-world Pittsburgh example. A single homeowner buys a place in Squirrel Hill for $180,000 in 2019. They live there continuously and sell it in 2026 for $300,000. Gross gain is $120,000.
The seller put $15,000 into a kitchen remodel and a new roof. Both count as capital improvements that raise the basis. Adjusted basis becomes $195,000. Selling costs of about $5,000 reduce the amount realized to $295,000. That leaves a taxable gain of $100,000.
Because the seller is a single filer and lived in the home for at least two of the last five years, the full $100,000 falls inside the $250,000 federal exclusion. No federal capital gains tax. The PA primary residence exclusion also covers the gain. No state tax either. Total capital gains tax owed on the sale is zero.
A Married Couple Example
A married couple in the same situation has even more cushion. The $500,000 joint exclusion means even Pittsburgh sellers who bought decades ago and watched their property values rise dramatically often pay no federal tax on the gain.
A couple bought a Mt. Lebanon home for $150,000 in the early 1990s and sells it for $600,000 today. Factor in $40,000 of documented capital improvements and $30,000 in selling costs. Their taxable gain lands around $380,000. That is fully covered by the $500,000 exclusion. They walk away with no federal capital gains tax.
Why Basis Tracking Matters
The lesson here is that good record keeping matters. Every receipt for a capital improvement, the original closing disclosure from when you bought the house, and the costs you paid at closing all raise your basis. A higher basis means a lower gain. A lower gain means you stay safely inside the exclusion.
Routine maintenance and minor repairs do not count. Capital improvements that add value or extend the life of the home do count. Those include:
- A new roof, addition, or finished basement
- Replacement windows or new HVAC systems
- Kitchen and bath remodels
- Major landscaping projects that add structural value
- New siding, decks, or driveways
There are also partial exclusions available when a seller cannot meet the full two-year test because of unforeseen circumstances. A job relocation more than 50 miles away, a serious health issue, a divorce, or a death in the family can all qualify a seller for a prorated exclusion. The IRS has specific rules for what qualifies. The Pennsylvania exclusion follows similar logic.
PA Capital Gains Tax on a Rental, Flip, or Short-Hold Property
The PA capital gains tax on a home sale looks very different when the property is not a primary residence. Rentals, second homes, vacation houses, and properties held by flippers do not qualify for the Section 121 exclusion or the PA equivalent. The full gain is taxable.
Long-Term Federal Rates for 2026
If you held the property for more than one year, the federal side applies long-term capital gains rates. For 2026, those brackets are:
- 0% on taxable income up to $49,450 single or $98,900 married filing jointly
- 15% on income between those thresholds and $545,500 single or $613,700 joint
- 20% above those upper limits
Most everyday sellers land in the 15% bracket. Pennsylvania still applies its flat 3.07% on top of whatever the federal calculation produces.
Short-Term Federal Rates
If you held the property one year or less, the gain is short-term. Short-term capital gains are taxed at federal ordinary income rates. Those run from 10% all the way up to 37% in 2026 depending on the seller’s overall income for the year. PA still applies the flat 3.07%.
A flip that took eight months and produced a $60,000 profit could face a federal tax bill of a quarter or more of the gain. Add another $1,842 to PA. The bill adds up fast.
Depreciation Recapture and NIIT
Rental property has an additional wrinkle that catches a lot of landlords off guard. Depreciation recapture. Whenever a rental property is depreciated on a tax return year after year, the IRS expects to claw back the benefit when the property sells. The portion of the gain attributable to depreciation is taxed at a federal rate of up to 25%. That is separate from the regular long-term capital gains rate that applies to the rest of the gain. PA does not have a separate recapture rate. The 3.07% covers everything.
High earners can also owe a Net Investment Income Tax. That is an additional 3.8% federal tax on the lesser of net investment income or the amount by which modified adjusted gross income exceeds $200,000 single or $250,000 married filing jointly. That tax applies to capital gains from rentals and investment property even when the gain itself is fully long-term.
A Western PA Rental Example
An investor buys a duplex in Bloomfield for $200,000. They take $30,000 of depreciation deductions over six years, make $20,000 of capital improvements, and sell for $320,000 with $10,000 in selling costs.
Adjusted basis is $190,000 (the original $200,000 plus $20,000 in improvements minus $30,000 in depreciation). Amount realized is $310,000. Taxable gain is $120,000.
Of that, $30,000 of depreciation recapture gets taxed at up to 25% federally. The remaining $90,000 long-term gain gets the 15% or 20% rate. PA charges 3.07% on the entire $120,000 gain.

Transfer Tax, Inherited Property, and Other Pennsylvania-Specific Costs
PA capital gains tax on a home sale is only one piece of the closing cost puzzle. Pennsylvania imposes a Realty Transfer Tax of 1% of the sale price at the state level. Most municipalities and school districts add another 1% combined. That brings the total in most parts of the Commonwealth to 2%. Buyers and sellers usually split the transfer tax 50/50 by default, though the agreement of sale can shift it.
Pittsburgh’s 5% Combined Transfer Tax
Pittsburgh sellers face a much heavier hit. Inside the city of Pittsburgh, the combined transfer tax reaches 5%. That is made up of the 1% state portion, a 3% city portion, and a 1% school district portion.
On a $300,000 Pittsburgh home, the total transfer tax is $15,000. Split 50/50, each side pays $7,500. Philadelphia is in the same range with a combined rate of 4.578%. Smaller Western PA municipalities generally hold to the 2% standard. It is worth checking your specific borough or township before estimating net proceeds.
For a deeper breakdown of what city sellers face, our guide on Pittsburgh real estate taxes covers the full picture. Owners should also keep an eye on the proposed Pittsburgh property tax increase that could affect costs going forward.
Inherited Property and the Stepped-Up Basis
Inherited property is treated more favorably on the capital gains side. When a homeowner passes away, the heirs receive a stepped-up basis equal to the fair market value of the property on the date of death. This is huge.
A home a parent purchased for $80,000 in the 1980s and is worth $350,000 when the heir inherits it now has a basis of $350,000, not $80,000. If the heir sells right away for $355,000, the taxable gain is only $5,000. Federal and PA capital gains tax on that gain is minimal.
PA Inheritance Tax
Pennsylvania does have a separate inheritance tax that operates outside of capital gains. Lineal heirs (children, grandchildren, and parents) pay 4.5% on the value of the inherited assets. Siblings pay 12%. Other heirs pay 15%. Spouses pay 0%.
This tax is on the inheritance itself, not on the sale of the house. It applies regardless of whether the heir sells or keeps the property.
Installment Sales
Sellers who carry back financing for a buyer can spread the gain across multiple tax years using the installment sales method. This can be useful when the gain pushes a seller into a higher tax bracket all in one year. By recognizing the gain proportionally as payments come in, the seller may pay tax in lower brackets year by year. Pennsylvania allows installment sale reporting under specific conditions. A tax professional can help structure this correctly.
How to Reduce or Plan Around PA Capital Gains Tax When Selling
A few smart moves can meaningfully lower the tax bill on a Pennsylvania home sale.
Track Your Basis From Day One
The closing disclosure from when you bought the house, every capital improvement receipt, and every documented expense related to the property all raise your basis and lower your taxable gain. Most sellers underclaim their basis simply because they did not keep records. Save everything in a folder, digital or paper, and pull it out at sale time.
Time the Sale Around the Two-Year Rule
If you are six months away from hitting the two-of-five-year ownership and use threshold, it may be worth waiting. The difference between a fully excluded gain and a fully taxable gain can run into the tens of thousands of dollars on a typical Pittsburgh home.
Talk to a CPA Before You List
Once a sale is final, your options are limited. Before listing, a CPA can help you decide whether to sell now or wait. They can advise whether an installment sale makes sense, whether you qualify for a partial exclusion, and how to structure the deal to minimize total tax. A short consultation can pay for itself many times over.
Consider a 1031 Exchange for Investment Property
A like-kind exchange under federal Section 1031 can defer the federal capital gains tax on a rental sale if the proceeds are reinvested into another investment property within strict deadlines. Pennsylvania has historically not always conformed to federal 1031 deferral. The state may still tax the gain even when the federal portion is deferred. A tax advisor familiar with PA rules should walk through this carefully before you commit.
Document Unforeseen Circumstances
Job relocations, health events, and family changes that force an early sale can qualify for a partial exclusion. Keep clear records of dates, distances, and reasons. The IRS and PA Department of Revenue both expect documentation if you claim a partial exclusion.
PA Capital Gains Tax FAQ
What is the PA capital gains tax on a home sale in 2026?
Pennsylvania charges a flat 3.07% personal income tax on gains from a property sale. The state does not distinguish short-term and long-term gains. Federal capital gains tax is a separate calculation, with rates ranging from 0% to 37% depending on holding period and income. Primary residence sellers often owe nothing at either level after the federal Section 121 exclusion and the PA primary residence exclusion are applied.
Do I have to pay PA tax if I qualify for the federal $250,000 exclusion?
Pennsylvania has its own primary residence exclusion under 61 PA Code 103.13(h). If you meet two-of-five-year ownership and use tests at the state level, the entire gain is excluded from PA personal income tax. Most sellers who qualify federally also qualify in PA. The PA exclusion does not have a dollar cap.
How much is the realty transfer tax in Pittsburgh?
Pittsburgh has a combined realty transfer tax of 5%. That is made up of a 1% state portion, a 3% city portion, and a 1% school district portion. On a $300,000 sale, the total transfer tax is $15,000, typically split between buyer and seller. Most other parts of Pennsylvania use a 2% combined rate. Philadelphia sits at 4.578% combined.
Do I owe capital gains tax on an inherited home in Pennsylvania?
Inherited property gets a stepped-up basis equal to the fair market value on the date of death. That usually eliminates or dramatically reduces capital gains tax if the heir sells soon after inheriting. Pennsylvania inheritance tax is separate from capital gains tax and is owed at rates that depend on the relationship to the deceased.
Contact BuysHouses.co
Working through PA capital gains tax on a home sale is one thing. Actually selling the property is another. If you own a home in Pittsburgh or anywhere in Western Pennsylvania and you want to skip the listing process altogether, Buys Houses can help.
We are cash home buyers in Pittsburgh and across Western PA. We buy houses for cash with no repairs needed, no commissions, no realtor fees, and fast closings on your timeline.
There is no obligation to accept the offer. You get a free, no-pressure cash offer and decide whether it works for you. Whether you are dealing with an inherited property, a rental you are tired of managing, a fixer-upper, or your own primary residence, we can review the property and put a real number in front of you within days.
Reach out to BuysHouses.co today to talk through your situation and get your free no-obligation cash offer.
Disclaimer. This article is general information, not tax advice. Tax situations vary, and we are not tax professionals at BuysHouses.co. Always consult your local CPA or tax attorney for direction on your specific sale.


