The fire service was called out to St John's Hill School on Wednesday after an alarming smell began emanating from a drum near the swimming pool.
The incident happened about 11am on Wednesday.
Three fire trucks and a hazardous materials truck were at the school and two of the responders had to suit up in orange, fully encapsulated outfits for the hazard identification.
Whanganui fire service group manager Aaron Summerhays said the school had to be evacuated, but luckily, the school holiday meant there was only a few staff around.
"It's just been a mismatch of a couple of products around the swimming pool," he said.