Quanex Building Products (NYSE: NX) reported earnings on June 7. Here are the numbers you need to know.

The 10-second takeaway
For the quarter ended April 30 (Q2), Quanex Building Products beat expectations on revenues and missed expectations on earnings per share.

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

Margins increased across the board.

Revenue details
Quanex Building Products reported revenue of $232.5 million. The seven analysts polled by S&P Capital IQ expected revenue of $224.8 million on the same basis. GAAP reported sales were 20% higher than the prior-year quarter's $194.4 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.20. The eight earnings estimates compiled by S&P Capital IQ predicted -$0.08 per share. GAAP EPS were -$0.20 for Q2 against -$0.34 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 14.4%, 280 basis points better than the prior-year quarter. Operating margin was -4.0%, 260 basis points better than the prior-year quarter. Net margin was -3.2%, 310 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $954.2 million. The average EPS estimate is $0.01.

Investor sentiment
The stock has a two-star rating (out of five) at Motley Fool CAPS, with 137 members out of 164 rating the stock outperform, and 27 members rating it underperform. Among 41 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 37 give Quanex Building Products a green thumbs-up, and four give it a red thumbs-down.

Of Wall Street recommendations tracked by S&P Capital IQ, the average opinion on Quanex Building Products is hold, with an average price target of $18.50.

Looking for alternatives to Quanex Building Products? 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.