Weekend

Exclusive Deal

55% OFF

on Lifetime Plans

View Categories

Calculation Addon

4 min read

Quick Video #

The Calculation Addon for Ultra Addons for WPForms lets you create dynamic calculations directly inside your WPForms. Build pricing calculators, quote generators, order forms, tax calculators, loan estimators, and more—without writing any code.

Calculations update instantly as users fill out your form, making it easy to display accurate totals and calculated values in real time.

Features #

With the Calculation Addon, you can:

  • Create real-time calculations
  • Build formulas using form fields
  • Validate formulas before saving
  • Use 40+ built-in functions
  • Create conditional calculations
  • Reference supported WPForms fields
  • Customize decimal places, prefixes, and suffixes
  • Hide empty or zero calculation results
  • Access the built-in Formula Cheatsheet

Requirements #

Before getting started, make sure you have:

  • WordPress installed
  • WPForms Lite
  • Ultra Addons for WPForms and Ultra Addons for WPForms Pro installed and activated
  • An active license

Step 1: Enable the Calculation Addon #

Before using calculations, enable the addon.

  1. Go to WPForms Addons → All Addons.
  2. Open the All Addons tab.
  3. Search for Calculation.
  4. Click Enable.

Once enabled, calculation settings become available in supported fields.

Enable the Calculation Addon.

Step 2: Create or Edit a Form #

Go to WPForms → Add New and create a new form or edit an existing one.

For this guide, create the following fields:

Field LabelField TypePlaceholder
Number of HoursNumbere.g. 10
Hourly RateNumbere.g. 25
Additional FeeNumbere.g. 50
Tax (%)Numbere.g. 15
Total QuoteNumberCalculated automatically

Example form with all fields.

Step 3: Enable Calculations #

Select the Total Quote field.

Open the Advanced tab and enable Ultra Addons Calculation.

This displays the calculation settings for the selected field.

Enable Ultra Addons Calculation.

Step 4: Configure the Calculation #

Enter a Formula

In the Formula field, enter the following:

(($F16 * $F17) + $F18) * (1 + ($F19 / 100))

This formula:

  • Multiplies Number of Hours by Hourly Rate
  • Adds the Additional Fee
  • Applies the Tax (%)
  • Displays the final quote automatically

You can also use:

  • Insert Field to insert field variables
  • Mathematical operators (+, -, ×, ÷, ())
  • Validate Formula to check for errors
  • View Cheatsheet to access available variables, operators, functions, and examples

Tip: Use $FX to reference a field, where X is the field ID. For example, $F16 references Field ID 16.

Formula Builder.

Customize the Result

The Calculation Addon lets you control how the result is displayed.

Decimal Places

Choose how many decimal places to display.

SettingResult
0345
2345.00
4345.0000

Prefix

Display text before the calculated value. Example:

$345.00

Suffix

Display text after the calculated value. Example:

345.00 USD

Hide Field if Result is Empty or Zero

Hide the field automatically when the calculated result is empty or 0.

This is useful for optional fees, discounts, or conditional calculations.

Example #

Create the following form values:

FieldField VariableValue
Number of Hours$F1610
Hourly Rate$F1725
Additional Fee$F1850
Tax (%)$F1915

Formula:

(($F16 * $F17) + $F18) * (1 + ($F19 / 100))

Result:

$345.00 USD

Field Variables #

Reference supported fields using their Field ID.

VariableDescription
$FXField value
$FX_amountPayment amount
$FX_firstFirst Name
$FX_lastLast Name
$FX_dateDate
$FX_timeTime

Examples:

$F16 * $F17
sum($F16, $F17, $F18)
average($F16, $F17, $F18)

Supported Operators #

OperatorDescription
+Addition
Subtraction
*Multiplication
/Division
%Modulus
()Group calculations
==Equal to
!=Not equal to
>Greater than
<Less than
>=Greater than or equal
<=Less than or equal
&&Logical AND
||Logical OR

Built-in Functions #

The Calculation Addon includes over 40 built-in functions, organized into the following categories:

Math

round()floor()ceil()abs()min()max()sum()average()pow()sqrt()rand()

String

concat()length()upper()lower()truncate()number_format()

Date & Time

now()today()date_diff()years()months()days()age()

Utility

isnumber()isempty()coalesce()ifelse()

Use View Cheatsheet in the Formula Builder to browse the complete list.

Conditional Calculations #

Create dynamic formulas using if, elseif, and else.

Example:

if ($F17 >= 50):
    0
elseif ($F17 >= 25):
    5
else:
    10
endif;

Or use the inline helper:

ifelse($F16 > 100, 20, 5)

Supported Fields #

Result Fields

  • Single Line Text
  • Paragraph Text
  • Number
  • Hidden
  • Single Item (Payment)

Fields You Can Reference

  • Text
  • Number
  • Dropdown
  • Radio Buttons
  • Checkboxes
  • Payment Fields
  • Date / Time
  • Name
  • Email
  • Phone
  • Address
  • Rating
  • Number Slider
  • Hidden Fields
  • And many more

Common Use Cases #

Use the Calculation Addon to build:

  • Pricing calculators
  • Quote generators
  • Order forms
  • Loan calculators
  • Tax calculators
  • Shipping estimators
  • Commission calculators
  • ROI calculators
  • Grade calculators
  • Age calculators
  • Financial calculators
  • Custom business calculators

The Calculation Addon combines a powerful formula engine, live calculations, conditional logic, and built-in functions to help you create advanced WPForms calculators without writing code.

Leave the first comment

Send us a message

    mail
    message
    Need Help?