How to Add a Calorie Calculator to Your Website

August 6, 2026

The Calorie Calculator widget helps visitors estimate their daily calorie needs based on personal details, including age, height, weight, activity level, and fitness goals. Using the widely recognized Mifflin-St Jeor equation, it calculates basal metabolic rate (BMR), maintenance calories, and a recommended daily calorie target, all within a responsive, easy-to-use widget that you can add to your website without coding.

Whether you run a fitness website, nutrition blog, gym, or wellness coaching business, the Calorie Calculator widget gives visitors instant, personalized insights to support healthier lifestyle decisions. It makes your content more interactive, encourages users to engage with your site, and helps them better understand their daily calorie requirements before planning meals, workouts, or nutrition programs.

Creating and Getting the Embed Code of Your Calorie Calculator Widget

To embed a Calorie Calculator on your website, you’ll first need to configure the Calorie Calculator widget and copy the embed code for it. Here’s how to get going:

  1. On the top-left side of your Workspace page, click on Create.
Create button in Jotform's My Workspace page
  1. Then, in the menu that opens up, select Website Widget from the assets.
Website Widget option in Jotform's Create asset flow
  1. Next, in the Search bar in the upper-left corner of the Choose Website Widget menu, enter Calorie Calculator.
  2. Then, at the bottom of the Calorie Calculator in the Choose Website Widget menu, click on Use Widget.
Calorie Calculator in the Choose Website Widget window
  1. Now, in the Widget Properties menu that opens on the right side of Website Widgets, under the General tab, set up these properties:
    • Calculator Title — Keep the default Calorie Calculator or enter a new one in the input box to customize your title.
    • Description — Keep or enter a new short description to display below the calculator title.
    • Main Result Label — Delete the existing label in the input box and enter the label you want to display in the result section.
    • Show BMR — Keep this on to show the BMR text just below the main result, or toggle it off to hide it.
    • Show Maintenance Calories — Keep this toggled on to display maintenance calories, or toggle it off to hide this section from the results.
    • Show Macro Estimate — Keep this on to show the suggested split of required calories, or toggle it off to hide it.
General tab of the Calorie Calculator Widget properties menu
  1. Next, under the Style tab, customize these properties:
    • Theme — Click on the Dropdown menu and select Light, Dark, Fresh, Energy, Clinical, Midnight, or Custom to change the overall appearance of your calculator.
    • Corner Radius — Keep the default Rounded corner or change it to Square or Circular.
    • Jotform Branding — Keep this on to display the Powered by Jotform badge below the calculator.
    • Custom CSS —  Toggle this on, then enter your custom CSS in the Custom CSS box that appears below it.
Style tab of the Calorie Calculator Widget properties menu
  1. If you select the Custom theme option, configure the following color properties for the Background, Text, Muted Text, Accent, and Border:
    • Surface Colors — Used throughout the widget.
    • Input Colors — Used for the calculator’s input fields.
    • Result Colors — Used for calculation results.
Style tab of the Calorie Calculator Widget properties menu
  1. Then, under the Layout tab, configure these properties:
    • Placement — Select to place the calculator as a page section or as a floating launcher.
    • Result Position — Select to show the calorie result below, above, left, or right of the input fields.
    • Widget Width — Click on and hold the slider handle, then drag it to change the width of the calculator.
    • Devices to Display On — Click on the Dropdown menu and select All Devices to display the calculator on both desktop and mobile devices, Desktop Only to display it only on desktop screens, or Mobile Only to display it only on mobile and tablet devices.
Layout tab of the Calorie Calculator Widget properties menu

Note

The Left and Right Result Position options are available only when the widget width is greater than 450px. The Width also updates dynamically based on the selected Placement.

  1. If you select the Floating placement option, configure these additional properties:
    • Place on Left — Toggle this on to place the floating calculator on the left side of the website, or toggle it off to keep it on the right.
    • Distance from Bottom — Click on and hold the slider handle, then drag it to change the distance of the calculator from the bottom.
    • Distance from Side — Click on and hold the slider handle, then drag it to adjust the calculator’s distance from the left or right side of the page.
    • Launcher Text — Keep the default or enter a new one in the input box to change the text that triggers the calculation to pop out.
  2. Once everything’s set, in the pink navigation bar at the top of the page, click on Publish.
Layout tab of the Calorie Calculator Widget properties menu

Note

If you’re not logged in, you’ll be asked to log in to your Jotform account or sign up for one. Once you’ve done that, you’ll be able to get the embed code for your widget.

  1. Then, in the Embed section, click on Copy Code, and, if you already know how, paste that into the Embed section on your platform.
  2. To view embedding instructions for your widget, click on Platforms in the menu on the left side of the page.
Copy Code button in the Publish tab of Jotform Website Widget Builder
  1. Next, in the Platforms section on the right, select the platform you want to view embedding instructions for. Or, use the Search bar at the top of the section to find it easily. 
Platforms section in the Publish tab of Jotform Website Widget Builder
  1. Then, follow the steps in the How to Embed Your Widget section to add it to your website.
How to Embed Your Widget instruction in the Publish tab of Jotform Website Widget Builder

That’s it! Your Calorie Calculator widget will appear on your website just as you customized it. Take a look at the screenshot below to see how it looks on a website.

Jotform's Calorie Calculator widget example

Note

You can manage the website widgets you’ve created at any time from your account. For a full breakdown of how to do it, head over to our guide on How to Manage Website Widgets.

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.