How Many Tokens Can One Kilowatt-Hour Produce? Measuring LLM Inference Cost and Its Industry Impact

    A back-of-the-envelope calculation shows how electricity converts into tokens for large language model inference: under typical assumptions, one kilowatt-hour can yield about 4 million output tokens or 40 million input tokens. This article walks through the conversion logic, builds an energy and revenue model, breaks down where inference costs actually come from, and explains what these numbers mean for pricing, private deployment, and market competition.

    1. From Kilowatt-Hours to Tokens: The Conversion Logic

    Think of LLM inference as a production activity: the inputs are electricity and hardware, and the output is tokens. Dividing output volume by power consumption gives you tokens per unit of electricity—the first metric for understanding inference economics.

    This conversion rests on a premise: the main variables in inference cost can be quantified. Energy consumption, throughput, and pricing form a chain. Energy sets the physical floor, throughput determines how many requests can be processed per unit of time, and pricing caps revenue. Change any one of these assumptions, and the conclusion changes accordingly.

    The basic formulas are:

    • Energy per output token (joules) = effective power (watts) ÷ aggregate output speed (tokens/second)
    • Output tokens per kilowatt-hour = 3.6 × 10⁶ ÷ energy per token

    One kilowatt-hour equals 3.6 × 10⁶ joules—this is the base conversion constant.

    2. Core Assumptions and the Energy Model

    Any calculation must start with parameters. The values below illustrate the method only—they are not measured data. Actual numbers depend on your hardware, model size, and scheduling strategy.

    Parameter Value Notes
    Effective power per accelerator 900 W Includes GPU power plus cooling, networking, CPU, and other overhead
    Aggregate output speed 1000 tokens/s Per-card throughput at large batch sizes; real-world ranges can span orders of magnitude
    Aggregate prefill speed 10000 tokens/s Input processing is highly parallel and usually much faster than decoding

    Using these parameters:

    • Energy per output token = 900 ÷ 1000 = 0.9 joules
    • Energy per input token = 900 ÷ 10000 = 0.09 joules
    • Output tokens per kilowatt-hour = 3.6 × 10⁶ ÷ 0.9 = 4 million
    • Input tokens per kilowatt-hour = 3.6 × 10⁶ ÷ 0.09 = 40 million

    The energy gap between input and output is roughly 10x. The two stages have different compute characteristics. The prefill phase processes the entire input in parallel with high compute density. Decoding generates tokens one at a time, and each step reads large numbers of parameters and cached states, creating heavy memory traffic—so energy per token is higher.

    3. Converting Energy into Revenue

    Energy is only part of the cost; revenue must be calculated from pricing. Assume an output price of $50 per million tokens and an input price of $10 per million tokens:

    • Output side: 4 million tokens × $50/million ≈ $200 per kilowatt-hour
    • Input side: 40 million tokens × $10/million ≈ $400 per kilowatt-hour

    In practice, input and output are usually billed together in a blended ratio. If each request contains 3 input tokens and 1 output token, the energy per billing unit is:

    • Energy = 3 × 0.09 + 1 × 0.9 = 1.17 joules
    • Revenue = (3 × 10 + 1 × 50) ÷ 10⁶ = 80 × 10⁻⁶ dollars

    One kilowatt-hour then covers 3.6 × 10⁶ ÷ 1.17 ≈ 3.077 million billing units, corresponding to roughly $246 in revenue.

    This number shows that under ideal full-load conditions, service revenue per unit of electricity far exceeds the electricity cost itself. The key insight: pricing is not determined by electricity costs.

    4. How Much Does Electricity Actually Cost?

    A common view is that once tokens are deployed at scale, electricity becomes the dominant cost. Let’s test that claim with the hourly ledger of a single accelerator.

    Assumptions:

    • Hardware purchase cost of about $30,000, depreciated linearly over 4 years (~35,000 hours), giving roughly $0.86 per hour
    • Industrial electricity at $0.10 per kilowatt-hour; effective power of 900 W means about $0.09 per hour in electricity
    • At full load, about 3.6 million output tokens per hour; at $50 per million tokens, theoretical revenue is about $180 per hour

    Under these assumptions, depreciation is the largest hourly expense, and electricity accounts for roughly one-tenth of total cost. If hardware utilization drops to 30%, the same depreciation is spread over far fewer tokens, pushing unit costs up more than threefold—while electricity costs change much less, since idle hardware still draws standby power.

    Two conclusions follow:

    1. Electricity is a significant cost item, but in most scenarios it is not the deciding factor.
    2. The core variables driving unit inference cost are hardware utilization, batching efficiency, and equipment lifetime. Electricity price ranks further down the list.

    5. Illustrative Calculation Code

    The following function packages the model into a reusable estimator with adjustable parameters:

    1. def blended_revenue_per_kwh(
    2. effective_power_w: float,
    3. out_tps: float,
    4. in_tps: float,
    5. out_price_per_m: float,
    6. in_price_per_m: float,
    7. in_parts: int = 3,
    8. out_parts: int = 1,
    9. ) -> float:
    10. """Estimate service revenue per kilowatt-hour of electricity (USD).
    11. effective_power_w: effective power including overhead (watts)
    12. out_tps / in_tps: aggregate output and input throughput (tokens/second)
    13. out_price_per_m / in_price_per_m: price per million tokens (USD)
    14. in_parts / out_parts: ratio of input to output tokens per billing unit
    15. """
    16. if min(out_tps, in_tps, effective_power_w) <= 0:
    17. raise ValueError("Power and throughput must be positive")
    18. e_out = effective_power_w / out_tps # joules per output token
    19. e_in = effective_power_w / in_tps # joules per input token
    20. energy_per_unit = in_parts * e_in + out_parts * e_out # joules per billing unit
    21. revenue_per_unit = (in_parts * in_price_per_m
    22. + out_parts * out_price_per_m) / 1e6 # USD per billing unit
    23. units_per_kwh = 3.6e6 / energy_per_unit
    24. return units_per_kwh * revenue_per_unit
    25. if __name__ == "__main__":
    26. revenue = blended_revenue_per_kwh(
    27. effective_power_w=900,
    28. out_tps=1000,
    29. in_tps=10000,
    30. out_price_per_m=50,
    31. in_price_per_m=10,
    32. )
    33. print(f"Theoretical revenue per kWh: approx. ${revenue:.1f}")

    The result is roughly $246. Replace throughput, power, or pricing with your own data to get your own range. It’s advisable to run at least conservative, baseline, and optimistic throughput scenarios, since throughput uncertainty dwarfs that of other parameters.

    6. Impact on the Market

    1. Competition shifts from capability rankings to unit cost

    When multiple models perform similarly on many tasks, customers compare unit cost and latency at equivalent quality. Model providers must balance model quality, inference optimization, batch scheduling, and hardware selection. Sustaining high utilization directly determines price competitiveness.

    2. Private deployment has a clear breakeven point

    Whether an enterprise should build its own inference cluster comes down to a simple comparison:

    • Monthly API spend > monthly amortized hardware cost + electricity + operations staffing

    When call volume is large enough, and tasks have data-security or latency requirements, private deployment becomes more attractive. With low or volatile volume, pay-as-you-go remains the better deal.

    3. The value of the distribution layer lies in orchestration and service

    The core value of API aggregators and resellers is not energy—it’s routing, billing, rate limiting, monitoring, and reliability guarantees. When underlying models are available as open weights, the distribution layer earns its premium through service quality and industry-specific fit.

    4. Open-source models lower the barrier but don’t erase the gap

    Open-weight models make self-hosted inference a viable option, but models still differ in complex reasoning, long-context reliability, and tool calling. Evaluate against your specific business tasks, not just aggregate leaderboards.

    7. Limitations and Caveats

    Keep these limitations in mind when using this analysis:

    • Throughput is the key assumption; it varies widely across models, context lengths, and batch sizes.
    • The calculation assumes full-load operation. Real-world utilization swings significantly change unit costs.
    • Pricing depends on market competition, service tiers, and contract terms—it cannot be derived from energy consumption alone.
    • This analysis excludes R&D, data, network bandwidth, data-center leasing, and compliance costs.

    8. Practical Recommendations

    For teams evaluating inference costs, proceed as follows:

    1. Measure real traffic to determine input/output ratios, request length distributions, and peak-vs-off-peak patterns.
    2. Benchmark throughput and latency on your target hardware, replacing the assumed values in this article.
    3. Calculate monthly total cost for pay-as-you-go, private deployment, and hybrid deployment separately.
    4. Treat utilization as a sensitivity variable and plot cost against load.
    5. Beyond cost, verify that data compliance, availability, and model quality meet your business requirements.

    Tokens per kilowatt-hour is a useful physical baseline—but it only marks the floor of inference cost. What actually shapes the market is the total cost produced by hardware utilization, scheduling efficiency, and service quality working together.