Sanmina (Nasdaq: SANM) reported earnings on July 22. Here are the numbers you need to know.

The 10-second takeaway
For the quarter ended June 29 (Q3), Sanmina beat slightly on revenues and beat expectations on earnings per share.

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

Margins grew across the board.

Revenue details
Sanmina tallied revenue of $1.49 billion. The seven analysts polled by S&P Capital IQ predicted a top line of $1.47 billion on the same basis. GAAP reported sales were the same as the prior-year quarter's.

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.40. The eight earnings estimates compiled by S&P Capital IQ predicted $0.35 per share. Non-GAAP EPS of $0.40 for Q3 were 54% higher than the prior-year quarter's $0.26 per share. GAAP EPS of $0.22 for Q3 were 100% higher than the prior-year quarter's $0.11 per share.

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 7.7%, 90 basis points better than the prior-year quarter. Operating margin was 3.0%, 50 basis points better than the prior-year quarter. Net margin was 1.3%, 70 basis points better than the prior-year quarter. (Margins calculated in GAAP terms.)

Looking ahead
Next quarter's average estimate for revenue is $1.51 billion. On the bottom line, the average EPS estimate is $0.39.

Next year's average estimate for revenue is $5.91 billion. The average EPS estimate is $1.36.

Investor sentiment
The stock has a three-star rating (out of five) at Motley Fool CAPS, with 124 members out of 152 rating the stock outperform, and 28 members rating it underperform. Among 49 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 40 give Sanmina a green thumbs-up, and nine give it a red thumbs-down.

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

If you're interested in companies like Sanmina, 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.