Capital gains tax in Pennsylvania (2026): selling a business, real estate or farm
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 run | Pennsylvania resident sells a business, $2M gain | Same sale by a New Jersey resident | Pennsylvania asset sale on a 5-year note |
|---|---|---|---|
| Filing status | Married, joint | Married, joint | Married, joint |
| State | Pennsylvania | New Jersey | Pennsylvania |
| Tax years | 1 | 1 | 5 |
| 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 gain | 24.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
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.
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.
Frequently asked questions
What is the Pennsylvania capital gains tax rate for 2026?
Does Pennsylvania tax capital gains on the sale of a primary residence?
Does Pennsylvania allow capital loss carryovers?
How do I avoid capital gains tax in Pennsylvania?
Does Pennsylvania tax capital gains for retirees?
Sources
- PA Department of Revenue: personal income tax rates
- PA PIT Guide: net gains (losses) from the sale, exchange or disposition of property
- PA PIT Guide chapter (PDF): principal residence and nonresident rules
- PA Department of Revenue: inheritance tax
- PA Department of Revenue: realty transfer tax
- City of Philadelphia: realty transfer tax
- City of Philadelphia: School Income Tax on unearned income
- PA Department of Revenue: nonresident withholding
- Rev. Proc. 2025-32 (IRS, 2026 inflation adjustments)
Figures as of October 7, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
New Jersey
A 10.75% bracket that starts at $1 million, losses that expire every December 31, and since July 2025 a graduated realty fee the seller pays.
ReadOhio
Two rates for one gain: 2.75% on investment gains, 3% on business-sale gain after a $250,000 deduction, plus a new 2026 payroll-based deduction.
ReadLoss carryovers
Old capital losses, frozen passive losses and NOLs can soak up a big gain, but each one follows its own ordering rules and caps.
ReadAsset sale vs stock sale
Buyers want assets for the step-up, sellers want stock for one layer of capital gain; here is how the difference is measured and priced.
ReadInstallment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
ReadStep-up at death (hold)
Holding an appreciated asset until death can erase the built-in gain for heirs; here is when that beats selling now and when it does not.
ReadKnow 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.