> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/marketplace-packages-and-power-ups/power-ups/forms/use-calculations-in-forms.md).

# Use calculations in Forms

Calculations let the form work out values automatically.

Use them for totals, subtotals, or other numeric results based on employee input.

### Where calculations fit best

Calculations are useful in:

* numeric fields that depend on other fields
* table fields with row or column totals
* forms where the result should be filled automatically

### What calculations can use

Formulas can use:

* arithmetic such as `+`, `-`, `*`, and `/`
* references to other fields
* references to table columns

### Why read-only often helps

Set calculated fields to read-only when employees should not change the result.

That keeps the output consistent.

{% stepper %}
{% step %}

### Open the form

Go to **Settings → Forms**.

Open the form you want to edit.
{% endstep %}

{% step %}

### Select the result field

Open the numeric field or table column that should show the calculated value.
{% endstep %}

{% step %}

### Enter the formula

Add the formula with the field references your setup supports.

Keep the formula as simple as possible.
{% endstep %}

{% step %}

### Set the display options

Choose the decimal precision if needed.

Set the field to read-only if employees should not change it.
{% endstep %}

{% step %}

### Save and test

Save the form.

Then test the result with realistic values and empty values.
{% endstep %}
{% endstepper %}

### Good setup tips

* use clear field names
* test with zero and empty values
* allow editing only when manual correction is part of the process

### FAQ

<details>

<summary>Can I use calculations in tables?</summary>

Yes.

Tables are a common place for calculated values.

</details>

<details>

<summary>Should calculated fields be editable?</summary>

Usually not.

Read-only keeps the result consistent.

</details>

<details>

<summary>What happens if a referenced field is empty?</summary>

That depends on the formula and field type.

Always test that case before rollout.

</details>

### Related topics

* [Create a form](/marketplace-packages-and-power-ups/power-ups/forms/create-a-form.md)
* [Configure table fields in Forms](/marketplace-packages-and-power-ups/power-ups/forms/configure-table-fields-in-forms.md)
* [Use conditional logic in Forms](/marketplace-packages-and-power-ups/power-ups/forms/use-conditional-logic-in-forms.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledge.out-smart.com/marketplace-packages-and-power-ups/power-ups/forms/use-calculations-in-forms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
