In the wild, hedgehogs typically live up to 2-5 years, depending on various factors such as predation, habitat quality, and availability of food and shelter.