Embed the Pace Calculator

Put the PaceLab pace calculator on your club, race or coaching site with one block of HTML.

Paste the 8 lines of HTML below into any page. It loads a standalone version of the pace calculator, with no navigation and no tracking, at https://paceslab.com/embed/pace-calculator. Free for any site including commercial ones, under one condition: keep the credit link that appears under the calculator.

The code

Embed code
<iframe
  src="https://paceslab.com/embed/pace-calculator"
  title="Running pace calculator by PaceLab"
  width="100%"
  height="620"
  style="border:0;max-width:640px"
  loading="lazy"
></iframe>

Optional: make it resize itself

The widget posts its rendered height to the parent window whenever it changes. Add this next to the iframe and it will grow and shrink with its content instead of scrolling inside a fixed box. The origin check matters, so keep it in.

Auto-resize snippet
<script>
  window.addEventListener("message", function (event) {
    if (event.origin !== "https://paceslab.com") return;
    var data = event.data;
    if (!data || data.source !== "paceslab-embed" || data.type !== "height") return;
    var frame = document.querySelector('iframe[src^="https://paceslab.com/embed/"]');
    if (frame) frame.style.height = data.height + "px";
  });
</script>

Licence

Free to embed on any site, including commercial ones. Keep the credit link under the calculator, do not present the tool as your own, and that is the whole agreement. There is no key to request and nothing to sign up for.

If you want the numbers rather than the interface, the open pace dataset is a CSV and JSON download of the whole pace-to-finish-time matrix under CC BY 4.0. If you want the maths, it is all set out on the methodology page.

Need something built around it

PaceLab is built and maintained by FusionStudios. If your race or club needs a calculator that does something this one does not, that is the kind of thing they build. Get in touch.

Frequently asked questions

Is the embed free for commercial sites?

Yes. Race organisers, coaching businesses and shops may all use it. The only condition is that the credit link below the calculator stays visible and stays a real link.

Does the embed track my visitors?

No. It sets no cookies, sends no analytics and reads nothing from the host page. The only message it emits is its own pixel height, so your iframe can size itself.

Why does the iframe need a fixed height?

It does not, if you add the resize snippet. Without it the iframe keeps whatever height you set. With it, the widget posts its height to your page and the iframe follows.

Can I restyle it?

Not from the outside, because an iframe is isolated by design. If you need a different look for a club or a race, get in touch and we can talk about it.

Last reviewed . Formulas, constants and sources: methodology. Changes to any calculation are logged in the changelog.