NuStar Energy (NYSE: NS) reported earnings on July 26. Here are the numbers you need to know.

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

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

Margins grew across the board.

Revenue details
NuStar Energy notched revenue of $904.2 million. The eight analysts polled by S&P Capital IQ wanted to see revenue of $931.6 million on the same basis. GAAP reported sales were 52% lower than the prior-year quarter's $1.90 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 $0.27. The 12 earnings estimates compiled by S&P Capital IQ forecast $0.22 per share. Non-GAAP EPS of $0.27 for Q2 were 350% higher than the prior-year quarter's $0.06 per share. GAAP EPS were $0.28 for Q2 against -$3.56 per share for the prior-year quarter.

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 15.5%, 1,000 basis points better than the prior-year quarter. Operating margin was 8.2%, 630 basis points better than the prior-year quarter. Net margin was 2.4%, much better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $3.84 billion. The average EPS estimate is $1.40.

Investor sentiment
The stock has a three-star rating (out of five) at Motley Fool CAPS, with 349 members out of 367 rating the stock outperform, and 18 members rating it underperform. Among 114 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 112 give NuStar Energy 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 NuStar Energy is hold, with an average price target of $50.20.

Is NuStar Energy 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.

This article represents the opinion of the writer, who may disagree with the “official” recommendation position of a Motley Fool premium advisory service. We’re motley! Questioning an investing thesis -- even one of our own -- helps us all think critically about investing and make decisions that help us become smarter, happier, and richer.