Free dog food calculator for your website

Copy the code

Paste it into any page. Free, no ads, no sign-up; we only ask you to keep the credit link under the calculator.

Live preview

Optional: fit the frame to its content

The frame scrolls inside when the results are long. To make it grow instead, add this script once on the same page.

<script>
window.addEventListener("message", function (e) {
  if (e.origin === "https://petportions.fyi" && e.data && e.data.type === "pp-embed-height") { document.querySelector('iframe[src^="https://petportions.fyi/embed/"]').style.height = e.data.height + "px"; }
});
</script>

Who it is for

Vet clinics, shelters and rescues, breeders, groomers and dog blogs. Anyone whose visitors ask "how much should my dog eat?" and would rather get a number on your page than leave for a search engine.

What it does

The terms

The widget is free. There are no ads inside it, no sign-up and no API key. The only thing we ask is that you keep the one line of credit under the frame ("Dog food calculator by PetPortions"). It is how other people find the tool.

Product links inside the calculator open in a new tab, so your visitors never leave your page.

Questions

Will it slow down my page?

No. The frame loads lazily, only when a visitor scrolls to it, and it runs on our server, not yours.

Does it work on phones?

Yes. The frame fits any width from 300 to 800 pixels. If the results are taller than the frame, it scrolls inside; add the optional script above to make the frame grow instead.

Can I change the colors?

Not yet. Version one has one light theme that sits well on most sites.

Is this veterinary advice?

No. It gives a typical starting portion for a healthy dog. Pregnant or nursing dogs and dogs on a medical diet should get a portion from their vet. How the numbers are calculated is on our methodology page.