How to add a calculator to Shopify
By the MakeACalc team · Updated · Drafted with AI assistance, reviewed by Suman Kumar
On a regular page, click Show HTML in the rich text editor and paste your calculator's embed code. On a product page, add a Custom Liquid block in the theme editor and paste it there. The calculator shows your customer a figure; it does not change a price in the cart or at checkout.
1. Copy the embed code
- On makeacalc.com, open your calculator from the dashboard.
- Under Embed this calculator pick a layout: Landscape, Portrait or Compact.
- Press Copy embed code. It is one iframe tag, like the one below.
<iframe src="https://makeacalc.com/c?id=K7vNCXxxTyK9&layout=landscape" width="720" height="496" style="border:0" title="Paint Calculator for a Room"></iframe>
2. On a regular page
Shopify's documentation describes these steps for embed codes from video and music services. A calculator's embed code is pasted the same way; view the page afterwards to see that your theme shows it.
- In your Shopify admin, open the page you want the calculator on.
- Click the Show HTML button on the rich text editor.
- Paste the embed code where the calculator should appear.
- Click Save, then view the page.
3. On a product page
Not all themes support Custom Liquid blocks. Shopify's Online Store 2.0 themes support sections on every page; if the theme editor shows no Add section button below the section list, the theme may be an older, vintage one.
- From your Shopify admin, go to Online Store.
- Find the theme you want to edit and click Edit theme.
- Go to a product page using the template selector.
- In the Product information section, click Add block and select Custom Liquid.
- Paste the embed code into the block, drag the block to where you want it, and click Save.
What it does not do
A MakeACalc calculator is not connected to your shop. It does not add a product to the cart, change a price in the cart or at checkout, or take a payment. Use it to help a customer work out a quantity or an estimate, and say on the page that the figure is a guide.
Views and sites are not limited on any MakeACalc plan, the Free plan included.
Templates to start from
Build your own calculator in plain English.
Start free