There was no immediate claim of responsibility for the bombing, but Coptic Christians, who make up about 10 percent of Egypt's population, have been previously targeted in jihadist attacks.
At least 31 people were wounded in the explosion, the health ministry said, as the attack drew condemnation from political and religious leaders and led President Abdel Fattah al-Sisi to declare three days of national mourning.
The bombing hit around 10:00 am at the Saint Peter and Saint Paul Church, which is adjacent to Saint Mark's Cathedral, the seat of the Coptic pope Tawadros II.
The blast shattered the church's windows and scattered pews through the interior of the church, scorching its marble pillars.
Ball-bearing-sized shrapnel peppered the walls covered in icons of saints and destroyed a box that contained a saint's relics. Pools of blood congealed on the floor.
Security officials said they believed a bomb containing 12 kilos of TNT appeared to have been behind the explosion.
"I was leaving the church and then I heard a loud explosion and there was a lot of smoke and people started running and screaming," Jackline Abdel Shahid, one of the survivors, told AFP at the scene.
"The ambulances started coming, and they kept bringing out body parts," she said.
'Where were security forces?'
"Where were the security forces? They're filling the streets now, but it's too late," said Gebrail Ebeid, who had been headed to services when the bomb went off.
Several dozen people gathered outside to protest after the bombing, chanting for the resignation of Egypt's interior minister.
They scuffled briefly with police as they tried to push through the cordon.
It was the worst attack on the Coptic Christian community since a 2011 suicide bombing killed more than 20 worshippers outside a church in the coastal city of Alexandria.
"The nation's Muslim and Christian citizens stand together against this black terrorism," Prime Minister Sherif Ismail said in a statement.
President Abdel Fattah al-Sisi condemned what he described as "the abhorrent terrorist attack", saying in a statement: "Egypt will only emerge stronger and more unified from these events."
The president also called the Coptic pope to offer his condolences.
Sheikh Ahmed al-Tayeb, the head of Egypt's top Sunni Muslim authority Al-Azhar, said the "vile terrorist explosion" was "a great crime against all Egyptians".
The bombing took place on a national holiday to mark the Muslim prophet Mohammed's birthday.
EU foreign affairs chief Federica Mogherini in a statement offered her condolences and solidarity "with Egypt in its efforts to defeat terrorism".
The church that was targeted "is deeply loved by many Coptic faithful in Cairo and it has a regular parish presence," said Bishop Angaelos, the General Bishop for the Coptic Church in Britain.
'An easier target'
He said services had been held in the church on Sunday morning, while Saint Mark's Cathedral was being renovated.
"It's an easier target because its entrance is outside the precincts" of the cathedral.
Copts have faced persecution and discrimination dating back to the 30-year rule of Hosni Mubarak, who was toppled by a popular uprising in 2011.
Dozens have been killed in recent years in sectarian attacks and clashes throughout Egypt.
In April 2013, two people died in clashes with local residents outside Saint Mark's Cathedral, the spiritual heart of the largest Christian minority in the Middle East.
Islamists in August 2013 attacked churches and homes of Copts in retaliation for the dispersal by security forces of Cairo protest camps set up by supporters of Mohamed Morsi, the Islamist president deposed by then-army chief Sisi.
Enraged by the crackdown which killed hundreds, mobs lashed out at Copts in the Upper Egypt province of Minya, accusing them of backing the military.
More than 40 churches were attacked nationwide, with most attacks in Minya and Assiut, Human Rights Watch said at the time.
Security forces have been the main target of attacks following Morsi's ouster.
Most of the attacks are conducted in the Sinai Peninsula by a branch of the Islamic State group, although militants have also targeted security forces and government officials in Cairo.
On Friday, six people died in a bombing next to a police checkpoint in the Talibiya area of Cairo shortly before Muslim weekly prayers when the streets are mostly empty.