The unnamed 14-year-old was on a school trip in the alpine ski resort of Molltaler Gletscher, Austria, when the group took a ski-lift up to the top of the 10,242 foot mountain Scharek.
Once they reached the summit they decided to take selfies to capture themselves against the stunning views.
But as the boy stepped backwards while holding his phone, he slipped on the icy ledge and plummeted 1,640 feet.
Rescuers found the teenager lying on a ledge which had stopped his fall.
He was in shock but hadn't broken any bones.
One mountain rescuer said: "His ski boots were unable to grip and he just fell and fell until he came to rest on a ledge.
"He was very fortunate not to have suffered broken limbs, head or internal injuries."
Another rescuer said: " We got a call from the ski-instructor who said one of the boys had fallen off the mountain.
"When we got there we found him lying on a ledge that had stopped his fall. If it hadn't been there this would have ended tragically.
"As it was he was conscious and in shock but miraculously hadn't broken any bones or anything else, but we airlifted him to a nearby hospital."
A hospital spokesman said: "He was given a check up and despite a few cuts and bruises he was absolutely fine.
"It's a miracle really. He is being kept in for observations and he should be out soon.
A hospital spokesman said: "He was given a check up and despite a few cuts and bruises he was absolutely fine. It's a miracle really.
"He is being kept in for observations and he should be out soon. And I imagine he has got quite an interesting selfie to show off."
Suggested For You
Get top stories and blog posts emailed to me each day. Newsletters may offer personalized content or advertisements. Learn more