Look-Alike Animals comparison

Hedgehog vs Porcupine: Key Differences Explained

The short answer

Size and spine type separate them instantly. A hedgehog is a small insect-eating mammal, usually no bigger than two hands cupped together, covered in short smooth spines that stay firmly rooted and work only when the animal curls into a ball. A porcupine is a much larger plant-eating rodent whose long quills come loose on contact, barbed at the tip in New World species. Hedgehogs sit with shrews and moles in Eulipotyphla, while porcupines are rodents in two unrelated families.

The main difference

A hedgehog is a small insectivore with short spines that never detach and a curl-into-a-ball defence; a porcupine is a large herbivorous rodent with long quills that release on contact.

Spines make the two look like versions of the same animal, and hedgehogs are widely described as small porcupines, but they belong to different mammal orders, eat entirely different food and use their armour in opposite ways.

At a glance

Comparison of Hedgehog and Porcupine across 7 dimensions, with an interpretation of each difference.
Size
HedgehogBody length commonly around 15-30 cm depending on species
PorcupineRanges from roughly 60 cm in several New World species to well over 80 cm in African crested porcupines

There is no size overlap at all, so scale alone resolves nearly every photograph.Both names cover multiple species and published measurements vary widely by species and region.

Spine structure
HedgehogShort, smooth, firmly rooted spines of roughly 2-3 cm that do not come away in ordinary use
PorcupineLong quills, tipped with microscopic barbs in New World species, that detach readily from the skin

This single structural difference drives everything else about how each animal defends itself.

Defensive posture
HedgehogRolls into a tight ball, presenting spines in every direction and hiding the face and belly
PorcupineTurns its back, raises the quills, rattles hollow tail quills and backs toward the disturbance

One defence is omnidirectional and static; the other is aimed and requires the animal to face away.

Diet
HedgehogBeetles, worms, slugs, caterpillars and other invertebrates, plus occasional eggs and carrion
PorcupineBark, cambium, stems, roots, tubers, fruit and foliage

Their ecological roles are opposite despite the shared armour: consumer of invertebrates versus consumer of plants.

Lineage
HedgehogFamily Erinaceidae in the order Eulipotyphla, alongside shrews and moles
PorcupineRodents in two families — Old World Hystricidae and New World Erethizontidae — that are not sister groups

There is no natural clade of spiny mammals; spines have arisen repeatedly and independently.

Where they live
HedgehogEurope, Africa and much of Asia, with introduced populations in New Zealand
PorcupineAfrica, Asia and southern Europe for Old World species; the Americas for New World species

Old World porcupines and hedgehogs genuinely overlap, so the confusion is not only a picture-book problem.

Climbing
HedgehogGround-dwelling; forages through litter and undergrowth and does not climb trees
PorcupineNorth American porcupines climb readily and feed in canopies, while Old World species are largely terrestrial

A spiny mammal sitting in a tree is a porcupine and can never be a hedgehog.

How they are related

Hedgehogs are the subfamily Erinaceinae within Erinaceidae, part of the order Eulipotyphla that also contains shrews, moles and solenodons; around seventeen species are usually recognised across Europe, Africa and Asia. Porcupines are rodents, but not one group: the Old World Hystricidae and the New World Erethizontidae are separated by a substantial evolutionary distance and are not each other's nearest relatives. So the comparison actually spans three lineages, not two, all of which evolved spines independently.

A note on naming: Hedgehog covers around seventeen species in the subfamily Erinaceinae, while porcupine covers two rodent families that are not close relatives, so this page compares typical members rather than two fixed species.

Telling them apart

Size settles most cases before anything else. A hedgehog fits comfortably in two cupped hands, with a coat of short even spines over the back, a furred face and underside, and a small pointed snout. A porcupine is a substantial animal, in some species knee-high, with long banded quills that may be raised into a visibly loose crest and a blunt rodent muzzle. Quills lying loose on the ground indicate porcupine; hedgehog spines do not shed that way.

Hand-sized, short even spines, furred face, curled into a ball in a garden: hedgehog. Knee-high or thereabouts, long banded quills, a rodent muzzle, backing toward you with the quills raised: porcupine. Loose quills on a path mean porcupine. Anything spiny high in a tree is a porcupine. And neither animal fires or shoots its spines, whatever the cartoons show.

Habitat and distribution

Hedgehogs occupy hedgerow, woodland edge, grassland, scrub, gardens and parkland across Europe, Africa and Asia, and have been introduced to New Zealand. Porcupines are far more varied: African crested porcupines use savannah, rocky hillside and dry woodland, Asian species occupy forest and farmland, and North American porcupines range through conifer and mixed forest well into Canada. In parts of Africa, Asia and southern Europe the two genuinely coexist in the same countryside.

Diet and ecological role

The dietary split is complete. Hedgehogs are insectivores in the practical sense, taking beetles, earthworms, slugs, caterpillars and other invertebrates and occasionally eggs or carrion, which is why they are associated with garden pest reduction. Porcupines are herbivores, gnawing bark and cambium, cutting stems, and taking roots, tubers, fruit and foliage; the North American porcupine's winter bark-feeding can leave conspicuous scarring on trees. Neither animal's diet resembles the other's in any respect.

