The sentence was initially passed in May, but has been confirmed after Egypt’s highest religious figure, the Grand Mufti gave his opinion.
Morsi was also sentenced to life on Tuesday for spying on behalf of Palestinian Islamist group Hamas.
His supporters have described the charges against him as “farcical”.
The verdict is subject to appeal.
Morsi escaped from Wadi Natroun prison in January 2011 and was accused of colluding with foreign militants in a plot to free Islamists during the mass prison breaks.
The 2011 uprising brought an end to Hosni Mubarak’s 30-year rule and Morsi was elected president a year later.
He was deposed by the army in July 2013 following mass street protests against his rule and is already serving a 20-year jail term for ordering the arrest and torture of demonstrators.
Speaking about the espionage charges on Tuesday the judge said that the Muslim Brotherhood “collaborated with Palestinian Hamas to infiltrate Egypt’s eastern borders and attack prisons”, state TV reported.
Sixteen other Muslim Brotherhood members were sentenced to death on charges of delivering secret documents abroad between 2005 and 2013.
Only three of the other defendants are in custody, including Muslim Brotherhood leader Khairat al-Shater.
Morsi was overthrown by military chief – and now president – Abdul Fattah al-Sisi and was subsequently imprisoned facing various charges.