Donovan Miller, 31, killed 76-year-old Phyllis Grant by attacking her with a vase in her own home in Plaistow, east London.
A man has been arrested and also admitted to murdering his grandmother and having s3x with her dead body.
The attack took place on March 25, 2021.
Police arrived at the scene after receiving a call and they declared Grant dead.
Miller was arrested and charged with murder the next day but has now pleaded guilty to manslaughter by diminished responsibility, and a third charge of sexual penetration of a corpse.
Prosecutor Caroline Carberry QC said the pleas were acceptable in light of the conclusions of three psychiatrists.
Judge Anthony Leonard QC adjourned sentencing until Monday, March 28.