Taxstra Logo
State Tax Guide

Pennsylvania Capital Gains Tax, Explained

One of the lowest flat rates in the country at 3.07%, but a loss rule unlike almost any other state: no carryforward, no carryback, and losses that generally can't cross into other income classes. Here's the actual math.

A guide by Taxstra Tax & Accounting — CPA-led tax strategy for business owners

Quick Answer

Pennsylvania taxes capital gains at its flat 3.07% rate, one of the lowest flat rates of any state that taxes income at all. No long-term discount, no separate schedule. A $150,000 gain costs $4,605 in Pennsylvania tax regardless of holding period. Stack the federal side (0/15/20% plus the 3.8% NIIT for higher earners) on top and most sellers land in the high teens to high twenties combined. The catch isn't the rate, it's the loss rule: Pennsylvania sorts income into eight separate classes, losses generally can't cross between them, and unused losses don't carry to another year. Run your numbers in our capital gains tax calculator, enter 3.07% in the state field.

3.07%: The Rate, and Why It's Deceptively Simple

Pennsylvania has run a flat individual income tax rate since 2004, and for the 2026 tax year that rate is still 3.07%, among the lowest flat rates in the country. It applies uniformly across every type of taxable income Pennsylvania recognizes: wages, interest, dividends, business profit, and gains from selling property.

Pennsylvania's own guidance puts it bluntly: the commonwealth makes no provision for capital gains as a separate category, and there's no long-term versus short-term distinction at all. Sell an asset you held ten days or ten years, the math is identical. A $150,000 gain costs $4,605 in Pennsylvania tax, full stop, no brackets, no holding-period test, no separate rate for the recapture slice of a rental sale.

Your federal LTCG bracketPennsylvania rateCombined federal + PA
0% federal bracket3.07%3.07%, Pennsylvania still collects
15% federal bracket3.07%18.07% (21.87% with NIIT)
20% federal bracket + NIIT3.07%26.87% all-in

Look at the first row: a long-term gain the IRS taxes at 0% is still Pennsylvania income. Because Pennsylvania's return does not simply piggyback dollar-for-dollar on federal taxable income the way some states' do, and instead calculates gain independently within its own property-disposition class, that 3.07% applies on its own terms even in a year the federal side collects nothing.

The Real Trap: Eight Income Classes, No Carryforward

Most states either tax capital gains as one more line of ordinary income or don't tax them at all. Pennsylvania does something structurally different, and it's the single most important thing to understand before you sell anything here. Pennsylvania divides all taxable income into eight separate classes: compensation, interest, dividends, net profits from a business or profession, net gains from the sale of property, net income from rents and royalties, income from estates and trusts, and gambling and lottery winnings.

Each class is its own silo. A loss in one class generally cannot offset a gain or income in a different class, in the same tax year or any other. Pennsylvania's own guidance states it plainly: the commonwealth "does not allow an offset of loss against gain from one class of income to another or between two taxpayers," meaning spouses filing jointly can't use one spouse's loss in a class to shelter the other spouse's income in a different class either.

The second half of the rule is just as unusual, and arguably more consequential: Pennsylvania has no provision for carrying a loss forward to a future year or back to a prior one. Federal law lets you carry an unused capital loss forward indefinitely, offsetting future gains for as long as it takes to use it up. Pennsylvania does not. A property loss that isn't fully absorbed by property gains in that same class in that same tax year is gone for state purposes. There's no future-year deduction waiting for you.

RuleFederal treatmentPennsylvania treatment
Loss offsets gain in a different income classGenerally allowed (capital losses offset capital gains; up to $3,000 against ordinary income)Not allowed, losses stay within their own income class
Unused loss carries to a future tax yearYes, capital losses carry forward indefinitelyNo, losses do not carry forward or back at all
Spouses can combine losses and gains across classesGenerally allowed on a joint returnNot allowed, even for spouses filing jointly

Worked example: say you have $60,000 of W-2 wages and, in the same year, a $40,000 loss from selling a losing stock position. Under federal rules, that loss would offset $3,000 of your wage income immediately and carry forward against future capital gains. Under Pennsylvania rules, the wages sit in the compensation class and the stock loss sits in the property-disposition class. They never touch. You pay Pennsylvania's 3.07% on the full $60,000 of wages, and the $40,000 loss can only offset other property-disposition gains realized that same year. If you don't have $40,000 of offsetting property gains in that year, the loss produces zero Pennsylvania tax benefit, ever.

Watch Out

Timing your gains and losses in the same year is the entire strategy

Because a Pennsylvania property loss only offsets Pennsylvania property gains realized in that identical tax year, the planning move is timing, not accumulation. If you're sitting on a loss position and also expect a gain elsewhere, in a rental sale, a business interest, a concentrated stock position, realizing both in the same calendar year is often the only way to get Pennsylvania tax value out of the loss at all.

Key Insight

This is genuinely unusual nationally

Most states that tax capital gains either mirror federal loss rules or piggyback on your federal AGI, carryforwards and cross-category offsets included. Pennsylvania's eight-class system, with no cross-class offsets and no carryforward or carryback whatsoever, is one of the more distinctive loss structures in the country. Sellers who assume Pennsylvania works like the federal return, or like their prior state, are routinely surprised at how little a loss year actually helps.

The Federal Layer, and Why It Plays by Different Loss Rules

The federal system sorts gains into buckets: short-term gains at your ordinary federal bracket, long-term gains (assets held over a year) at 0%, 15%, or 20%, with the 3.8% net investment income tax layered on above $200,000 single or $250,000 married filing jointly MAGI. Pennsylvania ignores all of that nuance and taxes the whole gain, short or long-term, at the flat 3.07%, calculated independently within its own property-disposition class.

