Embedding

How to Embed Calculators on Your Website

Learn how to add CalcWidgets calculators to your website using iframe or JavaScript embed codes.

1 min read
Updated 15 March 2026

Two Ways to Embed

CalcWidgets provides two embedding methods. Both are available in your Dashboard under Embed Codes.

Option 1: iframe Embed (Recommended)

The simplest method. Copy the iframe code and paste it into your website's HTML.

<iframe
  src="https://yoursubdomain.calcwidgets.com/embed?widgets=loan-repayment"
  width="100%"
  height="600"
  frameborder="0"
  style="border: none;"
></iframe>

Pros:

Option 2: JavaScript Snippet

For more control over the integration, use the JavaScript embed code.

<div id="calcwidgets-container"></div>
<script src="https://yoursubdomain.calcwidgets.com/embed.js"></script>

Pros:

Choosing Which Calculators to Show

Use the widgets parameter to specify calculators:

Display Modes

Control how multiple calculators are displayed using the view parameter:

Theme Options

Set light or dark theme with the theme parameter:

Responsive Design

All calculators are mobile-responsive by default. For the best experience on mobile, ensure your iframe has width="100%" and an appropriate height.

Related Articles