Estimate AI Model Energy & Water Costs
In this article
This guide shows you how to estimate the energy (electricity) and water costs of running an AI model, whether you're training a large model from scratch or running inference on a deployed model. You'll need basic information about your hardware, usage time, and local utility rates. By the end, you'll have a rough dollar figure for both resources.
What You'll Need
- Hardware specifications: GPU model (e.g., NVIDIA A100, H100, RTX 4090) or CPU type, and their power draw in watts (TDP or measured).
- Total runtime in hours for training or inference (you can estimate from logs or usage monitoring).
- Electricity rate in your region (cost per kWh, found on your utility bill or local average).
- Water usage effectiveness (WUE) for your data center, if known (typical range 0.2–1.0 L/kWh). If unknown, use a default of 0.5 L/kWh.
- Water rate (cost per cubic meter or per gallon) from your water utility.
- Optional: Power Usage Effectiveness (PUE) for the data center (typical 1.1–1.5). If unknown, use 1.2.
Step-by-Step
- Determine the power draw of your hardware. For a GPU, look up its thermal design power (TDP) in watts. For example, an NVIDIA A100 has a TDP of 400W. If you have multiple GPUs, multiply by the count. For CPU-based inference, check the CPU's TDP.
- Estimate the actual power consumption. Hardware rarely runs at 100% TDP. For training, assume 70–80% of TDP; for inference, 30–50% depending on utilization. Multiply TDP by this factor to get average watts.
- Calculate the total energy used by the hardware. Multiply average watts by the total runtime in hours, then divide by 1000 to get kilowatt-hours (kWh). For example: 400W × 0.75 × 100 hours = 30,000 Wh = 30 kWh.
- Adjust for data center overhead. Multiply the hardware energy by the PUE to account for cooling, networking, and other overhead. With PUE 1.2, 30 kWh becomes 36 kWh.
- Calculate electricity cost. Multiply the total kWh by your electricity rate (e.g., $0.15/kWh). 36 kWh × $0.15 = $5.40.
- Estimate water consumption. Multiply the total kWh (including PUE) by the WUE in liters per kWh. 36 kWh × 0.5 L/kWh = 18 liters of water.
- Calculate water cost. Convert liters to your billing unit (1 cubic meter = 1000 liters). 18 L = 0.018 m³. Multiply by your water rate (e.g., $2.00/m³) = $0.036. If billed per gallon, 18 L ≈ 4.76 gallons, at $0.01/gallon = $0.048.
- Add the two costs. Total cost = electricity cost + water cost. In this example, $5.40 + $0.04 = $5.44 for 100 hours of training on one A100.
Common Mistakes
- Using TDP as actual power draw – TDP is a maximum; actual usage is lower. Overestimating leads to inflated costs.
- Forgetting the PUE – Data center overhead can add 20–50% to energy use.
- Mixing up units – Watts vs. kilowatt-hours, liters vs. gallons, and per-hour vs. per-day rates.
- Ignoring idle time – If the GPU is not fully utilized, power draw is lower. Use utilization logs if available.
- Not accounting for cooling water – Some data centers use water for cooling directly, not just for electricity generation. Your WUE should reflect that.
- Using a single rate for all hours – If you have time-of-use electricity pricing, calculate costs per period.
Tips
- For a quick estimate, use the default factors: 75% of TDP for training, 40% for inference, PUE 1.2, WUE 0.5 L/kWh.
- Check your GPU's actual power draw with tools like nvidia-smi (shows current power usage) to get a more accurate number.
- If you're using a cloud provider, they often provide carbon/energy reports – use those instead of estimating.
- For large models, consider the energy for data storage and network transfers – they add a few percent.
- Water usage varies widely by region and cooling technology. Evaporative cooling uses more water; closed-loop chillers use less.
- Remember that training is a one-time cost, but inference runs repeatedly – a model used millions of times can cost more in inference than training.
Troubleshooting
- Your cost estimate seems too high or low – Double-check your power draw factor. If you're unsure, measure with a watt meter or use the GPU's reported average power from monitoring tools.
- You don't know your PUE or WUE – Use industry averages: PUE 1.2 for modern data centers, WUE 0.5 L/kWh. If you're running on your own hardware at home, PUE is 1.0 and WUE is 0 (unless you have water cooling).
- You have mixed hardware – Calculate each type separately and sum the costs.
- Your electricity rate varies by time of day – Split your runtime into peak and off-peak hours and apply different rates.
- You're using a cloud service – You may not know the hardware. Use the provider's published efficiency metrics or estimate based on the instance type's typical power draw.
- Water cost seems negligible – It often is, but if you're in a water-stressed region, the environmental impact matters more than the cost.
Frequently Asked Questions
How accurate is this estimation method?
It's a rough estimate, typically within ±30% of actual costs. Accuracy improves if you have real power measurements and your specific PUE/WUE values.
Does this include the energy to manufacture the hardware?
No, this only covers operational energy and water. Manufacturing a GPU can add a significant carbon footprint, but it's a separate lifecycle cost.
What is a typical WUE for a data center?
It ranges from 0.2 to 1.0 L/kWh. Modern facilities aim for under 0.5. Some use recycled water or air cooling to reduce potable water use.
How do I estimate inference costs for a deployed model?
Measure the average power draw during inference, multiply by the total inference time (number of requests × average latency), then apply the same steps.
Can I use this for CPU-only models?
Yes, just use the CPU's TDP and adjust the factor. CPUs typically run at 50–70% of TDP under load.
Why is water usage important for AI?
Data centers consume water for cooling, and electricity generation often uses water. As AI grows, water use is a sustainability concern, not just a cost.