Google Cloud TPU v5e lists at roughly 1.20 USD per chip-hour on-demand and is built for cost-efficient training and inference, often beating a comparable GPU instance on total cost per training run when the model compiles cleanly through XLA. GPUs cost more per hour but run virtually any architecture unmodified, which makes them the safer pick for CUDA-bound or fast-changing models and for portability across clouds. As with every accelerator, the deciding number is total cost per completed run, not the hourly rate. Benchmark a short segment on both before committing a large training budget.
Last updated: June 2026
Google Cloud TPU v5e is a custom training and inference accelerator priced for cost efficiency, and the headline figure is its low per-chip-hour rate. A GPU is a general-purpose accelerator that costs more per hour but runs standard CUDA frameworks with no porting. The right choice for training comes down to total cost per completed run, the hourly price multiplied by how many hours your model needs, and that depends on how well your model maps to the TPU's XLA compiler. When it maps well, v5e is frequently the cheaper run; when it does not, a GPU is both safer and sometimes cheaper once engineering time is counted.
This article is part of our AI, GPU and ML cluster. For the full picture start with the complete guide to AI and GPU cost optimization, the pillar this piece links up to. For the AWS equivalent of this same decision, see our comparison of AWS Trainium vs GPU for training.
What is Google TPU v5e and how does it differ from a GPU?
Google TPU v5e is a Tensor Processing Unit, a custom accelerator Google designed for machine learning, offered on Google Cloud and programmed primarily through JAX, TensorFlow, or PyTorch via XLA. A GPU is a general-purpose parallel processor that runs CUDA and the standard frameworks directly. The practical difference is that v5e is cheaper per chip-hour and optimized for efficient training of supported models, but your model must compile through the XLA stack to get that efficiency. A GPU costs more per hour and runs your model as written. You can confirm current TPU specs and rates on the Google Cloud TPU pricing page.
How do the prices compare?
TPU v5e lists at a low per-chip-hour rate relative to comparable GPU capacity. As of June 2026, Google lists TPU v5e at roughly 1.20 USD per chip-hour on-demand, with one-year and three-year committed use discounts that cut the effective rate substantially, per the Google Cloud TPU pricing page. A comparable GPU on Google Cloud, such as an A100 or H100 attached to a VM, costs materially more per accelerator-hour. As with every accelerator, the per-hour figure only matters once multiplied by how many hours your run actually takes, so confirm live regional rates before modeling.
| Decision criterion | Google TPU v5e | GPU (A100 / H100) |
|---|---|---|
| Per-hour price | Lower (about 1.20 USD per chip-hour) | Higher per accelerator-hour |
| Setup effort | Compile through XLA | Runs CUDA frameworks as-is |
| Best frameworks | JAX, TensorFlow, PyTorch/XLA | PyTorch, TensorFlow, CUDA |
| Model coverage | XLA-compatible architectures | Effectively everything |
| Best fit | Large, stable, supported models | CUDA-bound or frontier models |
| Portability | Google Cloud only | Portable across clouds |
Verdict: for large, stable training of an XLA-compatible model, TPU v5e usually delivers the cheaper run. For CUDA-specific code, frontier architectures, or portability, a GPU is the lower-risk choice despite the higher rate.
Why does the model, not the rate card, decide the winner?
The TPU's cost advantage only materializes if your model compiles efficiently through XLA and keeps the chips busy. A model that maps cleanly to the TPU trains fast and cheap; one that hits unsupported operators, falls back to slow paths, or needs heavy rework can finish the run for more total dollars than a GPU, even at the higher GPU hourly rate. This is the same total-cost-per-run principle that governs every accelerator choice, and the same idle-capacity risk we describe in what is GPU utilization and why idle accelerators cost so much. The rate card is a starting point, never the answer.
Choosing an accelerator for a large training budget on Google Cloud?
Our cost audit benchmarks a representative segment of your run on TPU v5e and GPU, projects total cost per completed run, and tells you which to book plus where committed use discounts lower it. On the performance model, you pay only from realized savings. No savings, no fee.
Book a cloud cost audit →When is a GPU the better choice on Google Cloud?
A GPU is better when portability, CUDA dependence, or framework maturity outweighs the TPU's lower rate. Choose a GPU when your training code relies on custom CUDA kernels or operators without an XLA equivalent, when you need the broadest tooling and community support for a novel architecture, or when the workload must stay portable to other clouds or on-premises. GPUs run almost anything unmodified, which removes the porting risk entirely. For stable, repeated production training of a supported model, that flexibility matters less and the TPU's cost advantage takes over.
How do I test which is cheaper for my model?
Benchmark both on a short, representative slice of the run and extrapolate. Compile your model for TPU v5e and run it unmodified on a comparable GPU VM, train a fixed number of steps on each, measure throughput, then project the full-run hours and multiply by each hourly rate. The lower total wins. Treat the one-time XLA porting effort as a fixed cost spread across how many times you will run the job, since repeated training favors the TPU and one-off runs favor the GPU. This feeds directly into how to forecast AI and GPU infrastructure spend.
The AI and GPU Cost Control Guide includes our cost-per-run model for TPU and GPU, with the committed-use-discount break-even worksheet. It is the downloadable companion to this article.
Frequently asked questions
Is Google TPU v5e cheaper than GPU for training?
TPU v5e is positioned by Google as a cost-efficient training and inference accelerator, listing around 1.20 USD per chip-hour on-demand, and it often produces a cheaper training run than a comparable GPU instance when your model maps well to the TPU and the XLA compiler. The deciding number is total cost per completed run, so a TPU only wins if it trains your model efficiently.
What frameworks does TPU v5e support?
TPU v5e works best with JAX and TensorFlow, and supports PyTorch through PyTorch/XLA. Models that rely on custom CUDA kernels or operators without an XLA equivalent may need rework, so confirm framework and operator support before planning a large run.
How much does TPU v5e cost?
As of June 2026, Google lists TPU v5e at roughly 1.20 USD per chip-hour on-demand, with one-year and three-year committed use discounts that lower the effective rate substantially. Verify the current figure on the Google Cloud TPU pricing page, since rates vary by region and change over time.
When should I use a GPU instead of a TPU?
Use a GPU when your model depends on CUDA-specific code, when you need the broadest framework and tooling support, or when the workload must stay portable across clouds. GPUs run almost any architecture unmodified, whereas TPUs require your model to compile cleanly through XLA to deliver their cost advantage.
The short version
Google TPU v5e usually delivers the cheaper training run for large, stable, XLA-compatible models, while GPUs remain the safer choice for CUDA-bound code, frontier architectures, and portable workloads. The deciding number is total cost per completed run, so benchmark a short segment on both before booking a large budget. When you want that benchmark run and the cheaper accelerator put into production with committed use discounts sized correctly, that is exactly what our FinOps implementation service delivers.
Written by Morten Andersen and reviewed by Fredrik Filipsson, applying the See, Cut, Lock, Run method. Independent and vendor neutral. Figures verified against Google Cloud documentation as of June 2026; verify current pricing before relying on it.
Cloud pricing and service behavior change frequently. Verify the specifics in this guide against the providers’ own current documentation and the FinOps Foundation: FinOps Foundation Framework ↗ and FinOps Rate Optimization capability ↗. This article also reflects Cloud Cost Room’s hands-on, vendor-neutral engagement experience.