XPO Logistics (NYSE: XPO) reported earnings on July 30. Here are the numbers you need to know.

The 10-second takeaway
For the quarter ended June 30 (Q2), XPO Logistics whiffed on revenues and missed expectations on earnings per share.

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

Margins contracted across the board.

Revenue details
XPO Logistics reported revenue of $137.1 million. The nine analysts polled by S&P Capital IQ predicted revenue of $156.2 million on the same basis. GAAP reported sales were much higher than the prior-year quarter's $54.5 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 -$1.00. The 11 earnings estimates compiled by S&P Capital IQ averaged -$0.61 per share. GAAP EPS were -$1.00 for Q2 versus -$0.34 per share for the prior-year quarter.

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 14.1%, 140 basis points worse than the prior-year quarter. Operating margin was -10.2%, 400 basis points worse than the prior-year quarter. Net margin was -12.7%, 320 basis points worse than the prior-year quarter. (Margins calculated in GAAP terms.)

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

Next year's average estimate for revenue is $746.4 million. The average EPS estimate is -$2.10.

Investor sentiment
The stock has a four-star rating (out of five) at Motley Fool CAPS, with 73 members out of 76 rating the stock outperform, and three members rating it underperform. Among 26 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 25 give XPO Logistics 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 XPO Logistics is outperform, with an average price target of $21.85.

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