Is a tomato a fruit or a vegetable? Peppers, beans and more
Is a tomato a fruit or a vegetable, in short: botanically a tomato is a fruit, because it grows from the flower and holds the seeds. In the kitchen, and in US law since 1893, it's a vegetable, because we cook it and eat it in savory dishes. The same split applies to peppers, squash, cucumbers, eggplant and avocados. Beans and potatoes are a different story. Here's the answer for each food people ask about, and why the label matters less than the calories and carbs when you're tracking.
Fruit or vegetable: the two definitions
- Botanical fruit: the part of a plant that develops from the flower and contains seeds. By this rule, anything with seeds inside is a fruit.
- Botanical vegetable: every other edible part of a plant: roots (carrots), tubers (potatoes), stems (celery), leaves (lettuce), bulbs (onions) and flowers (broccoli).
- Culinary fruit: sweet, usually eaten raw or in desserts.
- Culinary vegetable: savory, usually cooked or served with a main meal.
Most confusion comes from foods that are botanical fruits but culinary vegetables.
| Food | Botany | Kitchen | Cal |
|---|---|---|---|
| Tomato | Fruit | Veg | 18 |
| Bell pepper | Fruit | Veg | 20–26 |
| Cucumber | Fruit | Veg | 16 |
| Zucchini | Fruit | Veg | 19 |
| Butternut squash | Fruit | Veg | 48 |
| Eggplant | Fruit | Veg | 26 |
| Green beans | Fruit | Veg | 40 |
| Avocado | Fruit | Either | 223 |
| Corn kernels | Fruit | Veg | 85 |
| Potato | Veg | Veg | 93 |
| Black beans | Seed | Either | 132 |
| Grapes | Fruit | Fruit | 69 |
Calories are per 100 g, raw except baked potato and cooked black beans, from the USDA-based database the Macroji app runs on. Tomatoes, peppers, eggplant, avocados and grapes are a type of fruit called a berry; corn kernels are also a grain; potatoes are tubers; black beans are legumes, which count as a vegetable or a protein.
Are tomatoes a fruit?
Yes, botanically. A tomato forms from the flower of the tomato plant and carries its seeds, which makes it a fruit, and specifically a berry. Cherry tomatoes and plum tomatoes are no different.
In everyday life it's treated as a vegetable, and that's official in the US. In 1893 the Supreme Court ruled in a tax case, Nix v. Hedden, that tomatoes count as vegetables for import duties, because people eat them as part of a meal rather than as dessert. Nutrition guidelines also group them with vegetables.
Nutritionally, tomatoes behave like vegetables: 18 calories and under 4 g of carbs per 100 g. Cherry tomato calories has the numbers by the cup and handful.
Are peppers a fruit?
Yes. Bell peppers, chili peppers and jalapeños all grow from flowers and are full of seeds, so they're botanical fruits (berries, again). In cooking they're vegetables.
The color is ripeness, not variety: a green bell pepper is picked early, and a red one has ripened on the plant. That's why red peppers are sweeter and a little higher in calories, about 26 per 100 g against 20 for green.
Is squash a fruit?
Yes. Every squash, from zucchini and yellow summer squash to butternut, acorn and pumpkin, is a botanical fruit from the gourd family. So are cucumbers and melons, their close relatives.
For tracking, there's a big gap between summer and winter squash. Zucchini has about 19 calories and 3 g of carbs per 100 g. Butternut and other winter squashes have about 48 calories and 10 g of carbs, closer to a starchy vegetable.
Are beans a vegetable?
It depends on the bean:
- Green beans, snap peas and snow peas are eaten as whole pods before the seeds mature. Botanically the pod is a fruit, but nutritionally they're vegetables: about 40 calories per 100 g.
- Dried beans, lentils and chickpeas (black beans, kidney beans and so on) are the mature seeds, called legumes or pulses. They have much more protein and carbs, around 130 to 165 calories per 100 g cooked.
US dietary guidelines count beans, peas and lentils in both the vegetable group and the protein group, because they bring fiber and plant protein. You can count them as either, just not both at once. They're one of the best foods on our high-protein vegetables list.
Are potatoes a vegetable?
Yes, botanically and in the kitchen. The potato you eat is a tuber, a swollen underground stem, so it's a true vegetable. Nutrition guidelines call it a starchy vegetable, along with corn and green peas.
For tracking, potatoes act more like a grain than like broccoli: a medium baked potato has about 160 calories and 37 g of carbs. That doesn't make them unhealthy. It just means they count toward your carbs. Baked potato calories has the numbers by size.
Is a grape a berry?
Yes. Botanically a berry is a fleshy fruit that develops from a single flower's ovary, and grapes fit exactly. So do tomatoes, peppers, eggplant, kiwi, bananas and avocados. Strawberries and raspberries, despite the name, are not true berries: their seeds sit on the outside or each "bead" forms separately. Grape calories covers grapes in detail.
Other foods people argue about
- Avocado: a fruit (a single-seeded berry), but eaten like a vegetable. Nutritionally it's mostly fat: 223 calories and 20 g of fat per 100 g, so track it as a fat.
- Cucumber and eggplant: fruits, eaten as vegetables.
- Corn: each kernel is technically the fruit of a grass, which also makes corn a grain. Sweet corn on the cob is cooked as a vegetable, while dried corn becomes cornmeal and popcorn, which count as grains.
- Olives: fruits, eaten as a savory snack.
- Rhubarb: a vegetable (you eat the stalk), but in 1947 a US customs court classed it as a fruit, because it's cooked like one in pies and jams.
- Mushrooms: neither. They're fungi, though nutrition guidelines count them as vegetables.
Why it matters for tracking (and why it doesn't)
The fruit-or-vegetable label is mostly trivia. What matters for your numbers is which group a food behaves like:
- Watery, low-calorie produce (tomatoes, peppers, cucumbers, zucchini, green beans, leafy greens) adds volume and fiber for very few calories. These are the low-carb vegetables you can eat freely.
- Starchy vegetables (potatoes, corn, peas, winter squash) carry real carbs and belong in your carb budget, like rice or bread.
- Legumes (beans, lentils, chickpeas) bring protein and fiber along with carbs.
- Avocados and olives are mostly fat.
- Sweet fruit (berries, apples, grapes) carries natural sugar with fiber and water.
A balanced diet includes a mix of all of these, and logging by weight takes care of the rest.
Frequently asked questions
Is a tomato a fruit or a vegetable?
Both. Botanically it is a fruit, specifically a berry, because it grows from the flower and holds the seeds. In cooking and in US law (Nix v. Hedden, 1893) it is a vegetable.
Are peppers a fruit?
Yes, botanically. Bell peppers and chili peppers grow from flowers and contain seeds, so they are fruits. In the kitchen they are treated as vegetables.
Are beans a vegetable?
Green beans are eaten as vegetables. Dried beans, lentils and chickpeas are legumes, which US dietary guidelines count in both the vegetable group and the protein group.
Are potatoes a vegetable?
Yes. A potato is a tuber, a true vegetable, classed as a starchy vegetable. For tracking they behave more like a grain, with about 37 g of carbs in a medium baked potato.
Is squash a fruit?
Yes. All squash, including zucchini, butternut and pumpkin, are botanical fruits from the gourd family, though they are cooked as vegetables.