How to Use Jotform's Form Calculation Widget

July 5, 2025

With Jotform’s Form Calculation widget, you can run real-time calculations using values from your form fields. It’s great for things like totaling costs, calculating scores, applying formulas, or creating custom outputs based on user input. Whether you’re building an order form, estimate, or quiz, this widget helps automate the math—saving time, reducing mistakes, and making the experience smoother for everyone.

Adding and Setting Up the Form Calculation Widget

Whether you’re creating a new form or updating an existing one, adding the Form Calculation widget and setting up your formulas is quick and easy. Here’s how to do it:

  1. In Form Builder, click on Add Element on the left side of the page.
Add Element button in Jotform Form Builder
  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 Calculation widget under the Widgets tab of the Form Elements menu in Jotform Form Builder
  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 window in Jotform Form Builder

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.

Add button of the Form Calculation Widget window in Jotform Form Builder

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 Field element in the Formula Editor of the Form Calculation Widget window in Jotform Form Builder

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

Formula Keypad section of the Form Calculation Widget window in Jotform Form Builder

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.

Digits and operator elements in the Formula Editor of the Form Calculation Widget window in Jotform Form Builder

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.

Purple f(x) button in the Formula Keypad section of the Form Calculation Widget window in Jotform Form Builder

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. You can check out our guide on Form Calculation: Math Function Reference to learn more about that.

Function elements in the Formula Editor of the Form Calculation Widget window in Jotform Form Builder
  1. Once you’re done, click on Save.
Save button of the Form Calculation Widget window in Jotform Form Builder

That’s it. Now your form can automatically calculate values based on user input.

Calculated total amount in the Form Calculation widget of a Jotform Demo form

Notes

  • 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 configure the settings that control how your calculation works and how the result is displayed. Here’s how to do it:

  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.
Options button of the Form Calculation Widget window in Jotform Form Builder
  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.
  2. Once you’re done, click on Go Back at the top.
Different options of the Form Calculation Widget window in Jotform Form Builder
  1. Then, click on Save to apply the changes.
Save button of the Form Calculation Widget window in Jotform Form Builder

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.

Formatted calculated total amount in the Form Calculation widget of a Jotform Demo form

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. Check out our guide on How to Assign Calculation Values to learn more.
  • 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.
Academy Logo

Introduction to Form Building

Explore Widgets

Go to course :Explore Widgets
lesson-2 - image
Contact Support

Our customer support team is available 24/7 and our average response time is between one to two hours.

Send Comment:

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

Comments:

  • Gestión Documental ROHI - Profile picture
  • NJHC PCK Trinity - Profile picture
  • Bobbi Govanus - Profile picture
  • Toral Gathani - Profile picture
  • Roberto Garcia Benitez - Profile picture
  • Chanelle Hedges - Profile picture
  • Monti Eltayeb - Profile picture
  • Linnea Swanson - Profile picture
  • Heidi Tretheway - Profile picture
  • Brandon Kleinmeyer - Profile picture
  • Michael Meme - Profile picture
  • Bevan Hendon - Profile picture
  • Josh lee - Profile picture
  • Tim Keenan - Profile picture
  • Rachel Hetrick - Profile picture
  • Lu - Profile picture
  • José Enrique Cabrera Pérez - Profile picture
  • Angela Cachia - Profile picture
  • Cassandra Anzalone - Profile picture
  • Brian Cleary - Profile picture
  • Felisa - Profile picture
  • Crudo Sushi - Profile picture
  • Mall OfEtsy - Profile picture
  • Owen Allen - Profile picture
  • Muhammad Gulzar - Profile picture