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.

Short answerPennsylvania taxes net gains from the sale of property at a flat 3.07%, the same rate as all its personal income, so a large gain does not reach a higher Pennsylvania rate. Federal tax of 0%, 15% or 20% and the 3.8% net investment income tax come on top, and those are the layers an installment sale (IRC §453) can lower by spreading the gain over several years. Source: Pennsylvania Department of Revenue, personal income tax, checked November 17, 2026.

Pennsylvania capital gains tax calculator

Enter your sale and see the 2027 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 November 21, 2026. Federal: 2027 brackets per IRS Rev. Proc. 2026-35 (0%, 15% and 20% on long-term gain; 20% above $633,600 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 (2027), Pennsylvania
$201,809

You keep $926,191 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. $15,174 AMT)$153,081
  • Net investment income tax (3.8%)$25,764
  • Pennsylvania tax$22,964
  • Total tax$201,809
  • You keep$926,191
All in one year vs spread over 8 years: tax of $201,809 against $155,118 when the buyer pays you over 8 years. You keep $46,691 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 November 21, 2026, 2027 federal tables)

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 $201,809: $153,081 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,118, so they keep $46,691 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.

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:

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

layerbrackettax
Federal long-term capital gains15% and 20%$77,705
Net investment income tax3.8%$17,100
Pennsylvaniaflat 3.07%$15,350
Total$110,155

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.

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

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