Skip to contentSkip to main content

Put a trusted dosing calculator on your site

Choose a calculator

Calculator
Size
Width
Max width
Corners

Height adjusts to the calculator automatically.

Where to paste it

Most site builders have a custom HTML or code block. Add one, paste the code where the calculator should appear, and publish.

  • WordPress: add a Custom HTML block.
  • Wix: add an Embed code (HTML) element.
  • Squarespace: add a Code block.
  • Shopify: add a Custom Liquid block, or switch the page editor to HTML.

Some plans block custom code or scripts. If the calculator does not appear, use the iframe code instead, or check your plan's code settings.

Your embed code
Tick the box below to show your code
Live preview · GLP-1 Titration
Where to paste it

Most site builders have a custom HTML or code block. Add one, paste the code where the calculator should appear, and publish.

  • WordPress: add a Custom HTML block.
  • Wix: add an Embed code (HTML) element.
  • Squarespace: add a Code block.
  • Shopify: add a Custom Liquid block, or switch the page editor to HTML.

Some plans block custom code or scripts. If the calculator does not appear, use the iframe code instead, or check your plan's code settings.

Add a dosage calculator to your website without building one

You do not need to build your own dosage calculator, peptide calculator or TRT calculator. Paste one line of code and an InjectBuddy calculator appears on your page, with the dose maths already written and checked. It works on any website that lets you add custom HTML.

The embed code

This is the code for the testosterone (TRT) dose calculator: one script tag plus the attribution link.

<script src="https://www.injectbuddy.com/embed.js" data-calc="trt" async></script>
<a href="https://www.injectbuddy.com/trt-calculator/">Testosterone (TRT) Dose calculator by InjectBuddy</a>

For any other calculator, change the data-calc value to the calculator's id from the list below, and use the attribution link the builder gives you.

<script src="https://www.injectbuddy.com/embed.js" data-calc="CALCULATOR_ID" async></script>

Sites that do not allow scripts can use the iframe code from the builder instead.

How to embed a calculator

  1. Choose a calculator. Pick a calculator in the builder on injectbuddy.com/embed/, or choose its data-calc value from the list of calculators.
  2. Accept the licence and copy the code. Tick the embed licence box and press Copy code. You get one script tag and one attribution link.
  3. Paste the code into your page. Add a custom HTML block (WordPress Custom HTML, Wix Embed code, Squarespace Code block, Shopify Custom Liquid or Webflow Code Embed) where the calculator should appear, and paste the code.
  4. Publish. Publish the page. Keep the "Powered by InjectBuddy.com" bar and the attribution link visible.

Calculators you can embed

Each calculator also has its own page with a worked explanation. See all calculators and the guides.

Which calculator to pick

Use the testosterone calculator for weekly or every-other-day TRT doses, the peptide reconstitution calculator to work out how much bacteriostatic water to add to a vial, and the semaglutide or tirzepatide calculators for pen and vial doses. The BMI calculator suits general health and fitness pages.

Where it works

Any HTML page, and any site builder with a custom HTML or code block:

  • WordPress: a Custom HTML block.
  • Shopify: a Custom Liquid block, or the page editor in HTML mode.
  • Wix: an Embed code (HTML) element.
  • Squarespace: a Code block.
  • Webflow: a Code Embed element.

Some plans block custom code or scripts. If the calculator does not appear, use the iframe code instead, or check your plan's code settings.

Why embed instead of building

TopicEmbed InjectBuddyBuild your own
Dose mathsCalculation rules are kept in a written specification and checked against generated test vectors before each build.You write and test the formulas, unit conversions and rounding yourself.
UpkeepLoads from injectbuddy.com, so calculator fixes reach your page without changing your code.You fix and redeploy every change.
PhonesFills the width of its container and grows to fit the calculator.You build and test the responsive layout.
Page speedLazy-loaded iframe: it loads when a visitor scrolls near it.Depends on your build.
CostFree for personal, educational and informational websites. Commercial use needs a commercial licence.Your development time.

How the calculators are checked is described on the methodology page.

How embedding works

