Level 3 In-Depth AI · Safety, Ethics and Society
The Energy Cost of AI
How much electricity and water AI uses for training and for everyday use, how to measure and estimate a footprint, why per-query numbers are small but totals are growing fast, and what makes AI more efficient.
- Level
- ●●●●● Beginner
- Reading
- 12 min
- To learn it well
- 40 minutes to read
- Builds on
- 4 concepts →
- Quiz
- 4 questions ↓
Read first
AI Hardware: GPUs, TPUs and AcceleratorsThis leads to
—The full path from zero — 4 concepts before this one
- Vectors
- Matrices and Matrix Multiplication
- GPUs and Why AI Needs Them
- AI Hardware: GPUs, TPUs and Accelerators
- The Energy Cost of AI
Read them roughly in this order. See it on the concept map →
Why it matters
Every AI answer runs on electricity in a data centre: a building full of servers, networking and cooling equipment. Training a frontier model keeps tens of thousands of GPUs or other AI accelerators busy for months. Serving it to hundreds of millions of people keeps them busy indefinitely. That electricity has to be generated somewhere, often partly from fossil fuels, and the heat it creates has to be removed, often with water.
The numbers are growing fast. The International Energy Agency (IEA) estimated in April 2025 that data centres used about 415 terawatt-hours (TWh) of electricity in 2024, about 1.5% of the world's electricity, and projected this would roughly double to about 945 TWh by 2030, with AI as the main driver. (A 2026 IEA update estimated about 485 TWh for 2025.) In the US, a Lawrence Berkeley National Laboratory report put data centres at 4.4% of electricity in 2023, rising to between 6.7% and 12% by 2028. Google's and Microsoft's reported emissions rose substantially between 2019–2020 and 2023, which both attributed largely to data-centre growth.
At the same time, the energy of a single chatbot reply is tiny, and efficiency is improving quickly. Both facts are true, and much public debate gets confused by mixing them up. This chapter gives you the numbers, the method to estimate them yourself, and the main levers for reducing them.
The intuition
Think of an AI model's footprint like a car's. There is the energy and material to build it (the factory), a one-off cost; and the fuel to drive it, which depends on how much it's used. For AI:
- Hardware (manufacturing chips, servers and buildings): embodied emissions, released before the model exists.
- Training: a large one-off burst of computation.
- Inference: every answer, image or agent step for every user, for as long as the model is in service. For a popular model this can add up to far more than training.
Two multipliers apply to the electricity:
- Power usage effectiveness (PUE) is the data centre's total energy divided by the energy reaching the computers. A PUE of 1.1 means 10% extra for cooling, power conversion and lighting. Modern hyperscale data centres report about 1.1 to 1.2; older or smaller ones are often 1.5 or more.
- Carbon intensity is the grams of CO₂ emitted per kilowatt-hour of electricity on the grid that supplies it. It ranges from a few tens of grams (hydro, nuclear, wind, solar) to 800 g or more (coal). The world average is roughly 450 g/kWh.
Key idea Footprint = energy × overhead × carbon intensity, summed over the hardware, training and the model's whole life of use. Per use it is small; multiplied by billions of uses, and by a fast-growing number of data centres, it is significant.
How it works: the numbers
Training
The most cited estimates come from careful papers, because companies rarely publish full figures:
- GPT-3 (175 billion parameters, 2020): Patterson and colleagues estimated about 1,287 megawatt-hours (MWh) of electricity and about 552 tonnes of CO₂. That is roughly the annual electricity use of 120 US homes.
- BLOOM (176 billion parameters, 2022): Luccioni and colleagues estimated about 24.7 tonnes of CO₂ from the training electricity, low because it was trained in France on a mostly nuclear grid. Including hardware manufacturing and idle power, the total was about 50.5 tonnes, double the electricity-only figure.
Frontier models since then have used far more computation (see Scaling Laws), but developers have mostly stopped publishing energy figures, so current numbers are estimates. The same papers show how much choices matter: Patterson and colleagues found that the choice of model architecture, processor, data centre and location could change the footprint of training the same capability by up to roughly 100 to 1,000 times.
An early and widely quoted 2019 estimate by Strubell and colleagues, that training one model could emit as much as five cars over their lifetimes, referred to an unusual worst case (an extensive neural architecture search), not to typical training. It's a good example of a real number used out of context.
Inference: per query and in total
Per-request figures have dropped sharply as hardware and software improved:
- In August 2025 Google published a detailed measurement for its Gemini apps: the median text prompt used 0.24 watt-hours (Wh) of energy and about 0.26 millilitres of water, including idle machines and data-centre overhead. It reported that the energy per median prompt had fallen 33-fold, and the carbon footprint 44-fold, in one year.
- OpenAI's chief executive stated in June 2025 that an average ChatGPT query used about 0.34 Wh. An independent estimate by Epoch AI earlier that year arrived at a similar order of magnitude (about 0.3 Wh) for a typical GPT-4o query, well below an earlier, widely repeated figure of around 3 Wh.
- Tasks differ hugely. A 2023 study by Luccioni, Jernite and Strubell found image generation averaged about 2.9 Wh per image, and text classification thousands of times less. Long reasoning chains (Reasoning Models and Test-Time Compute), long documents, video generation and agents that make many model calls use much more than a short chat reply.
Energy per query is the energy used to answer one request. It's small: 0.3 Wh is about what a 10-watt LED bulb uses in two minutes. But ChatGPT alone was reported to handle around 2.5 billion prompts a day in mid-2025. At 0.3 Wh each, that's about 750 MWh a day. Totals, not single uses, are what matter for the grid.
Water
Data centres use water in two ways: evaporative cooling on site, and water consumed at power stations generating their electricity. The water footprint depends heavily on climate, cooling design and the electricity mix. Li and colleagues (2023) estimated that training GPT-3 in Microsoft's US data centres consumed about 700,000 litres of fresh water directly. Per-prompt figures are small (Google's 0.26 mL is about five drops), but large data centres in dry regions can strain local supplies, and some operators now use air cooling or closed-loop systems to reduce water use, at some cost in energy.
Local and system effects
The bigger story may be local. Data centres concentrate in particular places (northern Virginia, Ireland, parts of Texas and the Netherlands, for example), where they can make up a large share of electricity demand. Ireland's data centres used about a fifth of its metered electricity in 2023, according to its Central Statistics Office. New gas plants, delayed coal-plant retirements and grid upgrades are being planned partly to meet this demand, while large companies sign contracts for new wind, solar, geothermal and nuclear power. How much of the new demand ends up met by clean energy is one of the main open questions.
In code
You can estimate a footprint yourself with three multiplications. This example uses illustrative inputs, not any specific model.
# Back-of-the-envelope footprint of training and serving a model.
def training_energy_mwh(n_gpus, gpu_kw, hours, utilisation=0.8, pue=1.2):
"""IT energy = GPUs x power x time x average load; PUE adds cooling and power losses."""
return n_gpus * gpu_kw * hours * utilisation * pue / 1000
def tonnes_co2(mwh, grid_g_per_kwh):
return mwh * 1000 * grid_g_per_kwh / 1e6
# A hypothetical run: 1,000 GPUs drawing 0.7 kW each for 30 days
mwh = training_energy_mwh(n_gpus=1000, gpu_kw=0.7, hours=30 * 24)
print(f"training energy: {mwh:,.0f} MWh")
for grid, g in [("hydro/nuclear-heavy grid", 30), ("average grid", 450), ("coal-heavy grid", 800)]:
print(f" on a {grid:25s} ({g:3d} g/kWh): {tonnes_co2(mwh, g):6,.0f} t CO2")
# Serving: energy per request x requests per day
wh_per_request = 0.3 # order of magnitude reported for a typical text chatbot reply (2025)
requests_per_day = 10_000_000
daily_mwh = wh_per_request * requests_per_day / 1e6
print(f"inference: {daily_mwh:.1f} MWh/day -> equals the training run after "
f"{mwh / daily_mwh:.0f} days")
# training energy: 484 MWh
# on a hydro/nuclear-heavy grid ( 30 g/kWh): 15 t CO2
# on a average grid (450 g/kWh): 218 t CO2
# on a coal-heavy grid (800 g/kWh): 387 t CO2
# inference: 3.0 MWh/day -> equals the training run after 161 days
Three lessons fall out. The same training run varies about 27-fold in emissions depending on the grid. With ten million requests a day, inference matches the training energy in about five months. And every input is uncertain: real power draw, utilisation and PUE vary, which is why published estimates differ. To measure your own code instead of estimating it, the CodeCarbon library wraps a block of Python and reads the hardware's power use (from codecarbon import EmissionsTracker).
How efficiency improves
Several forces push energy per unit of useful work down:
- Better hardware. Each GPU generation does much more computation per joule. Lower-precision arithmetic helps further (Mixed Precision Training, Quantization).
- Smaller and smarter models. Distilled and small models handle many tasks at a fraction of the energy of frontier models. Mixture-of-experts models activate only part of their weights per token.
- Better serving software. Batching many requests together, caching (The KV Cache and Fast Inference, prompt caching) and efficient attention kernels (Serving LLMs at Scale) raise throughput per GPU.
- Better data centres: lower PUE, waste-heat reuse, and siting near clean power.
- Carbon-aware scheduling: running flexible jobs, such as training, when and where the grid is cleanest.
But efficiency doesn't automatically reduce total use. The Jevons paradox, noted by the economist William Stanley Jevons in 1865 for coal, says that when using a resource becomes more efficient, total use can rise, because it becomes cheaper and so worth using for more things. Cheaper AI responses lead to more AI use, longer reasoning, more agents and more video. In 2025 total AI electricity use was still rising despite the large per-query efficiency gains.
The debate
- Concern: AI's energy growth is fast, concentrated and hard to plan for. It risks locking in new fossil-fuel generation, competing with other uses of clean power and stressing local water supplies, while companies disclose too little to judge.
- Perspective: data centres as a whole remain a small share of global electricity (well under that of industry, buildings or, soon, electric vehicles), and per-use energy is falling fast. An individual's chatbot use is a negligible part of their footprint compared with heating, travel or diet.
- Potential upside: AI may help cut emissions elsewhere, for example by improving grid management, materials discovery, building efficiency and weather forecasting, although the IEA notes these benefits are not guaranteed and depend on adoption.
These positions are compatible. The individual impact of a query is small; the collective, system-level impact of building AI infrastructure at the current pace is large and worth managing deliberately.
Common pitfalls
- Comparing a per-query number with a national total, or a training number with a per-query number, without stating the units.
- Using stale figures. Per-query energy fell by more than an order of magnitude between 2023 and 2025 estimates. Always check the date and method.
- Ignoring what's excluded. Does a figure include idle machines, cooling, networking, manufacturing? Google's 2025 measurement included more of these than most earlier estimates, and noted that narrower methods give lower numbers.
- Market-based versus location-based emissions. Companies that buy renewable-energy certificates may report lower "market-based" emissions than the "location-based" emissions of the grid they actually draw from. Both are reported; know which you're reading.
- Treating AI as the only data-centre load. Streaming, cloud storage, cryptocurrency mining and ordinary computing are also part of the totals.
Tip To reduce your own footprint when building with AI: use the smallest model that does the job well, avoid unnecessary long outputs and reasoning, cache repeated work, batch offline jobs, and run training in low-carbon regions when you can. These choices usually save money too.
Where it leads
- AI Hardware: GPUs, TPUs and Accelerators and GPUs and Why AI Needs Them explain the chips whose power draw dominates the totals.
- Quantization, Knowledge Distillation and Small Models, Mixture of Experts and Serving LLMs at Scale are the main technical levers for efficiency.
- Scaling Laws explains why frontier training runs keep growing.
- AI Risks and Safety lists environmental impact among AI's systemic risks.
- Running Models Locally shows how small models can run on your own machine.
A bit of history
Computing's energy use has been debated since the dot-com era, when early estimates of the internet's electricity use were often wildly exaggerated. Data-centre efficiency improved so much between 2010 and 2018 that global data-centre energy use stayed roughly flat while computing output grew several-fold, according to a 2020 study in Science by Masanet and colleagues. Concern about AI specifically began with Strubell and colleagues' 2019 paper on the cost of training NLP models, followed by calls for "Green AI" (Schwartz and colleagues, 2019) to report efficiency alongside accuracy, the Patterson and colleagues (2021) and BLOOM (2022) analyses, and tools such as CodeCarbon. The generative-AI boom from 2023 ended the long period of flat data-centre demand. Since 2024, AI's electricity and water use has become a mainstream policy issue, with the IEA's 2025 report, the first detailed company measurements of per-prompt energy, and new rules such as the EU's requirement that general-purpose AI model providers document energy consumption.
Try it
- Use the code to estimate the training emissions of the GPT-3 run: about 10,000 GPUs for about 15 days. Choose a power per GPU of 0.3 kW and a PUE of 1.1. How close do you get to the published 1,287 MWh?
- Estimate the daily energy of a service handling 2.5 billion text prompts a day at 0.3 Wh each, and at 3 Wh each. Express each as the number of average US homes (about 29 kWh a day each) it could power.
- Install CodeCarbon and wrap one of the training examples from another chapter, such as the FGSM code in Adversarial Examples. How much energy did it use?
Hint for 1: GPT-3's actual training hardware and utilisation aren't fully public, so getting within a factor of two is reasonable. The point is to see which inputs matter most.
Learn more
Hand-picked courses, books, videos and tutorials for going deeper. See all resources →
Energy and AI
The most authoritative overview of data-centre and AI electricity demand, with country breakdowns, projections to 2035 and the ways AI might also help the energy system.
Measuring the environmental impact of delivering AI at Google Scale
A detailed per-prompt measurement for Gemini, counting idle machines, cooling and overheads, with energy, carbon and water figures for a median text prompt.
Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Model
A full life-cycle estimate for one open model: training energy, idle power, hardware manufacturing and deployment.
Power Hungry Processing: Watts Driving the Cost of AI Deployment?
Measures the energy of inference across many tasks and models, finding that image generation and general-purpose models use far more energy per request than task-specific ones.
CodeCarbon
A Python package that estimates the electricity use and emissions of your own code, from hardware power draw and the local grid's carbon intensity.
Carbon Emissions and Large Neural Network Training
Estimates the energy and emissions of training several large models, including GPT-3, and shows how hardware, data-centre efficiency and grid choice change the result by large factors.
The ML.ENERGY Leaderboard
Measured energy per response for many open models on real GPUs, showing how model size, hardware and serving settings change the cost.
Facts checked as of 30 November 2026. Fast-moving details (products, prices, laws) change often. · Source: content/entries/society/ai-energy-and-environment.md