Behaviour

Hedgehogs are solitary, chiefly nocturnal foragers that patrol substantial distances for their size, and populations in cooler regions hibernate through winter. When alarmed they curl using a specialised muscle that draws the spiny skin over the whole body. Porcupines are also mainly nocturnal and largely solitary, though some Old World species share dens in family groups. Their alarm sequence is a display: quills raised, tail rattled, feet stamped, and the rump presented rather than the face.

Senses and adaptations

Both are scent-led nocturnal animals with modest eyesight. The hedgehog combines a sensitive nose and good hearing with an unusual behaviour called self-anointing, in which it works frothy saliva over its own spines after encountering a strong smell; the function is still debated. Porcupine quills are modified hairs, hollow in the rattling tail quills of some species, and New World quills carry microscopic backward-facing barbs that make them hard to dislodge once embedded.

More on this topic: Animal senses and adaptations.

Lifespan and life stages

Wild hedgehogs commonly live only a few years, with published averages frequently below five, while individuals under care have reached roughly a decade. Porcupine figures vary by species: North American porcupines have been recorded well past ten years and crested porcupines longer still under managed conditions. All of these are ranges drawn from limited datasets, and hibernation success, road mortality, predation and disease pull wild averages far below the maxima quoted for captivity.

More on this topic: Animal lifespans.

People and these animals

Hedgehogs are welcomed in many European gardens and have become a focus of conservation attention as populations in some countries have declined, with roads, tidy gardens and habitat fragmentation implicated. Porcupines are treated variously as valued wildlife, as crop and forestry nuisances, and as hunted animals depending on the region. Some hedgehog species are kept as pets in certain jurisdictions, which is regulated differently from place to place and is not a small commitment.

Keeping them: what to understand first

Some hedgehog species, most often the African pygmy hedgehog, are kept as pets in certain countries, while ownership is restricted or prohibited in others; porcupines are wild animals and are not household animals anywhere. Whether any animal suits a particular household depends on local law, the space and routine available, the welfare needs of a nocturnal insectivore, access to a veterinarian experienced with the species, and a willingness to carry that responsibility for the animal's whole life. Those decisions belong with a qualified veterinarian and the relevant authority, not with a comparison page.

What they have in common

Key differences

Where people go wrong

Frequently asked questions

Can a porcupine shoot its quills at a hedgehog or anything else?
No. Quills cannot be launched or fired; that idea comes from cartoons and from how loosely the quills sit. In New World species the quills detach very easily on contact, so an animal that brushes against a porcupine can end up with quills embedded while the porcupine simply moves away. The rattling tail and raised crest are warning displays intended to prevent contact happening at all.
Are hedgehogs baby porcupines?
No, and they never grow into one. They belong to different mammal orders: hedgehogs are in Eulipotyphla with shrews and moles, while porcupines are rodents. A young porcupine, called a porcupette, is born with soft quills that harden within hours and is already recognisably a rodent, with the blunt muzzle and gnawing incisors that a hedgehog never has at any age.
Is a hedgehog a rodent like a porcupine is?
It is not. Porcupines are true rodents with the pair of ever-growing gnawing incisors that define the order. Hedgehogs sit in Eulipotyphla, the insectivore order that also holds shrews, moles and solenodons, and their teeth are small, numerous and pointed for handling invertebrates. The spines the two share are a coincidence of defence, not a shared taxonomic signal of any kind.
Do hedgehogs and porcupines live in the same countries?
In parts of Africa, southern Europe and Asia they genuinely do, because Old World porcupines and several hedgehog species share those regions. New World porcupines, however, occur only in the Americas, where no native hedgehogs live at all. So overlap is real in the Old World and impossible in the New World, which makes continent a useful first check before comparing size and spine length.
Why does a hedgehog curl into a ball while a porcupine turns its back?
The armour dictates the tactic. A hedgehog's spines are short, fixed and cover only the upper body, so full protection requires enclosing the vulnerable face, limbs and belly inside a sphere, which a specialised band of muscle achieves. A porcupine's quills are long and detach on contact, so simply presenting the rump delivers the deterrent while leaving the animal free to move away.

Read the full profiles

Sources and methodology

How this comparison is built: FaunaHub comparisons are assembled from the sourced animal profiles behind them rather than written as standalone claims. Figures such as size, mass, and lifespan are typical ranges that vary by subspecies, population, region, sex, age, and — where relevant — whether an animal lives in the wild or under human care, so they are presented as ranges rather than fixed values. Where a common name covers a group rather than a single species, the page says so instead of implying a species-to-species match. Conservation status changes over time and should be confirmed against the current IUCN Red List. Dimensions that could not be supported from the underlying profiles are omitted rather than filled in.

What this page does not do: it does not rank the two animals, predict the outcome of a confrontation, or present either one as stronger, smarter, or better. It is not veterinary, medical, first-aid, handling, capture, hunting, or pest-control guidance. For an animal in your care, or any situation involving injury, contact a qualified veterinarian, your local wildlife authority, or emergency services.

Sources and further reading

Authoritative references used for general educational context. External links open in a new tab. These sources do not endorse FaunaHub.

Last updated: