Capital Gains Tax in Pennsylvania: Complete Guide 2026
Data Notice: Figures, rates, and statistics cited in this article are based on the most recent available data at time of writing and may reflect projections or prior-year figures. Always verify current numbers with official sources before making financial, medical, or educational decisions.
Capital Gains Tax in Pennsylvania: Complete Guide 2026
Tax information is for educational purposes only and does not constitute tax advice. Consult a licensed tax professional for your specific situation.
Pennsylvania stands out among states for its flat income tax rate and unique approach to calculating taxable income. Unlike most states that start with federal AGI, Pennsylvania uses its own classification system with eight distinct classes of income. Capital gains fall under the “net gains or income from the disposition of property” class and are taxed at the same flat rate as all other income. Additionally, many Pennsylvania municipalities impose their own earned income tax, though capital gains are generally not subject to the local earned income tax.
Pennsylvania Capital Gains Tax Rates (2026)
| Tax Type | Rate |
|---|---|
| Pennsylvania state flat rate | ~3.07% |
| Philadelphia city tax on unearned income | ~3.75% |
| Federal short-term rate | ~10% to ~37% |
| Federal long-term rate | ~0%, ~15%, or ~20% |
| Federal NIIT surcharge | ~3.8% (income over ~$200,000 single / ~$250,000 MFJ) |
Pennsylvania’s ~3.07% flat rate is among the lowest state income tax rates in the country. It applies uniformly to all capital gains regardless of holding period, income level, or filing status.
How Capital Gains Tax Works in Pennsylvania
Eight Classes of Income
Pennsylvania does not use federal AGI as a starting point. Instead, it independently calculates income across eight classes, one of which is “net gains or income from the disposition of property.” This class covers capital gains from selling stocks, bonds, real estate, and other assets.
Key differences from the federal treatment:
- No capital loss carryover: Pennsylvania does not allow capital losses from one year to be carried forward to offset gains in future years. Losses can only offset gains within the same tax year and within the same income class.
- No netting across classes: Losses in one income class cannot offset income in another class (e.g., capital losses cannot offset wage income).
- No installment sale benefit for PA purposes: While Pennsylvania does follow installment sale reporting in some cases, the rules differ from federal, and taxpayers should consult a professional.
Cost Basis Calculation
Pennsylvania generally follows federal cost basis rules, including stepped-up basis for inherited property and adjusted basis for depreciation. However, Pennsylvania does not allow certain federal adjustments, so the state basis may differ from the federal basis in specific situations.
Home Sale Exclusion
Pennsylvania follows the federal exclusion of up to ~$250,000 (single) or ~$500,000 (married filing jointly) on the gain from selling a primary residence, provided the two-of-five-year ownership and use test is met.
Capital Gains Tax Scenarios in Pennsylvania
| Scenario | Federal Tax | PA Tax | Local Tax | Combined |
|---|---|---|---|---|
| Long-term gain ~$50,000 (15% bracket) | ~$7,500 | ~$1,535 | ~$0 | ~$9,035 |
| Short-term gain ~$50,000 (24% bracket) | ~$12,000 | ~$1,535 | ~$0 | ~$13,535 |
| Home sale gain ~$200,000 (excluded) | ~$0 | ~$0 | ~$0 | ~$0 |
| Philadelphia resident, gain ~$50,000 | ~$7,500 | ~$1,535 | ~$1,875 | ~$10,910 |
Note: Most Pennsylvania local earned income taxes do not apply to capital gains. Philadelphia’s unearned income tax at ~3.75% is an exception.
Comparison to Neighboring States
| State | Capital Gains Tax Rate | Treatment |
|---|---|---|
| Pennsylvania | ~3.07% (flat) | Separate income class; no loss carryover |
| New Jersey | ~1.4% to ~10.75% | Taxed as ordinary income |
| New York | ~4% to ~10.9% | Taxed as ordinary income |
| Delaware | ~2.2% to ~6.6% | Taxed as ordinary income |
| Maryland | ~2% to ~5.75% | Taxed as ordinary income |
| Ohio | ~0% to ~3.75% | Taxed as ordinary income |
| West Virginia | ~3% to ~6.5% | Taxed as ordinary income |
Pennsylvania’s flat ~3.07% rate is the lowest in the region for most income levels. However, the inability to carry forward capital losses is a significant disadvantage compared to neighboring states.
Tips for Managing Capital Gains Taxes in Pennsylvania
- Offset gains with losses in the same year since Pennsylvania does not allow capital loss carryforwards. Plan asset sales to realize gains and losses within the same tax year whenever possible.
- Hold investments long-term for federal tax savings. While the Pennsylvania rate is the same regardless, long-term gains are taxed at ~0%, ~15%, or ~20% federally versus up to ~37% for short-term gains.
- Use the home sale exclusion by meeting the two-of-five-year residency requirement before selling your primary residence.
- Consider Philadelphia residency implications — if you live in Philadelphia, capital gains are subject to an additional ~3.75% city tax on unearned income.
- Track your Pennsylvania cost basis separately from federal if you have assets with differing adjustments, particularly for depreciated property or assets acquired through certain transactions.
- Explore Opportunity Zone investments to defer and potentially reduce federal capital gains taxes. Pennsylvania has numerous designated zones. Review the federal income tax guide for details.
- Consult a tax professional for complex situations, especially involving multi-state gains or business dispositions. See find a CPA near you.
Key Takeaways
- Pennsylvania taxes capital gains at a flat rate of ~3.07%, one of the lowest state rates in the Northeast.
- The state does not allow capital loss carryforwards — losses can only offset gains within the same tax year.
- Pennsylvania uses its own eight-class income system rather than starting from federal AGI.
- The federal home sale exclusion of
$250,000/$500,000 is recognized by Pennsylvania. - Philadelphia residents face an additional ~3.75% city tax on unearned income including capital gains.
- Federal long-term capital gains rates provide the primary tax savings for holding investments over one year.
Next Steps
- Federal Income Tax Guide 2026 — understand federal capital gains rates and how they interact with Pennsylvania’s flat rate.
- State Income Tax Rates Comparison 2026 — see where Pennsylvania stands among all states.
- Tax Bracket Calculator — estimate your combined federal and Pennsylvania tax on investment gains.
- Self-Employment Tax Guide — learn about tax implications if you are selling a business in Pennsylvania.
- Find a CPA Near You — connect with a Pennsylvania tax professional.