McDonald's (NYSE: MCD) reported earnings on July 22. Here are the numbers you need to know.

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

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

Gross margins dropped, operating margins expanded, net margins grew.

Revenue details
McDonald's recorded revenue of $7.08 billion. The 24 analysts polled by S&P Capital IQ looked for a top line of $7.09 billion on the same basis. GAAP reported sales were the same as the prior-year quarter's.

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 $1.38. The 28 earnings estimates compiled by S&P Capital IQ forecast $1.40 per share. GAAP EPS of $1.38 for Q2 were 4.5% higher than the prior-year quarter's $1.32 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 39.0%, 30 basis points worse than the prior-year quarter. Operating margin was 31.0%, 70 basis points better than the prior-year quarter. Net margin was 19.7%, 20 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $28.46 billion. The average EPS estimate is $5.69.

Investor sentiment
The stock has a four-star rating (out of five) at Motley Fool CAPS, with 5,915 members out of 6,222 rating the stock outperform, and 307 members rating it underperform. Among 1,540 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 1,497 give McDonald's a green thumbs-up, and 43 give it a red thumbs-down.

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

Can your portfolio provide you with enough income to last through retirement? You'll need more than McDonald's. Learn how to maximize your investment income and "Secure Your Future With 9 Rock-Solid Dividend Stocks." Click here for instant access to this free report.