Calculate | Leapwork Docs

The Calculate block performs an arithmetic operation on two numbers. It can add, subtract, multiply, or divide Value A and Value B, and it can optionally round the result. The resulting number can be passed to other blocks in your flow. See the Use Numbers and Variables lesson for examples of how this works.

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Calculate onto the canvas.
  2. In the block panel, specify Value A, Value B, and Calculation method.
  3. Connect Result number to a block that uses or outputs the value, then run the flow when it’s ready.

Building block parameters

Parameters

This block has no green input or output connectors in the header because it is not explicitly executed. It is used to calculate a value and provide the result to other blocks.

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.