Gregory Drobish, 28, was sentenced Friday to 3 1/2 to 7 years in prison In the March 3 break-in after pleading guilty to burglary, robbery and other counts.
In a separate hearing, Christopher Brunkel, 31, was sentenced to 13 to 26 years in a plea agreement after guilty pleas to charges including aggravated assault, robbery, and burglary.
Drobish tearfully apologized before he was sentenced, The Philadelphia Inquirer said.
"I'm sorry for what I did to my grandmother," he said. "If I could see her, I would tell her."
Brunkel also apologized, calling his actions " a terrible, terrible mistake" and vowing never to do such a thing again.
Prosecutors said Brunkel punched the victim several times in the face, menaced her with a syringe and tied her up with duct tape. She spent a month in the hospital and a rehabilitation facility, they said.
"I can't imagine how a person with any kind of conscience could do that to a 94-year-old woman," Common Pleas Court Judge Denis Cohen said in imposing sentence.
Prosecutors had sought a 10- to 20-year prison term for Drobish, but the judge credited him with having pleaded guilty and called him a "passive" participant in the actual crime.
Defense attorneys for both men cited drug addiction as a mitigating factor.