Tesla smashed its own production and delivery records in the final months of last year, shrugging off supply chain and other problems to hand customers the keys to more than 308,000 vehicles.

The blowout figure, announced on Sunday, capped a year in which Tesla broke through bottlenecks and rapidly scaled up production at a plant in China to come close to reaching 1m annual vehicle sales.

Growing confidence that the electric carmaker could overcome its persistent growing pains while also achieving comfortable profit margins lifted its stock market value by one-third in 2021, to more than $1tn.

Tesla’s fourth-quarter deliveries came in about 40,000 above Wall Street analysts’ mean estimate, according to FactSet. The strong performance put its total deliveries for 2021 at 936,172, up from 499,550 the year before.

Semiconductor shortages and other supply constraints hit some carmakers last year, slowing production.

Speaking to investors in October, Zach Kirkhorn, Tesla chief financial officer, said shortages had prevented the company from running its factories at full capacity, and its big jump in production in the first nine months of the year had been “exceptionally difficult to achieve”.

Despite those obstacles, Tesla went on to surpass its own record production volume in the final quarter, with 305,840 new vehicles rolling off its production lines, 68,000 more than in the preceding three months.

The 308,600 new vehicles delivered to customers in the final quarter was 28 per cent higher than the previous record, which was hit in the third quarter. It was also 71 per cent more than in the same period last year.