The builder above produces one script tag and one visible attribution link. Paste both into the HTML of any page. The script loads the calculator in an iframe right after itself, lazy-loaded, so it does not slow down the rest of your page until a visitor scrolls near it. The embed fills the width of its container and grows to fit the calculator. You can put several calculators on one page. If your site does not allow scripts, use the iframe code instead.

Embed licence

The “Powered by InjectBuddy.com” bar and the attribution link must stay visible. The calculator output and its disclaimer cannot be altered. The calculators are mathematical tools, not medical advice, and should not be presented as clinical guidance on your site. Embedding is free for personal, educational and informational websites.

By embedding InjectBuddy calculators on your website, you agree to the following terms.

  1. Attribution required. The "Powered by InjectBuddy.com" bar must remain visible at all times within the embed. You may not modify, hide, or obscure this attribution in any way.
  2. No modifications. You may not alter the calculator's output, branding, or medical disclaimer text. The calculator must be presented as-is.
  3. Medical disclaimer. InjectBuddy calculators are mathematical tools only. You must not present them as medical advice on your platform or in any surrounding content that implies clinical endorsement.
  4. Non-commercial use. The embed is free for personal, educational, and informational websites. Commercial use (clinic software, paid apps, subscription services) requires a separate commercial licence. Contact hello@injectbuddy.com.
  5. No reselling. You may not resell, sublicence, or repackage the embed code or calculator as your own product.
  6. Termination. InjectBuddy reserves the right to revoke embed access at any time if these terms are violated.

By copying the embed code, you accept these terms on behalf of yourself and any organisation you represent.

Questions about embedding

How do I add a dosage calculator to my website without building one?

Embed an InjectBuddy calculator. Pick a calculator at injectbuddy.com/embed/, tick the licence box, copy the code and paste it into a custom HTML block on your page. The code is one script tag plus an attribution link. The calculator loads from injectbuddy.com, so there is no dose maths for you to write or maintain.

How do I add a peptide reconstitution calculator to my website?

Paste <script src="https://www.injectbuddy.com/embed.js" data-calc="peptide" async></script> into a custom HTML block, with the attribution link from the builder under it. Visitors enter the vial amount, the bacteriostatic water and their dose, and see the units and mL to draw.

Is there a free TRT dose calculator I can embed?

Yes. Use data-calc="trt" for the testosterone (TRT) dose calculator, "eod" for every-other-day dosing and "microdose" for the women's low-dose testosterone calculator. Embedding is free for personal, educational and informational websites. Commercial use, such as clinic software, paid apps or subscription services, needs a separate commercial licence from hello@injectbuddy.com.

Can I embed a semaglutide or tirzepatide calculator?

Yes. Use data-calc="semaglutide", "tirzepatide" or "retatrutide" for dose calculators, or "glp1titration" for the GLP-1 titration calculator.

Can I embed an injection tracker on my website?

No. The embeds are calculators only; there is no embeddable tracker. Dose tracking, which logs each dose with its time and injection site and sends reminders, is part of InjectBuddy Pro. People use it on injectbuddy.com or in the InjectBuddy iPhone app, so you can link your visitors to injectbuddy.com/dose-tracker/.

Does the embed work on WordPress, Shopify, Wix, Squarespace or Webflow?

Yes, on any site that lets you add custom HTML. In WordPress add a Custom HTML block, in Wix an Embed code (HTML) element, in Squarespace a Code block, in Shopify a Custom Liquid block, and in Webflow a Code Embed element. Some plans block custom code or scripts; if the calculator does not appear, use the iframe code from the builder instead.

Can I change the calculator or remove the "Powered by InjectBuddy.com" bar?

No. The "Powered by InjectBuddy.com" bar and the attribution link must stay visible, and the calculator output, branding and medical disclaimer cannot be altered. The builder lets you set a fixed width, a maximum width and square or rounded corners.

Will the embed slow down my page?

The script inserts the calculator in a lazy-loaded iframe, so it does not load until a visitor scrolls near it. The embed fills the width of its container and grows to fit the calculator, on phones and desktops. You can put several calculators on one page.