Uber’s stock is surging — and founder Travis Kalanick has left $1.2 billion on the table.

Shares spiked as much as 10% Friday after the ride-hailing giant said it will achieve profitability on a closely watched Wall Street metric by the end of this year, a year earlier than it previously forecast.

Unfortunately for Kalanick — who was ousted in 2017 amid allegations of fostering a toxic “bro” culture and growth-at-all-costs attitude — he sold almost all of his shares three months ago, when the stock had tanked.

The hard-charging Silicon Valley entrepreneur began unloading his shares on Nov. 6, the day a six-month lockup period — which had barred Uber insiders from selling their shares after the company’s May IPO — expired.

Uber went public at $42 a share, but quickly saw its value tank. Kalanick’s sales began when the stock was worth just $26.65, and continued over the course of the next eight weeks until his final sale on Dec. 26, when shares were worth $30.41.

In all, Kalanick made a little over $2.8 billion selling his 98.2 million shares for an average price of $28.86, according to filings. If he had sold on Friday, those shares would have been worth a hair under $4 billion.

Kalanick sold his Uber stake to fund CloudKitchens, his new startup that aims to match delivery-only restaurants with commercial kitchens.

Uber shares almost reached their IPO price on Friday, finishing up 9.7%, at $40.63.