How Many Tokens Can One Kilowatt-Hour Generate? A Complete Estimation of LLM Inference Energy Costs
"How many tokens can a single kilowatt-hour produce?" is a direct way to measure the economics of large model inference. This article walks through a complete estimation using a generic data center GPU as an example, covering power measurement conventions, throughput assumptions, token output per kWh, the monetized value of energy, and the main levers for improving energy efficiency. Readers will learn a reusable formula framework and practical recommendations for reducing per-token energy costs.
1. The Problem and Scope of Estimation
“How many tokens can one kilowatt-hour produce” is a direct way to measure the economics of large model inference. Inference is a continuously consuming workload, and electricity costs accumulate with service duration. How many tokens a unit of energy can produce determines the marginal cost of each API call.
This article uses a generic data center GPU as the estimation target. All parameters are illustrative. When switching to a different model, chip, or inference framework, simply replace the corresponding parameters to reuse the same formulas.
2. First, Get the Power Measurement Right
Many estimations simply multiply the GPU’s rated power by PUE, which produces incorrect results. PUE (Power Usage Effectiveness) equals total facility power divided by IT equipment power. It only accounts for overhead from cooling, power distribution, and other infrastructure — it does not include the CPU, memory, storage, and network devices inside the server. Therefore, the calculation requires two steps.
Step one: calculate IT equipment power. The example values are:
- GPU full-load power: 700W
- CPU, memory, storage, and network power allocated per GPU: about 200W
- Total IT power: 900W
Step two: multiply by PUE to get actual facility power. Using a PUE of 1.3 (an example value; new, highly efficient data centers may be lower):
900W × 1.3 = 1170W, or roughly 1.17 kW of actual power per GPU.
3. Throughput Assumptions Must Come with Conditions
Throughput determines the denominator of the energy calculation. This article assumes: for a large-parameter model, with 8-bit quantization, a large batch size, and moderate context length, the aggregate output speed per GPU is about 1,000 tokens per second. These numbers represent only one configuration. Larger models, longer contexts, smaller batch sizes, or different precision levels will all significantly change the results.
This article uses 500 to 3,000 tokens per second as the sensitivity range. The lower bound corresponds to smaller batches or longer contexts; the upper bound corresponds to high batch sizes, smaller models, or more aggressive quantization. This range comes from judgment based on example configurations, not from any published benchmark. Before making actual decisions, run a load test on your own hardware and model.
4. How Many Tokens per Kilowatt-Hour
Output tokens (decode) are generated autoregressively, one at a time. The energy per output token is:
Energy per output token = 1170 joules/second ÷ 1000 tokens/second = 1.17 joules/token
One kilowatt-hour equals 3.6 million joules (1000W × 3600 seconds). Therefore:
3,600,000 ÷ 1.17 ≈ 3.08 million output tokens per kWh
Input tokens (prefill) are processed in parallel. The example throughput is about 10,000 tokens per second per GPU. At the same power level, the energy per input token is 0.117 joules:
3,600,000 ÷ 0.117 ≈ 30.77 million input tokens per kWh
The per-token energy cost of input and output differs by a factor of 10. This premise drives the cost conclusions in the next section.
5. Converting Energy to Value at API Prices
All prices in this section are example values in US dollars. Pricing points and model tiers are not standardized and are used only to demonstrate the calculation:
- Output side: $50 per million tokens
- Input side: $10 per million tokens
Pure output scenario: 3.08 million × $50/million ≈ $154 per kWh.
Pure input scenario: 30.77 million × $10/million ≈ $308 per kWh.
Mixed scenario with a 3:1 input-to-output ratio. Taking 3 million input tokens and 1 million output tokens as one group:
- Energy: 3M × 0.117 J + 1M × 1.17 J = 1,521,000 joules, approximately 0.4225 kWh
- Value: 3M × $10/M + 1M × $50/M = $80
- Converted: $80 ÷ 0.4225 kWh ≈ $189 per kWh
Sensitivity analysis: Holding other conditions constant, value is proportional to throughput. When throughput moves from 500 to 3,000 tokens per second, the value per kWh shifts from roughly $95 to roughly $570. This is the largest swing and the parameter most in need of real measurement.
PUE has a smaller impact. Lowering PUE from 1.3 to 1.1 increases the value per kWh by about 18%; raising it to 1.5 reduces it by about 13%.
The input-to-output ratio also matters significantly. At a 1:1 ratio, the mixed scenario yields about $168 per kWh; at 10:1, about $231 per kWh. The longer the input, the higher the value per kWh, because input tokens cost one-tenth the energy of output tokens while priced at one-fifth.
Overall, under this article’s example assumptions, the reasonable range for value per kWh is roughly $95 to $570, dominated primarily by the throughput assumption.
6. How Much of Total Cost Is Energy?
At an example industrial electricity rate of $0.10 per kWh, one GPU consuming 1.17 kWh per hour costs about $0.12 per hour in electricity. If the GPU purchase price is $30,000 (example value) depreciated linearly over 5 years, hourly depreciation is about $0.68.
Counting only electricity and depreciation, electricity accounts for roughly 15% of total cost. This figure excludes networking, operations, staffing, and data center rent, so it only demonstrates that energy is not the dominant cost component.
Assuming a single GPU runs at full utilization with all output billed at $50 per million tokens, hourly revenue would be about $180. This is a theoretical ceiling. Actual utilization is far below full load, and actual pricing varies by model and customer, so this number does not represent real profit.
The takeaway: token pricing far exceeds energy costs. The bulk of the cost is hardware capital expenditure and the amortization pressure driven by utilization. As supply increases and inference optimizations advance, token prices may continue to fall.
7. The Main Levers for Energy Efficiency
Several paths can reduce per-token energy consumption:
- Increase throughput: One of the primary levers. Large-batch inference, KV cache management (such as PagedAttention-style methods), quantization, and speculative decoding all improve token output per unit of power.
- Lower PUE: Reducing PUE from 1.3 to 1.1 is equivalent to producing about 18% more tokens per kWh.
- Reduce idle power: GPUs still draw standby power at low load. Reasonable scaling and scheduling can reduce idle waste.
- Choose the right model: For the same task, smaller or distilled models consume less energy per token.
8. Practical Recommendations for Developers
- Compress input length: Input tokens are energy-cheap, but long contexts increase KV cache footprint and time-to-first-token. Apply context trimming and summarization.
- Limit output length: Output tokens cost 10 times more energy per token than input tokens. Explicitly specifying answer length in prompts delivers the most direct savings.
- Tiered routing: Route simple tasks to smaller or distilled models, and invoke large models only for complex tasks.
- Use context caching with caution: Caching repeated prefixes such as system prompts and fixed documents can reduce redundant computation. However, caches must be isolated by tenant, user, or session. If multiple users share the same prefix cache, it can lead to data leakage or unauthorized access. When user privacy or sensitive documents are involved, include identity information in the cache key and set expiration times.
- Watch MFU and batch scheduling for self-hosted inference: With power roughly constant, a 10% improvement in compute utilization reduces per-token energy by about 9%.
9. Conclusion
Under this article’s example assumptions, one kilowatt-hour supports about 3.08 million output tokens or 30.77 million input tokens. At the example API prices, in a mixed scenario with a 3:1 input-to-output ratio, one kWh is worth roughly $189. This figure depends on throughput, PUE, the input-to-output ratio, and pricing — with throughput having the largest impact.
For developers and decision-makers, the more reliable approach is to substitute your own data. First, load-test the target model’s actual throughput; then read your data center’s PUE; finally, recalculate using your real input-to-output ratio and prices. These formulas are hardware-agnostic — switching to a different GPU or model only requires replacing the corresponding power and throughput values.