Worked example: a Pennsylvania couple with $180,000 of W-2 income sells stock held three years for a $100,000 long-term gain. That gain sits in the 15% federal bracket, and their MAGI stays under the $250,000 NIIT threshold, so the math is two lines: federal $100,000 x 15% = $15,000, Pennsylvania $100,000 x 3.07% = $3,070. Combined: $18,070, about 18.07% all-in, among the lowest combined state-plus-federal totals in the country for a gain like this. Push the same gain over the NIIT threshold and add another $3,800 (3.8% x $100,000) to the total.

The favorable rate is real, but it only tells half the story. The moment a sale involves a loss rather than a gain, the two systems diverge sharply. Federally, that loss can offset other capital gains, up to $3,000 of ordinary income annually, and anything left over carries forward to future years. In Pennsylvania, the same loss is trapped inside its own income class for that one tax year, with no carryforward at all. A strategy built purely around the low 3.07% rate, without accounting for how losses actually work here, tends to understate the real Pennsylvania tax bill in a mixed gain-and-loss year.

Taxstra CPA Tip

Loss harvesting needs a Pennsylvania-specific calendar

Federal loss-harvesting advice generally assumes the loss will eventually find a home, this year or a future one. In Pennsylvania, a property loss that isn't offset by a property gain in the identical tax year simply expires. If you're harvesting losses for federal purposes late in the year, check whether you also have, or can realize, offsetting Pennsylvania property gains before December 31, not just for the federal wash-sale calendar but for the state one too.

Selling a Pennsylvania Rental: Recapture, and Where a Loss Year Would Sit

On the federal side, a rental sale splits into layers: the depreciation you claimed comes back as recapture at up to 25%, the remaining gain gets long-term rates, and the NIIT can ride on top. Pennsylvania flattens all of it, recapture and appreciation alike, into its net-gains-from-property class and taxes the whole number at 3.07%, with no separate recapture rate.

Worked example: you sell a Philadelphia-area rental for a $200,000 total gain, of which $60,000 is depreciation recapture, and the remaining $140,000 falls in your 15% federal bracket. Federal: $60,000 x 25% = $15,000, plus $140,000 x 15% = $21,000, $36,000. Pennsylvania: $200,000 x 3.07% = $6,140, no separate recapture rate, no separate schedule. Combined: about $42,140 before any NIIT.

The loss-rule mechanics matter most when a rental sale goes the other way. If a different property, or a different sale, produces a Pennsylvania property loss in that same tax year, it can offset this rental gain since both sit in the same net-gains-from-property class. But if the loss happens in a different year, or the offsetting position is a stock loss realized after the rental gain already closed and doesn't line up in the same tax year, Pennsylvania gives you nothing for it. A 1031 exchange, where it fits, sidesteps the issue entirely by deferring the gain rather than realizing it.

Taxstra CPA Tip

Sequence a portfolio loss and a rental sale in the same year

If you're planning to sell a rental with a large embedded gain, and you're also holding a losing investment position elsewhere, Pennsylvania rewards closing both in the same tax year. The property loss offsets the property gain dollar for dollar within the same class. Split them across years and the loss simply doesn't help your Pennsylvania return at all.

Local Earned Income Tax: Why It Doesn't Touch Your Gain

Nearly every Pennsylvania municipality and school district levies its own local Earned Income Tax on top of the state's 3.07%, under a uniform collection system created by Act 32. Rates vary by jurisdiction, and it's a real cost most Pennsylvania workers budget for. It is not, however, a cost that touches a capital gain.

The name is the clue: Earned Income Tax. It applies to wages, salaries, commissions, and net profits from a trade or business, the kinds of income you work for. Investment income, interest, dividends, and capital gains, falls outside its scope entirely. Sell stock, a rental property, or a business interest as a Pennsylvania resident, and you owe the state's 3.07% on the gain, but no local EIT on that same dollar, regardless of which municipality or school district you live in.

Key Insight

Don't double up the local rate by mistake

This is a common point of confusion because the local EIT and the state income tax both show up on Pennsylvania paychecks and both get bundled together as 'PA taxes' in casual conversation. When you're modeling the tax on a sale, the local EIT rate simply doesn't apply. Only the flat 3.07% state rate (plus the federal layers) touches a capital gain.

Pennsylvania Capital Gains FAQs

Pennsylvania taxes capital gains at its flat 3.07% personal income tax rate, one of the lowest flat state rates in the country. There is no separate capital gains schedule and no discount for how long you held the asset: a $150,000 gain costs $4,605 in Pennsylvania tax whether you held the asset ten days or ten years. Federal tax (0%, 15%, or 20%, plus the 3.8% NIIT for higher earners) stacks on top.

Selling into a six-figure Pennsylvania gain?

We model the federal + Pennsylvania stack, the eight-class loss rule before it costs you a deduction, and the recapture math on rentals, before the transaction locks your options. Nationwide remote firm, deep real estate practice.

Limited Availability

Find Out What You're Overpaying in Taxes

Book a free 30-minute call to walk through your situation. We'll tell you exactly how our CPA-led team can help — and whether we're the right fit.

Learn how our CPA-led team can help
30 minutes — no fluff, just answers
Zero obligation, zero pressure
Or Call (217) 788-0750
0+
Tax Returns Filed
0+
Years Experience
0%
CPA-Led Service
0min
Free Consultation

What to Expect on the Call

1
We learn about your business and tax situation
2
We explain which services fit your needs
3
You get honest answers — no hard sell