When a giraffe at Barcelona Zoo was shown two containers of carrots, then watched one pile get bigger while the containers were closed, it somehow knew which option had more food — even though it never actually saw the final amount. That animal had just done something a lot like addition, in its head.Researchers from the University of Barcelona discovered that giraffes can mentally combine quantities, essentially solving simple math problems without ever seeing the answer. The study, published in the journal Scientific Reports, found that two out of four giraffes tested at Barcelona Zoo successfully chose the container with more food after quantities were secretly added to one of them while the lids were closed. "The key factor is that the quantities were no longer visible to the animal after the initial presentation," said lead researcher Iker Loidi. "If this information were available to the giraffes, we could not conclude that the subjects are performing mental operations."The experiment used carrots as rewards. First, each giraffe saw two yellow containers holding different amounts of carrots. Then the containers were closed and a third green container was brought out — the amount inside would be added to one of the original piles. The giraffe never saw the carrots combined. It had to figure out the answer using only its memory. The researchers then opened both options and watched which one the giraffe picked. What makes this impressive is that the animals weren't just reacting to what they could see — they were actually calculating in their heads. "These animals can remember quantities they have observed, mentally update that information following changes, and make optimal decisions based on it," Loidi explained.Interestingly, none of the giraffes managed to solve subtraction tasks, where food was taken away instead of added. The researchers say this matches what we see in humans: subtraction is harder than addition, and it uses different parts of the brain. The findings challenge the idea that complex thinking is only for humans and primates like monkeys and apes. Birds have shown similar skills too, and now giraffes — which are hoofed mammals more closely related to hippos and camels — have joined that list. This suggests that sophisticated number skills may have evolved separately in different animal groups, a phenomenon scientists call convergent evolution. For the two giraffes that cracked the addition puzzles, it was a small triumph that opens up big questions about how smart animals really are.
← News
Science Breakthroughs Science Breakthroughs Knowledge
Giraffes combine quantities similarly to addition

4 Giraffes tested
2 Solved addition tasks
50 % Giraffes succeeded at mental addition
0 Solved Math tasks requiring subtraction
Scientific Reports (2026) Journal publication