Free Website Widget

Embed a peptide calculator on your website

Add BACToBasics educational concentration math to an article, reference page, or resource hub. Configure the starting values, preview the widget, then copy a responsive auto-resizing embed in one step.

Free

No account required

1 snippet

Recommended install

Auto

Responsive height

Widget settings

Configure the starting values

These values only control what appears when the widget first loads. Visitors can change them inside the embedded calculator.

Recommended: use the auto-resize install code. The height above becomes a safe fallback while the BACToBasics helper adjusts the iframe to its actual content height.
The starting values are math examples only. They are not recommendations for preparation, dosing, treatment, injection, or use.

Recommended install

Auto-resizing embed code

Paste this into an HTML or embed block. The small BACToBasics helper listens only for height messages from bactobasics.com and resizes matching calculator iframes automatically.

<iframe
  data-btb-embed="calculator"
  src="https://bactobasics.com/embed/calculator?vial=10&vialUnit=mg&bac=2&dose=250&doseUnit=mcg"
  title="BACToBasics peptide calculator"
  width="100%"
  height="720"
  loading="lazy"
  referrerpolicy="strict-origin-when-cross-origin"
  style="width:100%;max-width:720px;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;"
></iframe>
<script async src="https://bactobasics.com/embed.js"></script>
Open Widget ↗

HTML / custom embed block

Use the auto-resize version when your platform allows both iframe and script tags.

Script-restricted platform

Use the iframe-only version. It stays responsive at 720px max width and uses the 720px fallback height.

Live preview

See the widget before you publish it

Responsive width · Powered-by attribution included

Loading widget preview...

Auto-resizes with the page

The recommended snippet includes a tiny BACToBasics helper that securely listens for widget height changes and updates the iframe.

No account data in the widget

Visitors can use the calculator immediately. Saved calculations, vial inventory, favorites, My Tools, and account data stay outside the embed.

Built-in attribution

Each widget includes a Powered by BACToBasics link back to the full calculator, preserving a clear path from distributed widgets to the main site.

Installation

Works anywhere you can add an iframe

Paste the recommended code into a custom HTML or embed block. If your website builder removes script tags, use the iframe-only option instead; it keeps the same responsive width and uses your selected fallback height.

1

Configure

Choose the initial vial, liquid-volume, amount, width, and fallback-height values.

2

Copy

Use the auto-resize install when scripts are allowed, or the iframe-only fallback when they are not.

3

Publish

Paste the snippet into your page and keep the built-in BACToBasics attribution intact.

What the widget calculates

The embedded calculator performs the same basic concentration math used by BACToBasics: an entered vial amount and liquid volume determine concentration, and an entered amount can then be represented as liquid volume and U-100 scale units.

Read the math basics →

What it does not do

The widget does not provide preparation instructions, dosing schedules, injection guidance, treatment recommendations, or substance-specific IU-to-mass conversions. Starting values are calculator examples, not recommendations.

FAQ

Embedding BACToBasics

Is the BACToBasics calculator widget free to embed?

Yes. The widget can be embedded without creating an account. BACToBasics attribution remains visible inside the calculator.

Does the embedded calculator resize automatically?

The recommended install includes the BACToBasics embed helper, which listens for height messages from the widget and adjusts matching calculator iframes automatically. An iframe-only fallback is also available.

Does the widget expose a visitor's BACToBasics account data?

No. The embedded calculator is intentionally isolated from saved calculations, favorites, vial inventory, My Tools, and account data.

Can I choose the starting calculator values?

Yes. The generator lets you prefill vial amount, unit, liquid volume, and the amount to convert. Visitors can still edit those values inside the widget.