Creating a calculator in a contact form
The calculator in contact forms allows you to automatically calculate values based on the form fields filled in by the website visitor.
You can select the form fields required for the calculation and write the formula to be used for the calculation. Your customer will then be able to see the calculation result immediately after filling in all the required form fields. This value will also be sent along with all the information after the contact form is submitted.
Alternatively, you can hide the form submission button, and the calculator will serve purely as a calculation tool for website visitors.
In this article, we will look at an example of how you can create and use a calculator on your website.
Contents:
First, you need to add a Contact Form element where the calculator will be located. To do this, you can use our instructions.
Calculator field settings
Hover over the contact form and click on it to open its settings. In the Items tab, you can manage existing fields and add new ones:

To create your own calculator, you will have access to the following fields:
Dropdown list, Radio button, Checkbox
- Add the appropriate field and configure it as needed: give it a name, select options, make it mandatory if necessary, etc.
- After creating the field, activate the Use for calculations option and specify an arbitrary variable name for this field, which you will later use in the calculation formula:

- Next, for each added option, you can specify the desired value (numerical value) that will be used in calculations when this option is selected:

Number
This field supports only numeric values: digits, commas, and decimal points.
Similar to the fields described above, add it to your form, activate the Use for calculations option in the settings, and set the variable name:

Creating a calculation formula
- To create a formula and display the calculation results, you need to add the Calculation formula field and go to its settings.
- In the settings for this field, you need to write a formula for calculations that will use the previously created variables and symbols
+(addition),-(subtraction),*(multiplication),/(division), and()to perform the necessary arithmetic operations:

- After creating the formula, you can also customize the display of calculation results:

- enter a standard value that will be added before the calculation is performed — for example, the number 0, or it can be the base cost of your services, to which the cost of selected additional services or something else will be added;
- add a specific text or symbol that will be displayed before and/or after the calculation results.
- Standard field settings are also available for the field — you can add a specific description and hide the field if necessary:

Examples of use
For the first example, we will add a calculator for calculating the cost of printing an advertising banner depending on its size with the following fields:

When creating the formula, we take into account that the cost of printing a banner is calculated based on its area. To determine the area, you need to multiply the width by the height — as a result, we get a value in square meters (m²).
Since the price is indicated per 1 m², the resulting area must be multiplied by the cost of printing one square meter (in our example, this is 20 USD). As a result, we get the following formula using our variables:
height*width*20
For the second example, we will add a website creation cost calculator with the following fields:

In the example of our website cost calculator, we need all the options selected by the visitor to be added up, so the first part of the formula will look like this, using variables:
site_type+design_type+addons
Here, the customer will enter a number in the “Number of pages” field, so we need to specify in the formula what value to multiply this number by (i.e., the cost of 1 page). For example, let's say the cost of one page is 100:
pages*100
As a result, we get the following formula, which allows the user to calculate the cost of creating a website:
site_type+design_type+addons+pages*100
Updated on: 02/06/2026
Thank you!
