SEFRO/tax

Pennsylvania Sales Tax: Rates, Rules, and How to Calculate It (2026)

Pennsylvania has a 6% state sales tax paired with local add-ons that can push the total to 8% in Philadelphia. With over 2,200 taxing jurisdictions statewide, it's one of the most fragmented tax landscapes in America. The only way to know your true rate is to verify by address.

Key takeaways — Pennsylvania sales tax
Statewide base rate6%
Typical combined rate6%–8%
Are groceries taxed?Exempt
Economic nexus threshold≈$100,000/yr (verify)
Taxing jurisdictions tracked2,239
Get the exact rateLook up any Pennsylvania ZIP or address instantly

How much is sales tax in Pennsylvania?

Pennsylvania's base rate is 6%, but local municipalities can and do layer on additional taxes. The lowest you'll pay anywhere in the state is 6%, while Philadelphia tops out at 8%. Across Pennsylvania's remarkable 2,239 taxing jurisdictions—more than almost any other state—the average combined rate is 6.14%. This means tax rates can shift within a single city or county.

Pennsylvania's tax system is hyper-local. A single ZIP code might include parts of two or three municipalities, each with different local tax rates. Even entering a ZIP code won't guarantee accuracy. You need the full street address to find the jurisdictionally correct rate.

What's taxed and what's exempt in Pennsylvania

Both groceries and clothing are exempt from sales tax in Pennsylvania. Whether you're buying fresh produce, frozen food, or a new coat, none of it is subject to state or local sales tax. This is a rare benefit in Pennsylvania's otherwise complex tax system.

SaaS and digital software are taxable in Pennsylvania, so subscription services and cloud software will add sales tax. Prescription medicines are exempt, which is standard across most states. Restaurant food and prepared meals are taxable, though the definition of 'prepared' versus 'unprepared' can vary by situation. Always verify the category you're buying rather than assuming a blanket rule.

Do you have to collect Pennsylvania sales tax? (Economic nexus)

Like most states after the 2018 Wayfair decision, Pennsylvania requires out-of-state sellers to register and collect once their sales into the state cross an economic-nexus threshold. That line is commonly around $100,000 of sales into Pennsylvania per year, and some states also count a number of separate transactions — but the exact figure, and whether the transaction count still applies, change from time to time. Confirm Pennsylvania's current threshold before you rely on it.

If you sell into Pennsylvania from out of state, the practical question is whether you've crossed that line. Watching your sales into each state is how you know when you're on the hook — and it's the kind of thing that's easy to miss until a notice shows up.

Nexus rules change often and vary by state (reviewed 2026-01-01). This is general information, not tax advice — confirm your obligations with the Pennsylvania Department of Revenue or a tax professional.

How to calculate Pennsylvania sales tax

The math itself is simple: multiply the taxable price by the combined rate for the buyer's location. A $100 order at 6.142% means about $6.14 in tax. The hard part is getting the right rate for every address, keeping it current as rates change, and doing it fast enough to run inside a checkout.

That's what Sefro does. One API call returns the combined state, county, city, and special-district rate for any US address, sourced from state Departments of Revenue and refreshed weekly. You can also calculate the full tax on an order, validate addresses, and pull return-ready reports. See how the data is sourced or pricing to start.

Look up the Pennsylvania sales tax rate for any ZIP

Enter a Pennsylvania ZIP code to see the live combined rate from the Sefro API.

Frequently asked questions

What is the sales tax rate in Pennsylvania?

Pennsylvania's state rate is 6%, but local taxes can add up to 2% more, bringing the top combined rate to 8%. The rate depends on which municipality and local tax district you're in.

Are groceries taxed in Pennsylvania?

No, groceries are exempt from sales tax in Pennsylvania. Food purchased for home consumption, including groceries, is completely tax-free.

Do I have to collect Pennsylvania sales tax if I sell online?

Once your sales into Pennsylvania cross its economic-nexus threshold — commonly around $100,000 a year, sometimes with a transaction count — you generally must register and collect. Because states adjust these rules, check Pennsylvania's current figure before relying on it.

How do I find the exact rate for a Pennsylvania address?

Use a sales tax lookup or Sefro's API with the full street address. Pennsylvania has 2,239 different taxing jurisdictions, so ZIP codes alone won't give you the right answer—you need the complete address.

Is SaaS or digital software taxable in Pennsylvania?

Yes, SaaS subscriptions and digital software are subject to sales tax in Pennsylvania.

Does Pennsylvania have local sales taxes on top of the state rate?

Yes, Pennsylvania has extensive local taxation. With 2,239 taxing jurisdictions, cities and school districts layer taxes on top of the 6% state rate.

Handle Pennsylvania sales tax with one API call

Skip the rate tables and district lookups. Sefro returns the exact combined rate for any Pennsylvania address in one request — start with a free trial.

See pricing Read the docs

Rates and rules on this page are provided for general information only and are not tax or legal advice. Rates change; confirm the current rate and your filing obligations with the Pennsylvania Department of Revenue or a qualified professional. See our Terms.