Pennsylvania Capital Gains Tax: What You'll Actually Owe
If you are selling appreciated property in Pennsylvania, the state tax is only one of four layers, and usually not the one that does the most damage.
What is the tax bill on your Pennsylvania sale going to be?
Send me the sale price and rough basis. Within one business day I'll email you the actual number and the Seller's Guide to §453. If it doesn't fit your deal, I'll tell you that plainly.
No retainer · no obligation. Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.
How Pennsylvania treats capital gains
Pennsylvania taxes capital gains as ordinary income at a flat 3.07%, one of the lowest state rates in the country. Note that Pennsylvania does not recognize the federal Section 121 home sale exclusion in the same way.
The taxes on a Pennsylvania sale
Most sellers budget for one tax and get hit with four:
- Federal long-term capital gains at 0%, 15% or 20% depending on total taxable income for the year.
- Net investment income tax of 3.8% once modified AGI passes $200,000 single or $250,000 married filing jointly. Those thresholds are not indexed for inflation, so more sellers cross them every year.
- Depreciation recapture, if the asset was a rental or business property. The real-property portion is taxed at up to 25% as unrecaptured Section 1250 gain, and equipment is recaptured as ordinary income. See depreciation recapture.
- Pennsylvania state tax at a flat 3.07%, applied on top of everything above.
The result on a large sale is around 26.9%.
Why the year matters more than the rate
Every one of those layers is triggered by income landing in a single tax year. The federal rate steps from 0% to 15% to 20% based on taxable income. The 3.8% surtax switches on at a fixed threshold.
For sellers 65 and older, the new $6,000 senior deduction begins phasing out at $75,000 of modified AGI ($150,000 joint) and is fully gone by roughly $175,000 ($250,000 joint when one spouse is 65 or older, $350,000 when both are and the deduction is $12,000), so a single large sale wipes it out completely.
Spreading the same gain across several years keeps each year's income lower, and each layer is calculated on that lower number. That is the entire mechanism behind an installment sale under IRC §453, and it is why two sellers with identical gains can pay very different totals.
Section 1245 recapture is the exception: under §453(i), ordinary-income recapture on equipment and other personal property is recognized in the year of sale however the payments are structured. Unrecaptured §1250 gain on a building is not recapture income. It is spread with the payments and reported first, before the rest of the gain (Treas. Reg. §1.453-12).
What this actually costs: Pennsylvania numbers
Take a $500,000 long-term gain, on top of $200,000 of other income, married filing jointly.
That is 22.0% of the gain before any recapture, and $15,350 of it is Pennsylvania tax.
Assumptions (2026 tax year): the $200,000 is wages, 2026 standard deduction of $32,200, all gain long-term. Federal: $445,900 of the gain at 15% and $54,100 at 20% (20% starts at $613,700 of taxable income, IRS, Rev. Proc. 2025-32). Net investment income tax: 3.8% of $450,000, the amount by which modified AGI of $700,000 exceeds $250,000 (IRC 1411).
If the asset was ever a rental or business property, add depreciation recapture: up to 25% on the real-property portion and ordinary rates on equipment.
The four layers, in the order they hit you
1. Federal capital gains. 0%, 15% or 20%, decided by your total taxable income for the year, including the gain itself. That is why one large sale lands people in the 20% bracket who normally sit far below it.
2. The 3.8% net investment income tax. Switches on above $200,000 modified AGI single, $250,000 married filing jointly. Those thresholds have never been indexed for inflation, so each year quietly captures more sellers.
3. Depreciation recapture. Only if you depreciated the asset. The real-property portion is unrecaptured Section 1250 gain at up to 25%; equipment is Section 1245 recapture at ordinary rates. The §1245 piece cannot be spread: §453(i) puts it in the year of sale. Unrecaptured §1250 gain on a building is spread with the payments.
4. Pennsylvania tax. A flat 3.07%, applied on top of everything above.
Who Pennsylvania can tax, and on what
- Real property is taxed where it sits. If the property is physically in Pennsylvania, Pennsylvania taxes the gain whether or not you live there. Moving does not help you on in-state real estate.
- Everything else generally follows residency on the date of sale: business interests, stock, collectibles.
If you are a non-resident selling real property in Pennsylvania, Pennsylvania still taxes the gain, and you report it on a non-resident Pennsylvania return. Pennsylvania's nonresident withholding rule covers Pennsylvania-source non-wage income over $5,000 a year paid to a non-resident (PA Department of Revenue, nonresident withholding). Ask the settlement agent before closing whether any amount will be withheld from your proceeds.
Does spreading the sale help in Pennsylvania?
Yes, on the federal side. Pennsylvania taxes the gain at a flat 3.07%, so spreading it does not lower the Pennsylvania rate. It does keep more of each year's gain in the 0% or 15% federal brackets and can keep income under the 3.8% net investment income tax threshold.
An installment sale under IRC §453 spreads the gain across the years you actually receive payments, so every threshold above is tested annually instead of once.
The trade-offs deserve stating plainly: you need a buyer willing to pay over time, you carry collection risk, §1245 recapture on equipment still lands in year one, and large installment balances can trigger an interest charge under §453A. It fits some sales and not others, which is exactly what a conversation before closing is for.
Find out what your sale is really going to cost you in tax, and what you can do about it
No retainer. On a funded structure, the insurer pays a one-time commission of about 4% of the amount structured to the brokerage firm that places it (Hans's share is about 2.4%; no trail). It is built into the annuity pricing, not a separate fee.
Find out what your tax bill actually looks like before you sell, including the parts your CPA may not raise until the return is already being prepared.
Most people find out what they owe after the sale closes, when nothing can be changed. A short conversation now tells you the number, which layers apply to your situation, and which options are still open while the sale is still in front of you.
- What you will actually owe: federal, the 3.8% surtax, recapture and your state
- Which of those layers you can still do something about
- Whether spreading the sale changes the number in your case
Hans Goldstein · 213-414-2808 · Hans Goldstein: Tax & Exit Planning · This is an educational conversation, not tax advice. Bring your CPA in before you file.
Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.
Frequently asked
Q: What is the Pennsylvania capital gains tax rate? A: A flat 3.07%. Pennsylvania taxes net gains from the sale of property at its single personal income tax rate, so the state rate does not rise with income.
Q: Does Pennsylvania have a lower rate for long-term capital gains? A: No. Pennsylvania applies the same rates to long-term and short-term gains. The preferential 0/15/20% treatment exists only at the federal level.
Q: How do I calculate capital gains tax in Pennsylvania? A: Start with your sale price minus your adjusted cost basis, which is what you paid plus improvements minus any depreciation you took. That gain is then subject to federal capital gains rates, potentially the 3.8% net investment income tax, depreciation recapture if it was a rental, and Pennsylvania tax. The calculator on this site layers all four.
Q: Can I avoid Pennsylvania capital gains tax by moving before I sell? A: Residency changes are scrutinized closely and the facts matter a great deal, including where you lived at closing and whether the asset is real property physically located in the state. Real estate is generally taxed by the state where it sits regardless of where you live. Talk to a CPA before relying on this.
Selling something specific in Pennsylvania?
- Selling real estate: tax deferral guide
- Selling a business: tax deferral guide
- Selling a mobile home park: tax deferral guide
- Selling a self-storage facility: tax deferral guide
- Selling a dental practice: tax deferral guide
- Selling a veterinary practice: tax deferral guide
- Selling a SaaS business: tax deferral guide
- Selling an insurance book of business: tax deferral guide
Run your specific numbers
The calculator runs your sale through real 2027 federal and latest published state tax brackets and shows §453 savings vs lump sum side-by-side.
Run the calculator → 213-414-2808