Headwaters (NYSE: HW) reported earnings on July 30. Here are the numbers you need to know.

The 10-second takeaway
For the quarter ended June 30 (Q3), Headwaters met expectations on revenues and missed estimates on earnings per share.

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

Gross margins contracted, operating margins grew, net margins expanded.

Revenue details
Headwaters booked revenue of $197.0 million. The four analysts polled by S&P Capital IQ predicted a top line of $198.8 million on the same basis. GAAP reported sales were 12% higher than the prior-year quarter's $175.6 million.

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 predicted $0.18 per share. Non-GAAP EPS of $0.13 for Q3 were 225% higher than the prior-year quarter's $0.04 per share. (The prior-year quarter included -$0.25 per share in earnings from discontinued operations.) GAAP EPS were $0.15 for Q3 versus -$0.22 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 29.7%, 10 basis points worse than the prior-year quarter. Operating margin was 11.8%, 270 basis points better than the prior-year quarter. Net margin was 5.6%, much better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $708.1 million. The average EPS estimate is $0.22.

Investor sentiment
The stock has a two-star rating (out of five) at Motley Fool CAPS, with 734 members out of 804 rating the stock outperform, and 70 members rating it underperform. Among 177 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 162 give Headwaters a green thumbs-up, and 15 give it a red thumbs-down.

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

Looking for alternatives to Headwaters? 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.

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, backed by a real-money portfolio. 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.