Industry

SpaceX's $329M Tesla Megapack Spending Signals AI Infrastructure Race Heating Up

SpaceX has purchased $329M in Tesla battery storage this year, with most spending tied to powering xAI's compute-intensive data centers.

Last verified:

SpaceX’s Megapack Acquisition Accelerates in 2026

SpaceX spent $295 million on Tesla Megapacks in the second quarter alone, bringing its year-to-date total to $329 million, according to the aerospace company’s earnings report released on August 4. The spending acceleration underscores the massive capital requirements for powering AI infrastructure at scale, and illustrates how Elon Musk’s portfolio of companies—SpaceX, Tesla, and xAI—operate as an integrated energy-and-compute ecosystem.

The xAI Data Center Power Pipeline

The bulk of SpaceX’s battery purchases are destined for xAI’s data centers, which demand enormous and highly variable power supplies to train large language models. Before xAI merged with SpaceX earlier in 2026, the AI company had independently purchased $430 million in Megapacks. In contrast, xAI spent only $34 million on the batteries in the first quarter of 2026—a sixfold jump in the following quarter, suggesting the merger unlocked SpaceX’s capital to accelerate buildout.

According to TechCrunch, xAI’s data center strategy relies on a hybrid power model: natural gas turbines (including dozens of unpermitted units at a Mississippi facility near the Colossus project) provide baseline generation, while Megapacks handle load balancing and peak shaving.

Why Battery Storage Matters for AI Training

Large-scale battery systems like the Megapack are not luxury add-ons but critical infrastructure for AI data centers. GPU workloads are highly bursque—power demand spikes sharply during model training and inference, then drops. Without energy storage to absorb these peaks, data centers face either utility penalties for exceeding contracted capacity or risk equipment damage from generator overload. The Megapacks provide sub-second response time, allowing the system to inject power during demand spikes and absorb excess generation during lulls.

This peak-smoothing function translates directly to operational cost reduction and reliability improvement, making battery deployment economically rational rather than merely aspirational.

Why This Matters

The scale of SpaceX’s Megapack investment reveals two shifts in AI infrastructure strategy. First, the marginal cost of training frontier models now includes not just GPU procurement but grid-scale energy management—a historically unsexy category that is now a competitive factor. Second, Musk’s capital consolidation across SpaceX, Tesla, and xAI allows him to cross-subsidize infrastructure at scales that independent AI startups cannot match. Teams evaluating whether to build in-house power systems, lease capacity, or partner with established players now face competition from vertically integrated operators who can amortize battery and generator costs across multiple business units. For regulators, the rapid deployment of “unpermitted” generation infrastructure alongside batteries signals that informal permitting may be outpacing formal approval timelines in some jurisdictions.

Frequently Asked Questions

Why is SpaceX buying Tesla batteries?

The Megapacks are deployed at xAI data centers to provide backup power and smooth GPU demand spikes, reducing operational costs and utility charges.

How much has xAI spent on Megapacks separately?

Before merging with SpaceX earlier in 2026, xAI purchased $430M in Megapacks. In Q1 2026 alone, xAI bought only $34M worth.

What is the connection between SpaceX, Tesla, and xAI?

Elon Musk is CEO and largest shareholder of SpaceX, runs Tesla, and previously led xAI before SpaceX acquired the AI company in 2026.

#infrastructure #energy #ai-compute #spacex #tesla #xai