No, a hedgehog and a porcupine are not the same animal. Despite both being covered in sharp spines, they belong to entirely different biological orders and are not closely related. Hedgehogs are insectivores, while porcupines are rodents. The two animals differ dramatically in size, diet, defense strategies, and where they live. Their similar appearance is a textbook case of convergent evolution, where unrelated species independently develop similar traits to solve the same problem.
Why They Look Alike but Aren’t Related
Hedgehogs belong to the order Eulipotyphla (historically called Insectivora), placing them alongside shrews and moles. Porcupines belong to the order Rodentia, making them relatives of rats, beavers, and squirrels. The two animals are about as distantly related as any two mammals can be while still both giving birth to live young.
So why do they both have spines? Spiny hair has evolved independently in at least five different mammal families, including echidnas, tenrecs, hedgehogs, and two separate families of porcupines. Research published in PLOS One found that even among spiny rodents, there are multiple genetic pathways to produce a spine. In other words, nature has “invented” the spiny defense mechanism several times over, using different biological blueprints each time. Hedgehogs and porcupines just happen to be the two most recognizable examples.
A Major Size Difference
If you placed a hedgehog next to a porcupine, you’d never confuse them. An adult hedgehog measures 4 to 12 inches long and weighs between 5 and 56 ounces, roughly the size of a softball to a small football. A porcupine, by contrast, ranges from 20 to 36 inches long and weighs 10 to 28 pounds. Some New World porcupines grow up to 3 feet. A large porcupine can outweigh a hedgehog by a factor of 10 or more.
Their Quills Work Very Differently
Both animals have modified hairs that serve as defensive weapons, but the engineering of those spines is quite different. Hedgehog spines are smooth. They’re firmly attached to the body and don’t easily detach. When threatened, a hedgehog curls into a tight ball, presenting a sphere of outward-pointing spines that most predators can’t get past.
Porcupine quills are a more aggressive system. North American porcupine quills have microscopic backward-facing barbs on their tips, each barb measuring roughly 100 to 120 micrometers long. Research from the Proceedings of the National Academy of Sciences found that these barbs make the quills easy to push into tissue but extremely difficult to pull out. The barbed tip region extends about 4 millimeters, and there’s only 1 to 5 micrometers of space between each barb and the quill shaft, creating a ratchet-like grip in flesh.
Not all porcupine species have barbed quills, though. African porcupines have naturally barbless quills, more similar in surface texture to hedgehog spines. But unlike hedgehog spines, porcupine quills detach easily on contact. A porcupine doesn’t “shoot” its quills (that’s a myth), but the quills release readily when a predator makes contact, embedding themselves in the attacker’s skin.
Completely Different Diets
What these animals eat reflects their separate evolutionary paths. Hedgehogs are primarily insectivores. Their natural diet consists of beetles, caterpillars, earthworms, slugs, and other invertebrates, supplemented occasionally by small frogs, eggs, or berries. Their pointed snouts are built for rooting through leaf litter and soil.
Porcupines are herbivores. They eat bark, stems, leaves, fruit, and other plant material. North American porcupines are particularly fond of tree bark and will climb high into trees to feed, sometimes stripping branches bare over a winter season. Their large, strong teeth are built for gnawing through tough plant fibers, just like other rodents.
Where Each One Lives
Hedgehogs are native to Europe, Asia, and Africa. The most commonly known species, the European hedgehog, ranges across Western Europe and into parts of Central Asia. Several smaller species live in Africa and Asia. No hedgehog species is native to the Americas or Australia (though the African pygmy hedgehog is popular as a pet worldwide).
Porcupines have a much broader global range, split between two distinct families. Old World porcupines live in Italy, West and South Asia, and most of Africa. New World porcupines are found across North America and into northern South America. Between the two families, porcupines occupy tropical and temperate habitats on five continents.
How They Handle Winter
Hedgehogs in temperate climates are true hibernators. When temperatures drop and food becomes scarce, they build nests of leaves and grass, lower their body temperature dramatically, and enter a dormant state that can last several months. Their heart rate and breathing slow to a fraction of normal levels.
Porcupines take a completely different approach. They don’t hibernate at all. Research from the University of Alaska Fairbanks found that porcupines maintain a body temperature close to a human’s whether it’s 30 degrees above or 30 below zero. Their dense guard hairs and quills provide enough insulation to keep them warm. Instead of shutting down metabolically, they survive winter by burning stored body fat and moving as little as possible.
Their Babies Are Born Differently
Baby porcupines are called porcupettes, while baby hedgehogs are called hoglets. Both are born with soft spines that won’t injure the mother during birth. Porcupette quills harden within just a few hours of birth. Hoglet spines also begin stiffening shortly after birth, though hedgehog litters tend to be larger, with mothers typically giving birth to four or five young at a time.
Porcupines are relatively precocious at birth. A newborn porcupette is large compared to most rodent babies, already equipped with open eyes and the ability to move around. Hoglets, by comparison, are born blind and far more dependent on their mother during the first few weeks of life.
Can You Keep Them as Pets?
This is where the confusion between the two animals matters in practical terms. African pygmy hedgehogs are widely kept as pets and are legal in most U.S. states (with some exceptions like California, Georgia, Hawaii, and Pennsylvania). They’re small, relatively quiet, and manageable in a home environment, though they’re nocturnal and not particularly cuddly.
Porcupines are not common pets. Their large size, specialized diet, and powerful quill defense make them impractical for most households. Some exotic animal facilities keep them, but they require far more space and expertise than a hedgehog. If you’re seeing a small, spiny animal at a pet store, it’s a hedgehog, not a porcupine.

