Upside Down Magic by Sarah Mlynowski

A young girl who keeps getting strange, mixed-up magic is sent to a special class for students whose powers don’t fit the usual rules; there she bonds with a group of misfit friends, faces bullying and self-doubt, and learns to embrace her unusual abilities. Together they uncover challenges at their school and discover that what makes them different can also be their greatest strength, ultimately proving their worth and finding creative ways to use their “upside‑down” magic to help others.