The 32-year-old will rejoin his former coach JosÃƒÂ© Mourinho at the BernabÃƒÂ©u, with the centre-back expected to sign a two-year deal with Los Blancos.
Carvalho becomes Real Madrid’s fifth signing of the summer and his contract will contain an option to add a third year upon passing a medical in the Spanish captial.
It is the third time that Carvalho will work under Mourinho after they enjoyed successful spells at both Porto and Chelsea. It was Mourinho who lured the centre-back to England from Portugal after a Ã‚Â£19.8m move in 2004.
The defender made 210 appearances for The Blues during his time at Stamford Bridge, winning three League titlesÃ¢â‚¬â€two of which came during Mourinho’s time in LondonÃ¢â‚¬â€and enjoying three FA Cup triumphs.
A Chelsea statement read: Ã¢â‚¬Å“Chelsea Football Club can confirm it has agreed terms with Real Madrid for the transfer of Ricardo Carvalho.
Ã¢â‚¬Å“The transfer is subject to a medical and the player agreeing personal terms.
Ã¢â‚¬Å“Chelsea would like to thank Riccy for his six years of service, and we wish him well in his future career.Ã¢â‚¬Â
Chelsea are now looking to add Benfica defender David Luiz to their ranks and are also reported to be keeping a close eye on Mesut Ozil, the highly-rated Germany midfielder.
MORE: Man United latest news
MORE: Arsenal latest news
MORE: Chelsea latest news
MORE: Liverpool latest news