---
title: "Calculating totals in forms"
canonical_url: "https://www.nutrient.io/guides/workflow-automation/admin-guide/forms/calculations-in-forms/"
md_url: "https://www.nutrient.io/guides/workflow-automation/admin-guide/forms/calculations-in-forms.md"
last_updated: "2026-06-01T16:54:29.902Z"
description: "Learn to set up dynamic calculations in your forms to display totals in real time, enhancing user experience and data management."
---

# Dynamic calculations for streamlined form entries

On some forms, you may want to include calculations that display as information is entered. A good example is when your form has line items and you want to show totals directly in the form.

For example, the form below shows totals for each line and for all lines.![form-with-line-item-totals.jpg](https://help7.integrify.com/hc/article_attachments/115015791848/form-with-line-item-totals.jpg)

To set up calculations, create a new rule in the form. At the top of the form designer, click **Rules** > **+ Add Rule**. Give the rule/calculation a name, and then follow the instructions below.![FireShot_Pro_Screen_Capture__434_-__Integrify__-_salesdemo_integrify_com___section-admin_powerform_da3bf4ba-c865-4e4d-86e8-15c73a8bd417_rule__isNew_fa.jpg](https://help7.integrify.com/hc/article_attachments/115015848108/FireShot_Pro_Screen_Capture__434_-__Integrify__-_salesdemo_integrify_com___section-admin_powerform_da3bf4ba-c865-4e4d-86e8-15c73a8bd417_rule__isNew_fa.jpg)

**Notes**

- The conditions (the fields being calculated) must be number fields.

- Don’t add more conditions than you’ll be using. Unused conditions may cause errors in calculations.

- Leave spaces between each variable and operator or the rule may not function correctly.

---

## Related pages

- [Add attachments to your forms](/guides/workflow-automation/admin-guide/forms/adding-attachments-to-forms.md)
- [Configure contact search groups](/guides/workflow-automation/admin-guide/forms/contact-search-question.md)
- [Calendar fields in forms](/guides/workflow-automation/admin-guide/forms/calendar-field.md)
- [Create a new form](/guides/workflow-automation/admin-guide/forms/create-a-new-form.md)
- [CSS styling](/guides/workflow-automation/admin-guide/forms/copy-and-paste.md)
- [Create form questions](/guides/workflow-automation/admin-guide/forms/create-form-questions.md)
- [Customize forms with CSS](/guides/workflow-automation/admin-guide/forms/css-styles-in-forms.md)
- [Design custom HTML forms with full control](/guides/workflow-automation/admin-guide/forms/developer-form.md)
- [Form library overview](/guides/workflow-automation/admin-guide/forms/form-library-overview.md)
- [Master form question editing with ease](/guides/workflow-automation/admin-guide/forms/edit-form-questions.md)
- [Form template management](/guides/workflow-automation/admin-guide/forms/form-templates.md)
- [Import and export forms](/guides/workflow-automation/admin-guide/forms/importing-and-exporting-forms.md)
- [Mastering form rules for dynamic responses](/guides/workflow-automation/admin-guide/forms/form-rules-show-hide.md)
- [Edit and preview your forms effectively](/guides/workflow-automation/admin-guide/forms/form-preview-and-editor.md)
- [Import and export grid data](/guides/workflow-automation/admin-guide/forms/importing-data-into-grids.md)
- [Forms](/guides/workflow-automation/admin-guide/forms.md)
- [Integrate with external REST APIs](/guides/workflow-automation/admin-guide/forms/restful-data-elements.md)
- [Enhance form management with request records](/guides/workflow-automation/admin-guide/forms/set-up-a-request-record.md)
- [Use AI data extraction to populate forms](/guides/workflow-automation/admin-guide/forms/using-ai-data-extraction-question.md)
- [Generate forms using AI](/guides/workflow-automation/admin-guide/forms/using-ai-form-generator.md)
- [Using grid questions in forms](/guides/workflow-automation/admin-guide/forms/using-the-grid-question.md)

