Ecommerce promotion stacking simulator calculator

Calculate final basket amount and final amount by line with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Choose the currency for these amounts. Changing it keeps your numbers and does not convert exchange rates.

Use final basket amount and final amount by line to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Basket lines: ID, tax-exclusive line amount $
A,100 B,100
Rules in priority order: code, percent/fixed, value, eligible line IDs joined by | or all, exclusion group or none, current eligible minimum $
Ten,percent,10,all,none,0 Five,fixed,5,all,none,0
Final basket amount ($)
$175.00
Final amount by line ($)
A: 87.50; B: 87.50
Applied discount by rule ($)
Ten: 20.00; Five: 5.00
Skipped rules and reasons
None
Total discount ($)
$25.00

Try another scenario

Basket lines: ID, tax-exclusive line amount $
A,100 B,100
Rules in priority order: code, percent/fixed, value, eligible line IDs joined by | or all, exclusion group or none, current eligible minimum $
Five,fixed,5,all,none,0 Ten,percent,10,all,none,0
Final basket amount ($)
$175.50
Final amount by line ($)
A: 87.75; B: 87.75
Applied discount by rule ($)
Five: 5.00; Ten: 19.50
Skipped rules and reasons
None
Total discount ($)
$24.50
Calculation method

Calculation method

Final basket amount ($)

Process rules in input order against current eligible balances and cap every discount at the eligible subtotal.

Final amount by line ($)

Allocate each discount across current eligible lines proportionally in exact US cents, using largest remainders and input-order ties.

Applied discount by rule ($)

Record the actual cent discount for each rule that reduces the basket.

Skipped rules and reasons

After the first effective rule in a named exclusion group, skip later rules in that group. Also expose unmet minima and zero discounts.

Total discount ($)

Original basket−final basket, exactly conserved in US cents.

Symbols and units
a
Basket lines: ID, tax-exclusive line amount $
b
Rules in priority order: code, percent/fixed, value, eligible line IDs joined by | or all, exclusion group or none, current eligible minimum $

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Assumptions & limits

Assumptions & limits

  • An explicit sequential eligible-line discount model, not a replica of any store platform’s combination rules. No tax, shipping, checkout, published prices or real promotions are changed.
Are these inputs private?

These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.

Further reading

Shopify: discount types, thresholds and combination background; this tool uses its displayed rules ↗

Background reading; this does not imply endorsement or independent review of SumFizz.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.