All posts
Food nutrition facts

Is a tomato a fruit or a vegetable? Peppers, beans and more

Macroji

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

Most confusion comes from foods that are botanical fruits but culinary vegetables.

FoodBotanyKitchenCal
TomatoFruitVeg18
Bell pepperFruitVeg20–26
CucumberFruitVeg16
ZucchiniFruitVeg19
Butternut squashFruitVeg48
EggplantFruitVeg26
Green beansFruitVeg40
AvocadoFruitEither223
Corn kernelsFruitVeg85
PotatoVegVeg93
Black beansSeedEither132
GrapesFruitFruit69

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:

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

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:

  1. 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.
  2. Starchy vegetables (potatoes, corn, peas, winter squash) carry real carbs and belong in your carb budget, like rice or bread.
  3. Legumes (beans, lentils, chickpeas) bring protein and fiber along with carbs.
  4. Avocados and olives are mostly fat.
  5. 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.