Sorting out production issues related to the Model X helped boost Tesla's gross margin in the second quarter. Tesla's CFO thinks there's more room for improvement. Image source: Tesla Motors.

Tesla Motors (TSLA -3.40%) wasn't profitable in the second quarter of 2016. The Silicon Valley carmaker posted a net loss of $293 million, or $2.09 per share, as it continues to spend big on development of its upcoming Model 3 sedan. 

Still, Tesla posted a gross profit of almost $275 million. That's not the same thing as a net profit, or even the operating profits most other automakers use to gauge the health of their businesses, but it still tells us some things about the state of Tesla's business that are worth knowing. 

Gross profit margin is a limited but useful indicator 

Gross profit is far from a complete picture of a business's health: It's the revenue generated by the company's products and services minus the costs directly associated with creating those products and services.  

Gross profit doesn't take into account things like marketing costs, office supplies -- or, critically for an automaker, the (huge) costs of developing future products. 

But gross profit, or more specifically the gross profit margin (gross profit divided by revenue) can be a useful indicator for investors. With an automaker, looking at gross margin across several quarters can give investors a sense of how efficient the company's manufacturing operations are over time. Alternatively, it can help investors understand if the automaker's pricing is slipping -- for instance, if it has had to cut prices to keep up with lower-cost competitors. 

Tesla's automotive gross margin compares well with established luxury-car makers'

The gross margin for Tesla's automotive business (excluding its services and other revenue sources, as well as the sale of ZEV credits) was 21.2% in the second quarter. That's a strong number that compares well with similar numbers provided by other luxury-car makers: BMW (BAMXF -0.19%) at 18%, Mercedes-Benz parent Daimler (MBGA.F 0.99%) at 20.8%, and Audi (AUDVF) at 18.9% (for the first half of 2016).  

That's not quite a direct comparison for several reasons, and we need to take it with several grains of salt before declaring Tesla's to be "better." For starters, Tesla's Model S and Model X compete only at the higher end of the market, where profit margins are fattest. The German luxury-car makers' product portfolios extend much further downmarket than Tesla's do at the moment. (Not to mention Daimler's number includes its heavy-truck businesses in addition to its Mercedes-Benz Cars unit.)

But Tesla does have a genuine, significant pricing advantage over its German rivals. That's due partly to its distribution model (which leaves out franchised dealers) and partly to the fact that it has good pricing power: Its "premium electric vehicles" are well regarded and still have no direct competition. That pricing advantage is probably worth a few points of gross margin. 

Despite all of the above, Tesla's strong gross margin number suggests its manufacturing efficiency already compares at least fairly well with its rivals'. But Tesla's chief financial officer thinks it can get a bit better from here.

What Tesla's CFO said recently about boosting gross margins

Tesla CFO Jason Wheeler only joined the upstart automaker last November, but it's increasingly clear that he has already helped improve Tesla's finances. During Tesla's second-quarter earnings call, Wheeler noted that the gross margin for Tesla's automotive business excluding the sale of ZEV credits increased from 20.1% in the first quarter to 21.2% in the second.  

Wheeler pointed to a couple of factors that helped:

One was the Model S refresh. There was a modest price increase on the refresh but, more importantly, we had baked a number of cost-downs into that vehicle before the launch. And then the second big factor is obviously [Model] X production. We have talked a lot about how we have come through the struggles on that and how we've managed to climb that production ramp, so that's looking great.

Wheeler and CEO Elon Musk have repeatedly said that the first few months of production of the Model X SUV, which began last December, were difficult because of quality and manufacturing snags. That increased Tesla's per-vehicle manufacturing costs and hurt its gross margin in the first quarter. Now that Model X production has hit its stride, the margin has improved. 

Wheeler thinks there's more room for improvement. "On a go-forward basis, the way we're thinking about margins is that we certainly see opportunities for continued cost-downs, both on the engineering front, also on the commercial front as well," he said, continuing:

We've got a supplier base that is very excited about the Model 3 and it's giving us the ability to leverage that on commercial cost-downs, and we also continue to find manufacturing efficiencies. As we mentioned in our shareholder letter, labor hours per car is trending quite positively right now and we're laser focused on continued improvement in that key metric.

Long story short: Tesla will continue to seek incremental gains in its manufacturing efficiency even as it begins ramping up to the Model 3.