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.
| Parameter | Accepted values | Default | Example |
|---|---|---|---|
amount | number > 0 | 50 | amount=100 |
frequency | daily | weekly | biweekly | monthly | weekly | frequency=monthly |
startDate | YYYY-MM-DD | 5 years before the end date | startDate=2017-12-17 |
endDate | YYYY-MM-DD | today (UTC) | endDate=2024-12-31 |
fee | number, 0-50 (percent per buy) | 0.5 | fee=0 |
provider | kraken | coinbase | kraken | provider=coinbase |
currency | USD | EUR | GBP | CAD | AUD | JPY | USD | currency=EUR |
theme | light | dark | auto | auto | theme=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¤cy=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