Jenson Button has decided against retirement and will race for McLaren again next season, it has been announced.

The 35-year-old had been tipped to bring an end to his Formula One career at the end of the 2015 campaign.

But McLaren revealed in a statement on Thursday morning that he would stay with the team.

Button, who had been linked with a role on the new-look BBC motoring programme Top Gear alongside Chris Evans, has been at McLaren for six years.

But there had been a growing feeling that Button had become disillusioned with the beleaguered team's displays in a season in which he has scored only six points from 13 races.

However, talks with chairman and chief executive Ron Dennis have persuaded him to stay on.

Button said: "Over the past month or so I have done quite a lot of thinking, and it is no secret that I was at one point in two minds about my future.

"But I have been a McLaren driver for six seasons now and in that time I have got to know Ron very well.

"He and I have had some very good chats these past few weeks, and during those chats it has become clear to me that Ron is both utterly determined and uniquely equipped to lead our team through its current difficulties to great successes in the future.

"That gives me great confidence, and it is for that reason that, together, he and I have decided to continue our partnership. And, as soon as I had made that decision, straight away I realised it was the correct one.

"Okay, granted, this year has not been an easy one for us, but we know what we need to do to improve things and, in collaboration with Honda, we will work extremely hard over the next weeks and months in order to make sure that 2016 will be a much better season than 2015 has been.

"I can't wait."

Button, who won the world title with Brawn GP in 2009, had been under contract for next season and Dennis said the Briton's enthusiasm and commitment had not waned.

Dennis said: "Jenson and I have been discussing his plans in private for the past few weeks, and the fact that our talks have led to today's announcement is very pleasing to both of us and will delight and motivate all at McLaren-Honda.

"As I have made clear whenever I have been asked about the subject, Jenson's current contract is of two years' duration (2015 and 2016). There is a 'terminate after year one' option that McLaren could have triggered if we had wished to do so, but, once it became clear from my many conversations with Jenson that he remained as enthusiastic and as committed and as focused as ever, that option immediately became an irrelevance.

"That being the case, Jenson will race for McLaren-Honda next year, under the terms and conditions as set out in the two-year contract that both parties entered into a year ago.

"As I say, I am extremely pleased. Jenson is the most experienced driver currently racing in Formula 1 and next season he is due to become only the third driver (after Rubens Barrichello and Michael Schumacher) in Formula 1 history to pass the milestone of 300 Grands Prix.

"But, although that wealth of experience makes him a massively valuable asset to our team, hugely expert in all aspects of the 21st-century Formula 1 driver's craft, he is also supremely fit and as super-fast as ever."

Button's team-mate Fernando Alonso emphasised his commitment to McLaren earlier this week.

The Spaniard had appeared to cast doubt on his future amid fierce criticism of his car's Honda engine at the Japanese Grand Prix at the weekend.