Most vegetables that grow underground or contain visible starch are too high in carbohydrates for a ketogenic diet. Since keto typically limits you to 25 grams of net carbs per day (or roughly 50 grams of total carbs), a single medium potato at 26 grams of total carbs could use up your entire daily allowance in one sitting. The general rule: vegetables with more than 5 grams of carbs per 100 grams of weight are considered starchy and best avoided or strictly limited on keto.
Potatoes and Sweet Potatoes
Potatoes are the biggest offender on a keto diet. A single medium white potato contains about 26 grams of total carbs and only 2 grams of fiber, leaving you with 24 grams of net carbs. That’s nearly an entire day’s net carb budget from one vegetable. Instant mashed potatoes rank even higher on the glycemic index (80-89 out of 100), meaning they spike blood sugar rapidly.
Sweet potatoes are slightly better nutritionally but still far too carb-heavy for keto. A medium sweet potato has around 23 grams of total carbs, though its 4 grams of fiber bring net carbs down to roughly 19 grams. Even a small 100-gram portion of cooked sweet potato delivers about 13 grams of net carbs. Yams fall into the same category.
Corn and Peas
Sweet corn catches a lot of people off guard because it’s served alongside other vegetables, but it’s technically a grain. One medium ear of corn has 18 grams of total carbs with only 2 grams of fiber. That’s 16 grams of net carbs from a single ear. Frozen corn, canned corn, and creamed corn are all equally high.
Green peas are another surprise. They look like they belong in the same category as green beans, but a half-cup serving packs significantly more starch. Mixed vegetable blends that include corn or peas should also be avoided, as a one-cup serving of these mixes counts as a full starch serving.
Beans, Lentils, and Legumes
Most beans and legumes are off the table on keto. The numbers per half-cup cooked serving tell the story clearly:
- Chickpeas: 18 grams net carbs
- Pinto beans: 15 grams net carbs
- Black-eyed peas: 15 grams net carbs
- Navy beans: 14 grams net carbs
- Kidney beans: 13 grams net carbs
- Great Northern beans: 13 grams net carbs
- Lima beans: 12 grams net carbs
- Black beans: 12 grams net carbs
- Lentils: 11 grams net carbs
Two exceptions exist. Green beans contain only 2 grams of net carbs per half cup, making them perfectly keto-friendly. Black soybeans are also low at 2 grams of net carbs per half cup, and they can substitute for other beans in chili or soup recipes.
Winter Squash
Summer squash like zucchini is a keto staple, but winter squash varieties are a different story. Butternut squash contains about 10.5 grams of carbs per 100 grams raw. Acorn squash is similarly high. A one-cup serving of cooked winter squash counts as a full starch serving, putting it in the same category as potatoes on carbohydrate lists used for diabetes management.
Pumpkin falls somewhere in between. Pure pumpkin puree is lower in carbs than butternut or acorn squash, but it still adds up quickly in recipes. If you use it, measure carefully and account for it in your daily total.
Root Vegetables and Parsnips
Most root vegetables store energy as starch, which makes them naturally high in carbs. Parsnips, cassava, dasheen (taro), and plantains are all classified as starchy vegetables. Cassava is especially dense, with a third of a cup counting as a full starch serving. Beets land in the moderate-to-high range with a glycemic index of 60-69, and their natural sugar content makes them worth limiting.
Carrots are a gray area. A single medium carrot has 7 grams of total carbs and 2 grams of fiber, so a few shredded into a salad won’t wreck your macros. But roasting a full cup of carrots as a side dish adds up fast. The key is portion awareness rather than total avoidance.
Onions and Garlic in Cooking
You don’t need to eliminate onions and garlic entirely, but they deserve attention because their carbs are easy to underestimate. A medium raw onion contains about 11 grams of carbs, and a full cup of chopped onion has nearly 15 grams. If you’re sautéing a whole onion into a dish for two people, that’s still 5 to 7 grams of carbs per serving just from the onion.
Garlic is even more concentrated. A full cup of raw garlic cloves contains about 45 grams of carbs. Nobody eats that much garlic at once, but a few cloves in a stir-fry add 3 to 4 grams that are easy to overlook. Use both freely in small amounts for flavor, just don’t ignore them when tracking your daily total.
Vegetables That Look Risky but Are Fine
Some vegetables get an undeserved bad reputation on keto. Tomatoes have only 5 grams of total carbs per medium fruit, with most of that as sugar rather than starch, making a few slices perfectly manageable. Bell peppers are similarly moderate at 6 grams of total carbs per medium pepper. Both work well as recipe ingredients in normal portions.
Broccoli contains 8 grams of total carbs per medium stalk, but 3 grams of that is fiber, bringing net carbs to about 5 grams. Cabbage, green beans, and most leafy greens are all solidly keto-safe. The vegetables to genuinely avoid are the starchy ones: potatoes, corn, most beans, winter squash, and other underground tubers. Everything else comes down to portion size and honest tracking.

