Occidental Petroleum (NYSE: OXY) reported earnings on July 26. Here are the numbers you need to know.

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

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

Margins shrank across the board.

Revenue details
Occidental Petroleum chalked up revenue of $5.77 billion. The nine analysts polled by S&P Capital IQ wanted to see net sales of $5.52 billion on the same basis. GAAP reported sales were 6.6% lower than the prior-year quarter's $6.17 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.64. The 20 earnings estimates compiled by S&P Capital IQ averaged $1.64 per share. GAAP EPS of $1.64 for Q2 were 27% lower than the prior-year quarter's $2.24 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%, 1,580 basis points worse than the prior-year quarter. Operating margin was 40.1%, 540 basis points worse than the prior-year quarter. Net margin was 23.0%, 640 basis points worse than the prior-year quarter.

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

Next year's average estimate for revenue is $24.03 billion. The average EPS estimate is $7.23.

Investor sentiment
The stock has a four-star rating (out of five) at Motley Fool CAPS, with 1,332 members out of 1,379 rating the stock outperform, and 47 members rating it underperform. Among 268 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 259 give Occidental Petroleum a green thumbs-up, and nine give it a red thumbs-down.

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

Can your portfolio provide you with enough income to last through retirement? You'll need more than Occidental Petroleum. Learn how to maximize your investment income and "Secure Your Future With 9 Rock-Solid Dividend Stocks." Click here for instant access to this free report.