GPU vs TPU: The Total Cost of Ownership Question Nobody Prices Correctly
[!NOTE] TL;DR: Sticker price is a rounding error in AI infrastructure. Real TCO is utilization (MFU), power and cooling, the interconnect you’re paying for whether you use it or not, the engineers re-writing your CUDA kernels, and the option value of portability. TPUs frequently win on raw perf-per-dollar; GPUs frequently win once you price everything else.
Every GPU-vs-TPU comparison starts wrong by asking “which chip is faster?” The question that actually gets decided in a budget meeting is “what does a unit of useful output cost me?” — a training step, a million tokens, a percentage point of model quality per month. Priced that way, the answer stops being obvious.
Table of Contents
The Five Real Cost Drivers
Strip the marketing and infrastructure cost comes from five places:
- Capital / rental price. The visible line. TPUs typically quote more matrix math per dollar on paper; GPUs quote less but buy flexibility.
- Utilization. What fraction of peak FLOPs your workload actually extracts (MFU — model FLOPs utilization). A cheap chip at 20% MFU loses to an expensive one at 60%.
- Power and cooling. Perf-per-watt is a TPU selling point — systolic arrays do less work per operation. But rack-scale GPU systems are closing the efficiency gap generation over generation.
- Interconnect and topology. You’re not buying chips, you’re buying a fabric. TPU pods come with ICI built in; GPU economics increasingly assume NVLink domains and networking of equivalent ambition.
- Engineering and porting. The invisible line that kills most TCO models: what does it cost to make your code run well on the target?
Utilization: Where TCO Actually Lives
This is the variable that decides everything and gets discussed least. Peak TFLOPs are a lie in both directions:
- A standard transformer workload compiles cleanly through XLA onto a TPU’s systolic array and can sustain MFU numbers that embarrass loosely-tuned GPU jobs — the array’s dataflow is fixed in hardware, so there’s less to waste.
- The same workload on GPUs reaches comparable utilization only after the stack is properly tuned — fused kernels, NCCL behavior, memory layout — and the difference between a tuned and untuned GPU job can be larger than the difference between the chips.
The practical consequence: TPU cost advantage is real but conditional. It exists when your workload maps cleanly onto XLA’s worldview. GPU cost disadvantage is also conditional — it shrinks to near-zero once your stack is actually optimized, and inverts entirely for workloads that need the flexibility TPUs can’t provide.
[!NOTE] What frontier labs actually did Anthropic expanded to up to one million TPUs citing “price-performance and efficiency its teams have seen for several years” — while keeping NVIDIA GPUs and AWS Trainium in production. Meta signed a multi-billion-dollar TPU rental while remaining one of the largest GPU buyers on Earth. Neither bet everything on the cheaper chip. They priced the whole system and diversified.
The Porting Tax
The TCO line item most comparisons omit entirely: making your code work well on the other platform. CUDA-era codebases carry assumptions baked in at every layer — kernel fusion choices, memory layouts, custom operators, NCCL-shaped parallelism. Re-expressing that in XLA isn’t a translation; it’s a re-architecture with a hiring problem attached, since XLA-fluent engineers are far rarer than CUDA-fluent ones.
For a startup with a small team and standard models, the tax is modest. For an organization with years of accumulated CUDA-specific optimization, it can exceed the hardware savings of a multi-year migration — which is precisely why the TPUs’ external customers have been labs building new training pipelines, not enterprises porting old ones.
When Each Side Wins the Spreadsheet
TPU wins when:
- Workload is standard transformer training or high-volume inference on JAX/PyTorch
- Scale justifies pod-level commitment and utilization stays high
- You’re already in (or willing to move into) Google Cloud’s gravity
- The pipeline is new — no CUDA legacy to port
GPU wins when:
- Workload is heterogeneous, research-grade, or kernel-custom
- Deployment must span clouds, on-prem, or non-Google infrastructure
- Hiring and operational familiarity dominate the cost model
- Flexibility has option value — which it almost always does
The frontier answer is visible in what the frontier labs actually do: not a winner, but a portfolio. Meta didn’t switch from GPUs to TPUs — it added TPUs. Anthropic runs three silicon platforms. The spreadsheet says the same thing the strategy does: optimize per workload, not per vendor.
Frequently Asked Questions
Q: Are TPUs cheaper than GPUs for AI workloads? A: On raw price-performance for standard transformer workloads on JAX/PyTorch, yes — that’s the documented reason Anthropic expanded to a million TPUs. On total cost of ownership it depends on utilization, porting cost, and how much of the pod you actually fill. For workloads needing CUDA-specific code or multi-cloud deployment, GPUs are cheaper in practice regardless of list price.
Q: What is MFU and why does it matter more than TFLOPs? A: Model FLOPs Utilization — the fraction of a chip’s peak compute your workload actually uses. It’s the real cost variable: a $2 chip at 60% MFU beats a $1 chip at 20%. TPUs achieve high MFU through deterministic systolic dataflow; GPUs achieve it only after proper tuning, which is itself a cost.
Q: What’s the hidden cost of switching from GPU to TPU? A: Porting. CUDA-era code carries architectural assumptions at every level — fused kernels, memory layout, parallelism patterns — that don’t translate into XLA’s compiler model. It’s a re-architecture with a scarce-talent problem attached, and for organizations with years of CUDA-specific optimization, it can exceed the hardware savings entirely.
Q: Why do frontier labs buy both GPU and TPU capacity? A: Because per-workload optimization beats vendor loyalty. Anthropic runs Claude on TPUs, Trainium, and GPUs; Meta rents TPUs while remaining a top GPU buyer. Different workloads price out differently on each platform, and portfolio diversity also hedges supply risk — the most sophisticated buyers treat silicon as a commodity input, not a platform bet.
Q: How do I calculate the real cost comparison for my workload? A: Skip chip prices. Measure: (1) your workload’s achievable MFU on each platform, (2) fully-loaded $/useful-output (training step, token, inference request), (3) porting and retraining cost amortized over the commitment period, (4) the option value of portability. The platform with the lower real $/output wins — and for most teams that answer differs by workload, which is why the answer is usually both.