The 30% Margin Cash Cow Funding Tesla’s Trillion-Dollar AI Bet
Tesla’s (TSLA) long-term valuation now rests on two AI bets: the Cybercab robotaxi network and the Optimus humanoid robot. The problem? Both are currently cost centers, and that means the company needs cash. So where does it find it? The answer might surprise you.
The hidden cash cow is Tesla’s lesser talked about “energy business”, which sells grid-scale battery systems such as the container-sized Megapack.
It was the company’s fastest-growing segment by volume, revenue, and gross margins in 2025, and it is the profitable bridge between Tesla’s automotive past and its AI future (see Tesla’s segment revenue breakup).
If you are a Tesla investor, you must understand the nuances of its cash generating business.

So Tesla sells battery systems, but who is the buyer? The utilities, independent power producers, and renewable developers. And it is all going to electrical grids.
Why Are Grids Suddenly Buying So Many Batteries?
Electrical grids were built for dispatchable power – plants that switch on and off to match demand. Renewables such as solar and wind don’t work that way. They produce when conditions allow, not when demand peaks. The result is a growing mismatch: too much solar at midday, not enough supply on weekday evenings.
Historically, expensive gas-fired peaker plants have filled this gap. Grid-scale batteries now fulfill the same function at lower cost. A facility charges Megapacks during cheap midday solar hours and dispatches power back at peak-price evenings.
As fossil fuel prices have grown more volatile, the economics of this arbitrage have strengthened. Separately, major grid failures such as the 2021 Texas blackout and recurring events in Australia and California have pushed utilities and regulators to mandate storage as infrastructure, not just as an economic tool.
While Tesla is pushing towards energy and AI, rival Rivian is making solid progress with software and services.
What Makes Tesla’s Megapack Different?
Tesla’s Megapack, which has a capacity of about 3.9 megawatt hours, uses lithium iron phosphate chemistry. LFP cells have lower energy density than the nickel-based cells in Tesla’s vehicles, but they last longer, run cooler, and cost less per kilowatt-hour.
But the hardware is only part of the product. Tesla’s Autobidder platform sits on top of every deployment. It uses machine learning to forecast spot electricity prices and execute trading decisions autonomously – essentially an algorithmic trading system for wholesale power markets. Utilities don’t need to rely on energy traders, as Autobidder does this continuously, in real time.
Does Tesla Have The Manufacturing Scale?
Tesla now runs two megafactories at scale: Lathrop, California, and Shanghai, with a total designed capacity of 80 GWh per year . A third facility is being built in Brookshire, Texas, near Houston, on a 1.6 million square foot site targeting Megapack and Megablock production in 2026.
The Megablock is the key development. It is a modular 20 MWh configuration that has cut installation time in half. Tesla can now commission a 1 GWh site in under a month. Faster installation means faster revenue recognition. No competitor has matched this pace at commercial scale.
How Big Does This Business Get?
In 2025, Tesla’s Energy segment generated $12.7 billion in revenue. Gross margins for the segment in Q4 2025 stood at roughly 29%, compared to 17% for the automotive business, and helped Tesla reach its highest overall GAAP gross margin in two years at 20.1%.
On the storage side specifically, Tesla deployed 46.7 GWh units of storage, a 49% increase year-on-year. This translates to a roughly 11% share of the 421.2 GWh global market per InfoLink. Now, BloombergNEF projects that the storage market will roughly double between 2026 and 2030. If Tesla grows its share modestly, it could generate well over $25 billion in revenue by 2030. Margins could improve too with greater scale and software intensity, taking gross profits for the business to over $7.5 billion.
Now these profits do look trivial versus Tesla’s $1 trillion-plus valuation (see Tesla valuation metrics) . To be sure, Tesla’s AI story is where its valuation lives. The energy business is where its near-term earnings are being built – and where the AI ambitions are being paid for.
While Tesla is executing smartly on its AI and energy opportunity, the stock is likely to experience significant volatility going forward. In fact, Tesla stock has been far from a smooth ride historically. Most investors want to protect themselves against volatility and deep drawdowns, which is exactly where objective and data-backed portfolio strategies come into play. Our Trefis High Quality Portfolio (HQ) strategy has outperformed its market benchmark (a combination of the S&P 500, S&P mid-cap, and Russell 2000) to produce over 105% returns since inception.