Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Energy grid lab

Run a power grid for a day: demand by the hour, solar, wind, a battery and power plants in merit order, with price, CO2 and shortfalls.

How to use

  1. Run a day: choose the kind of day and its peak demand, how much solar and wind there is, the battery and the power plants. Press Run the day.
  2. The chart stacks each hour's supply by source; the line is demand. Black shows demand that could not be met.
  3. The table lists every hour: demand, sun and wind, the battery (+ charging, − giving power back), the plants and the price.
  4. Merit order: type the demand left after sun and wind to see which plant sets the price.

Keyboard and touch

TabMove between tabs, boxes and buttons
EnterRun the open tab
TouchEvery control works by tapping

Tips

  • Add solar on a summer day and watch the midday price fall while the evening peak still needs gas: the famous duck curve.
  • Set the battery's discharge level a little below the evening peak so it shaves the most expensive hours.
  • Swap coal for combined-cycle gas and compare the CO2 line: the cost goes up a little, the emissions fall a lot.
  • Cloudy, calm winter evenings are the hard test for any grid: try them before you remove plants.

About this tool

This is a teaching model, not a forecast of any real grid. Demand follows a typical daily shape scaled to your peak. Solar follows a sine curve from 6:00 to 18:00 (cut to 35 % when cloudy); wind follows your capacity factor with a gentle daily swing. Each hour, sun and wind come first. Surplus charges the battery (losses counted on charging) and the rest is thrown away; when the demand left over is above your threshold, the battery gives back as much as its power and charge allow.

Plants are then run cheapest first (the merit order); the hour's price is the running cost of the last plant needed, or 1,000 $/MWh when demand cannot be met. Running costs and CO2 per MWh are rounded typical values (coal 0.95 t, combined-cycle gas 0.37 t, peaking gas 0.55 t); building costs, ramp limits, transmission and reserves are left out. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product