Levelized Cost of Energy Calculator Formula

Understand the math behind the levelized cost of energy calculator. Each variable explained with a worked example.

Formulas Used

Levelized Cost of Energy

lcoe = total_cost / total_energy

LCOE in cents

lcoe_cents = total_cost / total_energy * 100

Total Lifetime Cost

total_lifetime_cost = total_cost

Variables

VariableDescriptionDefault
capital_costTotal Capital Cost(USD)50000
annual_output_kwhAnnual Energy Output(kWh)10000
annual_opexAnnual Operating Cost(USD/yr)500
lifetime_yearsProject Lifetime(years)25
total_costDerived value= capital_cost + annual_opex * lifetime_yearscalculated
total_energyDerived value= annual_output_kwh * lifetime_yearscalculated

How It Works

Levelized Cost of Energy (LCOE)

LCOE is the average cost per unit of energy over the entire lifetime of a generating asset, allowing fair comparison between different energy sources.

Simplified Formula

LCOE = (Capital Cost + Lifetime Operating Costs) / Lifetime Energy Output

A full LCOE includes discounting future costs and energy, but this simplified version gives a useful first approximation. Lower LCOE means cheaper energy.

Worked Example

A $50,000 solar system produces 10,000 kWh/year with $500/year maintenance over 25 years.

capital_cost = 50000annual_output_kwh = 10000annual_opex = 500lifetime_years = 25
  1. 01Total cost = $50,000 + ($500 x 25) = $62,500
  2. 02Total energy = 10,000 x 25 = 250,000 kWh
  3. 03LCOE = $62,500 / 250,000 = $0.25/kWh
  4. 04That is 25 cents per kWh