Theresa May’s gamble on a snap election has dramatically backfired after her quest for a “stronger mandate” to deliver Brexit ended up in the humiliation of a hung parliament, leaving her future as prime minister in doubt.

The Conservatives emerged as the biggest party but are projected to fall eight seats short of an overall majority, leaving the Tories trying to form a minority government.

A visibly shaken Mrs May said during the night that the Conservative party would “fulfil its duty” to ensure stability as the start of Brexit negotiations loom later in the month. “The country needs a period of stability,” she said after winning her constituency in Maidenhead.

However, senior Conservative figures said she might be forced to quit and Tory MP Anna Soubry said the prime minister should “consider her position” after running “a disastrous campaign”.

With three seats left to be declared, Mrs May’s Conservatives were projected to win 319 seats, Labour 261, the Scottish National Party 35 and the Liberal Democrats 13. In the outgoing parliament, the Tories had 331 seats; a governing party needs 326 out of 650 seats for a majority.

In addition to Mrs May’s shocking loss of seats, the other big loser of the night was in Scotland, where the SNP saw its total drop from 54 seat in a night of drama with both the party’s leader in Westminster, Angus Robertson, and Alex Salmond, former SNP leader, losing their seats as the nationalist tide receded.

Ruth Davidson, Tory leader in Scotland, said heavy SNP losses meant a second independence referendum was now “dead”.

The prime minister appeared shattered by the UK result. Speaking after winning her Maidenhead seat, her voice cracking, Mrs May said that the Conservatives appeared to have won the most seats and votes and would seek to govern.

But Labour leader, Jeremy Corbyn, celebrated a night of progress for his party and called on Mrs May to resign. “The mandate she has got is lost Conservative seats, lost votes, lost support and lost confidence,” he said.

George Osborne, former chancellor, said: “Clearly if she’s got a worse result than two years ago and is almost unable to form a government then I doubt she will survive in the long term as Conservative party leader.”

Investors sold off sterling in Asian markets when the exit polls were declared. After a volatile trading, the pound is down 2.1 per cent at $1.2682, taking it back to the middle of its trading range on April 18, when Mrs May called the election.

London’s FTSE 100 has opened up 0.6 per cent at 7,497.0. The main London index is home to multinational companies which benefit from a weaker pound, which makes exports more competitive and flatters earnings made in foreign currency when translated back into sterling.

The result could lead to a period of instability at Westminster, with speculation there may have to be a second general election, throwing into confusion Brexit negotiations which are due to begin in just over a week.

Guy Verhofstadt, the European Parliament’s chief Brexit negotiator, tweeted: “Yet another own goal, after Cameron now May, will make already complex negotiations even more complicated.”

Jeremy Corbyn jubilant afer the election result © AFP

David Davis, Brexit secretary, said the Tories had presented the voters with a policy of leaving the customs union and single market. “We will see whether they have accepted it or not,” he said.

Some Tory MPs have argued the “hard Brexit” strategy will have to be re-examined and the uncertain election result prompted some calls on Friday night for exit talks to be put on hold.

Mrs May is expected to try to form a government, possibly relying on about 10 Northern Ireland unionist MPs to bolster her position.

But Arlene Foster, leader of the Democratic Unionist Party, has said on Friday morning it would be “difficult” for Mrs May to survive as prime minister. The DUP’s 10 seats could prove critical to Mrs May’s efforts to form a coalition government or seek support for a minority administration to stay in government.

“It will be difficult for her to survive given that she was presumed at the start of the campaign, which seems an awfully long time ago, to come back with maybe 100, maybe more, in terms of her majority,” Ms Foster said in an interview with BBC Radio Ulster.

The unionist party, which supported Brexit in contrast with the official Ulster Unionists’ support for remaining in the EU, said it was “too soon” to say how the DUP would handle any coalition negotiations.

“There will be contact made over the weekend, but it is too soon to work out what we are going to do,” she said.

Labour outperformed most expectations as younger voters turned out in large numbers, vindicating Jeremy Corbyn’s energetic campaign and leftwing agenda. For the first time since 1970, the two big political parties both garnered more than 40 per cent of the vote each.

Mr Corbyn’s party performed strongly in the south, especially in London, while Mrs May’s stuttering campaign failed to deliver the big Tory wins in the Midlands and North that had been widely predicted.

Labour took a slew of southern seats from the Conservatives, including Enfield Southgate, Gower, Croydon Central, Brighton Kemptown and Bedford. At least five Tory ministers lost their seats, including Ben Gummer, Cabinet Office minister, who wrote the election manifesto.

John McDonnell, shadow chancellor, said Labour would seek to form a minority government, rejecting coalition deals.

“We will put ourselves forward to serve the country and form a minority government,” he said. “The reason for that is, I don’t think the Conservative party is stable. I think she’s a lame duck prime minister. I can’t see her surviving.”

The Ukip vote collapsed, but many of the party’s supporters turned to Labour rather than the Conservatives, in spite of Mrs May’s attempt to present herself as the only person able to deliver Brexit.

Labour also won the Sheffield Hallam seat of Nick Clegg, the former Liberal Democrat deputy prime minister, while Vince Cable regained Twickenham for the Lib Dems.

Westminster blog UK 2017 election results — live © FT montage Live updates on the election results and talking points

Mr Corbyn was credited with running a passionate and authentic old-style socialist campaign and has cemented his position as party leader. The question now facing moderate Labour MPs is whether to fall in behind a leader whom they tried to oust less than a year ago.

Mrs May’s campaign was ill-starred and was twice interrupted by terrorist incidents. After the second attack, on London Bridge, she faced questions over cuts to police numbers made on her watch as home secretary.

The U-turn over a Tory manifesto commitment to reform social care — dubbed a “dementia tax” — shook the faith of Conservative MPs in the party leader and prompted one minister to call it a “monstrous mistake”.