Apple sells 48 million iPhones, but profit squeezed

NEW YORK (CNNMoney) -- Apple reported a record quarter on Wednesday, boosted by strong iPhone and iPad sales, but the popularity of cheaper versions of its mobile devices pinched the company's profits.

The company sold 47.8 million iPhones during the past quarter, shattering the record of 37 million that it set a year ago when the iPhone 4S debuted. It's a stunning number, considering that supply chain woes limited iPhone 5 availability throughout much of the quarter.

By the slimmest of margins -- a gain of $14 million -- Apple avoided recording its first year-over-year drop in profit in nine years. It reported record net income of $13.1 billion, or $13.81 per share, just a touch ahead of the profit it reported in the same quarter last year.

Apple's quarterly profit is the second highest ever recorded by a U.S. corporation -- bested only by Exxon Mobil's record-setting $14.8 billion quarter from the fall of 2008, when oil prices were at an all-time high.

Still, many analysts and Apple investors are concerned that buyers' interest in the the iPhone might be drying up. Sales estimates for the current quarter and beyond are a pittance compared to the number of iPhones Apple was able to sell over the past three months, and Apple's stock has lost more than a quarter of its value over the past four months.

Apple's sales rose 17.7% to $54.5 billion, just missing analysts' forecasts of $54.7 billion.

Investors didn't like the news. Shares of Apple fell 10% in after-hours trading.

Customers also appear eager to pay $100 less to get a year-old iPhone 4S or $200 less to get the two-year-old iPhone 4S instead of the iPhone 5, whose features are only slightly more impressive than the older versions'. Verizon reported on Tuesday that it sold a record number of iPhones during the quarter, but the iPhone 5 made up only half of its Apple smartphone sales.

With their lower price point, the older iPhones reduced the average selling price of the iPhone and contributed to Apple's pinched profit margin. The company's gross margin fell to 38.6% -- down a whopping six percentage points from the same period a year ago.

Still, Apple fattened its cash hoard nicely: It's currently sitting on $137.1 billion.

As for the iPad, Apple's other marquee mobile device, the company said it sold 22.9 million devices -- also a record. The iPad mini debuted last quarter, much to the delight of consumers waiting for a lower-priced Apple tablet.

But investors aren't quite as sold on the iPad mini. Like the older, cheaper versions of the iPhone, the eight-inch tablet cannibalized the full-sized iPad's sales, lowering the iPad's average selling price by $101. That dug into Apple's profit.

On a conference call with analysts, CEO Tim Cook was unapologetic about selling less-expensive items. He said the company's best measure of success is whether customers love Apple products. Nothing that Apple sold 10 iOS devices per second last quarter, Cook said Apple hit that mark.

"You're going to hear a lot of impressive numbers on this call, but that's not the only way we measure success," Cook said. "We're unwilling to cut corners to deliver the best experience in the world."

Also on Wednesday, Apple reported 4.1 million Mac sales -- down 21% from a year ago -- and 12.7 million iPod sales.

Peter Oppenheimer, Apple's chief financial officer, said he expects the company to produce sales of $41 billion to $43 billion during the current quarter and gross margin between 37.5% and 38.5% -- both far short Wall Street analysts' estimates.

Apple's outlook has typically been ultra-conservative -- the company liked to set low bars it could easily clear -- but Oppenheimer said Apple has changed the way it provides guidance. It now "reflects what Apple is likely to achieve," he told analysts, as opposed to a "conservative estimate" that Apple expected to beat.