Rivian Automotive beat Wall Street's third-quarter earnings expectations as it ramped up production of its new R2 entry-level SUV, which the company says will lead it to profitability.

Rivian delivered a record 19,248 units from July through September. The company does not disclose deliveries by vehicle. The R2, first delivered to customers in June, has become Rivian's best-selling model and was responsible for "much of the gain quarter-over-quarter," the company said.

Rivian reported a net loss attributable to common stockholders of $913 million, compared with $1.17 billion a year earlier. Gross profit was $176 million, up from $24 million. Its software and services segment generated $605 million in revenue and $256 million in gross profit, a 42% margin. Automotive operations recorded nearly $1.55 billion in revenue and a gross loss of $80 million.

Rivian revised its 2026 guidance. It now expects a pre-tax adjusted loss of between $1.75 billion and $1.85 billion, about $100 million better at the midpoint than its prior guidance. It expects deliveries of 67,000 to 70,000 units, up from at least 65,000. It also expects capital expenditures of $1.4 billion to $1.5 billion, about $300 million less at the midpoint. Rivian attributed the earnings improvement to better-than-expected sales of regulatory credits, an IEEPA tariff refund receivable in the third quarter, and higher expected deliveries.

Rivian reiterated that it expects the R2 to reach a positive gross margin by the end of the year. CEO RJ Scaringe told CNBC that the company needs to scale beyond planned R2 production of 160,000 units to achieve overall profitability. "That ramp-up is critical for us getting to positive gross margin on R2 and that ultimately will contribute to positive gross margin for the business," Scaringe said.

Rivian ended the quarter with $5.5 billion in cash, cash equivalents and short-term investments, up from $5.3 billion at the end of the second quarter.

Shares were up roughly 7% in after-hours trading Thursday, after hitting a 52-week low of $11.38 earlier in the day. The stock closed at $11.45, down 1.9%.