Lifespan varies considerably by species and care, and figures of seven to eleven years are commonly quoted for animals in captivity.
Wild hedgehogs typically live far less, often two to five years, with predation, traffic and food scarcity taking a heavy toll. Captive animals, particularly African pygmy hedgehogs kept as pets, live longer but usually fall in the four to seven year range with good husbandry.
Temperature control matters more than most owners expect, since a hedgehog that goes into an attempted hibernation can suffer serious harm. A correct diet, an appropriate wheel and prompt veterinary attention to dental and skin problems all add years.
Treat any single figure as an average rather than a promise, and ask a vet familiar with the species for a more precise expectation.