Are Legumes Keto? Beans, Lentils, Tofu & Peanuts
Are legumes keto? Most beans pack 20-40g net carbs per cup, but tofu (2g), peanuts, and tempeh can fit. See the full carb breakdown.
Head of Nutrition · June 17, 2026 · 5 min read

If you're cutting carbs, legumes are a confusing category. They're celebrated as a health food and a protein source, yet a single serving of beans can blow your whole carb budget. So where do beans, lentils, tofu, and peanuts actually land on keto?
Most legumes are not keto-friendly because they're starchy and high in carbohydrates: one cup of cooked black beans has about 25g net carbs, chickpeas about 33g, and lentils about 30g — enough to exceed an entire day's keto limit of 20-50g net carbs on its own. The clear exceptions are soy-based foods like tofu (about 2g net carbs per 100g), tempeh, and edamame, plus peanuts (about 4-5g net carbs per ounce), which are low enough to fit keto in normal portions.
Why Most Legumes Don't Fit Keto
Legumes — beans, lentils, peas, and chickpeas — are seeds prized for being high in both protein and fiber. The problem for keto is that they're also high in starch. That starch is digestible carbohydrate, and even after subtracting fiber, the net carb count stays well above what a ketogenic diet allows.
Standard keto caps you at roughly 20-50g net carbs per day, with many people aiming for under 25g to stay reliably in ketosis. Most cooked beans deliver 20-40g net carbs in a single one-cup serving. One serving can equal or exceed your entire daily allowance, leaving no room for vegetables, dairy, or anything else with carbs.
Carb Counts for Common Legumes
Here's how the most common legumes stack up. Values are for cooked legumes per one cup (about 170-200g) unless noted, using USDA-style averages.
| Legume (1 cup cooked) | Total carbs | Fiber | Net carbs |
|---|---|---|---|
| Black beans | 41g | 16g | ~25g |
| Kidney beans | 40g | 13g | ~27g |
| Pinto beans | 45g | 15g | ~30g |
| Chickpeas (garbanzo) | 45g | 12g | ~33g |
| Lentils | 40g | 16g | ~24-30g |
| Green peas | 25g | 9g | ~16g |
| Edamame (shelled) | 14g | 8g | ~6g |
| Tofu, firm (100g) | 2-3g | 1g | ~2g |
| Tempeh (100g) | 9g | varies | ~7-9g |
| Peanuts (1 oz / 28g) | 6g | 2g | ~4-5g |
The pattern is clear: traditional beans and lentils are off the table, while soy foods and peanuts sit at the low-carb end.
Is Tofu Keto? Yes
Tofu is the standout keto legume. Made from coagulated soy milk, it's been stripped of most of the carbohydrate that whole soybeans carry. Firm tofu has about 2g net carbs per 3.5 oz (100g), plus 8-9g protein and 5g of fat — a genuinely keto-friendly macro profile.
Silken tofu is similar (around 2-3g net carbs per 100g) and works well blended into sauces, smoothies, and desserts. Because tofu is mild, it absorbs whatever you cook it with, so pan-frying it in oil or tossing it in a sugar-free sauce keeps it firmly in bounds. Watch out for pre-marinated or teriyaki-style tofu, which can add several grams of sugar.
Edamame and Tempeh: The Keto-Friendly Legumes
Two more soy foods earn a spot on keto. Edamame (young green soybeans) has about 6g net carbs per shelled cup and is high in protein and fiber — a reasonable choice if you keep portions to half a cup or so. Tempeh, made from fermented whole soybeans, runs about 7-9g net carbs per 100g while delivering around 19g of protein, making it one of the most protein-dense plant foods that still fits a low-carb plan.
Both are far more keto-compatible than beans or lentils, but they aren't "free" foods. Track the portion so a generous serving doesn't quietly add 12-15g net carbs.
Are Peanuts Keto? In Moderation
Botanically, peanuts are legumes, not tree nuts — but their carb profile behaves more like a nut. A 1 oz (28g) serving has roughly 4-5g net carbs alongside 7g protein and 14g fat. That makes a small handful a solid keto snack.
The catch is portion control and added sugar. It's easy to eat three or four ounces of peanuts without noticing, which turns 4g of net carbs into 15g+. Choose dry-roasted, raw, or unsweetened peanuts and skip honey-roasted versions. Natural peanut butter (just peanuts and salt) is also keto-friendly at about 3-4g net carbs per 2-tablespoon serving — just avoid the brands with added sugar or palm oil sweeteners.
What About Hummus, Refried Beans, and Bean Pasta?
Processed legume products are usually carb traps. Hummus is made from chickpeas: 2 tablespoons run about 3g net carbs, but real-world servings of 4-6 tablespoons climb to 6-9g, and it's hard to stop at two. Refried beans land around 18-20g net carbs per half cup. Chickpea, lentil, and black-bean pastas are marketed as healthy but still carry 30g+ net carbs per cooked serving — essentially the same problem as the whole bean.
If you love the texture, low-carb swaps exist: cauliflower "hummus," shirataki or hearts-of-palm noodles, and edamame pasta (lower-carb than chickpea pasta, but still worth measuring) get you closer to your goal.
Quick Reference: Keto vs. Not
- Keto-friendly: firm/silken tofu, tempeh, edamame (small portions), peanuts and natural peanut butter (1 oz / 2 tbsp).
- Use sparingly or avoid: black beans, kidney beans, pinto beans, chickpeas, lentils, green peas, refried beans, hummus, bean-based pastas.
The simplest rule: if it's a soy food or a peanut, it probably fits; if it's a starchy bean or lentil, it probably doesn't.
Portions matter more with legumes than almost any other food group, because a "healthy" serving can swing from 2g to 30g net carbs. Log your tofu, tempeh, edamame, and peanuts in CarbMeNot to see the exact net-carb hit before you eat — it makes the difference between a snack that keeps you in ketosis and one that quietly knocks you out of it.
Frequently asked questions
- Are legumes allowed on keto?
- Most legumes are not keto-friendly because they are high in carbohydrates. A single cup of cooked black beans has about 25g net carbs and chickpeas about 33g, which can use up an entire day's keto carb budget. The exceptions are soy-based legumes like tofu, tempeh, and edamame, plus peanuts, which are low enough in net carbs to fit a keto diet in normal portions.
- Is tofu keto-friendly?
- Yes, tofu is keto-friendly. A 3.5 oz (100g) serving of firm tofu has only about 2g net carbs, along with 8-9g protein and 5g fat. Tofu is one of the few legume-derived foods that fits comfortably into a ketogenic diet.
- Can I eat peanuts on keto?
- Yes, peanuts work on keto in moderation. A 1 oz (28g) serving has roughly 4-5g net carbs, 7g protein, and 14g fat. Stick to about an ounce at a time and choose unsweetened, dry-roasted, or raw peanuts, since flavored or honey-roasted versions add sugar.
- Are lentils keto?
- No, lentils are not keto. One cup of cooked lentils has about 30-32g net carbs, which is at or above the entire daily carb limit for most people doing standard keto (20-50g). Even half a cup at roughly 15g net carbs is hard to fit without crowding out other foods.
- Is hummus keto?
- Traditional hummus is borderline and easy to overeat. Made from chickpeas, 2 tablespoons have about 3g net carbs, but typical servings of 4-6 tablespoons push that to 6-9g. It can fit in small amounts, but cauliflower-based or extra-tahini low-carb versions are safer choices on keto.
Track it all in seconds
Snap a photo and CarbMeNot's AI logs your carbs, protein, and fat automatically.