Universal Health Services (NYSE: UHS) reported earnings on July 25. Here are the numbers you need to know.

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

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

Margins grew across the board.

Revenue details
Universal Health Services chalked up revenue of $2.08 billion. The seven analysts polled by S&P Capital IQ expected to see revenue of $2.05 billion on the same basis. GAAP reported sales were 6.8% higher than the prior-year quarter's $1.72 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 $1.20. The 19 earnings estimates compiled by S&P Capital IQ predicted $1.16 per share. Non-GAAP EPS of $1.20 for Q2 were 7.1% higher than the prior-year quarter's $1.12 per share. GAAP EPS of $1.53 for Q2 were 38% higher than the prior-year quarter's $1.11 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 40.1%, 120 basis points better than the prior-year quarter. Operating margin was 16.6%, 320 basis points better than the prior-year quarter. Net margin was 8.3%, 200 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $7.86 billion. The average EPS estimate is $4.49.

Investor sentiment
The stock has a four-star rating (out of five) at Motley Fool CAPS, with 120 members out of 130 rating the stock outperform, and 10 members rating it underperform. Among 45 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 43 give Universal Health Services a green thumbs-up, and two give it a red thumbs-down.

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

Is Universal Health Services the best health care stock for you? Learn how to maximize your investment income and "Secure Your Future With 9 Rock-Solid Dividend Stocks," including one above-average health care logistics company. Click here for instant access to this free report.