How Many Tokens Can One Kilowatt-Hour Generate? Estimating LLM Inference Costs

    This article presents a practical framework for estimating how many input and output tokens can be processed per kilowatt-hour of electricity. Using assumptions for GPU power consumption, throughput, PUE, and token pricing, it calculates energy efficiency, revenue potential, mixed workloads, and the sensitivity of results to inference speed. It also explains the limitations of electricity-only cost estimates and the factors enterprises should consider when evaluating inference providers.

    1. The Starting Point: How Much Inference Can One Kilowatt-Hour Support?

    The cost of serving large language models ultimately comes down to electricity, hardware depreciation, and data center operations. The number of tokens produced per unit of electricity is a useful way to measure inference efficiency. It places hardware performance, energy consumption, and pricing on the same scale, making it easier to compare different service models and cost structures.

    The figures below are based on a specific set of assumptions and are not measured results for any particular product. If the assumptions change, the results will change as well. They should therefore be treated as a calculation framework rather than a definitive benchmark.

    2. An Energy Consumption Model

    2.1 Key Assumptions

    The estimate assumes a high-volume inference workload running on a mainstream data center GPU cluster. The main parameters are:

    • Effective power consumption per GPU: approximately 700 W. After accounting for data center cooling, networking, CPUs, and other overhead using a PUE of approximately 1.3, this becomes roughly 900 W.
    • Aggregate output throughput per GPU: approximately 1,000 tokens per second. This is overall throughput under batching, not the response speed of an individual request. In practice, the value may range from 500 to 3,000 tokens per second.
    • Input prefill throughput: approximately 10,000 tokens per second per GPU, with energy consumption estimated at one-tenth that of output generation.

    2.2 From Power Consumption to Energy per Token

    The calculation is straightforward: divide power consumption by throughput to obtain the number of joules consumed per token.

    • Output tokens: 900 joules/second ÷ 1,000 tokens/second = 0.9 joules/token
    • Input tokens: approximately 0.09 joules/token

    One kilowatt-hour equals 3.6 million joules. Therefore:

    • Output side: 3.6 million ÷ 0.9 ≈ 4 million tokens per kWh
    • Input side: 3.6 million ÷ 0.09 ≈ 40 million tokens per kWh

    Input tokens require less energy because the prefill stage can perform computations in parallel, achieving much higher throughput than the token-by-token decoding stage.

    2.3 Reproducing the Calculation with Code

    The following example expresses the conversion as functions, making it easy to recalculate the estimate with different parameters. All values are illustrative assumptions.

    1. def tokens_per_kwh(power_w: float, throughput_tps: float) -> float:
    2. """Calculate the number of tokens processed per kilowatt-hour."""
    3. joules_per_token = power_w / throughput_tps
    4. return 3.6e6 / joules_per_token
    5. def revenue_usd(tokens: float, price_per_million: float) -> float:
    6. """Calculate revenue in USD using a price per million tokens."""
    7. return tokens / 1e6 * price_per_million
    8. # Example: 900 W effective power consumption and 1,000 tokens per second
    9. out_tokens = tokens_per_kwh(900, 1000) # Approximately 4 million
    10. print(revenue_usd(out_tokens, 50)) # Approximately $200 on the output side

    3. Converting Token Volume into Electricity-Based Revenue

    3.1 Separate Pricing for Input and Output

    Assume an output price of $50 per million tokens and an input price of $10 per million tokens:

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

    The input-side figure is higher because input processing consumes less energy and can handle more tokens per unit of electricity. This does not mean that input tokens are inherently more valuable. It only means that the same amount of electricity can process more content during prefill.

    3.2 A Mixed Workload Based on a Typical Input-to-Output Ratio

    In real workloads, the ratio between input and output tokens varies by use case. If the ratio is 3:1—three input tokens for every output token—the average energy consumption is approximately 0.29 joules per token. One kilowatt-hour can therefore process approximately 12.3 million tokens.

    At the assumed prices, the corresponding revenue is approximately $250 per kWh. Using an exchange rate of 7.2, this is roughly RMB 1,800.

    3.3 Sensitivity Analysis

    Throughput is the largest source of uncertainty. The following table changes only the output speed while keeping the other assumptions constant:

    Output Throughput (tokens/second/GPU) Output Tokens per kWh Output-Side Revenue (USD/kWh)
    500 Approximately 2 million Approximately $100
    1,000 Approximately 4 million Approximately $200
    3,000 Approximately 12 million Approximately $600

    After accounting for throughput, utilization, and regional electricity pricing, a reasonable range may be approximately $100 to $800 per kWh. The wide range shows why a single figure is not sufficient for evaluating inference costs.

    4. Implications for the Market

    4.1 The Value of Unit Energy Efficiency Is Declining

    As inference efficiency improves, each kilowatt-hour can serve more requests, reducing the marginal cost per token. To maintain margins, service providers must continuously improve hardware utilization, scheduling strategies, and model architecture.

    4.2 Pure Model Premiums Will Face Increasing Pressure

    When models with similar capabilities are available through multiple channels, premiums based solely on keeping model weights private are likely to weaken. Competition is more likely to focus on the following areas:

    • Unit cost and reliability: whether throughput, latency, and availability can be measured and consistently delivered.
    • Engineering capabilities: batching and scheduling, cache reuse, quantization, distillation, and other optimization techniques.
    • Ecosystem and service quality: API compatibility, monitoring and alerting, data security, and compliance support.

    When evaluating a provider, organizations should therefore consider whether it can balance cost, quality, and service—not simply whether the underlying model is open or closed source.

    4.3 Implications for Enterprise Users

    Enterprises evaluating inference solutions can focus on three areas:

    1. Estimate the cost per token based on the workload’s actual input-to-output ratio instead of looking only at list prices.
    2. Use real traffic to load-test throughput and verify batching performance as well as peak latency.
    3. Turn the cost model into a parameterized tool and update it regularly with new pricing and hardware data.

    5. Limitations and Considerations

    The estimate in this article excludes several factors that must be evaluated separately in production deployments:

    • Hardware utilization is not always 100%. Idle power consumption can increase the actual cost per token.
    • Request context lengths vary considerably. Long contexts can significantly change throughput.
    • Exchange rates, electricity prices, and hardware depreciation vary by region and over time.
    • Service costs also include research and development, operations, personnel, bandwidth, and other expenses. Electricity alone cannot represent the full cost.

    6. Conclusion

    The number of tokens associated with one kilowatt-hour is a useful starting point for understanding inference costs. It places energy consumption, throughput, and pricing into a single formula, helping estimate the overall cost range quickly.

    Ultimately, a provider’s competitiveness depends on its ability to continuously reduce unit costs and convert efficiency gains into stable and reliable service—not merely on the raw number of tokens processed per unit of electricity.