Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / By State / Pennsylvania
Pennsylvania capital gains tax

Capital gains tax in Pennsylvania (2026): selling a business, real estate or farm

Short answerPennsylvania taxes net gains at its flat 3.07% personal income tax rate, the same rate as wages, with no capital gains break (PA Department of Revenue, 2026). Losses offset gains only within the same class and year, never carry forward, and cannot cross between spouses. On a $2,000,000 business sale the engine shows $61,400 of Pennsylvania tax, $489,875 in total.

Flat 3.07%, but losses stay in their own box

Pennsylvania has no capital gains provision at all. Gains land in the income class called net gains or income from the sale, exchange or disposition of property, and every class is taxed at the same flat 3.07% (PA Department of Revenue; the 2026 PA-40 ES instructions use 0.0307). The rate has not changed since 2004.

The flat rate is the simple part. The class rules are where Pennsylvania differs from the federal return. A loss offsets gains only inside the same class and the same year. A capital loss cannot reduce wages, interest or business profit, Pennsylvania has no provision for carrying a loss to another year, and one spouse's loss cannot offset the other's gain even on a joint return (PA PIT Guide, net gains chapter). Federal carryforwards you built up, the kind discussed in capital loss carryovers, do nothing here. To use a loss in Pennsylvania, realize it in the same year as the gain, in the name of the spouse who has the gain; see tax-loss harvesting.

Federal tax still applies at 0%, 15% or 20% on long-term gain, with 20% above $613,700 of joint taxable income for 2026 (Rev. Proc. 2025-32); the federal capital gains guide has the rest.

Worked example: a low flat rate and a neighbor

A joint-filing couple sells the company they ran for a $2,000,000 gain, $200,000 of it equipment recapture, paid in cash in 2026. Pennsylvania adds $61,400, and total tax caused by the sale is $489,875, an effective 24.5%. Pennsylvania has no recapture concept, so the equipment piece is taxed at the same 3.07% (2026) as the rest.

  • Across the river: the same share sale by New Jersey residents costs $612,675, or $122,800 more, almost all of it state tax.
  • Five-year note on an asset sale: total tax falls to $384,233, while Pennsylvania's share stays at $61,400. With one flat rate, timing never changes the Pennsylvania bill; the savings are federal.

The installment method works for assets, not for stock

Pennsylvania lets a cash-basis seller of real or tangible personal property choose between reporting the whole gain in the year of sale or electing the installment method on PA Schedule D-1 (REV-1689). Accrual-basis taxpayers cannot use it, and a sale at a loss cannot either (PA PIT Guide).

The surprise is intangibles. Even when you sell stock or an LLC interest on a note, a cash-basis Pennsylvania taxpayer may not elect the installment method. The choices are reporting all the gain in the year of sale, or the cost recovery method, where each payment is treated as return of basis until basis is fully recovered and only then as gain (PA PIT Guide). That can push Pennsylvania gain later, not earlier, but it changes the cash-flow picture of a seller-financed stock deal. Settle it before choosing between an asset sale and a stock sale, and model the federal side with the Section 453 installment sale analysis.

Your Pennsylvania basis may not match the federal one

Pennsylvania keeps its own basis records in several places. It recognized like-kind exchange deferral only for exchanges on or after January 1, 2023; an older exchange was taxable for Pennsylvania, so property received in it can carry a higher Pennsylvania basis than federal basis (PA PIT Guide). The guide also lists Section 338(h)(10) transactions, sales of business assets and related-party sales as federal-Pennsylvania differences. Before a sale, ask your CPA to rebuild Pennsylvania basis instead of copying the federal figure, especially for property that came out of a pre-2023 1031 exchange.

Local taxes and the realty transfer tax

Local earned income taxes are levied on wages and net business profits, so a long-term gain on investments is outside them. Philadelphia is the exception worth knowing: its School Income Tax, 3.735% for 2026 on residents' unearned income, reaches capital gains only on property held less than six months (City of Philadelphia).

Real estate carries a transfer tax: 1% to the Commonwealth on the value transferred, plus a local rate set by the municipality and school district (PA Department of Revenue). In Philadelphia the city rate is 3.578%, for 4.578% in total, also triggered by transfers of 75% or more of a real estate company. The tax is usually split between buyer and seller by contract (City of Philadelphia). Pennsylvania's nonresident withholding program covers rents, royalties and nonemployee compensation rather than sale proceeds, though nonresidents still owe tax on Pennsylvania-source gains (PA Department of Revenue).

