Skip to content

Reference chart

Electronics formulas cheat sheet

Print it: Ohm's law and power cheat sheet (PDF: A4 · US Letter)

Print it: Electronics formulas cheat sheet (PDF: A4 · US Letter)

Every formula the lessons teach, on one page. Each one says what it gives you and links to the guide that explains it, plus a calculator where there's one to do the sum for you.

The basics

FormulaWhat it givesLearn it
V = I × RThe voltage across a resistor (Ohm's law)guide · calculator
I = V ÷ RThe current a voltage pushes through a resistanceguide · calculator
R = V ÷ IThe resistance that sets a currentguide · calculator
V = mA × kΩOhm's law in milliamps and kilohms, with no conversionsguide
P = V × IPower, in wattsguide · calculator
P = I² × RPower from current and resistanceguide · calculator
P = V² ÷ RPower from voltage and resistanceguide · calculator
1 A = 1 coulomb per secondWhat one amp meansguide
1 V = 1 joule per coulombWhat one volt meansguide
R = (Vsupply − VLED) ÷ IThe series resistor for an LEDguide · calculator
R = (Vsupply − n × VLED) ÷ IOne resistor for n LEDs in seriesguide · calculator

Series and parallel

FormulaWhat it givesLearn it
Rtotal = R1 + R2 + R3Resistors in seriesguide · calculator
1 ÷ Rtotal = 1 ÷ R1 + 1 ÷ R2 + …Resistors in parallelguide · calculator
R = (R1 × R2) ÷ (R1 + R2)Two resistors in parallel: product over sumguide · calculator
ΣIin = ΣIoutKirchhoff's current law: what flows into a junction flows outguide
ΣVrises = ΣVdropsKirchhoff's voltage law: the drops round a loop add up to the riseguide
Vout = Vin × R2 ÷ (R1 + R2)A voltage divider's outputguide · calculator
I1 = I × R2 ÷ (R1 + R2)How current splits between two parallel resistorsguide
Rth = R1 ∥ R2A divider's Thevenin resistance, seen from its outputguide
VL = Vth × RL ÷ (Rth + RL)The voltage a load gets from a Thevenin equivalentguide
IN = Vth ÷ RthThe Norton current of the same networkguide
Vpack = V1 + V2 + …Cells in series add their voltagesguide

Capacitors and inductors

FormulaWhat it givesLearn it
Q = C × VThe charge on a capacitorguide
E = ½ × C × V²The energy stored in a capacitorguide · calculator
τ = R × CThe RC time constant: 63% charged after one τguide · calculator
V(t) = Vs × (1 − e−t/τ)A capacitor's voltage as it chargesguide · calculator
V = V0 × e−t/τA capacitor's voltage as it discharges: 37% left after one τguide · calculator
V = L × ΔI ÷ ΔtThe voltage a coil makes when its current changesguide
τ = L ÷ RThe RL time constantguide · calculator
Ifinal = V ÷ RThe current an RL circuit settles atguide · calculator
E = ½ × L × I²The energy stored in a coil's magnetic fieldguide

AC, reactance and filters

FormulaWhat it givesLearn it
f = 1 ÷ TFrequency from the periodguide
Vrms = Vpeak ÷ √2 ≈ 0.707 × VpeakThe RMS value of a sine waveguide
P = Vrms² ÷ RAC power in a resistorguide
XC = 1 ÷ (2π f C)A capacitor's reactanceguide · calculator
XL = 2π f LA coil's reactanceguide · calculator
|Z| = √(R² + X²)Impedance: resistance and reactance combinedguide · calculator
fc = 1 ÷ (2π R C)The cutoff of an RC low-pass or high-pass filterguide · calculator
lag = tan⁻¹(f ÷ fc)The phase lag of an RC low-passguide
f₀ = 1 ÷ (2π√(LC))An LC circuit's resonant frequencyguide · calculator
C = 1 ÷ (4π² × f² × L)The capacitor that tunes a coil to fguide
Q = centre frequency ÷ bandwidthThe Q factor of a tuned circuitguide
bandwidth ≈ R ÷ (2π × L)How wide a band a series RLC circuit passesguide
L = R ÷ (2π f) and C = 1 ÷ (2π f R)A speaker crossover's coil and capacitorguide
dB = 10 × log₁₀(Pout ÷ Pin)A power ratio in decibelsguide · calculator
dB = 20 × log₁₀(Vout ÷ Vin)A voltage ratio in decibelsguide · calculator
square = (4 ÷ π) × (sin x + sin 3x ÷ 3 + sin 5x ÷ 5 + …)A square wave as odd harmonicsguide

Diodes and transistors

FormulaWhat it givesLearn it
Vload = Vsupply − VDWhat's left after a diode's forward dropguide
Vpeak out ≈ Vpeak in − 1.4 VA bridge rectifier's output peakguide
ΔV ≈ I ÷ (fr × C)The ripple on a rectifier's smoothing capacitorguide
R = (Vin − VZ) ÷ (Iload + IZ,min)The series resistor for a Zener regulatorguide · calculator
P = VZ × IThe power in a Zener diodeguide · calculator
Vout = V × RLDR ÷ (Rfixed + RLDR)A light sensor (LDR) divider's outputguide
Rfixed ≈ √(Rdark × Rlight)The fixed resistor that gives an LDR divider the widest swingguide
IC = β × IBA transistor's collector current in its active regionguide
RB = (Vcontrol − 0.7 V) ÷ IBThe base resistor for a transistor switchguide
P = I² × RDS(on)The heat in a MOSFET switched fully onguide

Op-amps

FormulaWhat it givesLearn it
Vout = A × (V+ − V−)An op-amp with no feedback: a comparatorguide
V+ = V−The golden rule, with negative feedbackguide
Vout = VinA voltage follower (buffer)guide
G = 1 + Rf ÷ RgA non-inverting amplifier's gainguide · calculator
G = −Rf ÷ RinAn inverting amplifier's gainguide · calculator
Vout = −Rf × (V1 ÷ R1 + V2 ÷ R2)A summing amplifier (mixer)guide
ΔV ≈ Vswing × Rth ÷ (Rth + Rf)The gap between a Schmitt trigger's thresholdsguide
fcorner ≈ GBW ÷ noise gainWhere an amplifier's gain starts to fallguide
fmax = SR ÷ (2π × Vpeak)The fastest full-size sine before slew rate distorts itguide
f ≈ 1 ÷ (2.2 × R × C)A relaxation oscillator's frequency, with its feedback divider at a halfguide

Digital logic

FormulaWhat it givesLearn it
n bits → 2ⁿ patterns, 0 to 2ⁿ − 1How far n bits can countguide · calculator
1011 = 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1 = 11Binary to decimal: add the place valuesguide · calculator
A ⊕ B = Ā · B + A · B̄XOR from AND, OR and NOTguide
NOT (A · B) = Ā + B̄De Morgan's first lawguide
NOT (A + B) = Ā · B̄De Morgan's second lawguide
NAND(A, A) = NOT AA NOT gate from a NANDguide
SUM = A ⊕ B, CARRY = A · BA half adderguide
SUM = A ⊕ B ⊕ CINA full adder's sum bitguide
VOTE = (A AND B) OR (B AND C) OR (A AND C)A 2-out-of-3 majority voterguide
P = D2 ⊕ D1 ⊕ D0An even parity bitguide
Gi = Bi ⊕ Bi+1Binary to Gray codeguide
ones' complement of x = (2ⁿ − 1) − xFlipping every bit of an n-bit numberguide
D = (IN AND LOAD) OR (Q AND NOT LOAD)A register bit with load enableguide
fout = fclock ÷ 2Each flip-flop in a counter halves the frequencyguide
states = 2 × number of flip-flopsHow many states a Johnson counter hasguide

Microcontrollers

FormulaWhat it givesLearn it
duty = value ÷ 255The PWM duty cycle from analogWriteguide
average = duty × VHIGHA PWM pin's average voltageguide
Iavg ≈ duty × IonThe average current through a PWM loadguide
V ≈ reading × 5 V ÷ 1024Volts from an analogRead valueguide
out = (x − fromLow) × (toHigh − toLow) ÷ (fromHigh − fromLow) + toLowWhat map() works outguide
I = (5 − VLED) ÷ (R + 25 Ω)LED current from a 5 V pin, with the pin's own resistanceguide
elapsed = now − startTiming with millis() instead of delay()guide

Sensor signals

FormulaWhat it givesLearn it
filtered = filtered + α × (reading − filtered)An exponential moving averageguide
falias = | f − n × fs |The false frequency an undersampled signal showsguide
fs > 2 × highest frequencyThe Nyquist rule for a true captureguide
error ∝ 1 ÷ √NHow averaging N readings shrinks the noiseguide
value = (reading − offset) ÷ gainA two-point calibrationguide
cutoff ≈ alpha × sample rate ÷ 2πThe corner of a one-line filter in codeguide

Control and PID

FormulaWhat it givesLearn it
error = setpoint − measurementWhat a closed loop works onguide
output = bias + Kp × errorA proportional (P) controllerguide
error = missing push ÷ KpThe steady-state error that P control leavesguide
integral = integral + error × ΔtThe I term's running totalguide
output = Kp × error + Kd × (error − prev) ÷ ΔtA PD controller: the D term damps overshootguide
Kp = 0.6 Ku, Ki = 1.2 Ku ÷ Tu, Kd = 0.075 Ku × TuZiegler-Nichols starting gains for PIDguide
phase lag = 360° × f × TThe lag a dead time T adds at frequency fguide
angle = 0.98 × (angle + gyro × Δt) + 0.02 × accelAngleA complementary filter for a tilt angleguide

Robots and motion

FormulaWhat it givesLearn it
distance = ticks × π × diameter ÷ ticks per turnDistance from a wheel encoderguide
radius = (track ÷ 2) × (L + R) ÷ (L − R)The turn radius of a two-wheeled robotguide
heading = heading + rate × dtHeading from a gyroguide
x = x + d × cos(heading), y = y + d × sin(heading)Position by dead reckoningguide
stopping distance = v² ÷ 2aHow far a robot needs to brakeguide

Power and batteries

FormulaWhat it givesLearn it
runtime = mAh ÷ mABattery life, in hoursguide · calculator
Wh = Ah × VA battery's stored energyguide · calculator
efficiency = Pout ÷ PinHow much power arrives where you want itguide
P = VF × IThe power lost in a diodeguide
Pheat = (Vin − Vout) × IThe heat in a linear regulatorguide · calculator
Vout ≈ Vin × DA buck converter's outputguide · calculator
Vout ≈ Vin ÷ (1 − D)A boost converter's outputguide
ΔI = (Vin − Vout) × D ÷ (f × L)A buck converter's ripple currentguide · calculator
ΔV ≈ ΔI ÷ (8 × f × C)A buck converter's output rippleguide · calculator
Vout ≈ Vpp − 2 × 0.7 VA diode charge pump's outputguide

Wires, PCBs and heat

FormulaWhat it givesLearn it
R = ρ × L ÷ AA wire's resistance from its length and areaguide · calculator
Vdrop = I × RThe volts lost along a wireguide · calculator
R = (length ÷ width) × 0.5 mΩA 1 oz copper trace's resistance, counted in squaresguide · calculator
I = k × ΔT0.44 × A0.725The IPC-2221 current a trace can carrycalculator
Imax = √(P ÷ R)The current one via can carryguide
ΔV = I × t ÷ CHow far a rail dips before the decoupling capacitor runs outguide
R = √(L ÷ C)The termination resistor that stops ringingguide
ΔT = P × θTemperature rise through a thermal resistanceguide · calculator
Tj = Ta + P × (θJC + θCS + θSA)A chip's junction temperature on a heatsinkguide · calculator

Radio

FormulaWhat it givesLearn it
λ = c ÷ f = 300 ÷ f in MHzWavelength, in metresguide · calculator
L ≈ 0.95 × λ ÷ 4A quarter-wave antenna, trimmed about 5%guide · calculator
m = (max − min) ÷ (max + min)AM modulation depthguide
fc − fm and fc + fmWhere AM's sidebands sitguide
sin a × sin b = ½ cos(a − b) − ½ cos(a + b)Why a mixer gives the sum and differenceguide
1 ÷ fcarrier ≪ R × C ≪ 1 ÷ faudioThe RC for an envelope detectorguide
Pmax = V² ÷ (4 × RS) when RL = RSMaximum power transferguide
loss ≈ 20 log₁₀(d in km) + 20 log₁₀(f in MHz) + 32.4 dBFree-space path loss in a link budgetguide

Free lesson

Now build it yourself

Each lesson comes in three short parts: see the idea, try it on a live board, then build it yourself, with quick checks as you go.

Try it yourself: free lesson

“Ohm's law” is lesson 5 of 6 in Copper Flats, Electronics World 1. Free with an account. Lessons unlock in order, so you’ll do the 4 before it first.

Or start from the very first lesson, no account needed

Work it out

The ideas behind it

Questions people ask

What are the most important electronics formulas?

Ohm's law, V = I × R, and power, P = V × I. Between them they size almost every resistor in a beginner circuit: the current it sets, and the watts it has to shed as heat. Most of the other formulas build on these two.

How do I remember the three forms of Ohm's law?

Learn V = I × R and rearrange it. Divide both sides by R to get I = V ÷ R, or by I to get R = V ÷ I. Work in volts, amps and ohms, or in volts, milliamps and kilohms, which give the same answer.

Why doesn't my circuit match the formula exactly?

Formulas assume ideal parts. Real resistors sit anywhere in their tolerance band, batteries sag under load, and diodes drop a little more or less than the round number. Expect a few percent of difference, and check with a multimeter.

More charts