The $1 trillion club just got its third member: Microsoft Corp.

Shares of the Redmond, Wash., software firm surged as much as 5.1% to $131.37 in early trading Thursday to a new intraday high. That topped the $130.50 value needed to give the company a market value of $1 trillion, based on the firm’s 7.663 billion shares outstanding.

The stock closed up 3.3% at $129.15, giving Microsoft a closing market cap of about $990 billion.

With the rally, Microsoft joined fellow internet giants Apple Inc. and Amazon.com Inc. as the only U.S. companies to ever reach a $1 trillion market cap on an intraday basis. Apple and Amazon achieved the feat last summer before dropping below that level during the rout in technology stocks late last year.

The latest advance in Microsoft shares came after first-quarter results late Wednesday showed the company rode its cloud-computing business to another strong quarter and sales of its Windows operating system rebounded. The company posted a 14% increase in quarterly sales from a year earlier, a larger rise than analysts had expected.