Pumpkin is botanically a fruit. More specifically, it’s a type of berry. That answer surprises most people because pumpkins taste savory, show up in soups and side dishes, and sit in the produce aisle next to potatoes and onions. But by every scientific measure, a pumpkin is a fruit, and a particularly interesting one at that.
Why Pumpkin Is Technically a Fruit
In botany, a fruit is a mature, ripened ovary of a flowering plant, along with everything inside it. The ovary’s job is to protect the plant’s ovules as they develop into seeds. Once pollination happens and those seeds form, the structure surrounding them is, by definition, a fruit. That’s the rule, and it applies whether the result tastes like a peach or a zucchini.
Pumpkins check every box. Each pumpkin plant produces both male and female flowers. Bees carry pollen from the male flowers to the females, and the fertilized ovary of the female flower swells into what eventually becomes the pumpkin. Cut one open and you’ll find a hollow cavity full of seeds, which is exactly what you’d expect from a fruit doing its biological job of protecting and dispersing seeds.
Pumpkins Are Actually Berries
The classification gets even stranger. Botanists at the Royal Botanic Gardens, Kew, classify pumpkins as a specific type of berry called a “pepo.” A pepo is a berry with a tough, hard rind on the outside and fleshy material surrounding the seeds on the inside. The species name for common pumpkins, Cucurbita pepo, reflects this directly.
That puts pumpkins in the same structural category as watermelons, cucumbers, and cantaloupes. All are pepos. Meanwhile, strawberries and raspberries, which have “berry” right in the name, aren’t true berries at all by the botanical definition. The technical categories in botany often clash with everyday language, and pumpkins are one of the best examples.
Why Most People Call It a Vegetable
In the kitchen, the fruit-versus-vegetable divide has nothing to do with ovaries and seeds. It comes down to flavor and how you use the ingredient. As the Institute of Culinary Education puts it, foods we consider vegetables tend to have a more savory taste and lower sugar content, while fruits are valued for their sweetness.
Pumpkins lean heavily toward the savory side. The common jack-o’-lantern pumpkin (Cucurbita pepo) contains only about 2.2 grams of total sugar per 100 grams of flesh. Compare that to an apple, which packs roughly 10 grams of sugar in the same amount. Even the sweeter pumpkin species used for pies and canned puree (Cucurbita maxima) top out around 7.8 grams of sugar per 100 grams, still well below most culinary fruits. With sugar content that low, it’s no wonder pumpkin gets roasted with olive oil and sage rather than sliced into a fruit salad.
That said, the sweet-versus-savory line is blurry. Root vegetables like sweet potatoes and beets can contain more sugar than some fruits. And pumpkin itself crosses the boundary constantly: pumpkin pie, pumpkin bread, and pumpkin spice lattes are all sweet applications. Context and culture shape these categories more than any hard rule.
Pumpkin Isn’t the Only Fruit in Disguise
Pumpkins belong to a long list of botanical fruits that live double lives as culinary vegetables. Tomatoes are the most famous example, the subject of an actual 1893 Supreme Court case that classified them as vegetables for tariff purposes, even though everyone involved acknowledged they were scientifically fruits. Peppers, cucumbers, eggplants, zucchini, and green beans are all fruits by the botanical standard. Every one of them develops from a flower’s ovary and contains seeds.
Zucchini is a particularly close relative. It belongs to the same species as the common pumpkin, Cucurbita pepo, just a different cultivar. The two are so closely related that they can cross-pollinate in a home garden, which is why gardeners who plant them near each other sometimes end up with odd-looking hybrids the following season.
So Which Answer Is Correct?
Both, depending on who’s asking. If you’re in a biology class, pumpkin is a fruit, full stop. It develops from a fertilized flower ovary, contains seeds, and is classified as a type of berry. If you’re in a kitchen, pumpkin is a vegetable: savory, low in sugar, and used in soups, curries, and roasted side dishes far more often than in desserts.
Neither answer is wrong. “Vegetable” isn’t a botanical term at all. It’s a culinary and cultural label with no scientific definition. Botany gives us one framework, cooking gives us another, and pumpkin simply falls on different sides depending on which set of rules you’re using.

