Pooldex

Add a free pool calculator to your website

Put a free Pooldex pool calculator on your website: pick one below, copy the code, and paste it into your page. There's no signup, no key, and no ads, and a small "Calculator by Pooldex" line credits us.

By Aliaksandr Rusinski · Updated October 11, 2026 · Formulas: methodology (last changed October 7, 2026)

On this page (5 sections)

These are the same calculators that run on our own pages, with the same formulas. Pool service companies, hot tub dealers, HOAs, and pool blogs can use them to answer the questions their customers ask most: how much chlorine, salt, or other chemicals to add, and how many gallons a pool holds.

Pick a calculator and copy the code

Each calculator below is live, so you can try it before you copy it. Paste the code where your site accepts HTML, for example an HTML or embed block (in WordPress, the Custom HTML block).

Optional: make the frame fit its content

The frame starts at a fixed height. The calculator can get taller as people type, for example when a result adds a step. Paste this short script once on the same page, and every Pooldex frame on that page resizes itself to fit.

Auto-height script (paste once per page)

<script>
addEventListener("message", function (e) {
  if (e.origin !== "https://pool-dex.com" || !e.data || e.data.type !== "pooldex:height") return;
  document.querySelectorAll("iframe[data-pooldex-embed]").forEach(function (f) {
    if (f.contentWindow === e.source) f.style.height = Math.min(Math.max(Number(e.data.height) || 0, 300), 3000) + "px";
  });
});
</script>

The script reads one number from our frame, its height, and only from pool-dex.com. It loads nothing from other sites. Without it, the calculator still works: if it gets taller than the frame, it scrolls inside the frame.

Size, colors, and units

  • Width: 300 to 800 pixels. On phones the frame fills the column; on wide screens it stops at 800 px.
  • Height: start with the number in the code. If you don't use the auto-height script, raise the height number until nothing scrolls inside the frame.
  • Colors: the calculator follows each visitor's light or dark mode setting. To keep it light or dark, add ?theme=light or ?theme=dark to the end of the address in src, for example https://pool-dex.com/embed/pool-chemical-calculator/?theme=light.
  • Units: visitors can switch between US units (gallons, fl oz, lb) and metric (liters, mL, kg) inside the calculator.
  • Links: links inside the calculator open in a new tab, so visitors don't leave your page.

What we ask in return

  • Keep the "Calculator by Pooldex" line inside the frame visible. Don't cover, crop, or hide it.
  • Don't change what the calculator shows, and don't present it as your own tool.
  • The credit line under the frame in the code is optional. You can keep it as it is, add rel="nofollow" if your site's rules require that, or remove it.

We update the calculators in place. Your page always shows the current version, and you never need to change the code.

FAQ

Is the pool calculator widget free?

Yes. It's free for any website, personal or business. There's no signup, no API key, and no fee, and we don't put ads in it.

Does the embedded calculator track my visitors?

No. It has no ads or tracking pixels, and it sets no cookies. The math runs in the visitor's browser, and their numbers are not sent to us. If a visitor switches units, the calculator remembers that choice in their own browser. Like every page on pool-dex.com, the frame may be counted in visit totals by Cloudflare Web Analytics, which uses no cookies. Details are in our privacy policy.

Will the embedded calculator give the same numbers as your site?

Yes. It runs the same code and the same formulas as the full calculator on our site. Our methodology page lists the formulas and sources. The results are estimates: always follow the directions on your product's label.

Will the widget slow down my page?

Very little. With loading="lazy" in the code, the frame loads only when a visitor scrolls near it. Each calculator loads one small script and one stylesheet from pool-dex.com.

Can I get a different size or another calculator?

Email [email protected] with the address of your page and what you need, such as a narrower layout or a calculator from our full list. We read every request, but we can't promise to add each one.