Skip to main content

Embed the Bitcoin DCA Calculator

One iframe drops a live Bitcoin dollar-cost-averaging result card into an article, a newsletter archive, or a docs page. It recomputes against real market prices every hour. Free, no API key, no accounts, no tracking scripts.

What it looks like

What follows is the real widget, not a screenshot: $50 of Bitcoin every week since January 2021, with no exchange fee. By default it follows whichever light or dark preference the reader's browser reports.

Copy the code

Paste this wherever the card should appear, then swap the query parameters for whatever scenario your piece is about. One click on the block selects all of it.

<iframe
  src="https://btcdollarcostaverage.com/embed?amount=50&frequency=weekly&startDate=2021-01-01&fee=0"
  title="Bitcoin DCA Calculator"
  width="100%"
  height="300"
  loading="lazy"
  frameborder="0"
  style="border:0;max-width:600px;border-radius:16px"
></iframe>

Sizing

The card is responsive and has no fixed pixel width. It's built for roughly 400–600 px wide and 250–340 px tall, and 300 px of height is the sweet spot. Below about 320 px wide the text stays legible but gets tight. Set the iframe width to 100%, cap it with max-width, and it adapts on mobile.

Parameters

Every parameter is optional. Anything missing or invalid falls back to its default, so even a bare /embed URL renders a sensible card.

ParameterAccepted valuesDefaultExample
amountnumber > 050amount=100
frequencydaily | weekly | biweekly | monthlyweeklyfrequency=monthly
startDateYYYY-MM-DD5 years before the end datestartDate=2017-12-17
endDateYYYY-MM-DDtoday (UTC)endDate=2024-12-31
feenumber, 0-50 (percent per buy)0.5fee=0
providerkraken | coinbasekrakenprovider=coinbase
currencyUSD | EUR | GBP | CAD | AUD | JPYUSDcurrency=EUR
themelight | dark | autoautotheme=dark

Dates are UTC calendar days, and amounts are denominated in whichever display currency you pick. Results come from the same engine and data as the main calculator; the methodology page spells out exactly how each number is computed.

Examples

$250 per month since 2018, dark

Forced dark theme for a dark-background site.

<iframe src="https://btcdollarcostaverage.com/embed?amount=250&frequency=monthly&startDate=2018-01-01&fee=0&theme=dark" title="Bitcoin DCA Calculator" width="100%" height="300" loading="lazy" frameborder="0" style="border:0;max-width:600px"></iframe>

$25 per week since the 2017 top

A worst-possible-entry scenario with a 1% exchange fee, priced from Coinbase.

<iframe src="https://btcdollarcostaverage.com/embed?amount=25&frequency=weekly&startDate=2017-12-17&fee=1&provider=coinbase" title="Bitcoin DCA Calculator" width="100%" height="300" loading="lazy" frameborder="0" style="border:0;max-width:600px"></iframe>

€100 per week since 2020

Amounts and results shown in euros.

<iframe src="https://btcdollarcostaverage.com/embed?amount=100&frequency=weekly&startDate=2020-01-01&fee=0&currency=EUR" title="Bitcoin DCA Calculator" width="100%" height="300" loading="lazy" frameborder="0" style="border:0;max-width:600px"></iframe>

Terms

  • Free to embed on any site, personal or commercial. No permission needed, no attribution beyond the widget itself.
  • Please leave the attribution link inside the card intact. That link is what pays for the data and the hosting.
  • The widget loads no third-party scripts, sets no cookies, and collects nothing from your readers.
  • Results are a historical simulation for education, not financial advice. Past performance does not guarantee future results.

Build the scenario first

Dial in the amount, cadence, dates, and fees in the full calculator, then copy those same values into your embed URL.

Open the Calculator