Electrical engineering formulas
The formulas behind the 36 electrical 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.
Basics and electronics
555 timer calculator
Astable, with R1 from the supply to the discharge pin and R2 from the discharge pin to the threshold and trigger pins:
t_H = ln 2 × (R1 + R2) × C ≈ 0.693 (R1 + R2) C
t_L = ln 2 × R2 × C ≈ 0.693 R2 C
f = 1 / (t_H + t_L) ≈ 1.44 / ((R1 + 2 R2) C)
D = t_H / (t_H + t_L) = (R1 + R2) / (R1 + 2 R2)
Monostable, with R1 from the supply to the discharge and threshold pins:
t = ln 3 × R1 × C ≈ 1.1 R1 C
Design from a target frequency f and duty cycle D:
S = R1 + 2 R2 = 1 / (ln 2 × f × C)
R1 = (2D − 1) × S, R2 = (1 − D) × S
- t_H, t_L — time the output is high and low, s
- f — frequency, Hz; D — duty cycle, the share of each period the output is high
- R1, R2 — timing resistors, Ω; C — timing capacitor, F
Air-core coil inductance calculator
Wheeler's formulas, with dimensions in inches and L in µH:
single layer: L = d² N² / (18 d + 40 l)
multilayer: L = 0.8 a² N² / (6 a + 9 b + 10 c)
Long solenoid and current sheet, in SI units:
L = μ0 N² A / l, A = π d² / 4
L_sheet = K × μ0 N² A / l
Turns for a target inductance, single layer:
N = √(L × (18 d + 40 l)) / d
- N — number of turns; d — coil diameter to the wire centres
- l, b — winding length; a — mean radius of a multilayer coil
- c — radial depth of the winding (outer minus inner radius)
- μ0 = 4π × 10⁻⁷ H/m; K — Nagaoka's coefficient, from the ratio d / l
Decibel calculator (dB, dBm, dBV, dBu)
Ratios:
L = 10 log10(P2 / P1) dB = 20 log10(V2 / V1) dB
P2 / P1 = 10^(L/10), V2 / V1 = 10^(L/20)
Absolute levels:
dBm = 10 log10(P / 1 mW), dBW = 10 log10(P / 1 W) = dBm − 30
dBV = 20 log10(V / 1 V), dBµV = 20 log10(V / 1 µV) = dBV + 120
dBu = 20 log10(V / 0.7746 V) = dBV + 2.218
P = V² / R
Adding uncorrelated levels:
L_total = 10 log10(10^(L1/10) + 10^(L2/10) + …)
- P — power, W; V — r.m.s. voltage, V; R — impedance, Ω
- 0.7746 V — the voltage of 1 mW in 600 Ω, √(0.001 × 600)
Filter cutoff frequency calculator (RC, RL, LC)
First-order RC and RL filters, with x = f / f_c:
f_c = 1 / (2π R C) or f_c = R / (2π L)
low-pass: |H| = 1 / √(1 + x²), φ = −arctan x
high-pass: |H| = x / √(1 + x²), φ = 90° − arctan x
Second-order filters, with x = f / f0:
f0 = 1 / (2π √(L C))
Q = √(L / C) / R (series RLC), Q = R √(C / L) (LC with load R)
low-pass: H = 1 / (1 − x² + j x / Q)
high-pass: H = −x² / (1 − x² + j x / Q)
The −3 dB frequency of a second-order filter:
u = [(2 − 1/Q²) + √((2 − 1/Q²)² + 4)] / 2
f_3dB = f0 √u (low-pass), f0 / √u (high-pass)
- R — resistance, Ω; C — capacitance, F; L — inductance, H (entered in µH)
- |H| — output over input voltage; gain in dB = 20 log10 |H|; φ — phase
- Q — quality factor; 0.707 gives the flattest passband
LC resonant frequency calculator
Resonant frequency and the component for a target frequency:
f0 = 1 / (2π √(L C))
L = 1 / ((2π f0)² C), C = 1 / ((2π f0)² L)
Characteristic impedance, quality factor and bandwidth with a series resistance R:
Z0 = √(L / C) = 2π f0 L = 1 / (2π f0 C)
Q = Z0 / R
BW = f0 / Q = R / (2π L)
f1, f2 = f0 × (√(1 + 1/(4Q²)) ∓ 1/(2Q))
Dynamic resistance of a parallel tank at resonance:
R_D = L / (C R) = Q² R
- L — inductance, H (entered in µH); C — capacitance, F
- R — total series loss resistance of the coil and capacitor, Ω
- f1, f2 — the half-power (−3 dB) frequencies
LED series resistor
Series resistor:
R = (V_s − n × V_f) / I
Current with the standard resistor R_std, and powers:
I = (V_s − n × V_f) / R_std
P_R = I² × R_std
P_LED = n × V_f × I
Resistor rating: the smallest standard rating at least twice P_R.
- V_s — supply voltage
- V_f — forward voltage of one LED at the design current
- n — number of LEDs in series
- I — LED current
Ohm's law and electrical power
Ohm's law and the power law:
V = I R
P = V I = I² R = V² / R
From each pair of known values:
V and I: R = V / I, P = V I
V and R: I = V / R, P = V² / R
I and R: V = I R, P = I² R
P and V: I = P / V, R = V² / P
P and I: V = P / I, R = P / I²
P and R: I = √(P / R), V = √(P R)
Conductance is the inverse of resistance:
G = 1 / R (siemens)
- V — voltage across the element, volts (RMS for AC)
- I — current through it, amperes (RMS for AC)
- R — resistance, ohms
- P — power dissipated, watts
PCB trace width calculator (IPC-2221)
IPC-2221 curve fit, solved for the copper cross-section:
I = k × ΔT^0.44 × A^0.725
A = (I / (k × ΔT^0.44))^(1/0.725)
w = A / t, t = 1.378 mil × copper weight in oz/ft²
Resistance, voltage drop and loss of the trace:
R = ρ20 × (1 + α (T − 20)) × L / (w × t)
V = I × R, P = I² × R
- I — current, A; ΔT — temperature rise above ambient, °C
- A — copper cross-section, mil² (1 mil = 0.001 in = 25.4 µm)
- k — 0.048 for outer layers, 0.024 for inner layers
- w — trace width; t — copper thickness; L — trace length
- ρ20 = 1.7241 × 10⁻⁸ Ω·m, α = 0.00393 per °C; T — ambient plus rise
RC time constant and filter
Time constant:
τ = R × C
Charging from 0 towards V_s, and discharging from V_s:
V_C(t) = V_s × (1 − e^(−t/τ))
V_C(t) = V_s × e^(−t/τ)
Milestones: 63.2 % at t = τ, 86.5 % at 2τ, 95.0 % at 3τ, 99 % at 4.6τ, and 99.3 % at 5τ.
Cutoff (−3 dB) frequency of a first-order RC filter:
f_c = 1 / (2π × R × C)
Current at the first instant and stored energy:
I₀ = V_s / R, E = ½ × C × V_s²
Resistor colour code
The colour code (IEC 60062):
black 0, brown 1, red 2, orange 3, yellow 4, green 5, blue 6, violet 7, grey 8, white 9
Resistance:
4 bands: R = (10 d₁ + d₂) × 10^m
5 or 6 bands: R = (100 d₁ + 10 d₂ + d₃) × 10^m
Multiplier band m: silver −2, gold −1, then the digit colours black 0 to white 9.
Tolerance band: brown ± 1 %, red ± 2 %, green ± 0.5 %, blue ± 0.25 %, violet ± 0.1 %, gold ± 5 %, silver ± 10 %, no band ± 20 %.
Range within tolerance:
R_min = R (1 − t), R_max = R (1 + t)
Sixth band, temperature coefficient in ppm/K: black 250, brown 100, red 50, yellow 25, green 20, orange 15, blue 10, violet 5, grey 1.
Series and parallel capacitors
Parallel, with the same voltage across each capacitor:
C = C₁ + C₂ + … + Cₙ
Series, with the same charge on each capacitor:
1 / C = 1 / C₁ + 1 / C₂ + … + 1 / Cₙ
two capacitors: C = C₁ C₂ / (C₁ + C₂)
Charge, energy and the voltage on each capacitor in series:
Q = C × V
E = ½ × C × V²
V_i = Q / C_i
- C — capacitance, farads (1 µF = 10⁻⁶ F)
- Q — charge, coulombs (shown in µC)
- E — energy, joules (shown in mJ)
Series and parallel resistors
Series, with the same current through every resistor:
R = R₁ + R₂ + … + Rₙ
Parallel, with the same voltage across every resistor:
1 / R = 1 / R₁ + 1 / R₂ + … + 1 / Rₙ
two resistors: R = R₁ R₂ / (R₁ + R₂)
n equal resistors: R = R₁ / n
Voltage division in series and current division in parallel:
V_i = V × R_i / R_series
I_i = I × (1 / R_i) / (1 / R_parallel)
Voltage divider
Unloaded output:
V_out = V_in × R2 / (R1 + R2)
Bottom resistor for a target output:
R2 = R1 × V_out / (V_in − V_out)
Current and power:
I = V_in / (R1 + R2), P_R1 = I² R1, P_R2 = I² R2
With a load R_L on the output, R2 is replaced by R2 in parallel with R_L:
R2 ∥ R_L = R2 R_L / (R2 + R_L)
Source resistance seen from the output (Thévenin):
R_th = R1 ∥ R2 = R1 R2 / (R1 + R2)
Power conversions
Amps to kW
Real, apparent and reactive power:
three-phase: P = √3 × V × I × cos φ, S = √3 × V × I
single-phase: P = V × I × cos φ, S = V × I
DC: P = V × I
Q = S × sin φ = √(S² − P²)
- I — line current, A
- V — voltage, V (line-to-line for three-phase)
- cos φ — power factor
Amps to watts
Power from current:
DC: P = V × I
single-phase: P = V × I × cos φ
three-phase: P = √3 × V × I × cos φ
Apparent power:
S = P / cos φ
- I — current, A
- V — voltage, V (line-to-line for three-phase)
- cos φ — power factor (1 for resistive loads)
kVA to amps
Three-phase, with the line-to-line voltage:
I = S / (√3 × V)
S = √3 × V × I
Single-phase:
I = S / V
S = V × I
Active and reactive power at a power factor cos φ:
P = S × cos φ
Q = S × sin φ = S × √(1 − cos² φ)
- S — apparent power, VA (1 kVA = 1000 VA)
- V — voltage, V (line-to-line for three-phase)
- I — line current, A
kVA to kW
Real and reactive power from apparent power:
P = S × cos φ
Q = S × sin φ = S × √(1 − cos² φ)
Rated line current:
three-phase: I = S / (√3 × V)
single-phase: I = S / V
- S — apparent power, kVA
- P — real power, kW
- cos φ — power factor of the load
kW to amps
Electrical input power:
P_in = P (electrical load)
P_in = P_shaft / η (motor nameplate)
Current:
three-phase: I = P_in / (√3 × V × cos φ)
single-phase: I = P_in / (V × cos φ)
DC: I = P_in / V
Apparent power:
S = P_in / cos φ
- V — voltage, V (line-to-line for three-phase)
- cos φ — power factor (motors about 0.8 to 0.9 at full load)
- η — motor efficiency (IE3 motors about 0.89 at 5 kW to 0.95 at 100 kW)
kW to kVA
The power triangle:
S = P / cos φ
Q = S × sin φ = √(S² − P²)
Line current:
three-phase: I = S / (√3 × V)
single-phase: I = S / V
- P — real power, kW
- S — apparent power, kVA
- Q — reactive power, kvar
- cos φ — power factor of the whole load
Watts to amps
Current from power:
DC: I = P / V
single-phase: I = P / (V × cos φ)
three-phase: I = P / (√3 × V × cos φ)
Apparent power:
S = P / cos φ
- P — real power, W
- V — voltage, V (line-to-line for three-phase)
- cos φ — power factor: 1 for heaters and kettles, about 0.8 to 0.9 for motors
Wires, cables and protection
Breaker size calculator
Load current from power:
DC: I_b = P / V
single-phase: I_b = P / (V × cos φ)
three-phase: I_b = P / (√3 × V × cos φ)
NEC minimum rating, for continuous and non-continuous loads:
I_min = 1.25 × I_continuous + I_noncontinuous
IEC coordination of the breaker and the cable:
I_b ≤ I_n ≤ I_z
- I_b — design (load) current; I_n — rated current of the breaker; I_z — ampacity of the cable
- NEC standard ratings (240.6(A)): 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100, 110, 125, 150, 175, 200 A and up
- IEC preferred ratings (IEC 60898-1): 6, 8, 10, 13, 16, 20, 25, 32, 40, 50, 63, 80, 100, 125 A, then 160, 200, 250, 315, 400 A and up
Cable short-circuit withstand
k factor: k = K √ln((θf + β)/(θi + β)) (K = 226, β = 234.5 °C copper; 148, 228 °C aluminium)
Adiabatic limit: I² t ≤ k² S², t_max = (k S / I)², S_min = I √t / k
Hot resistance: R(θ) = R20 (β + θ)/(β + 20)
Loop impedance: Zs = Ze + R1 + R2
Fault current: If = c U0 / Zs
- θi, θf — maximum operating and short-circuit temperatures; R1, R2 — line and protective conductor resistances over the cable length.
Cable sizing and voltage drop
Conductor resistance per unit length:
R'₂₀ = IEC 60228 Table 2 value for the size (Ω/km), or ρ₂₀ / A for a non-standard size
R'_T = R'₂₀ [1 + α (T − 20)]
- ρ₂₀ — resistivity at 20 °C: copper 1.7241 × 10⁻⁸ Ω·m, aluminium 2.8264 × 10⁻⁸ Ω·m
- α — temperature coefficient: copper 0.00393/K, aluminium 0.00403/K
- T — conductor temperature, °C (70 for PVC, 90 for XLPE at full load)
Voltage drop (L one-way route length):
R = R'_T L / 1000, X = X' L / 1000 [Ω]
DC: ΔU = 2 I R
Single-phase: ΔU = 2 I (R cos φ + X sin φ)
Three-phase: ΔU = √3 I (R cos φ + X sin φ) (line-to-line)
ΔU% = 100 ΔU / U_nominal
Power loss:
P_loss = n I² R, n = 2 (DC, single-phase) or 3 (three-phase)
Minimum size: the smallest IEC 60228 standard cross-section whose ΔU% ≤ allowed drop.
Conduit fill calculator (NEC)
Total conductor area and percent fill:
A_wires = Σ n_i × A_i
fill = A_wires / A_conduit
The fill must not exceed the NEC Chapter 9 Table 1 limit:
1 conductor: 53 %
2 conductors: 31 %
3 or more conductors: 40 %
nipple ≤ 24 in: 60 % (Note 4)
Most conductors of one size:
N = 0.40 × A_conduit / A_wire, rounded down, or up when the decimal is 0.8 or more (Note 7)
- n_i, A_i — number and area of each wire size, from Chapter 9 Table 5
- A_conduit — total inside area of the conduit, from Chapter 9 Table 4
Wire size calculator (AWG and mm²)
Voltage drop of a circuit of one-way length L:
DC and single-phase: ΔV = 2 × I × L × R′
three-phase: ΔV = √3 × I × L × R′
Resistance per metre of a conductor of area A at temperature T:
R′ = ρ20 × (1 + α (T − 20)) / A × k_s
Minimum area for an allowed drop ΔV_max = p × V:
A_min = b × I × L × ρ(T) × k_s / (p × V)
- b — 2 for DC and single-phase, √3 for three-phase
- I — load current; L — one-way length; V — supply voltage; p — allowed drop as a fraction
- ρ20, α — copper 1.7241 × 10⁻⁸ Ω·m and 0.00393 /K; aluminium 2.8264 × 10⁻⁸ Ω·m and 0.00403 /K
- k_s — 1.02 for stranded wire (ASTM B8), 1 for solid
The result is the smallest AWG size and the smallest IEC 60228 metric size with at least A_min.
Power systems and machines
Battery capacity and runtime
Load current (DC, or AC through an inverter of efficiency η_inv):
I = P / (η_inv V)
Peukert's law (capacity C rated over H hours, exponent k):
t_empty = H (C_derated / (I H))^k, C_derated = C × derating
effective capacity = I t_empty
runtime = DoD × t_empty
Ah removed = I × runtime
Required rated capacity for a target runtime t_target:
C = I H (t_target / (DoD H))^(1/k) / derating
Energy and recharge:
E_nominal = V C, E_usable = V × Ah removed
Ah to recharge = Ah removed / η_charge, t_recharge (bulk) = Ah to recharge / I_charger
C-rate = I / C
Typical presets: flooded lead-acid k 1.25, DoD 50 %, charge efficiency 85 %; AGM k 1.12; gel k 1.15; LiFePO4 k 1.03, DoD 80 %, 97 %; NiCd k 1.10, DoD 80 %, 80 %.
Generator load sharing with droop
Droop line: f = f_nl − D f_r P / P_r
Load on a set: P = P_r (f_nl − f) / (D f_r)
Bus frequency: f = (Σ c_i f_nl,i − P_load) / Σ c_i, c_i = P_r,i / (D_i f_r)
Proportional share: P_load × P_r,i / Σ P_r
- f_nl — no-load frequency setting; D — droop as a fraction; f_r — rated frequency; P_r — rating.
Generator load, kVA and fuel
Ratings and load:
P_set = S_rated × pf_rated rated kW of one set
P_installed = n × P_set
S_load = P_load / pf_load, I = S_load / (√3 V)
load % (kW) = P_load / P_installed, load % (kVA) = S_load / (n S_rated)
Redundancy and set count:
N−1 load % = P_load / ((n − 1) P_set)
n_recommended = ceil( P_load / (band_max × P_set) )
Fuel, cost and emissions:
SFOC(load) = SFOC₁₀₀ × f(load) f: 1.00 at 100 %, 1.02 at 75 %, 1.10 at 50 %, 1.27 at 25 %, linear between
fuel/h = P_load × SFOC(load)
fuel over the period = fuel/h × hours, cost = fuel × price, CO₂ = fuel × C_F
- S_rated — kVA rating of each set; pf_rated — alternator rated power factor (0.8); C_F — IMO carbon factor of the fuel
Generator size calculator
Running load and starting surge:
W_run = Σ W_running
surge = max(W_starting − W_running) motors starting one at a time
surge = Σ (W_starting − W_running) all starting together
W_peak = W_run + surge
Minimum ratings:
running rating ≥ W_run / k_max
starting rating ≥ W_peak
standby kVA = running rating / 0.8
- W_running, W_starting — running and starting watts of each load, from the nameplate or manual
- k_max — the highest share of its rating you want the generator to run at, 80 % by default
- 0.8 — the power factor at which standby generators are rated (ISO 8528-1)
Lighting design (lumen method)
K = L W / (h_m (L + W)) room index (h_m above the working plane)
N = E A / (Φ UF MF) luminaires for the maintained illuminance E
E_achieved = N Φ UF MF / A, E_initial = E_achieved / MF
SHR = max(spacing) / h_m ≤ SHR_max uniformity criterion
power density = N P / A, energy = N P × hours
Typical UF (direct luminaire, ceiling/walls/floor 70/50/20): K 1.0 → 0.45, 1.5 → 0.54, 2.0 → 0.59, 3.0 → 0.65, 5.0 → 0.70 (darker surfaces 10–15 % less). MF 0.8 clean, 0.67 dirty, 0.9 sealed LED in clean rooms. EN 12464-1: offices 500 lx, drawing 750, corridors 100, rough workshop 300, fine bench work 500; engine rooms 200 lx.
Motor starting current and voltage dip
I_n = P / (√3 V η cos φ), S_start = √3 V I_n × m
m: DOL = LRC, star-delta = LRC/3, autotransformer = LRC a², soft starter = current limit, drive ≈ 1.0–1.5
generator: dip = X s / (1 + X s), s = S_start / S_gen, X = X'd (conservative) or X''d
network: dip = S_start / (S_sc + S_start)
T_start / T_n = LRT × (1, 1/3, a², (limit/LRC)²) × (1 − dip)² (drive: ≈ current multiple)
Dip limits: ISO 8528-5 G1 −25 %, G2 −20 %, G3 −15 % (standard load steps); IACS UR E5 a.c. transient ±20 % with recovery in 1.5 s.
Power factor correction
Q_c = P (tan φ₁ − tan φ₂) tan φ = √(1 − cos²φ)/cos φ
C = Q_c / (3 ω V²) (delta), C = Q_c / (ω V²) (star), ω = 2π f
S = P / cos φ, I = S / (√3 V), released = S₁ − S₂
loss reduction = 1 − (cos φ₁ / cos φ₂)²
h_r = √(S_sc / Q_c), f_r = h_r f parallel resonance with the supply
detuned: h_t = 1/√p, capacitor voltage V/(1 − p)
Short-circuit current (IEC 60909)
I_k″ = c U_n / (√3 Z_k), Z_k = √(R_k² + X_k²)
network: Z_Qt = 1.10 U_n² / S_kQ″, X_Q = 0.995 Z_Qt, R_Q = 0.1 X_Q
transformer: Z_T = u_kr U_n²/S_rT, R_T = P_krT U_n²/S_rT², X_T = √(Z_T² − R_T²), K_T = 0.95 c_max/(1 + 0.6 x_T)
cable: R_C = R′ L / n, X_C = X′ L / n; for the minimum current R_C,θ = R_C [1 + 0.004 (θ_e − 20)]
κ = 1.02 + 0.98 e^(−3 R_k/X_k), i_p = κ √2 I_k″
m = (e^(4 f T_k ln(κ−1)) − 1)/(2 f T_k ln(κ−1)), I_th = I_k″ √(m + 1)
I_k,min″ = c_min U_n / (√3 Z_k,θ)
Voltage factors (Table 1): LV systems +6 % c_max 1.05 / c_min 0.95; LV +10 % 1.10 / 0.95; MV and HV 1.10 / 1.00.
Solar PV array and storage sizing
P_array = E_day / (PSH × η_sys) × (1 + margin)
modules = strings × N_series, strings = ceil(P_array / (N_series P_module))
E_yield = P_installed × PSH × η_sys
V_oc,cold = N_series V_oc (1 + 0.003 (25 − T_min)) ≤ V_controller,max
I_controller = P_installed / V_bat × 1.25 (MPPT) or strings × I_sc × 1.25 (PWM)
C_bank = E_day × days / (DoD × η_inverter), Ah = C_bank / V_bat, usable = C_bank × DoD
I_charge,avg = E_yield / PSH / V_bat, recharge days = usable / (E_yield − E_day)
P_inverter = P_peak × 1.25, I_DC = P_peak / (η_inv V_bat)
Typical values: η_sys 0.70–0.80; DoD 50 % lead-acid, 80 % LiFePO4; autonomy 2–3 days (5+ for critical loads); PSH from the site's irradiation data for the array tilt.
Three-phase power and motor current
Power triangle (V line-to-line for three-phase, I line current):
Three-phase: S = √3 V I, Single-phase: S = V I, DC: P = V I
P = S cos φ, Q = S sin φ = √(S² − P²), φ = acos(pf)
Current from power:
I = P / (√3 V cos φ) (three-phase), I = P / (V cos φ) (single-phase), I = P / V (DC)
Motor from nameplate:
P_in = P_shaft / η, I_FL = P_in / (√3 V cos φ), losses = P_in − P_shaft
I_start = k × I_FL, S_start = √3 V I_start
Power-factor correction:
Q_c = P (tan φ₁ − tan φ₂), I_after = P / (√3 V cos φ₂)
Generator apparent power drawn = S.
- η — motor efficiency at rated load; k — starting current multiple (DOL 6–8, star-delta ≈ 1/3 of that, soft starter 2–4, VFD 1–1.5)
Transformer size calculator (kVA)
S = P / cos φ, S_req = S (1 + g) / k_load → next standard rating S_r (IEC R10: 25 … 5 000 kVA; ANSI: 15 … 10 000 kVA)
I_HV = S_r/(√3 U_HV), I_LV = S_r/(√3 U_LV), x = S/S_r
u_r = P_k / S_r, u_x = √(u_k² − u_r²)
ε = x (u_r cos φ + u_x sin φ) + x² (u_x cos φ − u_r sin φ)² / 2 (per unit; sin φ > 0 lagging)
U_LV,load = U_LV (1 − ε)
P_loss = P_0 + x² P_k, η = P/(P + P_loss), x_η,max = √(P_0/P_k)
I_sc ≈ I_LV / u_k
Results are estimates. They do not replace the governing code, class or flag requirements, or a check by a competent person.