Pennsylvania Capital Gains Tax Calculator 2025
Use this free calculator to estimate capital gains tax in Pennsylvania, including federal rates, NIIT when applicable, and Pennsylvania's state treatment (flat 3.07% state rate).
State treatment: Flat 3.07% state rate·Official source ↗
Capital Gains Calculator
Federal · NIIT · All 50 states
Follow the three steps, save the sale, then calculate. Required fields are marked with *.
Your tax profile
These apply to every sale in this estimate.
What you sold
Prices and quantity for this lot. Give it a name if you will add more than one sale.
When you bought and sold
The IRS uses these dates to decide short-term vs long-term rates.
Next: Save this sale to the order log, then click Calculate now. Tax results do not update until you calculate.
Order log
Sales included in this tax estimate.
Please fill in the details to see your results. Follow the three steps on the left, then save a sale here.
Pennsylvania capital gains tax overview
Pennsylvania capital gains tax planning starts with the federal rules, then layers on Pennsylvania's own treatment (flat 3.07% state rate). This calculator estimates both so you can see a combined effective rate before you sell stocks, crypto, real estate, or other capital assets.
Federally, short-term gains (held one year or less) are taxed as ordinary income, while long-term gains generally use 0%, 15%, or 20% preferential rates for tax years 2025 and 2026. High earners may also owe the 3.8% Net Investment Income Tax when MAGI exceeds the IRS threshold for their filing status.
Pennsylvania applies a flat state rate to capital gains in our model (Flat 3.07% state rate). Flat-rate states are simpler to estimate than graduated systems, but deductions, credits, and local rules can still change your final bill — always confirm with the official revenue agency.
Pennsylvania figures in this model are drawn from the official source we cite for the state: https://www.revenue.pa.gov/. Confirm the current-year statute or agency page before you file — rates and special rules can change.
Use the calculator above with filing status and income to stack federal long-term or short-term tax, NIIT, and Pennsylvania state tax. Compare nearby states from the links below, review our methodology for data sources (including Pennsylvania's official reference), and consult a CPA before filing. This page is educational and not tax advice.
Pennsylvania rate snapshot
| Category | flat |
|---|---|
| Summary | Flat 3.07% state rate |
| Abbreviation | PA |
| Flat / modeled rate | 3.07% |
Always verify rates with thePennsylvania revenue agencyand review ourmethodology. Not tax advice.
FAQ
Pennsylvania FAQs
How does Pennsylvania tax capital gains?
Pennsylvania is modeled as a flat-rate state: Flat 3.07% state rate. We apply that modeled rate to taxable gains after federal asset-class rules. Federal short-term and long-term capital gains tax, and the 3.8% Net Investment Income Tax when MAGI exceeds the IRS threshold, can still apply.
Is the Pennsylvania rate the same for short-term and long-term gains?
In this calculator, Pennsylvania's modeled flat rate applies to taxable gains regardless of holding period. Federal treatment still differs for short-term vs long-term. Always confirm Pennsylvania statutes for any special exclusions.
Where do these Pennsylvania rates come from?
Our Pennsylvania model cites https://www.revenue.pa.gov/. Deductions, credits, and local taxes are not fully modeled — treat the state line as a planning estimate.
Guides
Related tax guides
- Short-term vs long-term capital gains explainedRead guide →
- How to use the 0% long-term capital gains bracketRead guide →
- State capital gains tax: zero, flat, and high-tax statesRead guide →
- US capital gains tax rates for 2026Read guide →
- How to calculate capital gains tax (federal formula)Read guide →
- Net Investment Income Tax (NIIT) 3.8% on capital gainsRead guide →
- Wash-sale rule for stocks and ETFsRead guide →
- How crypto capital gains tax works in the USRead guide →
- Section 121 home sale exclusion ($250,000 / $500,000)Read guide →
- How tax-loss harvesting works to offset capital gainsRead guide →
- Capital gains tax on RSUs, stock options, and ESPPs explainedRead guide →
- 1031 exchange rules: how to defer capital gains on real estateRead guide →
- Do you pay capital gains tax in an IRA or 401(k)?Read guide →
- Capital gains tax rates on collectibles, gold, and precious metalsRead guide →
