Aston Martin's historic workshops in Buckinghamshire will be protected as the rest of the site is redeveloped.
The Aston Martin Vanquish was built at Newport Pagnell
The buildings in Tickford Street, in Newport Pagnell, date back 190 years.
The luxury car maker ceased production there in July, after 50 years on the site, when the last Vanquish model rolled out of its factory.
Spring Urban Regeneration, which is buying the site, said it will preserve the board room and other key buildings, including the landmark weather vane.
Aston Martin has welcomed the developer's ideas to create a museum.
Frank Grimley, Aston Martin's general manager of the site, said: "This is a fantastic location steeped in production history and maintaining its heritage is of paramount importance.
"We are delighted to have found a buyer that will ensure the preservation and re-use of buildings that played such a notable role in our motoring past.
"It will be fascinating for people to be able to live and work on such a significant site."
The site was founded in the 1820s when Salmons and Sons began making carriages and carts.
Aston Martin moved to the factory in 1954 when the then parent firm David Brown bought the site.
Castlemore Securities, which owns Spring, takes ownership of the property on 1 November and will build homes and commercial premises.
Andy Wilkins, managing director of Spring, said: "The history here is just amazing.
"To be able to retain and redevelop the very buildings that were used for years as production facilities by Salmons and Sons, and the boardroom by Aston Martin, is one of many exciting prospects for the team."