KB Home (NYSE: KBH) reported earnings on June 29. Here are the numbers you need to know.

The 10-second takeaway
For the quarter ended May 31 (Q2), KB Home beat slightly on revenues and exceeded expectations on earnings per share.

Compared to the prior-year quarter, revenue improved and GAAP loss per share contracted.

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

Revenue details
KB Home logged revenue of $302.9 million. The 13 analysts polled by S&P Capital IQ anticipated a top line of $297.0 million on the same basis. GAAP reported sales were 11% higher than the prior-year quarter's $271.7 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.11. The 11 earnings estimates compiled by S&P Capital IQ predicted -$0.33 per share. GAAP EPS were -$0.31 for Q2 versus -$0.89 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 -1.7%, 1,710 basis points worse than the prior-year quarter. Operating margin was -1.7%, 590 basis points better than the prior-year quarter. Net margin was -8.0%, 1,720 basis points better than the prior-year quarter.

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

Next year's average estimate for revenue is $1.48 billion. The average EPS estimate is -$0.94.

Investor sentiment
The stock has a two-star rating (out of five) at Motley Fool CAPS, with 569 members out of 1,227 rating the stock outperform, and 658 members rating it underperform. Among 341 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 134 give KB Home a green thumbs-up, and 207 give it a red thumbs-down.

Of Wall Street recommendations tracked by S&P Capital IQ, the average opinion on KB Home is hold, with an average price target of $10.02.

Over the decades, small-cap stocks, like KB Home have provided market-beating returns, provided they're value priced and have solid businesses. Read about a pair of companies with a lock on their markets in "Too Small to Fail: Two Small Caps the Government Won't Let Go Broke." Click here for instant access to this free report.