How to Calculate a Total with Jotform

January 6, 2026

With Jotform, you can easily calculate totals based on what users enter in your form. This is great for things like order forms, donation forms, or quizzes where you need to show a total right away. You can do this in two easy ways:

Both options are simple to set up and work great for all kinds of forms.

Using the Form Calculation Widget

The Form Calculation widget lets you calculate totals on your form using basic or advanced math. You can add fields together, multiply values, or use built-in functions like round() or min()—no coding required. Follow these quick steps to get started:

  1. In Form Builder, click on Add Element on the left side of the page.
Form Builder Add Element in Jotform
  1. Then, 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 Widgets tab showing Form Calculation widget selection in Jotform
  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 showing formula editor with selectable elements in Jotform

For example, if you want to calculate the total amount based on the Quantity and Price Cost fields. Here’s what the formula looks like: Price Cost x Quantity

Form Calculation widget formula editor showing Price Cost multiplied by Quantity in Jotform
  1. Once you’re done creating your formula, click on Save and you’re all set.
Form Calculation widget settings showing Save button after formula setup in Jotform

Explore our guide on How to Use Jotform’s Form Calculation Widget to dive in deeper. Wondering how it looks in action? Check out this Demo Form.

Using Conditional Logic

Another way to calculate a total is by using Conditional Logic. This approach lets you set rules that run calculations based on user input. For example, you can calculate a total only when a specific field is filled out. Here’s how to set it up:

  1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
  2. Then, on the left side of the page, click on Conditions.
  3. Now, select on Update/Calculate Field.
Form Builder Settings menu showing Conditions option and Update Calculate Field selection in Jotform
  1. Finally, set up the conditions as shown below and click on Save.
Conditional Logic settings showing Update Calculate Field rules and Save button in Jotform

That’s it! Your form will now automatically calculate totals based on user input, making it easy to add up prices, scores, or other values. For more details, take a look at our guide on How to Insert Text or Calculation Into a Field Conditionally. Want to see how it works? This Demo Form shows it in action.

Send Comment:

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

Comments:

  • Stable Lives - Profile picture
  • Ellen Watson - Profile picture
  • Crystal Evans - Profile picture
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.