Tuoba Tao was born in 408, while his father Tuoba Si was still the Prince of Qi under his grandfather, Emperor Daowu, without having officially been made crown prince but was the heir presumptive, as the oldest and most favored son of Emperor Daowu. (Tuoba Tao's mother was later referred to in history as Consort Du (杜貴嬪), but was likely actually named Duguhun, as by the time that "Wei Shu" (the official history of Northern Wei) was written, the Duguhuns had their name changed to Du by Emperor Xiaowen.) He was Tuoba Si's oldest son. After Tuoba Si became emperor in 409 (as Emperor Mingyuan) following Emperor Daowu's assassination by his son Tuoba Shao (拓拔紹) the Prince of Qinghe, Tuoba Tao was assumed to be the eventual heir, but not given that title for a while. In Tuoba Tao's childhood, he was given the nickname Foli. In 420, Consort Du died, and he was thereafter raised by his wet nurse Lady Dou.