The Energy Ledger of LLM Inference: How Many Tokens Can One Kilowatt-Hour Produce?

    Explore the economics behind LLM inference by calculating how many tokens a single kilowatt-hour of electricity can generate. This article breaks down the power consumption, throughput, and commercial value of inference, providing a physical baseline for cost optimization.

    1. Why This Calculation Matters

    Competition in the LLM industry is shifting from parameter scale to unit cost. When a model delivers comparable capabilities at a lower inference cost, its impact on the market landscape is often more direct than benchmark scores. To understand inference costs, the most intuitive approach is to answer a simple question: How many tokens can one kilowatt-hour (kWh) of electricity actually produce?

    This question matters for three reasons:

    1. Electricity is the foundational rigid cost of inference. Regardless of model optimization or pricing competition, inference ultimately boils down to the physical level of “how many joules consumed per second and how many tokens produced.”
    2. It bridges technology and business. Converting energy consumption into tokens, and then into pricing, turns the abstract concept of “expensive computing power” into comparable figures.
    3. It reveals the physical boundary of LLM price wars. Vendors can lower prices close to the cost line, but it is difficult to break the baseline dictated by physical energy consumption.

    Below, we complete this calculation in three steps: energy measurement, output conversion, and commercial value assessment, supplemented by sensitivity analysis and engineering optimization perspectives.

    2. Step 1: How Many Output Tokens per kWh

    2.1 Key Assumptions

    The calculation is based on a typical inference configuration:

    Assumption 1: Effective power consumption per card is approximately 900W

    Taking a mainstream data center-grade accelerator as an example, the card itself consumes about 700W. However, the data center consumes power beyond just the GPU. Cooling systems, power conversion losses, network equipment, and CPU/memory overhead must all be accounted for. The data center industry uses PUE (Power Usage Effectiveness) to measure this, with an industry average of around 1.3. Thus:

    1. Effective power consumption = 700W × 1.3 ≈ 900W

    This means about 900 joules of energy per second, of which roughly 700 joules are used for actual chip computation, and the rest covers infrastructure overhead.

    Assumption 2: Aggregate output speed per card under large-batch inference is about 1000 tokens/second

    Inference services typically use Continuous Batching to merge multiple user requests for computation, improving chip utilization. Under high concurrency, the aggregate output throughput per card ranges broadly; conservatively estimated between 500 and 3000 tokens/second, we take a conservative middle ground of 1000 tokens/second as the baseline.

    2.2 Derivation

    The energy consumption per token is calculated as follows:

    1. Energy per token = 900 Joules/second ÷ 1000 tokens/second = 0.9 Joules/token

    The energy of one kilowatt-hour is:

    1. 1 kWh = 3,600,000 Joules

    Therefore, the number of output tokens one kWh can produce is:

    1. 3,600,000 ÷ 0.9 ≈ 4 million tokens/kWh

    The significance of this number is that at current technology levels, supporting the generation of about 4 million output tokens per kWh is a reasonable level for large-scale inference.

    3. Step 2: The Economics of Prefill — The Cheaper Input Side

    Inference consists of two stages with starkly different energy characteristics:

    3.1 Prefill Stage

    Prefill processes user input, essentially performing parallel forward computation on the input sequence. Since there is no sequential dependency of autoregression, the throughput is much higher than in the decode stage, reaching about 10,000 tokens/second/card. The corresponding unit energy consumption is:

    1. 900 Joules/second ÷ 10000 tokens/second = 0.09 Joules/token

    This means one kWh can process about 40 million input tokens—ten times the efficiency of the output side.

    3.2 Why Lower Input Pricing is Reasonable

    The production cost of input tokens is much lower than that of output tokens. This physically explains why input prices in mainstream API pricing are typically around one-fifth of output prices. This is not a marketing strategy, but a result dictated by the energy consumption structure.

    4. Step 3: Converting Tokens into Money

    4.1 Conversion Based on Pricing

    Referencing common industry pricing levels (output at about $50/million tokens, input at about $10/million tokens):

    • Output side: 4 million tokens × $50/million ≈ $200/kWh
    • Input side: 40 million tokens × $10/million ≈ $400/kWh

    4.2 Comprehensive Metric

    In actual business operations, the input-to-output ratio is typically around 3:1. Calculating by this mixed ratio:

    1. Comprehensive commercial value per kWh ≈ $250–$300

    Considering the uncertainty of throughput (fluctuations from 500 to 3000 tokens/second directly impact the result), a reasonable range is:

    1. $100–$800/kWh

    5. Sensitivity Analysis: Which Variables Most Affect the Outcome

    The conclusion of this calculation is highly sensitive to the following variables, which engineering teams should focus on when applying it:

    Variable Baseline Value Impact Direction
    Throughput rate 1000 tokens/second Linear impact, 6x fluctuation from 500 to 3000
    PUE 1.3 Excellent data centers can reach 1.1, saving ~15% energy
    Model size Frontier LLMs Smaller models have higher throughput and lower per-token energy
    Batching strategy Continuous batching Utilization drops sharply when batch size is insufficient

    A notable inference: If the gross margin of an inference service is significantly lower than the sum of the energy conversion value and hardware amortization, operations, and labor costs, the business model is unsustainable. The aggressive pricing currently offered by some vendors is essentially trading infrastructure efficiency and scheduling capabilities for cost space.

    6. Engineering Perspective: How to Improve “Token Output per kWh”

    For developers and enterprises, this calculation provides clear optimization directions:

    1. Improve batching efficiency. Properly configuring batch size and scheduling strategies to keep the chip running in high-throughput zones is the most cost-effective optimization. In practice, you can find the throughput turning point by monitoring the relationship between throughput and memory usage.
    2. Lower PUE. Choosing data centers with higher cooling efficiency directly reduces the cost per joule of effective computing power. This explains why large cloud providers are willing to invest in infrastructure like liquid cooling.
    3. Control context length. Extremely long contexts significantly increase the computation of prefill and the memory footprint of the KV cache. Trimming input and compressing history at the application layer is the most direct cost-reduction method on the application side.
    4. Quantization and distillation. Model-side compression techniques (quantization, distillation, speculative decoding) can improve throughput with almost no loss in user experience, effectively reducing per-token energy consumption.

    For teams looking to quickly acquire inference capabilities without building their own clusters, choosing a mature LLM service platform (such as cloud inference services offering token-based billing and elastic scaling) is often more capable of approaching ideal energy efficiency than operating their own GPU clusters, as platform-level scheduling and batching optimization far exceed the capabilities of a single team.

    7. Conclusion

    The calculation that “one kWh produces about 4 million output tokens, equivalent to hundreds of dollars in commercial value” provides a physical baseline for LLM inference costs. It tells us that the competition in model capabilities will eventually converge into a competition of energy efficiency—those who can produce more and better tokens with less energy will gain more room to maneuver between price and experience. For developers, understanding this baseline is a reliable anchor when making model selection, budgeting, or architectural design.