NEW YORK ( TheStreet) -- Apple ( AAPL - Get Report) trumped analyst expectations for its second-quarter earnings, boosted by strong iPhone sales.

>>Follow our Apple live blog

The Cupertino, Calif.-based consumer electronics company sold 18.65 million iPhones during the quarter, up from 16.2 million sold in the previous quarter. The surge was likely due in part to the device's expansion to Verizon ( VZ) in February.

Apple will release its next-generation iPhone 5 device this fall, according to a Reuters report, which means the company is straying from its usual habit of releasing new phones in the summer.

Despite the launch of the iPad 2 in March, the company fell short of analyst expectations, selling 4.69 million during the most recent quarter. Analysts wanted to see 6 million to 8 million sold. Apple sold 7.3 million units in the December quarter.

Apple sold 3.76 million Macs, up 28% from the year-ago quarter. Sales of iPods dropped 17% from same period last year.

Apple posted adjusted earnings per share of $6.40, compared to earnings of $3.33 per share during the same period last year.

Revenue climbed 83% to $24.67 billion.

Analysts had expected earnings of $5.35 per share on $23.3 billion in sales for the March quarter.

As its habit, Apple reported conservative guidance, posting third-quarter earnings of $5.03 per share, while analysts want to see $5.25 per share.

Shares of Apple popped 2.7% to $351.68 in after-hours trading Wednesday.

--Written by Olivia Oran in New York.

>To follow the writer on Twitter, go to http://twitter.com/Ozoran.

>To submit a news tip, send an email to: tips@thestreet.com.