Sales of the pricey iPhone X pushed Apple's results far beyond Wall Street targets, with subscriptions from App Store, Apple Music and iCloud services bolstering business.
The news is reassuring for a nervous technology sector that saw sell-offs last week in Facebook, Twitter and Netflix on concerns about their future growth. Apple also regained growth in China, where sales rose 19 percent.
Apple has responded to a plateauing global smartphone market by launching ever-more expensive phones and diversifying into services. Chief executive Tim Cook credited "wearables", a category which includes wireless earphones and the Apple Watch, with making growing contributions as well.
And Apple has used its pile of cash to buttress share prices, buying back $US20 billion ($NZ29b) in stock in the quarter, part of a $US100b stock buyback program.
"The lesson Apple's management has learned from the iPhone X, is when you sell a smartphone for more than $1,000 you can sell fewer units and still reap the financial benefits," said analyst Thomas Forte from D.A. Davidson & Co.
"Tickling at the title of world's first trillion-dollar company"
Shares rose 3.4 percent to $US196.80 in after-hours trade. With a market capitalization of more than $900b, Apple is tickling at the title of world's first trillion-dollar company.
Apple sold 41.3 million iPhones in the fiscal third quarter, below expectations of 41.8 million units, but the average iPhone selling price hit $724, beating analyst expectations of $694, according to data from FactSet. Apple Chief Financial Officer Luca Maestri said customers were buying costlier models and the $US999 iPhone X was the quarter's best seller.
In New Zealand, Apple is advertising the iPhoneX for $1799.
Apple posted third-quarter revenue of $US53.3b and profits of $2.34 per share, compared with analyst estimates of $US52.3b and $2.18 per share, respectively, according to Thomson Reuters I/B/E/S.
The world's most valuable technology company also forecast revenue of $US60b to $US62b for its fiscal fourth quarter, which will include early sales of soon-to-be-announced phone models, beating the $59.6b analysts expected, according to data from Thomson Reuters I/B/E/S.
Apple has $244 billion in cash on hand - it could buy:— Vala Afshar (@ValaAfshar) July 31, 2018
...and still have $10 billion left in cash. $AAPL
Despite the beat, James Cordwell, an analyst from Atlantic Equities, said the high selling prices might cause investors some concern because "there's a limit to how much Apple can grow the iPhone franchise by pushing pricing."
Apple services include streaming music and video, where Apple faces competition from rivals including Spotify Technology SA and Netflix.
But several of Apple's services do not face strong rivals. Maestri told Reuters that sales from Apple Care, the company's warranty offering, were up 27 percent versus a year ago, though the company did not disclose a dollar figure for sales.
Apple's biggest selling products do not yet face duties stemming from the US-China trade disputes, but President Donald Trump has threatened hundreds of billions of further tariffs whose product categories have not yet been enumerated.
Apple is looking at whether it will be hit by tariffs on purchases the company must make, possibly "related to data centers," Cook said on a conference call with investors.
Another category potentially affected by tariffs is the Apple Watch, which is one of Apple's growth drivers. Maestri told Reuters that the company's so-called "wearables" business - which includes the Apple Watch and its AirPods headphones, among other items - has generated $US10b in sales in the past 10 quarters and saw sales increase 60 percent in the most recent quarter.
"We are not able to catch up to demand yet and continue to add capacity for the AirPods," Maestri said.
Margins under pressure
Apple's margins are facing pressure as it moves to put pricier components, such as OLED displays that show more vivid colors, into its products. The company said it expects gross margins of 38 percent to 38.5 percent in the fourth quarter, compared with analyst expectations of 38.3 percent, according to Thomson Reuters I/B/E/S. Analysts are also closely watching Apple's operating expenses, which have been increasing as its research and development costs outpace its revenue growth.
Services revenue was $US9.5b, beating analyst expectations of $US9.1b, according to Thomson Reuters I/B/E/S. The revenue included $US236 million from resolving lawsuits such as Apple's long-running dispute with Samsung Electronics Co Ltd.