The 22-year-old shared pictures of her celebrating with the caption: “Hard to express my joy and gratitude right now as I completed my Philosophy, Politics and Economics degree at Oxford.”
“I don’t know what’s ahead. For now, it will be Netflix, reading and sleep.”
In one of the two photos, she is covered in food and confetti, which is known as “trashing” and traditionally done after Oxford students complete their exams.
The other picture shows her with her family.
In 2012, Ms Yousafzai survived an attack from a Taliban gunman, who shot her in the head, neck and shoulder while she was on her way home from school in Pakistan.
She was targeted after campaigning for better access to education for girls.
Ms Yousafzai travelled to Birmingham for medical treatment and joined the all-girls Edgbaston High School.
In 2014, she became the youngest person to ever win the Nobel Peace Prize.
Thousands of people replied to Ms Yousafzai’s tweet to express their good wishes, such as Mayor of London Sadiq Khan, who said: “Congratulations Malala. You continue to inspire and empower the next generation of young women and girls to know that there is no limits to their aspirations.”
Author and fellow Oxford student Philip Pullman simply tweeted “Congratulations”, while NASA astronaut Anne McClain – who studied in England – tweeted: “Congratulations on your graduation Malala!
“For so many, higher education is the start of great things. For you, great things preceded it and I can only imagine the even greater ones to follow. The world is lucky to have you on it.”