According to the report, the teenage girl, known as Xiao Xue, is a middle school student in the city of Guiyang, south-west China's Guizhou province.
Doctors from Guihang 300 Hospital carried out the surgery on September 19, removing a total of 16 pencil ends, the longest of which is four centimetres (1.5 inches).
After the operation, Xiao Xue's family told the doctor that the girl had deliberately pricked herself so that the pain could keep her awake in the middle of the night.
They said that Xiao Xue had to stay up until 2am every day in order to finish the large amount of homework she was given, especially her mathematics homework.
The family also said Xiao Xue studied in a high-pressure environment and rarely communicated with the outside world.
Doctors said the pencil ends had been embedded in her arm for about a week, leading to inflammation.