Tesla (TSLA -1.11%) is coming off a record year for electric vehicle sales. It delivered 1.8 million cars in 2023, including 1.2 million of its Model Y which became the best-selling vehicle of any kind, globally.

Tesla made headlines throughout the year for slashing prices to spur demand, because consumers were suffering under the pressures of high inflation and rising interest rates. The company reduced the sticker price of its electric vehicles by an average of 25.1% between December 2022 and December 2023.

That significantly impacted the company's bottom line. So, just how much of Tesla's $78.5 billion in car sales during 2023 was profit?

Tesla's earnings fell for the first time since 2017

In 2023, it cost Tesla $65.1 billion to manufacture and sell $78.5 billion worth of electric vehicles, which left the company with $13.4 billion in gross profit.

A flow chart breaking down Tesla's revenue for 2023.

DATA PROVIDED BY S&P GLOBAL MARKET INTELLIGENCE, CHART BY THE MOTLEY FOOL.

By comparison, in 2022, it cost Tesla $49.6 billion to manufacture and sell $67.2 billion worth of electric vehicles, leaving a gross profit of $17.6 billion. That represented a gross profit margin of 26.2%, which declined to 17.1% in 2023, highlighting the effects of Tesla's price cuts.

At the bottom line, Tesla's companywide earnings per share -- which includes the financial results of its solar, storage, and services businesses -- came in at $3.12. It marked a 23% decline compared to its 2022 result, and it was the first time the company's annual earnings slipped since 2017.

Tesla's price cuts have continued in the early stages of 2024, so Wall Street analysts are betting its earnings could fall again this year. Tesla stock has plunged 54% from its all-time high because falling earnings have forced investors to reconsider the company's valuation, and it might struggle to recover in the short term.

But here's something interesting to consider. According to Cathie Wood's Ark Investment Management, the majority of Tesla's profit might not come from selling cars in the long term. It might come from the company's autonomous self-driving software instead.