Add a Free Calculator to Your Website in 3 Steps
Embed a Numveta percentage or discount calculator on a website with an iframe. Choose a responsive width, copy the HTML, and keep the attribution link.
Topics covered
- calculator embed code
- free calculator widget
- embed calculator iframe
- add calculator to website
What a calculator embed does
An embed places a small calculator from Numveta inside another website using an iframe. Your page keeps its own content and layout, while the calculator is loaded from its Numveta page. You do not need to write the calculator logic yourself.
Numveta currently offers embeds for the Percentage Calculator and Discount Calculator. Open either tool page and find the ‘Embed this calculator’ panel below the calculator.
Step 1: Preview and choose a width
Open the Percentage Calculator or Discount Calculator on Numveta, expand ‘Embed this calculator’, and preview the embedded version. Choose a maximum width that fits your page or select the responsive 100% option for a fluid layout.
The preview uses the same kind of iframe visitors will see on your site. Check it at desktop and mobile widths before publishing.
Step 2: Copy the generated HTML
Use the ‘Copy code’ button to copy the generated embed code. The snippet contains an iframe, a descriptive title for accessibility, lazy loading, and a Numveta attribution link. The optional resize script listens only for messages from the Numveta embed origin and adjusts the iframe height within set limits.
Keep the attribution link with the embed. If your content management system blocks script tags, use its HTML/embed block and follow its rules; the iframe can still work with a fixed height, though it may need manual adjustment on smaller screens.
Step 3: Paste it into a page you manage
In your website editor, add a custom HTML, embed, or code block where the calculator should appear. Paste the copied code, save the draft, and preview the page. Publish only after confirming the iframe fits the content area and the calculator remains usable on mobile.
Some site builders restrict iframes or scripts for security. If the preview is blank, check whether the editor allows iframe embeds and whether your site’s Content Security Policy permits content from numveta.com.
Privacy, loading, and common questions
The embed is served from Numveta, so your site needs an internet connection for it to load. The supported calculators perform their arithmetic in the visitor’s browser; the iframe does not give your website access to the values entered inside it.
Embed endpoints are separate from the main calculator pages and are marked noindex so search engines can focus on the canonical calculator pages. You can link readers to the full calculator when they want its explanation, examples, and related tools.
FAQ
Which Numveta calculators can I embed?
The Percentage Calculator and Discount Calculator currently provide an embed panel with a preview and copyable HTML.
How do I make the embedded calculator responsive?
Choose the 100% responsive width in the embed panel and keep the generated resize script if your website editor allows scripts. Otherwise set a fixed height and preview the result on mobile.
Can I remove the Numveta attribution?
Keep the attribution link that comes with the generated embed snippet.
Why is the iframe blank in my website editor?
The editor may block iframe code or scripts. Use a permitted HTML/embed block and check your site's Content Security Policy settings.
