MyFitnessPal Percentages and Net Carbs

By Surye Last update Jul 23, 2013 — Installed 45,419 times.

Script Summary: Adds display of Carb/Protein/Fat percentages to any daily food diary page. Also adds "Real Calories" calculation based off 4/4/9 algorithm. Based on "MyFitnessPal Percentages", modified by Surye to add low carb features such as net carbs. Requires the following columns: Fat, Protein, Carbs, Fiber

Version: 1.4

Created primarily for the /r/keto community on Reddit.

Tracking source code changes and taking pull requests at: (you can fork, edit, and send a pull request all in browser, so should be simple)

Remember this script REQUIRES the following columns: Fat, Protein, Carbs, Fiber!



Q: Food item shows up in red and says bad data?! What gives?!
A: Someone added the food item incorrectly, and put net carbs in the carbs value, and so the fiber subtracts from it, making negative carbs. Nothing I can really do about this without modifying more data than I wish to.

Q: I get NaN's in the Net Carb column!
A: It may be you didn't have all the required columns added, go to and make sure all the columns required are there (most likely, you need to add the fiber column).