How to Calculate 6% Sales Tax from a Subtotal in Acrobat PDF
Question details
The user needs to configure a PDF form field to automatically calculate a 6% sales tax based on an existing subtotal amount.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form, such as an invoice or purchase order, where the sales tax must be dynamically computed when a subtotal is entered.
- Observed behavior
- The user requires the correct formula or JavaScript code to multiply the subtotal field by 0.06 within the tax field properties.
Verify the exact name of the subtotal text field in your PDF form, as field calculation scripts are case-sensitive and rely on exact name matches to function properly.
Use Simplified Field Notation
This is the easiest method to perform basic arithmetic operations like multiplication in Acrobat form fields without writing full JavaScript.
Simplified field notation allows you to use basic math symbols to reference field names and calculate values directly.
In Adobe Acrobat, go to 'Tools' and select 'Prepare Form' to enter the form editing mode.
Right-click on your Sales Tax text field and select 'Properties' from the context menu.
In the Properties dialog box, click on the 'Calculate' tab.
Select the 'Simplified field notation' radio button and click the 'Edit' button. Type your formula, for example: Subtotal * 0.06 (ensure 'Subtotal' perfectly matches your actual subtotal field name), then click 'OK' and close the properties.

Apply a Custom Calculation Script
Use this method if you are comfortable with JavaScript or need more complex, programmatic control over how the PDF calculates the tax.
Manage and Edit PDF Forms with WPS Office
WPS Office provides a comprehensive PDF editing suite that enables you to easily view, fill out, and manage interactive PDF forms. It is a lightweight, cost-effective alternative for handling your daily document and PDF requirements.
- 1. Download WPS Office: Install and launch the free version of WPS Office on your computer or mobile device.
- 2. Open the PDF: Drag and drop your PDF form into the WPS Office workspace to open it in the PDF editor.
- 3. Fill the Form: Navigate through the document and interact directly with the fillable fields to input your data.
- 4. Save Your Work: Once filled, click the 'Save' icon or use 'Export to PDF' to securely store your completed document.

Frequently Asked Questions
Why is my PDF form calculation not updating automatically when I enter the subtotal?
This typically happens if the field calculation order is incorrect. In Acrobat's 'Prepare Form' mode, look for the 'More' menu in the right-hand pane, select 'Set Field Calculation Order', and ensure the Subtotal field calculates before the Sales Tax field.
What happens if my subtotal field name has spaces in it?
If using Simplified Field Notation, field names with spaces or special characters can cause errors. It is best practice to rename the field without spaces (e.g., 'SubtotalBox'). If you must use spaces, you should use the Custom Calculation Script method instead.
How do I ensure the calculated sales tax shows two decimal places?
Open the Sales Tax field Properties, go to the 'Format' tab, select 'Number' from the Select Format Category dropdown, and set the Decimal Places to '2'.
Can I calculate different tax rates for different states in the same PDF?
Yes, but it requires advanced JavaScript. You would typically create a dropdown field for the user to select their state, and then write a custom calculation script in the tax field that uses 'if/else' statements to apply a different percentage multiplier based on the dropdown selection.




