SpaceX spent $295 million on Tesla Megapack energy storage units in the second quarter alone, bringing its total spending on the commercial batteries to $329 million so far this year. The massive hardware buys show how deeply connected Elon Musk network of tech ventures has become. Musk serves as chief executive officer and controlling shareholder at SpaceX while running Tesla, xAI, and X.
SpaceX acquired xAI earlier this year, uniting the space exploration company and the artificial intelligence startup under a single corporate umbrella. That structural shift means SpaceX now funds the massive power demands required to train and run xAI advanced models.
The industrial-scale Megapack battery units are going straight to xAI data centers. Before merging with SpaceX, xAI purchased $430 million worth of Megapacks for its computing facilities. During the first quarter of this year, xAI bought another $34 million in power equipment. SpaceX also disclosed buying $131 million worth of Tesla Cybertrucks at full retail price, according to official regulatory disclosures.
While xAI relies heavily on natural gas to power its data processing hubs, including dozens of unpermitted turbines installed at its Colossus facility in Mississippi, battery systems like the Megapack remain a vital part of the energy mix. Massive server farms do not consume electricity at a steady, predictable rate. Power draw spikes dramatically whenever engineers launch heavy model training runs or process massive influxes of user queries.
Unpredictable power spikes trigger severe financial penalties from local electric utilities and risk overloading local generators. Giant battery banks absorb those sudden surges, delivering steady backup power to high-powered GPUs within seconds. Storing energy during off-peak hours and releasing it during heavy processing runs smooths out electric loads, lowering power bills and keeping data center hardware running without interruption.
Buying hundreds of millions of dollars in Tesla energy products creates a massive loop across Musk corporate network. Money flows directly from SpaceX balance sheets into Tesla energy division, helping Tesla post strong storage hardware revenue numbers while giving xAI the backup power needed to run its massive computing infrastructure.
As xAI builds out larger data center sites to keep up with competing software labs, its reliance on heavy industrial batteries will keep growing. SpaceX massive capital injections give xAI the financial power to buy energy equipment fast, ensuring its data centers stay online as processing demands surge.

