Hershey (NYSE: HSY) reported earnings on July 25. Here are the numbers you need to know.

The 10-second takeaway
For the quarter ended June 30 (Q2), Hershey met expectations on revenues and beat slightly on earnings per share.

Compared to the prior-year quarter, revenue grew. Non-GAAP earnings per share expanded. GAAP earnings per share expanded significantly.

Margins increased across the board.

Revenue details
Hershey logged revenue of $1.51 billion. The 11 analysts polled by S&P Capital IQ foresaw sales of $1.51 billion on the same basis. GAAP reported sales were 6.7% higher than the prior-year quarter's $1.41 billion.

Source: S&P Capital IQ. Quarterly periods. Dollar amounts in millions. Non-GAAP figures may vary to maintain comparability with estimates.

EPS details
EPS came in at $0.72. The 16 earnings estimates compiled by S&P Capital IQ forecast $0.71 per share. Non-GAAP EPS of $0.72 for Q2 were 9.1% higher than the prior-year quarter's $0.66 per share. GAAP EPS of $0.70 for Q2 were 19% higher than the prior-year quarter's $0.59 per share.

Source: S&P Capital IQ. Quarterly periods. Non-GAAP figures may vary to maintain comparability with estimates.

Margin details
For the quarter, gross margin was 47.6%, 290 basis points better than the prior-year quarter. Operating margin was 18.1%, 100 basis points better than the prior-year quarter. Net margin was 10.6%, 100 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

Looking ahead
Next quarter's average estimate for revenue is $1.86 billion. On the bottom line, the average EPS estimate is $1.00.

Next year's average estimate for revenue is $7.06 billion. The average EPS estimate is $3.65.

Investor sentiment
The stock has a three-star rating (out of five) at Motley Fool CAPS, with 539 members out of 647 rating the stock outperform, and 108 members rating it underperform. Among 210 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 188 give Hershey a green thumbs-up, and 22 give it a red thumbs-down.

Of Wall Street recommendations tracked by S&P Capital IQ, the average opinion on Hershey is outperform, with an average price target of $90.07.

The rich are different than you and me: They might not notice the moneymaking stories right under our noses. In our new report, "Middle-Class Millionaire-Makers: 3 Stocks Wall Street's Too Rich to Notice," we give you three Peter Lynch-inspired buy-what-you-know stocks for the 99%. Click here for instant access to this free report.