Tokens per kWh in LLM Inference: A Practical Estimation Framework

    This article breaks down large language model (LLM) inference energy consumption into two workloads—output generation (autoregressive decoding) and input prefill—and estimates how many tokens a single kilowatt-hour (kWh) can produce under public, verifiable assumptions. It shows that one kWh corresponds to roughly four million output tokens and about forty million input tokens, discusses how throughput and PUE shift that range by several multiples, and translates the result into an equivalent dollar value per kWh. Readers will find a reusable energy-accounting model, the main sources of estimation error, and a step-by-step method for calibrating joules/token against real production data for capacity and cost planning.

    Large language model inference has become one of the dominant forms of compute consumption. Training is a one-time investment, whereas inference happens continuously alongside the business, so the energy cost per token directly determines operating cost, pricing room, and the ability to scale. This article decomposes inference into two kinds of computation—output generation and input prefill—and, under public and verifiable assumptions, gives a range for the number of tokens produced per kWh. It then discusses what this means for cost structure and market dynamics. The analysis does not depend on any specific vendor or model, so the conclusions can serve as a reference framework for engineering estimates.

    1. Scope and Key Assumptions

    Any inference energy estimate must first define the scenario. This article focuses on high-volume online or offline inference, not peak-latency optimization for a single interaction. The accelerator runs under sustained high load, with power consumption taken as roughly 700 W per card. The facility must also account for cooling, networking, host-side CPU, and power-distribution losses; using a PUE of about 1.3, the effective power per card works out to roughly 900 W. This value sits within the common industry range, though in practice it fluctuates with rack density, the proportion of liquid cooling, and the load curve.

    On throughput, the output stage is constrained by autoregressive decoding, so a conservative median of about 1,000 tokens/second per card is used for aggregate output speed, with a reasonable range spanning hundreds to thousands of tokens/second. Input prefill is dominated by parallel matrix operations, so its throughput is far higher than decoding and is estimated at around 10,000 tokens/second. These figures are order-of-magnitude assumptions used to build a recomputable energy ledger, not claims about the measured peak of any specific hardware.

    2. Output Tokens: About Four Million per kWh

    An effective power of 900 W means 900 joules per second. If output throughput is 1,000 tokens/second, each output token corresponds to about 0.9 joules. One kWh equals 3,600,000 joules, so:

    3,600,000 ÷ 0.9 ≈ 4 million output tokens per kWh.

    This result is highly sensitive to throughput: halve the throughput and one kWh yields only about 2 million tokens; raise it to 3,000 tokens/second and the figure approaches 12 million tokens. In engineering practice, you should combine optimizations such as batch size, sequence length, quantization precision, and speculative decoding, and track “joules/token” as a core KPI on an ongoing basis rather than looking only at QPS.

    3. Input Tokens: Lower Energy Density in the Prefill Stage

    The prefill stage can be highly parallelized. At the same 900 W, if it reaches about 10,000 tokens/second, each input token costs about 0.09 joules, so one kWh can process roughly 40 million input tokens. The input side is usually billed at a lower unit price or amortized internally, but in long-context, retrieval-augmented, and multi-turn history-concatenation scenarios, the total volume of input tokens is often several times that of output, so its share of energy consumption cannot be ignored.

    4. Combined Conversion Using a Typical Input/Output Ratio

    A common input-to-output ratio in production is about 3:1 (long prompts, short answers). Allocating one kWh between input and output at that ratio, the combined equivalent value lands at roughly $250–300 per kWh (an order-of-magnitude conversion using public pricing of about $50 per million output tokens and $10 per million input tokens). That is roughly 1,800–2,200 RMB per kWh. Accounting for differences in throughput, PUE, batching efficiency, and electricity price, a more conservative range can be widened to about $100–800 per kWh (roughly 700–6,000 RMB). The point of this range is not a precise quote but to reveal that inference has shifted from “do we have enough compute” to “how many effective tokens can each joule buy.”

    5. Sources of Uncertainty and Engineering Corrections

    Estimation error comes mainly from four sources. First, decoding throughput varies sharply with model width, KV-cache hit rate, and speculative acceptance rate. Second, PUE can differ by more than 0.2 between air cooling and liquid cooling, and between high-density racks. Third, mixed precision, quantization, and sparse attention change power consumption and effective throughput at the same time, and the two do not scale proportionally. Fourth, the input/output ratio varies by product form: customer-service summarization skews toward output, while document understanding skews toward input. It is advisable to separately collect accelerator power, token rate, and PUE in the monitoring system, compute joules/token on a rolling hourly basis, and then map that to business gross margin.

    6. Impact on Cost Structure and Market Dynamics

    When one kWh can support anywhere from a few million to tens of millions of tokens, power and cooling become constraints on par with the chip itself. The party that can push joules/token lower can more easily offer a competitive inference unit price at the same electricity price, or reinvest the saved energy into longer context and higher concurrency. Market dynamics will increasingly be decided by “energy efficiency × scheduling × productization”: when model capabilities are close, the batching, caching, quantization, and elastic scaling of the inference stack will open up cost gaps. For users, this means evaluating quality, latency, and unit energy consumption together, rather than comparing leaderboard scores alone.

    Cloud deployment can leverage elastic compute, object storage for weights and caches, and logging and monitoring services to observe power and throughput, smoothing peaks and filling valleys according to load. Cloud platforms such as Baidu AI Cloud offer general-purpose compute, storage, and observability capabilities that help turn the estimates above into a production environment that can scale automatically, but the specific choice still depends on your own SLA and data-compliance requirements.

    7. Actionable Estimation Steps

    Step 1: Calibrate the effective power of a single card or machine (including the PUE allocation). Step 2: Stress-test input and output throughput at the target batch size and sequence length. Step 3: Compute joules/input token and joules/output token separately. Step 4: Weight by the real business input/output ratio to obtain tokens per kWh and equivalent cost per kWh. Step 5: Feed the result into capacity planning, modeling electricity cost, cooling headroom, and peak concurrency together. The schematic relationships can be written as:

    Effective power (W) / Throughput (tokens/s) = joules/token
    3,600,000 / (joules/token) = tokens per kWh

    Repeatedly calibrating the assumptions with production data is more valuable than a single static estimate.

    In summary, one kWh corresponds to roughly four million output tokens and about forty million input tokens, with a combined equivalent output of a few hundred dollars per kWh; the reasonable range can span several multiples depending on throughput and PUE. Building energy consumption into inference architecture design is a necessary path to controlling cost and improving competitiveness. Enterprises should establish a continuous joules/token measurement and make energy-efficiency optimization a daily engineering practice on elastic infrastructure, rather than a one-time estimate.