This Free 5-Minute Hack Will Let You See MyFitnessPal Net Carbs

Blog Categories


This Free 5-Minute Hack Will Let You See MyFitnessPal Net Carbs

Trying to track your net carbs with MyFitnessPal? It's possible! Here's how to adjust the app to get the keto-friendly numbers you need.

MyFitnessPal net carbs

After reading a few guides on what to track on a ketogenic diet, you finally downloaded MyFitnessPal, an app to log the nutritional values of all your feasts, fat bombs and keto-friendly snacks.

From there, you probably created an account and set up your macro goals to reflect your new keto targets (if not, do this ASAP).

Now all you need to do is start tracking your food intake. Sounds easy enough.

But then you go to check your total carbs at the end of the day and you almost drop your phone.

No, the problem isn’t you or the way you logged your food. It’s MyFitnessPal. It doesn’t consider net carbs.

So the carb count you’re seeing isn’t subtracting your fiber intake, and it’s technically giving you a false reading.

There’s also one more problem:

It doesn’t matter if you’re a free or premium MyFitnessPal user; displaying daily net carbs is not a feature the app ever offers, according to customer support[*].

Before you decide to delete the app or continue to calculate things in your head, there’s one handy workaround to save you time (and math brain freezes). I’ll walk you through this quick five-step process in today’s guide.

In less than a few minutes, you’ll be able to set up your MyFitnessPal to reflect your actual net carbs each day and stop guessing.

MyFitnessPal Net Carbs: The Keto-Friendly Workaround

Before we start on this app-hacking journey, there’s one caveat you need to know first: this tweak only works on the desktop version of MyFitnessPal.

This means you can log your food throughout the day on either your phone or your computer, but you’ll only see net carbs on the desktop version.

Now, to do that, you’ll need to run a script on your MyFitnessPal account.

Don’t worry if you have zero experience with scripts or aren’t the most tech-savvy person. I’ll keep everything super simple.

Step 1: Install a Program to Run the Script

Your first step is to download an extension that can run this script on your MyFitnessPal settings.

For Chrome, Safari or Firefox users, download Tampermonkey to do this.

Once it’s downloaded, add it to your web browser as an extension:

MyFitnessPal net carbs

As a side note, if you’re one of the few readers still using Internet Explorer, this fix won’t work for you since the plugin is outdated.

Now that your extension is added, it’s time to log in to MyFitnessPal.

Step 2: Double Check Your Settings in MyFitnessPal

Once you’ve signed in, click the ‘Settings’ link at the top.

MyFitnessPal net carbs

Right away you should see a list of the nutrients you’re tracking.

This setting is another default that needs to be updated, especially for keto and this workaround specifically.

Your nutrient goals should mirror the ones you see in the image above.

So you’ll need to track:

  • Carbohydrates
  • Fat
  • Fiber
  • Protein
  • Potassium

Use the drop down arrows to change these nutrients and then scroll down until you see ‘Save Changes’. Click that green button to update your account.

Here’s where things get technical — so stay with me. It’s really easy, I promise.

Step 3: Download the Script

Next, download the script you’re going to run on MFP, using the Tampermonkey program you installed in Step 1.

You can find that download link on this page:

MyFitnessPal net carbs

Once it’s downloaded, don’t be tempted to click it. For you rebel readers, I’ll just tell you it’s not really going to do anything even if you do click it.

If you happen to have Dreamweaver or a similar program installed, it’s just going to open up the script code.

For everyone else and my non-technical friends, you don’t need to do anything but drag and drop from here.

Step 4: Drag the Script into Tampermonkey

Next, you need to open Tampermonkey so you can drop the script file right in. Click the extension on your web browser and you’ll see this:

MyFitnessPal net carbs

Click the plus (+) sign to add the script file you downloaded and you’ll see this next:

MyFitnessPal net carbs

MyFitnessPal net carbs

Where it says // Your code here…, drag the file you downloaded from GitHub right onto this line of code. If it downloaded as a .zip file, you’ll have to unzip it and drag the file that ends in .user.js.

