It is understood the body was discovered in a wooded area at the bottom of the school playing fields.
A Police Scotland spokesperson said: “A man’s body was discovered in a wooded area at Liberton High School.
“It was reported around 1.30pm on Tuesday 30 August.
“The death is being treated as unexplained and enquiries to establish the full circumstances are at an early stage.”
More to follow.