Home › Capital gains tax

Pennsylvania Capital Gains Tax: 3.07% Flat Rate, No Long-Term Discount

· By the Veritas Tax Credits editorial team (how we write and check) · Educational only, not tax advice

Quick answer

Pennsylvania does not have a separate capital gains tax. Gains from selling stock, real estate or other property are taxed as one of the state’s eight classes of income, at a flat 3.07% personal income tax rate, with no reduced long-term rate and generally no loss carryforward. Many gains on a principal residence are exempt under state rules. Federal capital gains tax still applies on top. Rates were checked against Pennsylvania Department of Revenue sources on October 31, 2026; confirm current-year amounts before filing.

Pennsylvania does not have a separate "capital gains tax." Gains from selling stock, real estate or other property are one of eight classes of income under the state personal income tax, and that tax is a flat 3.07% with no lower rate for long-term gains. This page explains how gains are taxed, what the exclusions and loss rules are, and how the federal tax sits on top.

Pennsylvania capital gains tax at a glance

  • Rate: 3.07% flat on taxable income, including net gains from the sale of property (Pennsylvania DOR).
  • No long-term break: Pennsylvania does not distinguish short-term from long-term gains. A gain on an asset held for ten years is taxed at the same 3.07% as one held for ten days.
  • Eight classes of income: Net gains from the sale of property are their own class. Losses in one class cannot offset income in another class.
  • No loss carryforward: A net loss in a class generally cannot be carried to another year.
  • Home sales: Gain on a principal residence is exempt if you owned it and used it as your principal residence for at least two of the last five years and you have not claimed the exclusion on another principal residence sale within the last two years. Gain attributable to rental or business use is generally taxable.
  • Federal tax is separate: Federal capital gains rates, the 3.8% net investment income tax and the federal home-sale exclusion apply on top.
Side-by-side diagram: Pennsylvania taxes a net gain from the sale of property as one of eight income classes at a flat 3.07% with no long-term rate, while federal tax applies separately at 0%, 15% or 20% plus the 3.8% net investment income tax
How one gain is taxed twice, separately: the flat Pennsylvania rate and the federal capital gains rates. Federal energy credits reduce only the federal side.

Example of the state calculation

Suppose a Pennsylvania resident has a $50,000 net gain from selling shares and no other property gains or losses. The state tax on that gain is $50,000 × 3.07% = $1,535. Federal tax is calculated separately. If the same person also sold a different asset at a $10,000 loss in the same property class, the loss would reduce the class to a $40,000 net gain and the state tax would be $1,228. A loss in a different income class, such as a business loss, would not reduce the gain.

Federal capital gains tax on top

Pennsylvania residents also owe federal tax on gains. The federal rates for 2026 are below.

Long-term gains (assets held more than one year) are taxed at 0%, 15% or 20% depending on taxable income. For 2026 the thresholds are:

RateSingleMarried filing jointlyHead of household
0%Up to $49,450Up to $98,900Up to $66,200
15%$49,451 to $545,500$98,901 to $613,700$66,201 to $579,600
20%Over $545,500Over $613,700Over $579,600

Short-term gains are taxed as ordinary income at the rates above. Higher earners may also owe the 3.8% net investment income tax (§1411) on the lesser of net investment income or the amount by which modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly); those statutory thresholds are not indexed for inflation. Sources: IRS Rev. Proc. 2025-32; 26 U.S.C. §1411.

Looking ahead: 2027 federal thresholds

The IRS released the 2027 inflation adjustments on November 5, 2026 (Rev. Proc. 2026-35, section 3.03). For gains realized in 2027, the 0% long-term rate applies up to $51,050 of taxable income for single filers, $102,100 for married couples filing jointly and $68,350 for heads of household, and the 20% rate starts above $563,200, $633,600 and $598,400 respectively. The 3.8% net investment income tax thresholds are set by statute and do not change. Pennsylvania's 3.07% rate is not affected by these federal adjustments.

Planning points that apply in Pennsylvania

Match gains and losses inside the same class

Because Pennsylvania does not allow cross-class netting or carryforwards, harvesting a loss only helps the state tax if the loss falls in the same year and class as the gain. Federal rules are different, so ask your CPA to model both.

Principal residence rules

The Pennsylvania exclusion for a principal residence is separate from the federal §121 exclusion. The two-of-five-year ownership and use tests and the two-year look-back apply. Part-year rental use can create a taxable portion reported on Schedule 19.

Opportunity Zones and 1031 exchanges

Federal deferral regimes do not automatically produce the same Pennsylvania result. Check the Department of Revenue guidance and your CPA before relying on a deferral.

Federal energy credits do not reduce Pennsylvania tax

A federal credit, whether earned or bought as a transferred §48E credit, reduces federal income tax only. A buyer needs federal tax to offset, and individuals face the passive activity limits (how they apply). Read the §48E buyer guide and who qualifies.

Comparison with other states

Pennsylvania applies one rate to every class of income, so there is no state benefit for holding an asset longer. Compare California, New York or New Jersey, and states without an income tax such as Florida and Texas.

For help finding a local professional, see our tax strategy guide.

Frequently asked questions

What is the capital gains tax rate in Pennsylvania?

Pennsylvania taxes net gains from the sale of property at the state's flat personal income tax rate of 3.07%. There is no separate or lower rate for long-term gains.

Does Pennsylvania have a long-term capital gains rate?

No. Pennsylvania does not distinguish between short-term and long-term gains. Both are taxed at 3.07%. Federal long-term rates of 0%, 15% or 20% apply separately.

Is the sale of a primary residence taxed in Pennsylvania?

Gain on a principal residence is exempt if you owned and used it as your principal residence for at least two of the last five years and have not claimed the exclusion on another principal residence sale within two years. Gain attributable to rental or business use can be taxable.

Can I carry a capital loss forward in Pennsylvania?

Generally no. Pennsylvania does not allow a net loss in one income class to offset income in another class, and it does not provide a carryforward for net losses.

Do federal energy tax credits reduce Pennsylvania income tax?

No. Federal credits reduce federal income tax. A buyer of a transferred credit such as §48E uses it against its own federal tax, subject to the usual limits, and it does not change the Pennsylvania calculation.

Does Pennsylvania follow the federal 20% rate and net investment income tax?

No. Those are federal taxes. Pennsylvania applies its own flat 3.07% to net gains, and the 3.8% net investment income tax applies only for federal purposes.

Owe $50k or more in federal tax?

Tell us your estimated liability and timing. We will show you what transferable credits are available and walk your CPA through the diligence.

Get a tax credit quote §48E buyer guide or call (888) 328-4718

Related guides