The state of the parties in Scotland so farpublished at 07:13 British Summer Time 5 July 2024

After 56 declarations, Labour has won 37 seats; the SNP nine; Liberal Democrats five; and Conservatives five
It was a triumphant night for Labour which took dozens of seats off the SNP, including all six in Glasgow
Scottish Tory leader Douglas Ross lost his bid to return to Westminster, describing it a "historically bad night" for the Conservatives
First Minister and SNP leader John Swinney described the result for his party as "very, very difficult and damaging".
SNP casualties included Kirsten Oswald, Tommy Sheppard, Alison Thewliss and high-profile MP Joanna Cherry
Labour's Ian Murray, who comfortably held his Edinburgh South seat, has been appointed as the new Scottish Secretary
One final seat - Inverness, Skye and West Ross-shire - has yet to be called and will go to a re-count on Saturday. The Lib Dems are expected to win after SNP candidate Drew Hendry conceded defeat
Edited by Paul McLaren and Steven Brocklehurst
It has been a good night for the Greens across the UK, with four MPs elected to Westminster in England.
In Scotland, none of their candidates made it to the Commons but the party is celebrating a significant growth in its vote share.
In Glasgow South candidate Niall Christie pulled in more than 5,000 votes.
Scottish Greens co-leader Patrick Harvie said he hoped it would be a "springboard" to further success in the Scottish election in 2026 and the local council elections in 2027.
He said: "We have established our party as the third political force in Glasgow and have broken new ground across the country.
"Scotland cannot afford five more years of tepid status quo politics, and nor can our planet.
"We need bold policies that live up to the scale of the crisis our climate faces."
Harvie adds the party's voice has "never been more vital" and vows to "fight for people and planet".
Watch the key moments from the general election night in Scotland.
Video by Graham Fraser
Iain Macinnes
BBC Scotland
We are going to a recount here in Dingwall at the count for the Inverness, Skye and West Ross-shire seat.
It is not necessarily because the numbers are close, but instead there is an "accounting issue".
We are told the number of votes verified does not match the number of votes counted.
Officials here tried to do a quick check, but they don’t appear satisfied with that hence the full recount.
It is expected to take an hour or so, and there are some bleary-eyed counters (and reporters) here.
Andrew Kerr
BBC Scotland political correspondent
Scottish Conservative Andrew Bowie has been returned to West Aberdeenshire and Kincardine.
The SNP were not strong enough for a proper challenge and he didn’t have problems with Reform UK in his constituency, which felled his party boss Douglas Ross.
Bowie admitted it had been a bad night for his party in his victory speech.
Still full of vim and vigour despite the early (or late hour) - he misquoted a well-known Tory campaign phrase: “Let’s go and get breakfast done”.
As the count hall empties, three cheers to that at least.
Brendan O'Hara holds Argyll, Bute and South Lochaber for the SNP. He wins 15,582 votes ahead of the Conservatives on 9,350.
Kirsten Campbell
BBC Scotland political correspondent
For a party that barely campaigned in Scotland, Reform UK has had a surprising impact on the election here.
Party leader Nigel Farage may have won his Clacton seat with 46% of the vote, but he didn’t set foot in Scotland during the campaign.
Yet paper candidates in Glasgow beat the Greens and the Liberal democrats and in total Reform UK has polled almost 150,000 votes.
The 5, 562 the party secured in Aberdeenshire North and Moray East looks to have cost Douglas Ross his seat. The SNP victor Seamus Logan won by 942 votes.
As Labour celebrate across the country, the mood in the SNP camp could not be more different.
Mhairi Black, who stood aside in Paisley and Renfrewshire South, was among those to see her former seat fall to the Labour landslide.
Johanna Baxter took that constituency ahead of the SNP’s Jacqueline Cameron.
The SNP’s former deputy Westminster leader described the result as “cataclysmic” and criticised the party for turning voters away by putting the blame on them.
“What was expected to be a difficult night for the SNP now looks set to be cataclysmic!” she wrote on X, external.
“Blaming voters, or doing anything other than serious self reflection is precisely the kind of attitude that has turned so many away from the SNP.”
Alistair Carmichael says says the Lib Dems ran a good campaign with a strong message.
"Tactically we got it right for once," he adds.
Speaking before the declaration, Carmichael predicts there may be more gains north of the border.
He says focusing on the cost of living crisis and leader Ed Davey discussing care mattered to a lot of people.
"The need for proportional representation becomes ever more apparent after tonight," he insists.
Alistair Carmichael holds Orkney and Shetland for the Lib Dems with 11,392 votes, ahead of the SNP on 3,585 votes.
Douglas Ross loses Aberdeenshire North and Moray East
Scottish Conservative leader Douglas Ross loses his seat in Aberdeenshire North and Moray East to the SNP's Seamus Logan.
Mr Ross received 12,513 votes, while the SNP took 13,455 votes.
Another Conservative hold, this time in West Aberdeenshire and Kincardine. Andrew Bowie wins 17,428 votes, with the SNP on 13,987.
Andrew Kerr
BBC Scotland in Aberdeen
Reform UK did for the Scottish Conservative leader Douglas Ross with a very high showing in Aberdeenshire North and Moray East that left him short of votes.
He lost the seat to the SNP.
I caught up with him as he came off the stage.
He said he and his team had spoken to thousands of voters and were aware of the impact Reform was having - as they did on the Tory vote across the UK.
Ross admitted he could have done things differently in particular with the whole affair of deselecting David Duguid from his hospital bed.
He’ll carry on as Scottish Tory leader until a replacement is found and he told me he will remain as an MSP at Holyrood until 2026.
Suddenly there was better news for the leader as Harriet Cross ousted Richard Thomson of the SNP and she becomes the new MP for Gordon and Buchan.
Lisa Summers
BBC Scotland in Edinburgh
It’s 6am and we are all done here in Edinburgh - like elsewhere, the story is of big win for Labour.
They hold four of the five seats in the capital, ousting all the SNP MPs - Joanna Cherry, Tommy Sheppard and Deidre Brock.
Joanna Cherry was clear, she believes part of the blame for what went wrong lies with the former First Minister Nicola Sturgeon.
She says the SNP lost its reputation for competent government and didn’t progress the case for independence.
Cherry who has had public run-ins with the party leadership over her views on gender reform, also accused Sturgeon of putting identity politics over real policy.
Douglas Ross may well have lost the race to become MP for Aberdeenshire North and Moray East, coming second behind the SNP, but he will not be retiring immediately from politics.
Indeed the outgoing Scottish Conservative leader has been dubbed "three jobs" by his opponents, as he had been serving as MP for Moray, a Highlands and Islands MSP as well as a professional assistant football referee.
He will remain as an MSP, but now from the backbenches of Holyrood.
Ross's decision to stand down as leader was one of the major twists of the campaign.
It came after he was controversially selected to stand for the Aberdeenshire North and Moray East seat instead of David Duguid, who had been in hospital and was effectively de-selected.
He said back in 2021 that he would step down as an MP at the next general election, with his former Moray constituency broken up under boundary changes anyway.
But his change of heart angered some within the party and he felt he could no longer continue as leader beyond the election.
The Conservatives win another Scottish seat, Harriet Cross holds Gordon and Buchan with 14,418 votes, ahead of the SNP on 13,540.
Joanna Cherry says this is "Labour's night" in which the Conservative votes collapsed and went to Labour rather than SNP.
Cherry says the SNP must now have an "open and honest appraisal" of tonight's events to learn from them and reverse them in future.
She says there has been a lot of criticism about policy priorities formed under Nicola Sturgeon, with a focus on identity politics "perhaps to the detriment" of the public's priorities.
Cherry adds recent scandals may have called into question the party's integrity in the eyes of the public.