Brexit: Six charts on how the UK voted
Poll of polls made prediction difficult
The Remain vote held the lead in a comprehensive poll of polls for weeks before the referendum. In the days leading up to the big vote, however, the trend shifted, making the result hard to predict.
We analyzed several polls to get an idea of how British citizens likely voted in the referendum:
Voters divided by age group
Older voters supported leaving the European Union, while younger voters supported staying. Younger voters were also less likely to vote.
UKIP supporters were inclined to want to leave the EU, while Liberal Democrats were inclined to want to stay. Liberal Democrats were also the least likely to vote.
The Scottish referendum of 2014 was the only vote in recent memory that had a higher turnout than Thursday's referendum.
Liberal Democrats tended to trust what the experts said during the campaign more than any other political affiliation.
Opinion influence differed by age
Young voters tended to trust the experts when forming their opinions during the campaign. Young voters were also the most distrustful of media accounts.