Fix Incorrect Percentage Calculations in Acrobat PDF Forms
Question details
The user needs to correct percentage calculations in an Acrobat PDF form.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF form uses a percentage entered by the user to calculate another value.
- Observed behavior
- Calculations return incorrect results for values such as 1%, 10%, and 100% because the script may treat a stored decimal as a whole-number percentage, or vice versa.
Open the PDF in Acrobat and identify the percentage input, the value to multiply, and the calculated result field. You need access to Prepare a Form and the form field properties to inspect or change the calculation.
Check the Percentage Field Format and Calculation Script
Use this method to match the calculation to the numeric value stored in the percentage field.
A percentage-formatted field typically stores 10% as 0.10 and 100% as 1. Multiply that decimal directly by the other value. If the field instead stores a whole number such as 10 for 10%, divide it by 100 first.
In Acrobat, open Prepare a Form, double-click the percentage input field, and check its Format tab. Note whether it uses Percentage or another format.
Double-click the calculated result field, open the Calculate tab, and inspect the existing calculation or select Custom calculation script and click Edit.
In the script editor, multiply a stored decimal directly by the other value. For a field that stores whole numbers from 0 to 100, divide the input by 100 before multiplying. For example, use event.value = (Number(this.getField('Input').value) / 100) * Number(this.getField('OtherValue').value); for a whole-number input. Replace Input and OtherValue with the actual field names.
Save the script, close the field properties, and test 1%, 10%, and 100% against a known value in the form. If the input stores decimals, remove the / 100 from the example script.

Work With PDFs and Office Files in WPS Office
WPS Office is a free, lightweight alternative for everyday document work, with a familiar interface and support for common Office formats that makes moving existing files straightforward. Use its PDF tools to view and work with PDFs; changes to Acrobat calculation scripts still need to be made in Acrobat.

Frequently Asked Questions
Why is my calculated result 100 times too large?
The script may be multiplying by a whole-number input such as 10 instead of converting it to 0.10. In the result field's Calculate tab, divide a whole-number percentage by 100 before multiplying.
Should I divide a percentage-formatted field by 100?
Not if it already stores 10% as 0.10. Multiply the stored decimal directly; dividing it again would make the result 100 times too small.
Where can I edit a PDF form calculation in Acrobat?
Open Prepare a Form, double-click the result field, and select the Calculate tab. For a custom calculation, choose Custom calculation script and click Edit.
How can I check whether the corrected formula works?
Enter known values in the form and compare the result with a manual calculation. For example, 10% of 200 should be 20, and 100% of 200 should be 200.




