CEMEX (NYSE: CX) reported earnings on July 25. Here are the numbers you need to know.

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

Compared to the prior-year quarter, revenue grew. Non-GAAP loss per share dropped. GAAP loss per share shrank.

Gross margins increased, operating margins dropped, net margins grew.

Revenue details
CEMEX reported revenue of $4.01 billion. The six analysts polled by S&P Capital IQ looked for sales of $3.96 billion on the same basis. GAAP reported sales were the same as the prior-year quarter's.

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.13. The four earnings estimates compiled by S&P Capital IQ anticipated -$0.01 per share. Non-GAAP EPS were -$0.13 for Q2 versus -$0.16 per share for the prior-year quarter. GAAP EPS were -$0.12 for Q2 against -$0.16 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 32.0%, 200 basis points better than the prior-year quarter. Operating margin was 8.6%, 40 basis points worse than the prior-year quarter. Net margin was -3.8%, 100 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $15.68 billion. The average EPS estimate is -$0.22.

Investor sentiment
The stock has a four-star rating (out of five) at Motley Fool CAPS, with 3,716 members out of 3,873 rating the stock outperform, and 157 members rating it underperform. Among 1,026 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 998 give CEMEX a green thumbs-up, and 28 give it a red thumbs-down.

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

Looking for alternatives to CEMEX? It takes more than great companies to build a fortune for the future. Learn the basic financial habits of millionaires next door and get focused stock ideas in our free report, "3 Stocks That Will Help You Retire Rich." Click here for instant access to this free report.