Skip to content
Engineering Bible

Results appear as you type. Use the arrow keys to move through them and Enter to open one.

Popular

↑ ↓ moveEnter openEsc close

Energy and renewables formulas

The formulas behind the 11 energy and renewables calculators, on one page you can print or save as a PDF. Each block lists its variables and standard; the heading opens the calculator, with its assumptions and a worked example.

Battery charge time

Charge to put back, and charge the charger must supply:

Q_back = Q_rated × (SoC_target − SoC_now)
Q_in = Q_back / η

Charge time and charge rate:

t = Q_in / I
C-rate = I / Q_rated   (I in A, Q in Ah)

Typical charge efficiency η: flooded lead-acid 85 %, AGM or gel 90 %, lithium-ion 95 %, LiFePO4 97 %, NiMH 70 %.

Electricity cost and energy use

Energy per day of use:

E_day = P × duty × hours per day

Monthly and yearly energy, with the average month of 30.44 days:

E_month = E_day × (days per week / 7) × 30.44
E_year  = E_day × (days per week / 7) × 365.25

Cost:

cost = E [kWh] × price per kWh
1 kWh = 1000 W for one hour = 3.6 MJ
  • P — power while running, W or kW
  • duty — share of the time the load actually draws that power, 0 to 100 %

EV charging time and cost calculator

Energy, time and cost:

E_bat = C × (SoC_end − SoC_start)
E_grid = E_bat / η
P = min(P_charger, P_car)
t = E_grid / P
cost = E_grid × price

Range:

range = E_bat / c
range per hour = P × η / c
  • C — usable battery capacity; SoC — state of charge
  • η — charging efficiency from the grid to the battery
  • P_charger — charger power, volts × amps for AC
  • P_car — onboard charger limit (AC) or maximum DC charging power
  • c — consumption from the battery, in kWh per mile or per km

Heat pump vs gas boiler running cost calculator

Energy and cost for the same heat Q:

E_hp = Q / SCOP,          cost_hp = E_hp × p_elec
E_fuel = Q / η,           cost_boiler = E_fuel × p_fuel
saving = cost_boiler − cost_hp

Break-even COP for cost and for CO₂:

COP_cost = p_elec × η / p_fuel
COP_CO₂ = f_elec × η / f_fuel
  • Q — heat needed per year for space heating and hot water
  • SCOP — seasonal coefficient of performance of the heat pump
  • η — seasonal efficiency of the boiler, gross basis
  • p_elec, p_fuel — prices per kWh of electricity and of fuel
  • f_elec, f_fuel — CO₂ per kWh of electricity and of fuel

Fuel units, EPA heat contents:

1 therm = 100 000 Btu = 29.31 kWh
1 ccf of natural gas = 102 600 Btu = 30.07 kWh
1 US gal of No. 2 heating oil = 138 000 Btu = 40.44 kWh

Inverter size calculator

Loads:

W_run = Σ W_i
S_run = Σ W_i / PF_i
surge = max(W_start,i − W_i)    (one motor at a time)
W_peak = W_run + surge

Inverter and battery:

rating ≥ S_run × (1 + m)   and   rating ≥ W_peak / k_surge
I_dc = W / (V_bat × η)
  • W_i, W_start,i — running and starting watts of each load
  • PF_i — power factor of each load, 1 for heaters, lights and electronics with power factor correction
  • m — design margin; k_surge — the inverter's surge rating as a multiple of its continuous rating
  • V_bat — battery voltage; η — inverter efficiency

mAh to Wh battery capacity

Energy from capacity, and capacity from energy:

E [Wh] = Q [Ah] × V
E [Wh] = Q [mAh] × V / 1000
Q [Ah] = E [Wh] / V
  • Q — capacity, Ah (1 Ah = 1000 mAh)
  • V — nominal voltage, V: lithium-ion 3.6 to 3.7 V per cell, LiFePO4 3.2 V, lead-acid 2.0 V per cell, NiMH 1.2 V
  • E — energy, Wh (1 kWh = 1000 Wh)

Airline limits for lithium-ion batteries carried by passengers (IATA):

up to 100 Wh          allowed in carry-on
over 100, up to 160   airline approval needed
over 160 Wh           not allowed in passenger baggage

Micro-hydro power calculator

Power and net head:

P = ρ g Q H_n η
H_n = H_g − h_f − K v² / (2g)

Friction loss in the penstock:

