The actor had been unwell for quite some time now and his health had been a matter of great concern for his friends and family.
He was admitted to a city hospital on Jul 14, just a few days after he was released from the same hospital, owing to weakness. He was discharged on Tuesday.
His estranged wife, actress Dimple Kapadia, and daughter Rinkie had been by his side all the time, since his admission to the hospital.
His funeral will be held at 11 am Thursday, family sources said.
Khanna is hailed as India's first superstar after 15 consecutive solo superhits between 1969 and 1972, including 'Aradhana', 'Haathi Mere Saathi', 'Anand' and 'Amar Prem'.
Rajesh Khanna had recently appeared in his first TV ad for a fan.
(With inputs from agencies)
Photos: Shah Rukh Khan, Shweta Bachchan at Karan Johar's book launch
Photos: Sunny Deol with sons Karan and Rajvir at Mumbai airport
Photos: 10 beautiful moments that capture winter around the world
Photos: Karisma Kapoor, Preity Zinta, Shraddha Kapoor at Mumbai airport
Spotted: Anushka Sharma and Diljit Dosanjh at Mumbai studio