Code tool

Gas vs Electric Comparison Calculator

Enter useful energy in kWh, efficiencies in percent, and both prices in the same currency per kWh.

In-browser processingNo account requiredPrivacy details ↗

Use the same currency and period for both prices and demand. Demand: 0–1,000,000,000 kWh; prices: 0–1,000,000 per kWh; efficiency: 0.01–100%. Enter your own values; no tariff lookup or fixed charges.

Purchased electricity (kWh): —

Purchased gas energy (kWh): —

Electricity cost (same currency): —

Gas cost (same currency): —

Break-even electricity price (currency/kWh): —

Purchased energy = useful energy ÷ (efficiency / 100). Break-even electricity price = gas price × electric efficiency ÷ gas efficiency.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter useful energy demand and both efficiencies.
  2. Enter electricity and gas prices in the same currency per kWh.
  3. Calculate purchased energy, costs, and the break-even electricity price.

Purchased energy and costs

Purchased energy = useful energy ÷ efficiency. Cost = purchased energy × price. Break-even electricity price = gas price × electric efficiency ÷ gas efficiency.

Scope

Uses only your values. It does not look up tariffs or include fixed charges, taxes, equipment, installation, or maintenance costs.

GOOD TO KNOW

Common questions

What does the break-even price mean?

For positive useful demand, both energy costs are equal at this electricity price. At zero demand both costs are zero at any price.