How to Use the Form Calculation Widget

November 17, 2025

With the Form Calculation widget, you can easily perform real-time calculations using values from your form fields. It’s perfect for things like adding up totals, calculating scores, applying formulas, or generating custom results based on what users enter. Whether you’re creating an order form, a quiz, or an estimate, this widget does all the number-crunching for you—saving time, cutting down on errors, and keeping the process simple and smooth for both you and your users.

Adding and Setting Up the Form Calculation Widget

Whether you’re building a new form from scratch or updating an existing one, adding the Form Calculation widget and setting up your formulas is a breeze. You can have it up and running in just a few clicks. To get going, here’s what you’ll do:

  1. In Form Builder, click on Add Element on the left side of the page.
Form Builder interface showing the Add Element button on the left panel
  1. Now, in the Form Elements menu, under the Widgets tab, click on Form Calculation. Or, just drag and then drop it to where you want it to be on your form.
Form Elements menu open under the Widgets tab, showing the Form Calculation widget ready to be added
  1. Next, in the Form Calculation Widget window that opens on the right side of the page, you can add different elements to the formula editor based on the result you want the widget to calculate.
Form Calculation Widget settings panel open on the right side, showing the formula editor for customizing calculations

The Add Field button above the Formula Keypad section on the right side of the window lets you include Form Fields in the calculation. You can use the Search Bar in the menu that comes up, and select the formula you want to use.

Form Calculation Widget showing the Add Field button above the Formula Keypad section for adding form fields to calculations

A Form Field opens up with its label and a blue background in the Formula Editor. The indicator on its right needs to show 0–9 to include the field’s value in the calculation. If it shows A–Z, the value will be added as text in the result. You can click on the indicator to switch between number and string.

Form Calculation Widget showing a form field with a blue background in the Formula Editor and a 0–9 indicator for numeric value inclusion

You can add digits, decimal points, parentheses, and operators (+, –, ×, ÷) using your keyboard or the Formula Keypad.

Form Calculation Widget showing the Formula Keypad with digits, operators, and parentheses for building custom formulas

These elements need to appear with a dark gray background in the formula editor to be included in the calculation. If they appear in light gray, they’re treated as text. You can click on them to switch between formats.

Form Calculation Widget showing form fields with dark gray and light gray backgrounds in the Formula Editor to indicate calculation inclusion

The purple f(x) button in the Formula Keypad section lets you add prebuilt functions and math properties to your calculations. You can use the Search Bar in the menu that opens and select the formula you want to use.

How to Use the Form Calculation Widget Image-1

Functions follow a standard format in the Formula Editor, like abs(), min(), max(), or round(). They’ll have a purple background that’s automatically followed by parentheses where you place the value or expression they’ll work on. These are useful for more advanced calculations beyond basic arithmetic.

Form Calculation Widget showing examples of functions like abs(), min(), max(), and round() highlighted in purple within the Formula Editor
  1. Once you’re done, click on Save.
Form Calculation Widget settings window showing the Save button highlighted after completing the formula setup

That’s it. Your form can now automatically calculate values based on what users enter—no manual math required. It’s a simple way to make your form smarter and more efficient.

How to Use the Form Calculation Widget Image-2

Note

  • The Downward Arrow icon next to the name of a field in the formula editor opens a list that lets you switch to another form field.
  • The Downward Arrow icon next to the name of the function in the formula editor opens a list that lets you switch to another function.
  • Place your cursor anywhere in the formula editor to insert new elements or remove existing ones.
  • When using your keyboard, press the Enter key to quickly type the next element in the Formula Editor, and use the Backspace or Delete keys to remove elements easily.
  • Parentheses added using the Formula Keypad in the Form Calculation Widget window are added as numbers, while parentheses typed using your keyboard are added as strings by default.

Configuring the Form Calculation Widget Options

You can fine-tune your calculation settings to control exactly how it works and how the results appear on your form. Setting it up takes no time at all—here’s how:

  1. In Form Builder, click on your Form Calculation widget and then click on the Wand icon on the right side of it.
  2. Then, in the Form Calculation Widget window on the right side of the page, click on Options at the bottom of the Formula Keypad section.
Form Builder showing a Form Calculation Widget with the Wand icon highlighted to open widget settings
  1. Now, in the Options section, tick the boxes next to the following things to enable them as needed:
    • Add field to equation as text by default — When this is enabled, form fields, numbers, operators, and functions are added to the formula editor as text. Even though they appear as strings, the calculation still works as long as the format is correct:
      • Form fields are shown in curly brackets (e.g., {8}), which refer to their unique field IDs.
      • Functions are written between © symbols, followed by parentheses (e.g., ©abs©({8})).
      • Full equations are enclosed in square brackets (e.g., [©abs©({8}) + ©min©(9,6)]).
    • Result Field is Read Only — This prevents users from editing the Result field. This keeps the calculated value locked and ensures it only updates based on the formula.
    • Show Empty Decimal Places — This displays trailing zeros after the decimal point (for example, showing 5.00 instead of 5), which can be helpful for formatting prices or other fixed-decimal values.
    • Ignore Hidden Fields — This skips any hidden fields in the calculation. This ensures only visible or currently active fields affect the result.
    • Use Commas for Decimal Point — This changes the decimal symbol from a period (.) to a comma (,), which is common in some regions or languages.
    • Decimal Places in Numerical Results — This lets you set how many digits appear after the decimal point in the result. You can choose from 0 to 10 decimal places, depending on how precise you want the result to be.
  1. Once you’re done, click on Go Back at the top.
Form Calculation Widget Options section showing checkboxes being selected before returning to the main settings
  1. Then, click on Save to apply the changes.
How to Use the Form Calculation Widget Image-3

That’s it. Your calculation is now set up and ready to display the results the way you want. To see how it works on a live form, check out this demo.

Example of a form showing a live demo of the Form Calculation Widget displaying results in real time

Pro Tips

  • You can assign calculation values to text options on fields like Dropdown, Single-Choice, or Multiple-Choice to include their value in the calculation.
  • Make sure you include both parentheses in functions—missing an open parenthesis will result in no output, and a missing closed parenthesis will cause the function to be ignored.
  • When using functions like atan2(), max(), min(), pow(), avg(), avgNoZero(), addDays(), subtractDays(), and nth(), make sure you add commas as numbers (dark gray). If added as strings, the function won’t work.
  • Avoid consecutive operators without a number between them—they won’t return a result.
  • To display a symbol or unit like $ or kg alongside the result, make sure you use strings (light gray), so they appear as plain text in the output.

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.