The incident happened at the Goldfish Swim School on Northwest Highway in Park Ridge.
Fire officials say the chemicals combined to release gas in the air.
Four people were taken by ambulance to get checked out. A fifth person took themselves to the hospital, officials said.
The Park Ridge Fire Department said the people who got sick were a mix of parents, staff and kids.
No further information was available.