Technology

Why SpaceX Is Buying Hundreds of Millions in Tesla Batteries for AI Data Centers

Martin HollowayPublished 16h ago5 min readBased on 19 sources
Reading level
Why SpaceX Is Buying Hundreds of Millions in Tesla Batteries for AI Data Centers

SpaceX spent $295 million on Tesla Megapack battery storage systems in the second quarter of 2026, bringing its year-to-date total to $329 million, according to the company's earnings report released on August 4, 2026. The figures, disclosed in SpaceX's regulatory filings, confirm that battery procurement has accelerated sharply since the company's acquisition of xAI earlier in 2026 (TechCrunch).

The spending pattern spans multiple quarters and corporate entities. In the first quarter of 2026, xAI, then still a separate company, purchased $34 million worth of Tesla Megapacks. After SpaceX acquired xAI, the combined entity bought an additional $269 million of Megapack products in April 2026 alone, as revealed in SpaceX's amended S-1 IPO filing published around June 4, 2026 (Electrek). Before the merger, xAI had already spent $430 million on Tesla Megapacks for its data centers (TechCrunch).

The broader procurement relationship extends beyond batteries. SpaceX reported that as of December 2025 it had acquired $131 million worth of Tesla Cybertrucks at manufacturer's suggested retail price, per its regulatory filing. Tesla's 2025 Form 10-K states it recognized $285 million in cost of revenues from xAI for xAI's purchases during the year ended December 31, 2025. SpaceX purchased $506 million of Tesla Megapacks in 2025, nearly triple the prior year's figure (TechCrunch).

The technical rationale for deploying large-scale battery storage at AI data centers is straightforward. AI workloads draw power inconsistently, with demand ramping up and down depending on whether models are training or serving inference requests (the process of a trained model answering user queries). Tesla Megapacks, designed for utility-scale installations, provide substantial backup power that can be tapped in under a second. Think of it as a shock absorber for the power grid: when demand spikes, the batteries discharge instantly rather than waiting for generators to ramp up. This smooths demand peaks, lowers utility charges, and keeps operations running without interruption, since spikes can incur significant costs or overwhelm on-site generators (TechCrunch).

The battery purchases sit alongside a heavy reliance on natural gas. xAI has relied extensively on gas turbines to power its data centers, including dozens of unpermitted turbines at a site in Mississippi near the Colossus data center project. According to TechCrunch reporting, xAI has gone all in on natural gas for power, while SpaceX is focused on orbital data center concepts (TechCrunch).

The financial stakes are substantial. Google agreed to pay SpaceX $920 million per month for xAI compute capacity, according to a report published June 5, 2026 (CNBC). SpaceX's S-1 filing states that if it fails to deliver access to the committed GPU capacity by September 30, 2026, Google can immediately terminate the agreement. GPUs, or graphics processing units, are the specialized chips that power AI training and inference. The compute deal places a hard deadline on infrastructure readiness, and the Megapack procurement suggests SpaceX is investing aggressively to meet power delivery requirements.

The corporate structure connecting these transactions is dense. Elon Musk is CEO and largest shareholder of SpaceX and also runs Tesla. Tesla disclosed in a January 28, 2026 shareholder letter that it invested $2 billion in xAI. xAI, which produces the Grok chatbot, had previously acquired Musk's social media platform X in 2025 before being absorbed into SpaceX in early 2026 (TechCrunch). The result is a set of interlocking transactions in which one Musk-controlled entity buys hardware from another, finances a third, and consolidates a fourth.

SpaceX's IPO disclosures frame data centers as a core growth area. The company published an IPO roadshow presentation on its corporate website that discusses data centers and cites U.S. Energy Information Agency data (SpaceX). A Japanese-language prospectus, amended June 8, 2026, references documents titled "Data Center Growth," "Special Report: Energy and AI," and "America's Power Grid." An Australian wrap document filed as part of the S-1 covers energy production on the Moon and Mars, manufacturing capabilities on celestial bodies, asteroid mining, and interplanetary activities (SpaceX). An EU prospectus, approved by Germany's BaFin on June 5, 2026, describes SpaceX's business as manufacturing, testing, and launching rockets, satellites, and spacecraft (SpaceX).

Tesla's energy storage business, meanwhile, is hitting new records. The company achieved its highest quarterly energy storage deployments in Q4 2025, driven by record Megapack deployments, with energy storage revenue reaching $1.1 billion (Tesla IR). The SpaceX purchases, while a subset of overall Megapack demand, represent a concentrated and growing buyer channel that also happens to be controlled by Tesla's own CEO.

The broader context here is a convergence of three infrastructure-intensive businesses under overlapping ownership. SpaceX needs power for orbital ambitions and data center operations. xAI needs power for GPU clusters training frontier models. Tesla needs energy storage customers to sustain its deployment growth. The transactions are disclosed in regulatory filings and priced at MSRP, which provides a degree of transparency on pricing, though the volume concentration in a single related-party buyer raises questions about dependency in both directions. If Google's compute agreement terminates due to missed GPU delivery deadlines, the demand profile for xAI's data center infrastructure, batteries included, could shift quickly.

The September 30 deadline is the pressure point. Everything else, from the gas turbines in Mississippi to the $329 million in Megapacks, is in service of meeting it.