Western Gas Partners (NYSE: WES) reported earnings on July 31. Here are the numbers you need to know.

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

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

Margins increased across the board.

Revenue details
Western Gas Partners tallied revenue of $255.1 million. The eight analysts polled by S&P Capital IQ foresaw revenue of $252.5 million on the same basis. GAAP reported sales were 24% higher than the prior-year quarter's $205.3 million.

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.41. The 10 earnings estimates compiled by S&P Capital IQ predicted $0.40 per share. GAAP EPS of $0.41 for Q2 were 24% higher than the prior-year quarter's $0.33 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 47.0%, 370 basis points better than the prior-year quarter. Operating margin was 27.5%, 450 basis points better than the prior-year quarter. Net margin was 23.6%, 590 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

Looking ahead
Next quarter's average estimate for revenue is $272.8 million. On the bottom line, the average EPS estimate is $0.45.

Next year's average estimate for revenue is $1.03 billion. The average EPS estimate is $1.58.

Investor sentiment
The stock has a five-star rating (out of five) at Motley Fool CAPS, with 233 members out of 238 rating the stock outperform, and five members rating it underperform. Among 63 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 62 give Western Gas Partners a green thumbs-up, and one give it a red thumbs-down.

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

Is Western Gas Partners the right energy stock for you? Read about a handful of timely, profit-producing plays on expensive crude in "3 Stocks for $100 Oil." Click here for instant access to this free report.

Seth Jayson had no position in any company mentioned here at the time of publication. You can view his stock holdings here. He is co-advisor of Motley Fool Hidden Gems, which provides new small-cap ideas every month. The Motley Fool has no position in any of the stocks mentioned. Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.