Large Language Model Inference Energy Consumption: How Many Tokens per kWh, and How to Cut Cost
This guide walks through a practical framework for estimating the energy consumed by large language model inference and translating it into cost. Starting from a single accelerator's power draw adjusted by data center PUE, it derives the energy cost per token separately for the decode and prefill phases, showing why reading tokens in is roughly ten times cheaper in energy than generating them. It then converts those numbers into illustrative revenue per kWh, outlines the variables that change the result in practice — batch size, model architecture, parallelism strategy, context length, and PUE — and closes with five cost-oriented optimization levers. Readers will come away with a reusable calculation method and a way to treat tokens-per-kWh as an operational metric rather than a theoretical exercise.
Large Language Model Inference Energy Consumption: How Many Tokens per kWh, and How to Cut Cost
1. Why “electricity → tokens → cost” matters
When people talk about large language models, the conversation usually revolves around parameter counts, benchmark rankings, and context length. A question much closer to the commercial reality tends to get skipped: how much electricity does a single inference call actually consume, and what does that amount to in cost? As models grow larger and call volumes climb, power and compute demand on the inference side are becoming decisive factors in whether a service can scale at all, and whether it can stay profitable.
A simple, intuitive metric helps here: how many tokens can one kilowatt-hour (1 kWh) of electricity produce. It converts abstract energy consumption into a capacity figure that can be compared directly, and it answers three practical questions:
- How many requests can a single accelerator serve per day?
- What is the marginal cost per token?
- When capacity is added, how should the power bill be weighed against compute?
The calculations below are based on a set of explicit assumptions. The goal is a reusable methodology, not absolute numbers for any specific product.
2. The physical basis of the calculation
The measurement itself is a conservation-of-energy division: first establish how many joules it takes to generate one token, then divide the energy in one kWh by that number.
2.1 Estimating effective power
A mainstream inference accelerator runs at roughly a few hundred watts at full load, around 700W. But the electricity bill for a data center covers more than the accelerator alone: CPU, memory, network switching, storage, and cooling all contribute. The industry measures this overhead with PUE (power usage effectiveness). A modern, efficient data center sits at around 1.3.
From this, the effective power per card can be estimated as:
Effective power ≈ Power per card (with PUE overhead) ≈ 900 joules/second
2.2 Decode phase (token-by-token generation)
Under large-batch inference, a single card’s aggregate output rate can be estimated conservatively at 500–3,000 tokens per second. Taking 1,000 tokens per second as a mid-range, slightly conservative figure, the energy per output token works out to:
Energy per token = 900 joules/second ÷ 1,000 tokens/second = 0.9 joules/token1 kWh = 3,600,000 joulesTokens per kWh ≈ 3,600,000 ÷ 0.9 ≈ 4 million output tokens
2.3 Prefill phase (parallel processing of input)
The prefill phase processes the input prompt. Because it consists of highly parallel matrix operations, throughput is far higher than token-by-token decoding: a single card can reach roughly 10,000 tokens per second, which brings energy consumption down to about 0.09 joules per token.
Tokens per kWh ≈ 3,600,000 ÷ 0.09 ≈ 40 million input tokens
Key takeaway: the same kilowatt-hour produces far more “read” tokens than “written” tokens, by roughly a factor of 10 in this example. That asymmetry is the physical root of both the difference in input versus output pricing and the difference in their cost structures.
3. From energy to cost: revenue potential per kWh
Multiplying energy by a unit price (the figures below are illustrative assumptions used to demonstrate the method, not real quotes) gives the revenue-side capacity of one kilowatt-hour:
- Output side: 4 million tokens × $50 per million ≈ $200 per kWh
- Input side: 40 million tokens × $10 per million ≈ $400 per kWh
Blending these at a typical 3:1 input-to-output ratio yields roughly $250–300 per kWh.
The value of this perspective is that it puts the power bill and the compute cost on the same “capacity invoice.” Capacity planning then becomes a matter of doing the math rather than simply adding more cards.
4. Key variables that change the numbers
The figures above are not fixed. Several factors in real engineering work can shift the conclusion significantly:
- Batch size: larger batches spread the fixed per-token overhead in decoding across more tokens, raising throughput and lowering energy per token.
- Model size and architecture: parameter count, attention implementation, and whether the model uses MoE-style sparse activation all change the computation required per token.
- Parallelism strategy: tensor parallelism, pipeline parallelism, and sequence parallelism all affect communication overhead and effective compute utilization.
- Context length: long contexts substantially increase KV cache and memory-access pressure, which can make the memory wall the bottleneck in the decode phase.
- Data center efficiency: moving PUE from 1.5 down to 1.2 directly determines how much auxiliary power cost can be squeezed out.
5. Cost-oriented optimization approaches
Once the chain is understood, there are clear levers to pull:
- Optimize for throughput, not single-request performance: scheduling strategies such as dynamic batching and continuous batching keep GPU utilization high, and are the most direct way to reduce energy per token.
- Match input and output resource allocation: when compute on the input side is in surplus, reclaim it for output generation or side tasks instead of leaving resources mismatched.
- Make it observable: use monitoring, alerting, and logging to continuously collect token counts, latency, and resource usage per request type, and turn “tokens per kWh” into a real-time operational metric.
- Scale elastically: deploy inference services on a container platform and scale in and out based on load, so idle capacity does not translate into wasted power spend.
- Optimize on the model side: where quality remains acceptable, techniques such as quantization, speculative decoding, and KV cache compression reduce computation and memory traffic at the source.
6. Summary
“How many tokens does one kilowatt-hour produce” looks like a small question, but it connects four layers at once: hardware, data center operations, scheduling algorithms, and commercial pricing. With this method in hand, a team can calculate the “power for capacity” trade-off before scaling out, make the input-versus-output cost difference explicit when setting prices, and pinpoint the bottlenecks that genuinely drive unit cost when optimizing. Bringing energy and cost into a quantifiable, observable operational system is a solid step toward large model services scaling profitably.
