“Meerkat group sizes in captivity tend to be closer to those seen in small unstable groups in the wild, which may represent a stressful condition and predispose meerkats to chronic stress, even in the absence of natural predators.

“Our results are consistent with the theory that there is an optimum group size which minimises physiological stress in meerkats, and that zoo meerkats at most risk are those kept in small groups and small enclosures, and those which are exposed to consistently high numbers of visitors.”

Wild meerkats usually live in groups of 20-30.

Eight UK zoos and wildlife parks took part in the study.

Lead author Dr Katy Scott, who collaborated closely with the zoos to collect samples, said: “We are grateful for their support and cooperation and we hope these results will be useful to zoos and wildlife parks in caring for their meerkats.”

In contrast with data from wild meerkats, the study found that neither sex, age nor dominance status affected stress levels – possibly because access to food is more equal in captivity.

The research was carried out with help from the German Primate Centre, Leibniz Institute for Primate Research in Göttingen, Germany.

The paper, entitled: “Group size and visitor numbers predict faecal glucocorticoid concentrations in zoo meerkats”, is published in the journal Royal Society Open Science.