Inheritance tax: the hold-versus-sell question

Pennsylvania taxes inheritances at 0% to a spouse (and to a parent from a child aged 21 or younger), 4.5% to children and other lineal heirs, 12% to siblings and 15% to other heirs, with a 5% discount if paid within three months of death (PA Department of Revenue). Selling before death does not avoid it, since cash is taxed the same way. Holding appreciated property keeps the federal basis step-up for heirs, and qualifying farmland passing to eligible family members has been exempt since July 1, 2012. The step-up at death analysis weighs the two, and the capital gains tax by state table compares neighbors like New Jersey. To see every option on your own sale, get the Big Sale Tax Analysis.

What to know

The flat rate makes timing irrelevant for Pennsylvania, so the real work is on basis and losses: losses in the wrong year, class or spouse are simply lost. A seller-financed stock sale cannot use the installment method here, and transfer tax on real estate can rival the income tax in Philadelphia.

Worked example

Married filing jointly, $200,000 of other income, $1,800,000 of long-term gain plus $200,000 of equipment recapture, cash at closing in 2026. Active owners, so no NIIT. Identical numbers for an owner domiciled across the river in New Jersey, selling shares so the gain follows domicile. Asset sale of tangible property with the PA installment election: recapture in 2026, the $1,800,000 capital gain spread evenly over 2026 to 2030, $200,000 of other income each year. Note interest left out.

Engine runPennsylvania resident sells a business, $2M gainSame sale by a New Jersey residentPennsylvania asset sale on a 5-year note
Filing statusMarried, jointMarried, jointMarried, joint
StatePennsylvaniaNew JerseyPennsylvania
Tax years115
Other income (wages, pension, interest) per year$200,000$200,000$200,000
Long-term capital gain$1,800,000$1,800,000$1,800,000
Section 1245 recapture (ordinary income)$200,000$200,000$200,000
Federal income tax on the sale$428,475$428,475$322,833
Net investment income tax (3.8%)$0$0$0
State income tax on the sale$61,400$184,200$61,400
Total tax caused by the sale$489,875$612,675$384,233
Effective rate on the gain24.5%30.6%19.2%
Gain kept after these taxes$1,510,125$1,387,325$1,615,767

Computed October 7, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.

Run your own numbers

Federal on the sale$0
NIIT$0
State$0
Total tax, held over a year$0
Effective rate0%
If held one year or less$0

2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules. Tax shown is the tax caused by the sale. Excludes selling costs, local taxes and NIIT exceptions for active business owners. Education only.

Free PDF sheet

Long-Term vs Short-Term Capital Gains (2026)

The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

Frequently asked questions

What is the Pennsylvania capital gains tax rate for 2026?
3.07%, the same flat personal income tax rate that applies to wages and every other class of income (PA Department of Revenue, 2026). Pennsylvania has no separate capital gains rate and no reduced rate for long-term gains, so a gain held ten years and one held ten days are taxed alike at the state level.
Does Pennsylvania tax capital gains on the sale of a primary residence?
Generally no. Pennsylvania exempts gain on a principal residence when you owned and occupied it for two of the five years before the sale, and its guide states no dollar cap. A portion used for business or rental, or depreciation taken on it, is taxable (PA PIT Guide, net gains chapter).
Does Pennsylvania allow capital loss carryovers?
No. Pennsylvania has no provision for carrying losses from one year to another, and a loss in the net gains class cannot offset other classes of income or a spouse's gains (PA PIT Guide). A federal capital loss carryforward gives no Pennsylvania benefit.
How do I avoid capital gains tax in Pennsylvania?
You can reduce or time it: realize losses in the same year and same spouse as the gain, use a 1031 exchange for real estate (recognized for exchanges since 2023), elect the installment method for real or tangible property, or hold for the federal step-up at death. Pennsylvania's flat 3.07% (2026) means spreading the gain does not lower the state rate.
Does Pennsylvania tax capital gains for retirees?
Yes. Pennsylvania exempts most retirement income such as Social Security and qualifying pension distributions, but gains from selling property are in the net gains class and taxed at 3.07% (2026) at any age. In the engine's example, a $2,000,000 sale adds $61,400 of Pennsylvania tax.
How Hans helps: the $5,000 Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. Get the Big Sale Tax Analysis.
Next step

Know your number before you sign.

The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.

Prefer email? Request the analysis by email.

Book a callCall Hans