As fat-loss coach Carter Good explained in an Instagram post, you can totally eat white rice and white potatoes along with brown rice and sweet potatoes as part of your weight-loss plan.

In fact, one cup of cooked white rice has fewer calories (205) than one cup of cooked brown rice (216), and 200 grams of cooked white potatoes have fewer calories (172) than 200 grams of cooked sweet potatoes (180).

Download the all-new Microsoft News app to receive up-to-the minute news from the world’s best sources – available now on iOS and Android

Carter explains that this original thinking was due to the glycemic index, which rates foods based on how much they will spike your blood sugar. While the glycemic index was originally thought to help people lose weight, it's not comprehensive. For example, soda and chocolate have a lower glycemic index than some fruit, even though fruit is arguably much healthier.

"Instead, what ACTUALLY matters for losing and gaining weight is, you guessed it, the number of calories you're consuming each day," he wrote in his caption.

You can totally eat carbs and still lose fat. Just be sure to measure out your portions and find enough room in your daily calorie budget for them. If you're calculating macros, make sure you are reaching for natural sources of carbs: fruit, potatoes, rice, whole grains, etc., rather than processed, refined carbs (pretzels, potato chips, sweets, etc.).

Related: An unexpected reason why you might be struggling to lose weight (Buzz60)