With that, I'd like to turn the call over to Apple CFO, Peter Oppenheimer, for introductory remarks.
Thank you, Nancy. Thank you for joining us. We are very pleased to report the highest March quarter revenue and earnings in Apple's history. We set a new all-time quarterly record for iPhone sales, and a new March quarter record for Mac sales and we're thrilled with the momentum for iPad.
Revenue for the quarter was $24.7 billion, which was $11.2 billion over the prior March quarter's result and represents the largest year-over-year quarterly revenue growth we've ever generated. This tremendous increase of 83% was fueled primarily by record iPhone sales, very robust demand for iPad and strong growth in Mac sales. Operating margin was an all-time high of almost $7.9 billion, representing 31.9% of revenue. Net income was almost $6 billion. This represented 95% growth over the year gross quarter's earnings and translated to earnings per share of $6.40.
Turning to the details of the quarter. I'd like to begin with our Mac products and services. We established a new March quarter record with sales of 3.76 million Macs, representing 28% growth over the year ago quarter. We're extremely pleased with this very strong growth, particularly given IDC's most recently published estimate of a 3% contraction for the PC market overall. This result makes the March quarter the 28th consecutive quarter that we outperformed the PC market. We experienced strong Mac sales growth in each of our operating segments, most notably in the Asia-Pacific segment, where Mac sales increased 76% year-over-year. The growth in Mac sales was fueled primarily by the continued great popularity of MacBook Air, which was updated in the December quarter, as well as very strong sales of MacBook Pro. We updated the entire MacBook Pro family during the March quarter with the next-generation processors and graphics, high-speed Thunderbolt I/O technology and a new FaceTime HD camera.