How to add a calculator to WordPress
By the MakeACalc team · Updated · Drafted with AI assistance, reviewed by Suman Kumar
Copy your calculator's embed code from MakeACalc and paste it into a Custom HTML block on the page where you want it. The code is one iframe, so the page must be saved by a WordPress user who is allowed to post unfiltered HTML: an Administrator or Editor on a single site.
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. Block editor: the Custom HTML block
These are the steps in WordPress's own documentation as of 15 November 2026.
- Open the page or post and click the Block Inserter icon, or type /html in a new paragraph block and press Enter.
- In the Custom HTML block, click Edit HTML.
- Paste the embed code. A preview shows next to the code.
- Click Update, then save or publish the page. To change the code later, use Edit Code in the block's toolbar.
3. Classic editor
The classic editor has a Visual mode and a Text mode. Switch to Text, which shows the page's code, and paste the embed code where the calculator should appear. Then save the page.
If you build pages with a page builder, use its HTML or code element and paste the same code there.
If the calculator disappears after you save
WordPress removes iframes from content saved by a user who lacks the unfiltered_html capability. On a single site, Administrators and Editors have it; Authors and Contributors do not. On a Multisite network, only Super Admins have it. Ask someone with that role to add the block.
On WordPress.com, iframes in a Custom HTML block need a paid plan with hosting features activated.
What it does not do
The calculator shows your visitor a figure. If you switch on the lead form it can ask for their details after the result; it does not take a payment or change a price in your shop. Sites are not limited on any MakeACalc plan, and views are unlimited on Starter and Business.
Templates to start from
Build your own calculator in plain English.
Start free