How to Create Running Balance Calculations in a PDF Form
Question details
The user wants to set up a running balance in a fillable PDF form without relying on complex custom JavaScript.

- Product
- Adobe Acrobat PDF
- Device & OS
- not provided
- Scenario
- Creating a financial or tracking PDF form that requires a running balance to update automatically as new data is entered.
- Observed behavior
- The user needs to configure form fields to accurately calculate and display the sum of previous balances, additions, and deductions.
Ensure you have a PDF editor that supports form field properties and calculations. Prepare your document by adding all necessary text fields for inputs (additions, deductions) and outputs (balances) before setting up the formulas.
Configure Built-in Sum Calculations for Running Balances
Use the native calculation tab in your PDF form editor to add previous results to new inputs, avoiding complex scripting.
A running balance can be easily achieved using the built-in Sum function. Instead of a single complex formula, you chain the calculations by making each balance field the sum of the previous balance plus any new additions, minus any deductions.
Right-click the balance field where you want the running total to appear and select "Properties" from the context menu.
In the Properties window, click on the "Calculate" tab at the top to view the available calculation options.
Choose the option that says "Value is the sum (+) of the following fields". If you need to subtract deductions, select "Simplified field notation" instead and enter your field names separated by standard math operators.
Click the "Pick..." button and check the boxes for the previous balance field along with the current row's input field.
Close the properties dialog. Switch to form-filling mode and type numbers into your form to ensure the running balance updates correctly.

Create and Manage Fillable PDFs with WPS Office
WPS Office provides a comprehensive PDF editor that lets you create interactive forms, edit text, and manage documents seamlessly without a steep learning curve.
- 1. Open your PDF in WPS: Launch WPS Office and open your existing PDF document or create a new one from a template.
- 2. Access the Form tab: Navigate to the 'Form' tab on the top ribbon to access interactive form field tools.
- 3. Add Text Fields: Click 'Text Field' to insert input boxes for your running balances and data entry.
- 4. Modify Properties: Double-click the inserted field to open properties, where you can adjust formatting, names, and basic behaviors to match your document's needs.

Frequently Asked Questions
Why is my running balance not updating automatically?
Ensure that your form viewer has JavaScript enabled, as PDF form calculations rely on it to update fields dynamically. Also, check the calculation order in your form settings to ensure earlier balances calculate before the final total.
Do I need to write JavaScript for a simple subtraction in a PDF form?
No. For simple subtraction, you can use the 'Simplified field notation' in the Calculate tab and type a formula like 'FieldA - FieldB' without writing full JavaScript code.
Can I use the built-in Sum function for multiple rows at once?
You must configure the calculation for each balance field individually. Each row's balance field should be set to sum the previous row's balance plus the current row's inputs.




