The Energy Economics of LLM Inference: How Many Tokens Can One kWh Produce?

    This article breaks down the energy economics of large language model inference, estimating how many tokens can be generated per kilowatt-hour of electricity. It explains how to calculate per-token energy from effective power draw and throughput, why input (prefill) tokens are cheaper than output (decode) tokens, and how to convert these physical quantities into revenue per kWh. It also clarifies the limits of such estimates and offers practical guidance for developers on optimization priorities, pricing, observability, and elastic scheduling.

    1. Introduction: Why “Tokens per kWh” Is Worth Calculating

    Alongside discussions of model capability limits, a question closer to business fundamentals is emerging: what is the physical cost of generating a single token? Re framing the question as “how many tokens can one kilowatt-hour produce” turns an abstract compute bill into a measurable physical quantity, making inference pricing, gross margin, and optimization headroom something you can actually reason about.

    This kind of calculation is not a precise financial conclusion but an order-of-magnitude estimate. Its value lies in building an analytical framework: once power draw, throughput, and price are defined, you can quickly judge whether a business model is sustainable and whether optimization should focus on hardware, scheduling, or model architecture.

    2. Step 1: From Effective Power to Per-Token Energy

    The starting point is effective power. Take a mainstream training/inference accelerator: a single card at full load typically draws around 700W. But real data center consumption goes well beyond the chip itself, including cooling, power delivery losses, network switching, and control-plane overhead. The industry uses PUE (Power Usage Effectiveness) to measure this amplification; new large-scale clusters typically fall in the 1.2–1.4 range. With PUE ≈ 1.3, the effective power per card is about 900W, or 900 joules per second.

    The second variable is aggregate output throughput per card. In high-batch, high-concurrency inference, engineering techniques such as continuous batching, PagedAttention-style memory management, and operator fusion can keep single-card output at roughly 1000 tokens per second; a conservative range is about 500–3000 tokens/s, depending on model size, context length, batch size, and quantization strategy.

    Dividing the two gives output-side energy:

    1. Per-token energy = effective power / output throughput
    2. = 900 J/s ÷ 1000 token/s
    3. = 0.9 J/token
    4. 1 kWh = 3,600,000 J
    5. Output tokens per kWh ≈ 3,600,000 ÷ 0.9 ≈ 4 million tokens

    3. Step 2: Why the Input Side Is “Cheaper”

    Inference has two phases, prefill and decode, with very different energy profiles. Prefill processes the input prompt as highly parallel matrix multiplications with high computational and parallel density; single-card throughput can reach tens of thousands of tokens per second, corresponding to about 0.09 J/token, or roughly 40 million input tokens per kWh. Decode generates autoregressively token by token, constrained by memory bandwidth with low parallelism, so its energy consumption is significantly higher.

    This also explains a common misconception: treating input and output as having the same price and the same energy cost will badly misjudge the cost structure.

    4. Step 3: Converting to “Revenue per kWh”

    Multiplying these physical quantities by typical price ranges gives an intuitive “electricity revenue”:

    • Output side: 4 million tokens × $50/million tokens ≈ $200/kWh
    • Input side: 40 million tokens × $10/million tokens ≈ $400/kWh
    • Blended at the common industry 3:1 input-to-output token ratio: roughly $250–300/kWh

    Factoring in throughput uncertainty (the 500–3000 tokens/s range), a reasonable band widens to $100–800/kWh.

    5. The Limits of the Conclusion: Why You Can’t Judge From This Table Alone

    The original text derives a conclusion that “closed-source large models are doomed,” which is not logically rigorous. The calculation only covers electricity-side revenue, while real costs also include accelerator depreciation, data center space and bandwidth, R&D and data, and idle losses when inference clusters run at low load. More importantly, price is not pure profit; it must cover capital expenditure and long-horizon depreciation.

    A more defensible inference is this: when the physical cost per token is pushed extremely low while prices remain high, there is structural pressure for prices to keep falling, and providers must shift from “selling tokens” to “selling deterministic results.”

    6. Practical Takeaways for Developers

    1. Prioritize optimization: focus first on reducing decode-phase energy through more aggressive quantization, sparsification, speculative decoding, and more efficient cache reuse.
    2. Use the input/output ratio to guide pricing and rate limiting: businesses with high input share (such as long-document review) and those with high output share (such as code generation) have completely different cost structures.
    3. Build observability: use monitoring, alerting, and logging to collect per-card throughput, batch size, and cache hit rate, and make “tokens per kWh” a core operational metric.
    4. Elastic scheduling: tidal scheduling on a container platform to reduce low-load idling is more effective than simply swapping hardware.

    7. Conclusion

    “4 million tokens per kWh” is a useful anchor. It reminds engineering teams that competition in large models ultimately comes down to energy efficiency and scheduling efficiency. In practice on platforms such as Baidu AI Cloud, bringing energy metrics into the same optimization goals as latency and throughput, and building a closed loop with common capabilities like object storage, message queues, and monitoring/alerting, is the realistic path to turning compute advantages into product advantages.