Ultra Petroleum (NYSE: UPL) is expected to report Q2 earnings around Aug. 2. Here's what Wall Street wants to see:

The 10-second takeaway
Comparing the upcoming quarter to the prior-year quarter, average analyst estimates predict Ultra Petroleum's revenues will compress -4.8% and EPS will decrease -51.5%.

The average estimate for revenue is $267.1 million. On the bottom line, the average EPS estimate is $0.32.

Revenue details
Last quarter, Ultra Petroleum reported revenue of $226.1 million. GAAP reported sales were 12% lower than the prior-year quarter's $257.3 million.

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

EPS details
Last quarter, non-GAAP EPS came in at $0.32. GAAP EPS of $0.55 for Q1 were 25% higher than the prior-year quarter's $0.44 per share.

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

Recent performance
For the preceding quarter, gross margin was 66.5%, 830 basis points worse than the prior-year quarter. Operating margin was 67.6%, 1,810 basis points better than the prior-year quarter. Net margin was 37.3%, 1,060 basis points better than the prior-year quarter.

Looking ahead
The full year's average estimate for revenue is $1.07 billion. The average EPS estimate is $1.31.

Investor sentiment
The stock has a five-star rating (out of five) at Motley Fool CAPS, with 1,532 members out of 1,580 rating the stock outperform, and 48 members rating it underperform. Among 295 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 282 give Ultra Petroleum a green thumbs-up, and 13 give it a red thumbs-down.

Of Wall Street recommendations tracked by S&P Capital IQ, the average opinion on Ultra Petroleum is hold, with an average price target of $33.69.

How did Ultra Petroleum treat you during the oil spike in 2008 and the subsequent bust? More importantly, what are you doing to prepare for the next spike that some experts believe another spike may be just around the corner? Prepare yourself with a well-positioned energy stock we profile in "The Only Energy Stock You'll Ever Need." Click here for instant access to this free report.