Known as an electric car manufacturer, Tesla said on Wednesday it had a better-than-expected March-June result. Operating profit for the second quarter was $ 104 million, compared to a loss of $ 408 million a year ago.

This was Tesla's fourth consecutive profitable quarter, opening up the company's access to the S&P 500 index. The 500 largest US companies with the market value will be selected for the list. The entry requirement is, among other things, four consecutive profitable quarters.

Tesla said it will stick to its goal of delivering half a million cars to consumers this year.

In the secondary market, Tesla's earnings announcement was greeted with a rise in shares.