If you decided to play in Dreamweaver, just copy and paste the code into this space.

From here, you need to assign the URL that’s going to use this script.

MyFitnessPal net carbs

Copy and paste this URL into that box:

When you’re done, it should look like this:

MyFitnessPal net carbs

Click the floppy disk icon to save your hard work and you are finished, my keto friend.

MyFitnessPal net carbs

Not bad for someone without much coding experience, am I right?

Now before we bask in all the food-tracking hack glory, let’s find out if it worked.

Step 5: Head Back to MyFitnessPal

Switch over to your MyFitnessPal tab to see if everything was installed correctly.

You’ll know if that’s the case if you see the Net Carbs column.

Before the update, the nutrient headers of your log looked like this:

MyFitnessPal net carbs

After the update, they should look like this:

MyFitnessPal net carbs

If you’re not seeing this Net Carbs column, check out the troubleshooting section next.

What Happens if Net Carbs Still Aren’t Showing?

There are a few areas you can check to see what could be causing the issue.

First, head over to Tampermonkey to double check that you:

  • Copied the entire script over
  • Put the script in the right place
  • Added the correct URL

This step also checks to make sure you saved your work.

MyFitnessPal net carbs

If that all looks good, your next step is to make sure you have the script and Tampermonkey enabled.

To do that, click this extension button again:

MyFitnessPal net carbs

Once you do, you’ll either see a sign that a new script is running:

MyFitnessPal net carbs

Or one that no scripts are running:

MyFitnessPal net carbs

If you’re in the first boat and you see green lights, you just need to refresh the page a few times and your update should kick in.

For those who aren’t seeing any running scripts, head back over to ‘Installed userscripts’ in Tampermonkey to double check your work again (see first step of this section).

And if that doesn’t do the trick, try starting over by creating a new script altogether:

MyFitnessPal net carbs

The first time I tried this, my initial attempt only kicked in after the second one was enabled.

At that point, I just deleted the first one and only kept the second one running and I was good to go.

Now that you have the ability to track your net carbs in MyFitnessPal, there’s no excuses not to.

Start Tracking Your Net Carbs in MyFitnessPal Today

To learn more about why you should be tracking your net carbs every day, check out this guide.

And if you’re ready to use today’s quick workaround, head over to Tampermonkey first and then download the script from GitHub next.

Follow the rest of the steps in this guide and you’ll have an easier way to track net carbs when your craving for more macadamia nuts strikes.

Remember, tracking your macros is crucial if you want to find success with keto — and now that you have your net carbs accounted for, you’ll be one step closer to getting into ketosis.


