Embed a PiggyMath tax calculator

Add a calculator to a website that allows iframe embeds. For email newsletters and messages, share a normal link instead.

By The PiggyMath Editorial Desk Last updated

For other blogs — copy this first

Paste into a post. Math stays in the visitor’s browser. No ads inside the iframe.

Full snippets with copy buttons are below. Public URL of this page: https://piggymath.com/embed/

What’s available (v1)

Two partner widgets, both reusing the same browser-only math as the full tools, with minimal chrome (logo + “open full tool”) and no gtag / AdSense in the frame. Widget shells are noindex; this docs page is indexable.

Copy-paste iframe (SE tax)

Use this snippet on a web page that permits iframes. The v=1 parameter identifies the embed format; it does not freeze the tax calculation or create an immutable snapshot.

Snippet

<iframe src="https://piggymath.com/embed/se-tax/?v=1" title="PiggyMath self-employment tax calculator (2026)" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" sandbox="allow-scripts allow-same-origin" width="100%" height="680" style="border:0;border-radius:12px;max-width:720px;background:#f9f9f7"> </iframe> <p style="font:12px/1.4 system-ui,sans-serif;color:#52514e;max-width:720px"> Calculator by <a href="https://piggymath.com/">PiggyMath</a> — browser-only estimate; not tax advice. </p>

Script loader (optional)

If your website editor supports custom script blocks, you can use this loader. It still inserts an iframe; it cannot bypass your host’s content policy. If scripts or iframes are blocked, share a link.

Script

<script src="https://piggymath.com/assets/embed-widget.js?v=1" async data-widget="se-tax" data-height="680"></script>

Use data-widget="quarterly" for the estimated-tax widget.

Live preview

Quarterly widget snippet

Snippet

<iframe src="https://piggymath.com/embed/quarterly/?v=1" title="PiggyMath quarterly estimated tax calculator (2026)" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" sandbox="allow-scripts allow-same-origin" width="100%" height="740" style="border:0;border-radius:12px;max-width:720px;background:#f9f9f7"> </iframe>

Allowed origins

There is no origin allowlist. Widget pages do not send X-Frame-Options or a frame-ancestors CSP, so any HTTPS site may iframe them. Math stays inside the visitor’s browser; we do not receive calculator inputs. Keep the PiggyMath credit line (or logo in the chrome) when you embed. Your website editor or content security policy can still block iframes.

Where to use this

Use the widget on website pages that permit embedded calculators. Use a normal link for email newsletters, chat messages and hosts that strip scripts or iframes.

Snippets also live on the SE tax, quarterly, freelancer estimator, and 1099 hub pages.

Privacy & terms for embeds

See also Privacy Policy and Terms of Use.

Versioning

The v=1 URL identifies the current widget format. It is not a frozen version of the calculation. The embedded pages now load the shared calculator engine with the cache version embed20261024. Tax-year maintenance can update the calculation while preserving the format. The widget shells remain noindex; robots.txt allows crawling so search engines can read that instruction. This documentation page stays indexable.

Frequently asked questions

Does the embed send calculator inputs to PiggyMath?
No. Math runs in the visitor’s browser inside the iframe. Inputs are not posted to an API.
Does the embed include ads or analytics?
No. The widget shell loads no gtag and no AdSense. Host pages may still run their own scripts outside the frame.
Is there an API?
No. The embed is a static HTML page plus browser-side math. The v=1 URL identifies the widget format; it does not freeze the calculation.
Can any website iframe the widget?
Yes. We do not restrict origins. Keep attribution and the educational disclaimer.