SJW (NYSE: SJW) reported earnings on July 31. Here are the numbers you need to know.

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

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

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

Revenue details
SJW recorded revenue of $74.2 million. The three analysts polled by S&P Capital IQ wanted to see a top line of $66.7 million on the same basis. GAAP reported sales were 13% higher than the prior-year quarter's $65.6 million.

Source: S&P Capital IQ. Quarterly periods. Dollar amounts in millions. Non-GAAP figures are normalized by S&P Capital IQ and may vary to maintain comparability with normalized estimates.

EPS details
EPS came in at $0.37. The two earnings estimates compiled by S&P Capital IQ predicted $0.26 per share. GAAP EPS of $0.37 for Q2 were 32% higher than the prior-year quarter's $0.28 per share.

Source: S&P Capital IQ. Quarterly periods. Non-GAAP figures are normalized by S&P Capital IQ and may vary to maintain comparability with normalized estimates.

Margin details
For the quarter, gross margin was 51.6%, 190 basis points worse than the prior-year quarter. Operating margin was 22.8%, 210 basis points better than the prior-year quarter. Net margin was 10.0%, 210 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $269.3 million. The average EPS estimate is $1.25.

Investor sentiment
The stock has a five-star rating (out of five) at Motley Fool CAPS, with 102 members out of 109 rating the stock outperform, and seven members rating it underperform. Among 27 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 27 give SJW a green thumbs-up, and give it a red thumbs-down.

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

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