Image copyright Aston Martin Image caption The Aston Martin DB11 was introduced in 2016

Luxury carmaker Aston Martin says it may float on the London stock market, completing a turnaround that has seen the firm boost sales and profits.

The listing would be the first by a UK carmaker for years, following the sale of brands such as Jaguar, Bentley and Rolls-Royce to foreign owners.

Analysts say the firm, which also on Wednesday posted half-year profits of £42m, would be worth up to £5bn.

Its main shareholders are an Italian investment fund and Kuwaiti investors.

The 105-year-old carmaker said in its announcement that it would initially float a minimum of 25% of the company.

Chief executive Andy Palmer told the BBC that some shareholders would "cash out" their investment. He described the plans as a "key milestone" in the history of the company, and said a luxury brand like Aston Martin was "impervious" to any trading uncertainties caused by Brexit.

Image copyright Aston Martin Image caption Sean Connery - with his Aston Martin - as James Bond in 'Goldfinger'

Despite an illustrious history and a brand name synonymous with 007 films, Aston Martin has struggled for decades to make a profit. But under Mr Palmer, a former Nissan executive, the company has been broadening its product range and has moved into new areas.

The company is involved in projects to build an electric flying car, luxury homes in the US, and even a personal submarine. "We are a luxury company and not just a car company," Mr Palmer told Radio 4's Today programme.

It expects full-year sales for 2018 to rise to between 6,200 and 6,400 units, and in the medium-term it aims to build nearly 10,000 in the 2020 calendar year.

Part of the turnaround strategy strategy involved targeting female buyers - no easy task given the company has sold fewer than 4,000 cars to women in its 105-year history.

Aston Martin must be less dependent on a narrow portfolio and one type of customer, Mr Palmer says.

He said he was unconcerned that the stock market listing would come ahead of Brexit and possible trading uncertainties. "The benefit of being a luxury company is we are relatively impervious to those kind of changes," he told the BBC.

Aston Martin exports 25% of its car to the European Union. "We'd probably benefit from a weaker pound," he said. However, he said the carmaker was increasing its stockpile of engines, made in Germany, from three to five days "just to live a little bit of insulation" against Brexit disruption.

Image copyright Aston Martin Image caption Aston Martin has joined a consortium that includes jet engine maker Rolls-Royce on a "flying car" project

Alongside the flotation announcement, Aston Martin also disclosed its first-half results, reporting an 8% year-on-year sales increase to £445m for the six months ended 30 June.

It said the performance was driven by its consulting business as well as increased revenue from sales of its special edition vehicles, including the Vanquish Zagato family and DB4 GT Continuation models.

Mr Palmer said: "Today's results show that we have continued to deliver sustainable growth, margins and value for our shareholders whilst launching three new models and variants in the first half of the year."

As part of the restructuring, Aston Martin it to open a new factory at St Athan, in Wales, in 2019.

Hargreaves Lansdown analyst Laith Khalaf said Aston Martin's stock market value could put it near the top of the FTSE 250 share index.

He said the success of Ferrari's floatation in New York in 2015 boded well for the UK company's plans and underlined investors' appetite for such luxury brands.

But Mr Khalaf added: "It's important for potential investors to concentrate on the company's financial prospects and not to get carried away by the brand."