Trinity Industries (NYSE: TRN) reported earnings on July 26. Here are the numbers you need to know.

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

Compared to the prior-year quarter, revenue increased significantly and GAAP earnings per share grew significantly.

Margins increased across the board.

Revenue details
Trinity Industries notched revenue of $1.03 billion. The six analysts polled by S&P Capital IQ wanted to see revenue of $996.5 million on the same basis. GAAP reported sales were 45% higher than the prior-year quarter's $708.3 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.83. The nine earnings estimates compiled by S&P Capital IQ averaged $0.70 per share. GAAP EPS of $0.84 for Q2 were 127% higher than the prior-year quarter's $0.37 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 20.1%, 40 basis points better than the prior-year quarter. Operating margin was 14.7%, 170 basis points better than the prior-year quarter. Net margin was 6.6%, 240 basis points better than the prior-year quarter.

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

Next year's average estimate for revenue is $3.96 billion. The average EPS estimate is $3.06.

Investor sentiment
The stock has a four-star rating (out of five) at Motley Fool CAPS, with 1,007 members out of 1,039 rating the stock outperform, and 32 members rating it underperform. Among 210 CAPS All-Star picks (recommendations by the highest-ranked CAPS members), 207 give Trinity Industries a green thumbs-up, and three give it a red thumbs-down.

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

Over the decades, small-cap stocks like Trinity Industries 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.