The news gave Microsoft's shares a boost as the stock closed up 2% at $542.07, valuing the technology giant at $4.04 trillion. Microsoft's valuation previously passed $4 trillion in July, making it the second company after Nvidia to reach the milestone.
Apple's shares, meanwhile, crossed the $4 trillion line earlier Tuesday before closing up slightly at $269 and a total valuation of $3.99 trillion. Thanks to the iPhone’s success, Apple was the the first publicly traded company to valued at $1 trillion, $2 trillion and eventually, $3 trillion.