Darcy–Weisbach:  h_f = f (L / D) v² / (2g),  f from Colebrook
Hazen–Williams:  h_f = 10.67 L Q^1.852 / (C^1.852 D^4.8704)
  • ρ — water density, 1 000 kg/m³; g = 9.81 m/s²; Q — design flow
  • H_g — gross head; H_n — net head at the turbine
  • η — overall efficiency from water to wire
  • L, D — penstock length and inside diameter; v — water velocity; f — Darcy friction factor
  • K — sum of the fitting loss coefficients; C — Hazen–Williams coefficient

Turbine types by net head, from ESHA Table 6.3:

TurbineNet head range
Kaplan and propeller2 to 40 m
Crossflow5 to 200 m
Francis25 to 350 m
Turgo50 to 250 m
Pelton50 to 1 300 m

Solar battery bank calculator

Energy the bank must deliver, and the nominal capacity:

E_bank = E_day × N_days / η_inv
C_nom = E_bank × k_T × (1 + m) / DoD
Ah = C_nom / V_sys

Batteries:

N_series = V_sys / V_bat
N_parallel = ceil(Ah / Ah_bat)
usable energy = N_parallel × Ah_bat × V_sys × DoD / k_T
  • E_day — energy used per day; N_days — days of autonomy
  • η_inv — inverter efficiency, 1 for DC loads
  • DoD — depth of discharge: 50 % for lead-acid, 80 % for LiFePO4 by default
  • k_T — temperature correction factor of IEEE 485, 1.00 at 25 °C (77 °F)
  • m — ageing and design margin
  • V_sys, V_bat — bank voltage and the voltage of one battery; Ah_bat — capacity of one battery

Selected IEEE 485 temperature correction factors for vented lead-acid cells:

TemperatureFactor
−3.9 °C (25 °F)1.52
4.4 °C (40 °F)1.30
10 °C (50 °F)1.19
15.6 °C (60 °F)1.11
21.1 °C (70 °F)1.04
25 °C (77 °F)1.00

Solar panel calculator: how many panels do I need?

What one kilowatt of panels produces in a year, the specific yield:

Y = PSH × 365 × (1 − losses)        kWh per kW per year

System size and number of panels:

P = E × offset / Y
N = P / P_panel, rounded up

Yearly production of the installed panels:

E_out = N × P_panel × Y
  • E — yearly electricity use, from 12 months of bills
  • offset — the share of that use the panels should cover
  • PSH — peak sun hours: the daily solar energy on the panels in kWh/m², averaged over the year
  • losses — temperature, dirt, wiring, inverter and mismatch, about 14 %
  • P_panel — the rated power of one panel at standard test conditions

Solar panel payback calculator

Production and saving in year n:

E_n = E_1 (1 − d)^(n−1),    E_1 = P_kW × Y
S_n = E_n [s p_imp + (1 − s) p_exp] (1 + e)^(n−1) − O&M

Payback and value:

payback: the year in which Σ S_n reaches C_net
NPV = −C_net + Σ S_n / (1 + r)^n
ROI = (Σ S_n − C_net) / C_net
LCOE = (C_net + Σ O&M / (1 + r)^n) / Σ E_n / (1 + r)^n
  • C_net — installed cost less tax credits, rebates and grants
  • P_kW — system size; Y — specific yield in kWh per kW per year
  • d — degradation per year; e — electricity price rise per year
  • s — share of the production used on site; p_imp, p_exp — import and export prices
  • r — discount rate; the IRR is the rate at which the NPV is zero

Wind turbine power calculator

Power and the Betz limit:

P = ½ ρ A v³ Cp,    A = π D² / 4
Cp ≤ 16/27 = 0.593

Rayleigh distribution of the wind speed, mean v̄:

f(v) = (π v / (2 v̄²)) exp(−π v² / (4 v̄²))
P_mean = ∫ P(v) f(v) dv,    E = 8 760 h × P_mean

Idealised power curve and density:

P(v) = 0 below v_in and above v_out;  ½ ρ A v³ Cp up to v_r;  P_r = ½ ρ A v_r³ Cp from v_r to v_out
ρ = p(h) / (R T),  ISO 2533 standard atmosphere
  • ρ — air density, 1.225 kg/m³ at sea level and 15 °C
  • D — rotor diameter; v — wind speed; Cp — power coefficient from wind to electricity
  • v_in, v_r, v_out — cut-in, rated and cut-out speeds
  • capacity factor = P_mean / P_r

Results are estimates. They do not replace the governing code, class or flag requirements, or a check by a competent person.