Embed a PiggyMath calculator

Free, versioned iframes for partners and newsletters — self-employment tax and quarterly estimates. No API, no ads inside the frame.

By The PiggyMath Editorial Desk Last updated

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)

Minimal sandbox for CSP-friendly hosts. Keep ?v=1 so partners can pin a known shell when we ship v2.

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 CMS strips raw iframes, drop this script where the widget should appear:

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.

Where to use this

Suggested hosts for a first distribution wave (outreach is separate — email contact@piggymath.com if you already published an embed):

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

Privacy & terms for embeds

See also Privacy Policy and Terms of Use.

Versioning

Pin with the query string (?v=1). Asset URLs inside the widget also carry cache-bust query versions (embed.css?v=1, app.js?v=43, embed-widget.js?v=1). When we break the shell, we bump v and document the change here. robots.txt disallows the widget shells (/embed/se-tax/, /embed/quarterly/) so they stay out of the index; this hub remains crawlable.

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 shared client-side math. Pin a version with ?v= on the iframe src.
Can any website iframe the widget?
Yes. We do not restrict origins. Keep attribution and the educational disclaimer.