Table transformations

How to extract California sales tax from a tax-included price

2026-06-28
Task

A supplier sends a CSV or XLSX price list with only price_with_tax, where the price already includes sales tax. The example uses the California statewide base rate 7.25% and needs two output columns: price_before_tax and sales_tax_amount.

Short answer

For a 7.25% sales tax rate, create two output columns from price_with_tax: divide price_before_tax by 1.0725; for sales_tax_amount, multiply the price by 7.25 and divide by 107.25.

How to do it in Eofferix

  1. Upload the CSV or XLSX price list and open the table export template. In this example the source column is price_with_tax.

  2. Add the output column price_before_tax and use price_with_tax as its source.

  3. Open price_before_tax settings. In Transformations, add Divide with value 1.0725.

    Rules for calculating price before tax from the price_with_tax column
    For a 7.25% rate, the price before tax uses division by 1.0725.
  4. Add the second output column sales_tax_amount from the same source column price_with_tax.

    Opening sales_tax_amount column settings in the Eofferix table editor
    The animation shows the calculated table and the opening of sales_tax_amount settings.
  5. In sales_tax_amount settings, add Multiply with value 7.25, then Divide with value 107.25.

    Rules for calculating California sales tax amount from a tax-included price
    For a 7.25% rate, the sales tax amount is calculated as tax-included price × 7.25 ÷ 107.25.
  6. Save the template and check the final export step: the table should contain price_before_tax and sales_tax_amount.

Before / after

Before

source data
skunameprice_with_tax
SKU-100Desk lamp1072.50
SKU-200Office chair2145.00

After

result
skunameprice_with_taxprice_before_taxsales_tax_amount
SKU-100Desk lamp1072.50100072.5
SKU-200Office chair2145.002000145

What to keep in mind

  • The United States does not have a single national VAT rate. This example uses the California statewide base sales and use tax rate 7.25%; district taxes can make the actual rate higher.
  • For another local rate, use the same formula: price before tax = tax-included price ÷ (1 + rate / 100), tax amount = tax-included price × rate ÷ (100 + rate).
  • If the price contains a currency sign, spaces, or text, clean the price column first and apply division after that.
  • If your export requires whole dollars, add Round; if it needs cents, keep the calculated decimal value.

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up