48 thoughts on “This Free 5-Minute Hack Will Let You See MyFitnessPal Net Carbs

  1. It worked! I didn’t have to do from step 4 onwards, the script just automatically worked in tamper-monkey after I downloaded it 🙂 thank you!!

  2. Hiya,

    Thanks for this, it is almost working but not quite! I have the Net Carbs column but the entry for each food I enter using it shows as ‘NaN’. I have tested this by entering a bagel…

    Any tips?

    Thanks 🙂

  3. Thanks! Worked like a charm! Although, there was no field to add the URL, although the script worked without me having to do that step.

  4. the current version of Tampermonkey is 4.6 and there is no URL field anymore, and since I couldn’t add it, the script is not working. Anything to be done?

  5. In tampermonkey 4.6, when you are editting your script, you have to click ‘settings’ to see the update url field

  6. Like you noted, it only worked for me once I created two duplicate scripts and messed with run only one at a time. Weird. But it works! Thanks!

  7. It worked like a charm! Strange that myfitnesspal won’t implement such simple code. Anyway, thank you for the step by step process!

  8. i have the same issue,,, it didn’t work for me as its missing the URL / i’ve added the url to the updates within settings but it still don’t work 🙁

    Tampermonkey is saying there are no scripts running.

    please help.

  9. Tampermonkey says I’m running the script only when I’m in the Food Diary Settings. But when I switch over to add the Food into my Food Diary, it says no script running. Any thoughts? I feel like I’m so close!

  10. Not working for me either. Fixed an error in the code (double declaration of carbs variable), but still no go.

  11. Love this site. We only use the app so do we just take the dietary fibre off the total carbs for net carbs? Thanks xx

  12. I understand that food labelling is quite different in the US/UK/Australia & NZ. I’m told that in the UK/USA food labelling displays Carbs before the dietary fibre has been deducted & in NZ & Australia the Carb count on our food label is nett carbs & has already had the dietry fibre deducted from it.

    This poses all sorts of problems for me when using MyFitnessPal as any entry contributed by an Australian/Kiwi is nett carbs & any product contributed by UK or USA needs to have fibre deducted.

    To date I have been deducting fibre from carbs to get nett fibre. How is everyone else dealing with this?

  13. thanks so much for this! ive been using mfp for a couple years and the thought of download another app and re entering nutritional info and making sure the info in that app is correct not to mention all the recipes ive added just to do it all over again was overwhelming! this worked like a charm. i didn’t have to do the additional steps after downloading the script. it seems they have added the url in it.

  14. This works, but just FYI, to anyone doing Atkins, it doesn’t quite work for everything. For example, if you enter one of the Atkins snack bars, the net carb count won’t be right because this script doesn’t account for Glycerin or sugar alcohols. I guess it only takes fiber into account. So when you enter a food that contains things like that, the net carb count won’t match what the package says.

    I’ve started adding foods to the database with the title “to show 2G net carbs in totals” whenever I come across this. For these instances, I just add the net carbs total into the “Total carbs” box and leave the fiber blank, filling out everything else (fat, protein, etc.) as it says on the package. This way, the net carbs track properly in my totals.

  15. I got the net carbs to show up but see “NaN” in some of the food listings. Then my total net carbs becomes something like -712. Not sure what went wrong.

  16. OR… the other/older method to always get keto net carbs in myfitness pal (all versions/platforms) is to simply find a net carb version, or enter your own net carb version of food to the database. Spinach for example, when looking up foods, look for (Net Carb) versions. If you don’t find one, add it. Using Spinach for example – the label has 3g carbs per serving with 3g of fiber – simply add your own version to the databasae named Spinach (Net Carbs) and enter the nutrition values yourself, entering 0 for carbs instead of the usual three. If you do this for all your usual ingredients, you always get net carbs. If you share to the public database, then everyone can use the Net Carb version and save others the time to do this.

  17. Took me a few tries but it worked! For those having trouble, make sure to go through the script and update any web addresses from “http” to “https”

    Also, update the link to https

  18. Does anyone else’s “My Home” page not load totally now? The net carbs are displaying beautifully on the Food page (THANK YOU!), but My Home>Home, and My Home>Goals pages just try load but nothing populates. Appreciate any thoughts about this.

  19. holy cow — it works. things weren’t QUITE the same as described (probably due to updates in the programs), but it WORKS! Thank you thank you thank you.

  20. That was great, it works with me from the first trial, but it was easier than the description, “Tampermonkey” program is updated now.
    my deep appreciations 🙂

  21. It worked! I didn’t have to do from step 4 onwards, the script just automatically worked in tamper-monkey after I downloaded it 🙂 thank you!!

  22. If anyone is getting the “NaN” in the Net Carb column, you’ll need to go back to the Food Settings and make sure FIBER is one of the options being tracked.

  23. for some reason i am getting compiling errors. It says that google is not defined, jquery is not defined, etc.
    Anyone have any ideas how to fix this?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get more out of keto

Doctored-developed. Backed by science. Do keto better with our tasty foods & supplements

Get more out of keto

Doctored-developed. Backed by science. Do keto better with our tasty foods & supplements

Join the Internet's largest keto newsletter

And we'll send you our Keto Kickstart guide and subscriber discounts.

Secured By miniOrange