The fire broke out late Thursday afternoon in a science lab at Hamburg High School.
Four firefighters and three school janitors were taken to area hospitals for minor injuries.
Despite extensive damage to the science lab, the school will be open tomorrow for classes.
The cause of the fire is under investigation.