Summer Sale: Save 20% on any WS Form edition CODE: SUMMER20 View Pricing

Create Real-Time Calculated Fields for Forms in WordPress

Calculate field values in real time with formulas, math functions, repeatable sections, and price formatting.

  • Real-time calculations Update calculated values instantly on your form.
  • Simple to advanced math Use everything from basic arithmetic to trigonometric functions.
  • Works with numeric fields Supports fields that accept numeric input, including rating and progress.
  • Calculate from fields or variables Use numeric output from fields, variables, and dates.
  • Repeatable section support Use calculations with values inside repeatable sections.
  • Built-in calculator Create formulas with field insertion, math variables, and editing controls.

Create calculated fields in your forms in WordPress with the #calc function in WS Form. Calculations update in real time and can handle everything from simple addition to more complex trigonometric functions.

Calculated fields work with all fields that can accept numeric input, including rating and progress. You can calculate from any field or variable that outputs a numeric value, including dates, and use calculations in settings such as Default Value, Label, Placeholder, Help, Minimum, Maximum, and field content for Text Editor and HTML fields.

WS Form also includes a calculator to help build formulas. It can insert compatible fields, add math variables, and supports calculations in repeatable sections. If you need to display a result as a price, you can format it using your currency settings.

  • Use #calc formulas

    Add a #calc(…) variable to calculate a field value in real time.

  • Place values in settings

    Use calculated values in field labels, default values, placeholders, help text, minimums, maximums, and supported field content.

  • Compatible field types

    Common field types for calculated values include Number, Price, Text, Text Area, Text Editor, and HTML.

  • Insert other field values

    Reference other fields in your formula with #field(…) variables.

  • Round calculation results

    Use #round to control decimal places and tidy JavaScript floating point results.

  • Display results as prices

    Use #ecommerce_price(…) to show calculation results with your currency settings.

  • Repeatable totals and averages

    WS Form automatically sums values from a field in a repeatable section, and you can use #section_row_count(…) to calculate an average.

  • Debug console logging

    Full logging to the debug console helps when working with calculations.

Real Customer Reviews

Trusted by thousands of WordPress professionals.

  • WS Form is one of the essentials in the WP space — the best form plugin. The free version does more than 90% of what paid versions offer.

    digital bohemian
  • WS Form has the power and flexibility to do pretty much anything, and the support is truly next level. Save yourself the time and hassle of courting other form plugins and go with the king, WS Form.

    adamehunt
  • WS Form is in a league of its own. The flexibility is unmatched, the functionality is exceptional, and the support team is responsive, knowledgeable, and dedicated to helping you succeed.

    brandonvogt

Frequently Asked Questions

What are calculated fields in WS Form?

Calculated fields use the #calc(…) function to create field values that are updated in real time.

What kinds of calculations can WS Form handle?

WS Form can handle everything from simple addition to more complex trigonometric functions.

Which fields work with calculated values?

Calculated fields work with all fields that can accept numeric input, including rating and progress. Common field types you might use include Number, Price, Text, Text Area, Text Editor, and HTML.

Can I calculate from other fields or dates?

Yes. You can calculate from any field or variable that can output a numeric value, including dates.

Can calculated fields work with repeatable sections?

Yes. Calculations work with repeatable sections. WS Form automatically sums values for a field in a repeatable section, and #section_row_count(…) can be used to calculate an average.

How do I add calculated fields in WS Form?

Open a field setting and enter a #calc(…) variable in a supported setting such as Default Value. WS Form also includes a calculator to help build formulas: Learn how to use calculated fields.