Rossburn Collegiate was put into lockdown after a picture of a student with a gun was posted on social media.
Manitoba RCMP were called Wednesday around 1 p.m. and quickly found the student near the school in the western Manitoba community.
After he was arrested, police found a CO2 powered replica pistol with ammunition.
Randy Jordan Oudie from Dauphin, was charged with possession of a weapon for dangerous purposes and carry concealed weapon.
Rossburn is around 300 kilometres northwest of Winnipeg, near Riding Mountain National Park.