Calculate Sales Tax Included in a Total in Excel
Question details
The user needs to extract the specific tax amount from a final total value that already includes the sales tax.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Handling bookkeeping or accounting records where only the final gross amount and tax rates are provided, requiring the extraction of the base amount and tax amounts.
- Observed behavior
- The user has total sales data and needs to reverse-calculate the distinct pre-tax amount and the tax amount using spreadsheet formulas.
Ensure your tax rates are formatted as percentages (e.g., 5%) or entered as decimals (e.g., 0.05) in your cells to guarantee accurate formula results.
Extract a Single Sales Tax Component from a Gross Total
Use this mathematical formula to isolate the exact tax amount when dealing with a single tax rate included in your total.
Because the gross total equals the pre-tax amount multiplied by (1 + Tax Rate), you must divide the total by (1 + Tax Rate) to find the original pre-tax base. Subtracting this base from the gross total reveals the tax amount.
Enter your Gross Total in cell A2 and your Sales Tax Rate (as a percentage or decimal) in cell B2.
In a new cell, type the formula =A2/(1+B2) and press Enter. This gives you the amount before tax was applied.
To find just the tax portion, subtract the pre-tax amount from the gross total using the formula =A2-A2/(1+B2).
To avoid fractional pennies in financial data, wrap the formula in a ROUND function: =ROUND(A2-A2/(1+B2), 2).

Calculate Specific Tax Portions from Multiple Combined Rates
Use this method if your total includes combined taxes (such as regional and national taxes like GST and PST) and you need to separate them.
Manage Complex Tax Calculations Easily with WPS Spreadsheet
WPS Spreadsheet is a powerful, free tool for managing financial records. It natively supports all standard mathematical operations, complex multi-variable equations, and financial rounding formulas to make accounting efficient.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your sales data.
- 2. Input the data: Type your Gross Total and Tax Rate into separate columns.
- 3. Apply the tax formula: Enter the formula =A2-A2/(1+B2) in an empty cell to instantly calculate the tax amount.
- 4. Format as currency: Select your calculation cells, go to the Home tab, and choose 'Currency' from the number format dropdown.

Frequently Asked Questions
Why is my tax extraction formula returning the wrong number?
This usually happens if your tax rate cell is formatted as a whole number instead of a percentage. For a 5% tax, the cell must contain '5%' or '0.05'. If it just says '5', the formula divides your total by 6 instead of 1.05.
How do I ensure my calculated tax amount doesn't contain fractions of a cent?
Use the ROUND function to lock the calculation to two decimal places. Modify your formula to look like this: =ROUND(A2-A2/(1+B2), 2).
Can I calculate the original price before tax in one step?
Yes, you only need to divide the gross total by 1 plus the tax rate. Using =A2/(1+B2) will instantly yield the pre-tax subtotal.




