compoundcoast
Utility

Embed a calculator

Every calculator on this site can run inside an <iframe> on your own page. Add ?embed=1 to any calculator URL and the nav rail, header, and footer disappear — the calculator, its disclaimers, bylines, and source·asOf stamps stay. Nothing to add to your own page beyond the iframe, and no account. The embedded frame loads the same cookieless page counter the rest of the site uses.

The snippet

Copy this, swap the src for the calculator you want, and paste it into your post or page:

<iframe
  src="https://compoundcoast.com/accumulate/dca-vs-lump-sum/?embed=1"
  title="DCA vs Lump Sum Calculator — compoundcoast"
  width="100%" height="1800" loading="lazy"
  style="border:1px solid #2a3350; border-radius:12px"
  sandbox="allow-scripts allow-same-origin allow-popups">
</iframe>
<p>Calculator by <a href="https://compoundcoast.com/accumulate/dca-vs-lump-sum/" rel="nofollow">compoundcoast</a></p>

Preset the inputs

Calculator inputs serialize into the query string, so an embed (or a plain link) can open on a specific scenario instead of the defaults. Set the inputs on the live calculator, copy the URL from the address bar, and append &embed=1. For example, $250k deployed over 5 years in a taxable account, real dollars:

https://compoundcoast.com/accumulate/dca-vs-lump-sum/?c=250000&y=5&fee=0&acct=taxable&div=1&cash=1&real=1&embed=1

Shared scenario URLs are regular canonical URLs with parameters — nothing is cloaked or gated, and the canonical link element always points at the clean calculator path.

Embeddable calculators

Every calculator page on the site embeds — each one carries its own “Embed this calculator” box with a ready snippet. The table below is the planning deck; the fund pages are listed underneath it.

CalculatorURL
DCA vs Lump Sum (rolling-window backtest)/accumulate/dca-vs-lump-sum/
Investment Growth After Taxes & Fees/accumulate/investment-growth-after-taxes-fees/
Dividend Snowball/accumulate/dividend-snowball/
Coast FIRE/reach-fi/coast-fire/
Barista FIRE/reach-fi/barista-fire/
FIRE Number (Lean / Fat)/reach-fi/lean-fat-fire-number/
Savings Rate to FI/reach-fi/savings-rate-to-fi/
Safe Withdrawal Rate/withdraw/safe-withdrawal-rate/
Live Off Dividends/withdraw/live-off-dividends/
Roth Conversion Ladder/withdraw/roth-conversion-ladder/

Fund pages

The dividend calculators embed the same way: 29 individual fund pages (/dividend-calculators/<ticker>/ — SCHD, VOO, JEPI, QQQI, O, MAIN and the rest) and 17 side-by-side comparisons (/dividend-calculators/compare/<a>-vs-<b>/ — schd-vs-voo, jepi-vs-qyld and so on). Rather than list 46 rows here, open the page you want and copy the snippet from its own embed box — that way the URL and the height come from the page itself.

Add ?embed=1 to any of them.

House rules

Something broken?

If an embed misbehaves — sizing, theme, a calculator error — say so via the contact page with the URL of the page it is embedded on. Corrections get priority.

See also