Home / Science / Engineering / Energy and power systems / Levelised cost of energy (LCOE)Tool #676

LCOE calculator: levelised cost of electricity with cash flow table and tornado sensitivity chart

Work out the levelised cost of energy of a solar, wind, gas or any other plant from capital cost, fixed and variable O&M, fuel, output loss, discount rate, lifetime and capacity factor, with a yearly cash-flow table, a cost breakdown and a tornado chart. Nothing is uploaded.

Keep it one tap away for everyday use.

Bookmark Levelised cost of energy (LCOE)?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Costs
  2. Discount
  3. LCOE
  4. Tornado
Nothing is uploadedWorks offline once open

Plant

All money in one currency of your choice. The example plants are made-up round numbers to show how the sums work; they are not market prices, study results or agency figures, so put in your own. Capacity factor: average output as a share of full output (solar is often 10 to 30 %, wind 25 to 50 %). Heat rate: fuel energy burned per MWh of electricity (0 for wind, solar and hydro). Use a real discount rate with costs in today's money, or a nominal rate with the cost rise set to inflation.

Levelised cost

What it is made of

Sensitivity (tornado)

Cash flow, year by year

Download

What it does

The levelised cost of energy (LCOE) is the price per MWh at which a power plant would exactly pay back everything it costs over its life, once money in the future is discounted. It lets you compare plants with very different cost patterns: a solar farm that costs a lot up front and almost nothing to run, against a gas plant that is cheaper to build but burns fuel every hour.

LCOE = (capital + Σ discounted yearly costs) ÷ Σ discounted yearly energy

This calculator gives:

  • the LCOE per MWh and per kWh, and a shortcut value from the capital recovery factor;
  • how it splits into capital, fixed O&M, variable O&M and fuel;
  • a tornado chart: the LCOE when each input moves up and down by the same share, biggest effect at the top;
  • the cash flow year by year (energy, each cost, discount factor and present values), as a table and a CSV.

How to use it

  1. Pick an example plant to start from (all made up), then type your own values. Use one currency throughout.
  2. Capital cost is the overnight cost per kW, spent at year 0. Fixed O&M is per kW per year; variable O&M per MWh generated.
  3. Fuel: price per GJ of fuel times the heat rate (GJ of fuel burned per MWh of electricity). Set the heat rate to 0 for wind, solar and hydro.
  4. Capacity factor sets the energy: MW × 8,760 hours × capacity factor in year 1. Output loss lowers it each year (solar panels lose roughly half a percent a year).
  5. Discount rate: use a real rate if costs are in today’s money, or a nominal rate together with a cost rise equal to inflation.

Energy and running costs are counted at the end of each year; there is no build period, tax, subsidy, debt structure or end-of-life cost.

Worked example

The made-up solar farm: 50 MW, 1,000 per kW, 15 per kW per year fixed O&M, no fuel, 22 % capacity factor, 0.5 % output loss a year, 7 % discount rate, 30 years. It makes 96,360 MWh in year 1 and 2,690,676 MWh over its life (1,139,584 MWh discounted). The present value of all costs is 59,306,781, so the LCOE is 52.04 per MWh (0.0520 per kWh): 43.88 from capital and 8.17 from fixed O&M. The capital recovery factor at 7 % over 30 years is 0.08059, and the shortcut LCOE (no output loss) is 49.60. The tornado shows the capacity factor matters most: ±20 % moves the LCOE from 65.05 to 43.37.

The made-up gas plant comes to 71.05 per MWh, of which 46.42 is fuel, so its fuel price and heat rate top the tornado.

FAQ

Why is LCOE not the whole story? It ignores when the energy comes (solar at noon is worth less than power on a winter evening), grid costs and backup. Use it to compare like with like.

Is my data uploaded? No. Everything runs in your browser and works offline.

For study and planning; check real projects with your own quotes and a qualified adviser.

Where the numbers come from

  • Own code: the standard LCOE definition (present value of lifetime costs divided by present value of lifetime energy) and the capital recovery factor, as found in energy economics textbooks.
  • Checked against a separate NumPy calculation on the three example plants and five random input sets (agreement to 1 part in 10 billion), and against the annuity formula when there is no output loss or cost rise.
  • The example plants (solar, wind, gas) are made-up round numbers for fibub, not market prices, study results or agency figures.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Life cycle comparison (LCA lite) #162 Compare two products, such as a reusable and a single-use one, across life stages (materials, manufacturing, transport, use, end of life) with your own emission factors. See the totals for any number of uses, the break-even point, a stacked bar by stage, which input would flip the result, and how sure the answer is when the factors are uncertain. Load flow for small networks #674 Type or open bus and line tables, and solve the AC power flow in per unit by Newton-Raphson or Gauss-Seidel. Get every bus voltage and angle, line flows at both ends, losses and a single-line diagram. Nothing is uploaded. Home battery storage sizing #675 Simulate a home battery hour by hour with your load and solar data (or a made-up template year), sweep battery sizes, and see self-consumption, grid import and export, cycles, backup hours and a recommended size. Nothing is uploaded. Solar PV yield estimator #672 Give a place, the panels' tilt and direction, the system size and losses, and get an hour-by-hour clear-sky year (sun position, Haurwitz clear sky, Erbs split, isotropic sky on the tilted panels), scaled by your own sunshine estimate: yearly and monthly energy, specific yield, capacity factor and the best tilt. Wind turbine energy yield #673 Paste or open wind speed readings (or give Weibull k and c, or a mean speed), correct them to hub height with the power or log law, adjust for air density, and combine with a power curve to get the annual energy production, capacity factor, full-load hours and energy by wind speed. 1D Schrödinger solver #923 Choose a textbook potential, type a formula or draw your own, and get the lowest energy levels and wavefunctions of the one-dimensional Schrödinger equation by the matrix (finite-difference) method, with the exact levels alongside for the box, harmonic oscillator, finite well, Morse, linear and Pöschl–Teller potentials.