Pennsylvania Capital Gains Tax

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.

Pennsylvania capital gains tax calculator

Enter your sale and see the 2026 tax in Pennsylvania: federal capital gains tax, the 3.8% net investment income tax and Pennsylvania state tax, then the same sale spread over the years the buyer pays you. It runs on the same engine as our capital gains tax calculator, in your browser. Rental property, your home, land, a business, stock or collectibles.

Example loaded. Change any number to run yours.
What you paid plus improvements, minus depreciation or depletion taken. Inherited: the value at the date of death.

Pennsylvania taxes net gains from the sale of property as one of eight classes of income at a flat 3.07%; a loss in one class cannot offset income in another class. Source: PA Department of Revenue, personal income tax (current), checked October 13, 2026. Federal: 2026 brackets per IRS Rev. Proc. 2025-32 (0%, 15% and 20% on long-term gain; 20% above $613,700 of taxable income married filing jointly); 25% cap on building depreciation, IRC 1(h)(1)(E); 28% cap on collectibles, IRC 1(h)(4); 3.8% net investment income tax above $250,000 married or $200,000 single, IRC 1411.

Estimated tax on this sale (2026), example in Pennsylvania
$202,007

You keep $925,993 after selling costs and tax. The tax is 27% of your gain.

Your gain

  • Sale price less selling costs$1,128,000
  • Less your basis$380,000
  • Your taxable gain$748,000
  • Depreciation, taxed at up to 25%$140,000
  • Long-term gain at 0%, 15% or 20%$608,000

The tax, line by line

  • Federal income tax (incl. $14,745 AMT)$153,280
  • Net investment income tax (3.8%)$25,764
  • Pennsylvania tax$22,964
  • Total tax$202,007
  • You keep$925,993
All in one year vs spread over 8 years: tax of $202,007 against $155,188 when the buyer pays you over 8 years. You keep $46,819 more.

Get the REAL numbers

Hans Goldstein, EA
Hans Goldstein, EAAdmitted to practice before the IRS

Talk to capital gains expert Hans Goldstein, EA.

These are estimates. Have a qualified tax professional run your real numbers in a 15-minute scope call.

Why now: the year you close and how the buyer pays you are set before closing, and they decide how much of this Pennsylvania tax you keep.

Book my 15-minute call

This is an estimate. Getting it right down to the tee takes your actual tax forms (returns, K-1s, depreciation schedules), a consult and a paid analysis. The first 15-minute scope call is free.

Worked example (computed October 13, 2026)

A single seller in Pennsylvania sells a rental building for $1,200,000 with $72,000 of selling costs and a $380,000 basis after $140,000 of depreciation; other income is $130,000. The gain is $748,000. All in one year the tax is $202,007: $153,280 federal, $25,764 net investment income tax and $22,964 Pennsylvania tax, or 27% of the gain. Spread over 10 years on a note, the tax on the gain is $155,188, so they keep $46,819 more (interest on the note is taxed separately).

What a Pennsylvania seller actually pays

federal capital gains tax (0%, 15% or 20%) plus the 3.8% net investment income tax; plus Pennsylvania 3.07% on the gain, and on real estate a state and local realty transfer tax, usually split between buyer and seller by contract.

Before you read further

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.

Hans Goldstein, EA
Admitted to practice before the IRS

No retainer · no obligation. Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.

Go deeper: capital gains tax in Pennsylvania when you sell a business, real estate or a farm on Big Sale Tax.

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 three layers on a Pennsylvania sale

Most sellers budget for one tax and get hit with four:

  1. Federal long-term capital gains at 0%, 15% or 20% depending on total taxable income for the year.
  2. 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.
  3. 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.
  4. Pennsylvania state tax at up to 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), 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.

Recapture is the exception: under §453(i) it is recognized in the year of sale regardless of how payments are structured.

What this actually costs: Pennsylvania numbers

Take a $500,000 long-term gain, on top of $200,000 of other income, married filing jointly.

layerratetax
Federal long-term capital gains15 to 20%$75,000 to $100,000
Net investment income tax3.8%~$19,000
Pennsylvaniaup to 3.07%~$15,350
Total$109,350 to $134,350

That is roughly 27% of the gain before any recapture. The Pennsylvania portion alone is about $15,350, money that has nothing to do with the federal rules everyone reads about.

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. at up to 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, expect withholding at closing and a non-resident return the following spring. Withholding is an estimate, not the final tax.

Does spreading the sale help in Pennsylvania?

Yes. Pennsylvania taxes the gain as ordinary income, so the amount landing in a single year drives your state bracket as well as your federal one. Spreading the gain pulls both down at once, which is why the effect compounds in high-rate states.

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, recapture 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.

Hans Goldstein

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
More details (optional)
Hans Goldstein, EA
Admitted to practice before the IRS

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: Up to 3.07%. Pennsylvania taxes capital gains as ordinary income, so the rate depends on your total income for the year.

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 scrutinised 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?

Run your specific numbers

The calculator runs your sale through real 2026 federal + state tax brackets and shows §453 savings vs lump sum side-by-side.

Run the calculator → 213-414-2808
Get my number Book 15 min Call

Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.