Comfort Systems USA (NYSE: FIX) reported earnings on July 31. Here are the numbers you need to know.

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

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

Margins grew across the board.

Revenue details
Comfort Systems USA recorded revenue of $351.1 million. The four analysts polled by S&P Capital IQ wanted to see net sales of $351.9 million on the same basis. GAAP reported sales were 1.0% lower than the prior-year quarter's $354.8 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.22. The four earnings estimates compiled by S&P Capital IQ anticipated $0.13 per share. Non-GAAP EPS of $0.22 for Q2 were 83% higher than the prior-year quarter's $0.12 per share. GAAP EPS of $0.21 for Q2 were 75% higher than the prior-year quarter's $0.12 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 17.1%, 170 basis points better than the prior-year quarter. Operating margin was 4.1%, 200 basis points better than the prior-year quarter. Net margin was 2.2%, 90 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $1.37 billion. The average EPS estimate is $0.50.

Investor sentiment
The stock has a five-star rating (out of five) at Motley Fool CAPS, with 120 members out of 125 rating the stock outperform, and five members rating it underperform. Among 38 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 37 give Comfort Systems USA a green thumbs-up, and one give it a red thumbs-down.

Of Wall Street recommendations tracked by S&P Capital IQ, the average opinion on Comfort Systems USA is hold, with an average price target of $14.88.

If you're interested in companies like Comfort Systems USA, you might want to check out the jaw-dropping technology that's about to put 100 million Chinese factory workers out on the street – and the 3 companies that control it. We'll tell you all about them in "The Future is Made in America." Click here for instant access to this free report.