A techno-economic model of the least-cost way to run an always-on, off-grid datacenter on (mostly) renewable power — solar, wind, batteries and a backstop — and of when that costs less than burning gas, across Europe and the US, 2025–2040.
▶ Source code & full methodology on GitHub
What a $/MWh premium means for the cost of compute. Electricity is a minority of a datacenter's bill: for an AI campus, chips and buildings amortise to roughly $500–800 per MWh of electricity consumed (≈$25–35k per kW of IT hardware on a 4–6-year life, plus the facility), so power at Europe's gas price ($122/MWh) is only ~13–20% of the all-in cost of compute. The 70%-renewable premium (+$14/MWh today) therefore raises the cost of compute by ~1–2%; even the full gas-free premium (+$69 today, shrinking to nil as it crosses gas ~2035) raises it ~8–11%. A conventional facility, with cheaper hardware per MWh, faces roughly twice that percentage premium.
The model covers only the choice each new datacenter controls — how cleanly it can be built and at what premium — not sector-wide electricity demand or emissions totals.
AI datacenters use a large and growing amount of electricity. This model asks the narrower question each builder controls: if you pair a new datacenter with its own solar, wind and batteries, how clean can it run, and what does that cost compared with just burning gas?
A datacenter needs power every hour, and sun and wind don't deliver every hour. The bill therefore hinges on the backstop for dark, windless spells (a Dunkelflaute): a gas turbine, which emits, or a clean option — hydrogen, pumped storage, hydro, nuclear. The model finds the least-cost mix and the delivered cost per MWh (LCOE — levelized cost of energy), for Europe and the US, every year to 2040.
The baseline is gas rising $122→$163/MWh as EU carbon prices climb. France's measured wind is poor (capacity factor 0.135), so riding out multi-day winter Dunkelflaute takes heavy overbuild — roughly 10× solar + 9× wind + 6h battery at the 90% target. Moderate renewables are the low-cost portion; the last decile is a premium on a poor-wind hub.
Wind's lulls don't coincide with overcast spells, which is why adding wind raises the achievable winter renewable share. At the same 65% target (2035, EU), the no-wind build delivers $138/MWh vs $99 with wind. Even with wind, a firm battery-only system tops out near ~94% renewable: the last few percent need long-duration storage or hydrogen.
Gas is the lower-cost emitting option; purchasing green H₂ for the same turbine adds ≈$25–30/MWh (a premium that narrows as EU carbon rises); self-produced H₂ — an electrolyser plus tank storage, charged on surplus sun — is the cheaper zero-carbon route. Where terrain allows pumped storage, it firms the same sun+wind for $31–56/MWh less than green H₂ — often the difference between a marginal site and a competitive one.
Firm hydro and geothermal sites skip the firming question entirely. Among sun+wind sites, the cheapest are those whose resource co-locates with pumped-storage terrain (islands and sierras); flat sites fall back on dearer H₂ firming. A 978-cell scan of the whole continent adds: the best build-it-yourself geography is windy coast, not sunny interior — mostly-land coastal cells from the Baltic to Galicia cluster at ~$119–121/MWh, while the part-sea cells (~$95 at onshore prices) really cost ~$158+ once their sea wind is priced at offshore capex. Details in the Geography chapter.
The SMR line is deliberately simple and never part of the optimisation: a linear FOAK→NOAK decline, then flat — no Wright's-Law learning, since there is no deployed fleet to learn from. An $85 NOAK undercuts the EU 90% build (≈$219/MWh in 2040) if NOAK costs materialise — uncertain, given FOAK history — but never approaches the $58 US gas baseline.
At $4/MMBtu, renewables compete with a ~$29/MWh fuel bill, not the $58 all-in gas LCOE — so the pure cost-optimum is ≈0% renewable today and only ~⅓ (solar-only, no battery) by 2040. A clean US datacenter reduces exposure to gas and carbon prices; in Europe it is the cheaper plant.
Battery turnkey prices fell ~31% in 2025 alone. The deployment trajectory behind these projections already leans on the AI clean-power buildout to keep additions growing — so each clean campus pulls the parity years above forward for everyone else.
| Renewable target | 2025 | 2030 | 2035 | 2040 | vs-gas crossover |
|---|---|---|---|---|---|
| 70% | 135 | 119 | 116 | 114 | ~2027 |
| 80% | 174 | 148 | 139 | 134 | ~2033 |
| 85% | 226 | 188 | 172 | 162 | ~2040 |
| 90% | 278 | 237 | 225 | 219 | >2040 |
| Gas baseline | 122 | 131 | 151 | 163 | — |
| Grid + renewable contract (on-grid reference) | 117 | 96 | 86 | 81 | — |
| Gas-free H₂ system | 191 | 166 | 151 | 142 | ~2035 |
| Renewable target | 2025 | 2030 | 2035 | 2040 | vs-gas crossover |
|---|---|---|---|---|---|
| 70% | 83 | 72 | 65 | 60 | >2040 |
| 80% | 89 | 73 | 65 | 60 | >2040 |
| 85% | 100 | 83 | 74 | 68 | >2040 |
| 90% | 137 | 111 | 99 | 91 | >2040 |
| Gas baseline | 58 | 58 | 58 | 58 | — |
| Grid + renewable contract (on-grid reference) | 85 | 69 | 62 | 57 | — |
| Gas-free H₂ system | 142 | 123 | 113 | 106 | — |
The renewable target is the minimum share of the datacenter's yearly energy that must come from solar + wind + battery (the rest is gas). Firm (always-on) workload; gas backup sized to 100% of load. "Crossover" = the first year the build's delivered cost drops below the gas baseline.
output/*_firm_results.json at commit 8ab84d0 (config 40172b07822a49e6) · source on GitHub · licensed CC BY 4.0. Reproduce: make reproduce && make report.