 Yuan Baoju was born in 507, a member of the Tuoba clan of the Xianbei.His father Yuan Yu (), the Prince of Jingzhao, was the son of Emperor Xiaowen and a younger brother of the reigning Emperor Xuanwu.His mother was recorded as Yuan Yu's concubine Yang Aofei ().