Quick Answer: With the default inputs (a $100,000 gain, $75,000 of other income, single), Pennsylvania capital gains tax is $3,070.00, and $96,930.00 of the gain remains before federal tax.
Capital gains tax in Pennsylvania: 3.07% since 2004
The Department of Revenue's rate history is short and steady. Pennsylvania charged 2.8% from 1993 through 2003, then moved to 3.07% for tax year 2004, and that is still the rate for 2026. A Pittsburgh retiree who sold Alcoa stock in 2005 and a Bucks County couple selling a vacation home in the Poconos this year pay the same percentage on their profit.
The quirk is not the rate but the structure. Pennsylvania's return does not pour all income into one bucket. It keeps separate classes (compensation, interest, dividends, net gains from the sale of property and a few more) and reports the gains class on PA-40 Schedule D. Each class is taxed at 3.07%, but each class also stands alone, and that changes how losses behave.
How is this calculated?
PA tax = net gain in the property-sale class × 0.0307
That is the entire Pennsylvania computation the engine performs. It reads one 3.07% band, applies it to the gain you enter, and ignores the other-income box, which exists for states with brackets. $30.70 of every $1,000 goes to Harrisburg. The default checks out: $3,070.00 is 3.07% of $100,000, and the effective and marginal rates both print as 3.07%. Working backward is just as easy. A seller who has set aside $10,000 for the Commonwealth can realize $325,732.90 of gain before that reserve runs out, and one who has set aside $2,500 covers $81,433.22. The twelve-row table under the result walks the default in sixths, from $511.67 on $16,666.67 of gain to $6,140.00 on $200,000, and never bends.
What you type matters more than the math. The number has to be the net of the gains class only, already reduced by losses in that class, and floored at zero.
Worked Example
A Scranton widow with no wages or pension sells the brokerage account her husband built, realizing a $140,000 gain, and has $0 of other taxable income. Pennsylvania tax: $140,000 × 0.0307 = $4,298.00, leaving $135,702.00.
An Allentown warehouse supervisor earning $71,000 sells a rental twin at a $58,500 profit. Tax: $1,795.95. His salary is taxed in the compensation class at the same 3.07%, but it does not change what the gain costs.
A Malvern biotech founder with $240,000 of salary sells her stake for a $615,000 gain. Tax: $18,880.50.
The losses case is where Pennsylvania departs from the IRS. A Harrisburg investor with $90,000 of salary has a $30,000 gain on one stock and a $40,000 loss on another. The gains class nets to a $10,000 loss, which Pennsylvania treats as zero. She owes no Pennsylvania tax on the sale, but the extra $10,000 of loss cannot be used against her salary and cannot be carried into next year. Her federal return would use $3,000 of it now and carry the rest. For Pennsylvania she enters $0.
Pennsylvania capital gains tax against Ohio, West Virginia, Maryland and three more neighbours
The same $100,000 gain, on the same other income as the Pennsylvania run, is taxed Ohio $2,750, West Virginia $4,580, Maryland $5,125, New York $5,871.75, New Jersey $6,370 and Delaware $6,600 next door, against $3,070 in Pennsylvania. Pennsylvania sits between Ohio, $320 lighter, and Delaware, $3,530 heavier.
Every Pennsylvania neighbour above has a calculator of its own: the Ohio capital gains tax calculator, the West Virginia capital gains tax calculator, the Maryland capital gains tax calculator, the New York capital gains tax calculator, the New Jersey capital gains tax calculator and the Delaware capital gains tax calculator.
The loss rules, stated plainly
- A loss in the gains class offsets gains in that class for the same year, and nothing else.
- A net loss in one class cannot reduce income in another, so a stock loss never shelters wages, interest or dividends.
- There is no carryforward. A federal capital loss carryover from earlier years must not be subtracted from the gain you enter here.
These three rules are why Pennsylvania's tax on a messy portfolio year can be higher than a quick look at the federal Schedule D suggests.
Where Pennsylvania ranks for a retiree's $140,000 sale
Take the widow's inputs: a $140,000 gain, $0 of other income, single. Pennsylvania's $4,298.00 is the 33rd highest of the 50 state calculators. Wisconsin is just above it at $4,590.46 and Louisiana just below at $4,200.00, while Oregon heads the list at $12,103.50. Among states that tax gains at all, Pennsylvania sits near the bottom.
Tax Forgiveness and a one-time sale
Pennsylvania's Tax Forgiveness program, claimed on PA Schedule SP, can wipe out the tax of a low-income household. By the department's examples, the ceiling is $34,250 for a married pair raising two kids and $27,750 for a lone parent of two. It estimates nearly one in five households qualify.
A sale can cost that relief. Eligibility income is broader than taxable income: the Schedule SP instructions tell filers to include nontaxable income, including interest, dividends and gains. So a family just under its limit that sells a parent's house at a gain can lose forgiveness for the year. This calculator does not test eligibility; if your household normally files Schedule SP, check the effect of the sale there before relying on the figure here.
Local taxes: one sentence for most, two for Philadelphia
Outside Philadelphia, Pennsylvania's local earned income tax and Local Services Tax are measured on earned income and net profits, as the Department of Community and Economic Development explains, so an investment gain does not add to them.
Philadelphia residents are different. The city's School Income Tax reaches certain unearned income, and its list includes short-term capital gains but not long-term ones; the city's rate was 3.74% for tax year 2025. A Fishtown resident who sells shares held under a year should add that tax to the state figure. This page does not.
What does this calculator not account for?
- Class-by-class loss netting. Enter the net of the gains class yourself.
- Tax Forgiveness and Schedule SP eligibility.
- Philadelphia's School Income Tax on residents' short-term gains.
- Pennsylvania's own home-sale exclusion, which follows state rules, not federal ones.
- Federal income tax. That is a separate bill, priced on our IRS-side capital gains page.
What mistakes do people make with this?
- Subtracting last year's federal loss carryover. Pennsylvania has no carryforward.
- Netting a stock loss against wages. Classes do not mix.
- Assuming the low rate means no planning. A $615,000 gain still produces an $18,880.50 bill with nothing withheld.
- Ignoring Schedule SP. For a household near the forgiveness line, the sale can cost more than 3.07%.
Frequently Asked Questions
What is Pennsylvania's tax rate on capital gains for 2026?
Is a long-term gain taxed less in Pennsylvania?
Can I carry a Pennsylvania capital loss to next year?
What does a $9,000 gain cost in Pennsylvania?
Does filing jointly change the Pennsylvania figure?
Sources
- Pennsylvania Department of Revenue, the 3.07% rate and its history back to 1971.
- Pennsylvania Department of Revenue, 2025 PA-40 with Schedule D for the gains class.
- Pennsylvania Department of Revenue, Tax Forgiveness limits and Schedule SP eligibility income.
- City of Philadelphia, School Income Tax on residents' short-term gains.
- Pennsylvania DCED, local withholding FAQs defining the earned income base.