Calculators.Life Calculator
Tax Accounting

Pennsylvania Sales Tax Calculator

Input Parameters

Scenarios
$
Enter the transaction price before tax, or total gross amount if extracting tax.
Pennsylvania has a 6% state tax. Allegheny County imposes an extra 1%, and Philadelphia imposes an extra 2%.
%
Enter custom sales tax percentage if applicable.
Choose whether to add tax to a pre-tax amount or reverse-calculate tax from a total price.

Computed Results

Total After-Tax Price
$106.00
Total Sales Tax$6.00
Pre-Tax Amount$100.00
Effective Tax Rate6%
PA State Tax (6%)$6.00
Local Tax (County/City)$0.00

The Pennsylvania Sales Tax Calculator determines the total after-tax price or extracts the pre-tax amount from a gross total. It automatically applies the 6% state rate, along with the specific local surcharges for Allegheny County and Philadelphia, to help you estimate transaction costs accurately.

How to Use the Calculator

Follow these steps to estimate your sales tax or reverse-calculate the pre-tax amount:

  1. Enter the Price / Amount: Input the transaction value. This can be the pre-tax price or the final gross amount, depending on your calculation mode.
  2. Select the PA Jurisdiction / Location: Choose the standard state rate (6%), Allegheny County (7%), Philadelphia (8%), or a custom rate.
  3. Set a Custom Tax Rate (if applicable): If you selected a custom jurisdiction, enter the specific percentage.
  4. Choose the Calculation Type: Select whether to add tax to a pre-tax amount or extract tax from a total price.

This calculator provides mathematical estimates for informational purposes only and does not constitute professional tax advice.

Formula & Explanation

The calculator uses standard percentage math to either add or extract sales tax based on the selected jurisdiction.

Adding Tax

When adding tax to a pre-tax amount, the formula is:

Sales Tax = Pre-Tax Amount × (Tax Rate ÷ 100)
Total Price = Pre-Tax Amount + Sales Tax

Extracting Tax

When extracting tax from a gross total, the formula determines the original pre-tax amount:

Pre-Tax Amount = Total Price ÷ (1 + (Tax Rate ÷ 100))
Sales Tax = Total Price − Pre-Tax Amount

Pennsylvania imposes a 6% state sales tax. Allegheny County adds a 1% local tax (7% total), and Philadelphia adds a 2% local tax (8% total).

Inputs & Outputs

FieldTypeDescription
Price / AmountInputThe transaction price before tax, or total gross amount if extracting tax.
PA Jurisdiction / LocationInputSelect the state rate, Allegheny County, Philadelphia, or a custom rate.
Custom Tax RateInputThe custom sales tax percentage, if applicable.
Calculation TypeInputChoose to add tax to a pre-tax amount or reverse-calculate tax from a total price.
Total After-Tax PriceOutputThe final price including all applicable state and local taxes.
Total Sales TaxOutputThe combined total of state and local sales tax.
Pre-Tax AmountOutputThe original price before any taxes are applied.
Effective Tax RateOutputThe total percentage rate applied to the transaction.
PA State Tax (6%)OutputThe portion of the tax attributed to the Pennsylvania state rate.
Local Tax (County/City)OutputThe portion of the tax attributed to local county or city surcharges.

Verified Scenario Walkthroughs

Here are examples of how the calculator processes different transactions based on the selected jurisdiction and calculation mode.

Low Value Purchase in Allegheny County

If you purchase an item for $25.50 in Allegheny County and choose to add tax, the calculator applies a 7% total rate. The total sales tax is $1.79 (comprising $1.53 in state tax and $0.26 in local tax), resulting in a final price of $27.29.

Extracting Tax from Philadelphia Gross Total

If you have a gross total of $1,500.00 in Philadelphia and choose to extract tax, the calculator uses the 8% total rate. The pre-tax amount is calculated as $1,388.89, with $111.11 in total sales tax ($83.33 state tax and $27.78 local tax).

High Value Transaction with Custom Tax Rate

For a $500,000.00 transaction using a custom tax rate of 8.5% (adding tax), the total sales tax is $42,500.00. The calculator attributes $30,000.00 to the 6% state rate and $12,500.00 to the local rate, bringing the final price to $542,500.00.

Practical Use Cases

This tool is useful for a variety of everyday calculations:

Frequently Asked Questions

What is the standard sales tax rate in Pennsylvania?

The standard state sales tax rate in Pennsylvania is 6%.

How much is the sales tax in Philadelphia?

Philadelphia imposes an additional 2% local tax on top of the 6% state tax, resulting in a total sales tax rate of 8%.

How much is the sales tax in Allegheny County?

Allegheny County imposes an additional 1% local tax on top of the 6% state tax, resulting in a total sales tax rate of 7%.

How do I calculate the pre-tax amount from a total receipt?

To find the pre-tax amount, divide the total price by 1 plus the tax rate expressed as a decimal. For example, in a 6% tax area, divide the total by 1.06.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.