Calculation & Pricing Overview
Written By Floris de Vries
Last updated 3 days ago
The Formula step defines how the final product price is calculated. Inputs from Step 1 (Form fields) are combined with optional custom variables, lookup tables, and formulas to determine the dynamic price shown to the customer.
This allows you to create flexible pricing models based on measurements, selected options, quantities, price matrices, or custom logic.
Formula step tabs
4a. Custom variables
4b. Lookup tables (Premium)
4c. Formula
4d. Calculation display (Premium)
How the calculation works
The calculator follows this flow:
The customer fills in fields (Step 1)
Each field provides a numeric value
These values are combined in a formula
The formula returns a final calculated price
The result of the formula is applied dynamically to the product price.
When to use a custom formula
Use a custom formula when:
Pricing depends on measurements or quantities
Multiple options affect the final price
You need full control over pricing logic
You want to apply rounding or conditions
Custom formulas give you complete flexibility over how prices are calculated.
What the calculation can include
A formula can reference:
Values from form fields (number inputs, dropdowns, checkboxes, etc.)
The product price or variant price
Custom variables (4a)
Lookup tables via
lookup2d(4b, Premium)Helper functions such as rounding
Conditional logic (4c, Premium)
All values are evaluated in real time as the customer interacts with the calculator.
Preview vs live pricing
The calculation step includes a price preview for testing purposes.
This preview helps you validate your formula, but the final price displayed on the live store depends on your Shopify theme and pricing setup.
๐ก Tip:
Keep pricing logic as simple as possible and expand gradually. Complex pricing is easier to maintain when built step by step.