This story has been updated from 4:08 p.m. EST.
NEW YORK (TheStreet) -- Apple's (AAPL) fiscal second-quarter earnings blew past Wall Street's estimates sending shares roughly 8% higher in after-hours trading.
Apple reported second-quarter earnings of $11.62 a share, generating $45.6 billion in revenue. The company shipped 43.7 million iPhones, 16.4 million iPads, and shipped 4.1 million Macs during the quarter. Gross margin, a highly watched level for Apple, came in at 39.3%.
Shares were up 7.7% to $565.15 in post markets.
"We're very proud of our quarterly results, especially our strong iPhone sales and record revenue from services," said Tim Cook, Apple's CEO. "We're eagerly looking forward to introducing more new products and services that only Apple could bring to market."
"We generated $13.5 billion in cash flow from operations and returned almost $21 billion in cash to shareholders through dividends and share repurchases during the March quarter," said Peter Oppenheimer, Apple's CFO. "That brings cumulative payments under our capital return program to $66 billion."
Analysts surveyed by Thomson Reuters were expecting the Cupertino, Calif.-based Apple to report earnings of $10.18 a share on $43.53 billion in revenue, which would be a slight decline in revenue year over year, as Apple continues to promise new products and new categories.