Harrison Williams, 13, who attends Outwood Academy Carlton, donated his hair to The Little Princess Trust - a charity which helps children who have lost their hair due to cancer and other treatments.
He donated a lot of his hair to the charity and raised a total of £902.
Harrison said: “I am so happy I went through with this. I know my mum was worried when I told her I wanted to do it, but she has been so supportive and helped me to fundraise for it. I am really thankful to her.
“I want to say a big thank you to my school as well, to all the staff and students who have donated and supported me through this.
“Before I got my haircut I visited other groups in the school to tell them about what I was doing and everyone started clapping for me - it was really cool.”
He had his long-awaited trim at Karl Smith Men’s Grooming Centre, above The Garrison, and the barber was kind enough to cut Harrison’s hair for free.
Paul Haynes, principal at Outwood Academy Carlton, said: “We are so proud of Harrison.
“He is a brilliant and caring young man to do something so kind and selfless as this to raise money for others.”