Comcast (Nasdaq: CMCSA) reported earnings on July 31. Here are the numbers you need to know.

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

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

Margins expanded across the board.

Revenue details
Comcast booked revenue of $16.27 billion. The 27 analysts polled by S&P Capital IQ expected to see a top line of $16.00 billion on the same basis. GAAP reported sales were 7.0% higher than the prior-year quarter's $15.21 billion.

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

EPS details
EPS came in at $0.65. The 28 earnings estimates compiled by S&P Capital IQ anticipated $0.63 per share. GAAP EPS of $0.65 for Q2 were 30% higher than the prior-year quarter's $0.50 per share.

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

Margin details
For the quarter, gross margin was 69.5%, 10 basis points better than the prior-year quarter. Operating margin was 21.1%, 90 basis points better than the prior-year quarter. Net margin was 10.7%, 180 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $64.11 billion. The average EPS estimate is $2.41.

Investor sentiment
The stock has a two-star rating (out of five) at Motley Fool CAPS, with 914 members out of 1,101 rating the stock outperform, and 187 members rating it underperform. Among 331 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 290 give Comcast a green thumbs-up, and 41 give it a red thumbs-down.

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

Internet software and services are being consumed in radically different ways, on new and increasingly mobile devices. Is Comcast on the right side of the revolution? Check out the changing landscape and meet the company that Motley Fool analysts expect to lead "The Next Trillion-dollar Revolution." Click here for instant access to this free report.