A cucumber is a fruit because it develops from the flower of the plant and contains seeds. That’s the entire botanical test: if a plant structure grows from a fertilized flower ovary and holds seeds inside, it’s a fruit. Cucumbers pass on both counts, making them just as much a fruit as an apple or a watermelon, no matter how strange that sounds.
The Botanical Definition of Fruit
In botany, a fruit is the ripened ovary of a flower together with the seeds inside it. That’s it. There’s no sweetness requirement, no texture requirement, and no consideration of how the food gets used in a kitchen. The ovary wall provides protection to the ovules (which contain the egg cells), pollen fertilizes those eggs, the ovules develop into seeds, and the ovary matures into a fruit. Any plant structure that follows this path qualifies.
This definition catches a lot of foods people think of as vegetables. Tomatoes, bell peppers, zucchini, eggplant, and string beans all develop from flower ovaries and contain seeds. They’re all botanically fruits, right alongside cucumbers.
How a Cucumber Develops From a Flower
Cucumber plants produce separate male and female flowers. The male flowers appear first and in greater numbers, ensuring plenty of pollen is available. Female flowers follow shortly after, and each one has a small ovary at its base that will become the cucumber if pollination succeeds. Bees and other insects carry pollen from the male flowers to the stigma of the female flowers, and once fertilization occurs, the ovary begins to grow.
That ovary is typically made of three fused carpels (the seed-bearing structures inside the flower). Ovules line up in rows along the length of each carpel, and after fertilization, they develop into the seeds you see when you slice a cucumber lengthwise. The number of ovules is directly linked to the cucumber’s length: more ovules generally means a longer fruit. Cell division happens rapidly in the first four to five days after pollination, and the cucumber is usually harvested about two weeks after the flower opens, while the flesh is still crisp and the seeds are small and tender.
Cucumbers Are Technically Berries
Botanists classify cucumbers even more specifically as a type of berry called a pepo. A pepo is a fleshy, many-seeded fruit with a hard or firm rind on the outside. This puts cucumbers in the same category as watermelons, cantaloupes, pumpkins, and all varieties of squash. They all belong to the Cucurbitaceae family (the gourd family), and they all share that same structure: tough skin surrounding watery, seed-filled flesh.
So when someone says a cucumber is a fruit, they’re actually underselling it. It’s a berry.
Why Everyone Calls It a Vegetable
The word “vegetable” has no formal botanical meaning. In everyday language, people use it to describe savory, less-sweet plant foods, especially ones grown in kitchen gardens and served alongside a main course rather than as dessert. Cucumbers fit that description perfectly, so they get filed under “vegetable” in grocery stores, cookbooks, and conversation.
The numbers back up the intuition. Cucumbers contain just 1.7 grams of sugar per 100 grams. Compare that to grapes at 16 grams, mangoes at 14 grams, or bananas at 12 grams. Even lemons have more sugar at 2.5 grams per 100 grams. With so little sweetness, cucumbers taste nothing like what most people expect from fruit, and that flavor profile is the real reason they landed on the vegetable side of the produce aisle.
This culinary versus botanical divide actually went to the U.S. Supreme Court in 1893. In Nix v. Hedden, the court ruled that tomatoes should be taxed as vegetables under the Tariff Act of 1883, even though everyone agreed they were botanically fruit. The court’s opinion specifically named cucumbers, squashes, beans, and peas as other examples of botanical fruits that people treat as vegetables in “the common language of the people.” The reasoning was simple: these foods are served at dinner, not dessert, and trade law should follow common usage, not botany textbooks.
Other “Vegetables” That Are Really Fruits
Cucumbers have plenty of company. Here are some of the most common foods that qualify as botanical fruits despite their vegetable reputation:
- Tomatoes: the most famous example, and the one that triggered the Supreme Court case
- Bell peppers and hot peppers: seed-filled fruits from the same plant family as tomatoes
- Zucchini and all squash varieties: close relatives of the cucumber in the gourd family
- Eggplant: a seed-bearing fruit that grows from flowers of the nightshade family
- Pumpkins: a type of squash with the same rind-flesh-seed structure as cucumbers
- String beans: the entire pod, casing and seeds together, counts as a fruit
- Okra: a seed-filled pod from a flowering mallow plant
- Avocados: a fruit with even less sugar than cucumbers, at just 0.7 grams per 100 grams
The pattern is consistent. If you cut it open and find seeds, there’s a good chance you’re looking at a botanical fruit that the culinary world calls a vegetable. Neither label is wrong. They’re just answering different questions: botany asks where the structure came from, while cooking asks how it tastes and when you’d serve it.

