May, 59, will succeed David Cameron, who announced he was stepping down after Britons unexpectedly voted last month to quit the European Union.
Britain’s planned withdrawal has weakened the 28-nation bloc, created huge uncertainty over trade and investment, and shaken financial markets.
May and Leadsom had been due to contest a ballot of grassroots Conservative party members, with the result to be declared by September 9.
But Leadsom unexpectedly quit on Monday after a campaign dogged by ill-judged comments about her rival’s lack of children and questions about whether she had exaggerated her CV.
“I am honoured and humbled to have been chosen by the Conservative Party to become its leader,” said May, who favoured remaining in the EU but has made clear there is no going back on the result of the June 23 referendum.
“Brexit means Brexit, and we’re going to make a success of it.”
Earlier, Cameron told reporters in front of his 10 Downing Street residence that he expected to chair his last cabinet meeting on Tuesday and take questions in parliament on Wednesday before tendering his resignation to Queen Elizabeth.
“So we will have a new prime minister in that building behind me by Wednesday evening,” he said.
May will become Britain’s second female prime minister after Margaret Thatcher.
Her victory means that the complex process of extricating Britain from the EU will be led by someone from the losing side of the acrimonious referendum campaign.
She has said Britain needs time to work out its negotiating strategy and should not initiate formal divorce proceedings before the end of the year.
In a speech earlier on Monday in the central city of Birmingham, May said there could be no second referendum and no attempt to rejoin the EU by the back door.
“As prime minister, I will make sure that we leave the European Union,” she said.
Leadsom, 53, is a junior energy minister who has never served in cabinet and was barely known to the British public until she emerged as a prominent voice in the successful Leave campaign.
She had been strongly criticised over a newspaper interview in which she appeared to suggest that being a mother meant she had more of a stake in the country’s future than May, who has no children.
Some Conservatives said they were disgusted by the remarks, for which Leadsom later apologised, while others said they showed naivety and a lack of judgment.
Leadsom told reporters she was pulling out of the race to avoid nine weeks of campaign uncertainty at a time when strong leadership was needed.
She acknowledged that May had secured much greater backing in a vote of Conservative members of parliament last week.
“I have … concluded that the interests of our country are best served by the immediate appointment of a strong and well-supported prime minister,” she said.
Graham Brady, head of the Conservative party committee in charge of the leadership contest, confirmed that May had been elected with immediate effect.
The pound, which has hit 31-year lows since the referendum on concern about potential damage to the British economy, bounced slightly on the news that the Conservative leadership question would be resolved much sooner than expected.
It was trading around $US1.2970, up 0.1 per cent on the day but still down around 13 per cent since the day of the vote. The FTSE 250 index of mid-sized companies rose 3.27 per cent.
Make your contribution to independent news
A donation of any size to InDaily goes directly to helping our journalists uncover the facts. South Australia needs more than one voice to guide it forward, and we’d truly appreciate your contribution. Please click below to donate to InDaily.