Reference

Electronics Fundamentals

Volts, amps, ohms, watts — the four quantities that govern every circuit you'll ever build. This page collects the formulas, calculators, component charts, and design rules of thumb that turn those four quantities into working hardware, in one searchable cheat sheet.

⚠️ Safety Disclaimer & Important Notes

This reference is for educational and hobbyist purposes only. Working with electricity carries real risks — shock, burns, fire, and damage to equipment. Mains voltage (110 V / 230 V AC) and stored energy in capacitors and inductors can be lethal even after a circuit is unpowered. Always verify component ratings, follow local electrical codes, and consult a qualified electrician for anything connected to mains. The site owner is not liable for any injury, damage, or loss arising from the use of this reference.

How to use: jump to a section from the quick-reference wheel, plug numbers into the interactive calculators, or scroll the component charts and reference tables for at-a-glance values. Every formula links back to the underlying law so you can derive the rest yourself.

6 sections Last updated
Abbreviations & Terminology 193 terms

Click any term to see a beginner-friendly explanation. Cross-references inside an explanation open in a stacked modal — Escape closes them one at a time.

Ohm’s Law & Power Quick Wheel

Type any two of the four quantities — voltage V, current I, resistance R, or power P — and the wheel solves for the rest in real time. Click a quadrant to jump to its input, or load an example to see the math in action.

V I · R √(P · R) P ÷ I I V ÷ R P ÷ V √(P ÷ R) R V ÷ I V² ÷ P P ÷ I² P V · I V² ÷ R I² · R
Enter any two values to solve for the rest.

Quantity Magnitudes · V · I · R · P (log₁₀)

Core Formulas & Laws

The algebra behind every circuit on this page. Click Try it on any card to load that formula’s example into the Quick Wheel above.

Ohm’s Law

V = I · R I = V ÷ R R = V ÷ I

The foundational DC relationship — voltage, current, and resistance lock each other in. Every other formula on this page builds on it.

Example A 9 V battery across 100 Ω drives 90 mA through the wire.

Electrical Power

P = V · I P = I2 · R P = V2 ÷ R

How fast a circuit converts electrical energy into heat, light, or motion. One watt is one joule per second.

Example A USB port at 5 V supplying 2 A delivers 10 W — enough to warm a small heater.

Kirchhoff’s Current Law (KCL)

Σ Iin = Σ Iout at every node

Charge can’t accumulate at a node, so all the current entering must leave it. The accounting trick that lets you solve any branched circuit.

Example A node fed by 100 mA from one branch and 50 mA from another has 150 mA flowing out the third leg.

Kirchhoff’s Voltage Law (KVL)

Σ Vloop = 0 Σ Vrises = Σ Vdrops

Walk a closed loop and the voltage rises must equal the voltage drops. Pick a direction, sum the signs — the loop closes back on itself.

Example In a 9 V battery + 6 Ω + 3 Ω series loop, the resistors drop 6 V and 3 V respectively, summing to the 9 V supply.

Resistors in Series

Rtotal = R1 + R2 + … + Rn

Resistors in series share the same current; their resistances add. Voltages divide proportionally to each resistance.

Example 100 Ω + 200 Ω in series with a 12 V supply equals 300 Ω total → 40 mA through the chain.

Resistors in Parallel

1 ÷ Rtotal = 1÷R1 + 1÷R2 + … two-resistor: R = (R1 · R2) ÷ (R1 + R2)

Resistors in parallel share the same voltage; reciprocals add. Currents split inversely with each resistance — the smaller resistor carries more.

Example 100 Ω ‖ 200 Ω = 66.7 Ω. At 5 V the parallel pair draws 75 mA total.

Capacitors in Series

1 ÷ Ctotal = 1÷C1 + 1÷C2 + … opposite of resistors

Series caps store the same charge but split the voltage; their reciprocals add. Useful for raising the working voltage when you only have low-V parts.

Example Two 100 µF caps in series ≈ 50 µF. Charging through 10 kΩ from 12 V draws 1.2 mA at t=0.

Capacitors in Parallel

Ctotal = C1 + C2 + … + Cn

Parallel caps share the voltage and accumulate capacitance — the canonical decoupling stack on every PCB power rail.

Example 10 µF + 100 nF + 1 nF in parallel covers low- to high-frequency noise on a single 5 V supply.

Derivations & Notes
  • Ohm’s Law assumes linear, “ohmic” components. Diodes, LEDs, transistors, and most semiconductors don’t follow it — their V/I curves are non-linear. Treat them with their datasheet equations or a piecewise model instead.
  • The DC power formulas need RMS values for AC. For AC loads, use Pavg = Vrms · Irms · cos φ. The cos φ term is the power factor — reactive loads (motors, transformers, LED drivers) need it explicitly.
  • KCL and KVL hold rigorously at low frequencies. At RF, parasitic capacitance and inductance blur the “node” and “loop” abstractions; above ~10 MHz on a hand-drawn schematic, treat them as approximations and reach for transmission-line or S-parameter models.
  • Series/parallel formulas assume ideal parts. Real resistors carry parasitic inductance; real capacitors carry equivalent series resistance (ESR) and inductance (ESL). Above a few MHz, swap the textbook equations for an RLC equivalent circuit.
  • Capacitor formulas are the opposite of resistors. Reciprocals add in series for caps; values add in parallel. Mnemonic: caps store energy in dielectric area, so adding plate area in parallel = more capacitance.

Interactive Calculators

Plug in any two values and the rest follow. The first calculator is a deeper dive on Ohm’s law — with sliders, V–I curves, and a power-vs-resistance plot — so you can see why the numbers move, not just what they are. More calculators (LED current-limiting, voltage divider, RC time constant…) land in later batches.

Calculator 1 — Ohm’s Law / Power

Enter or drag any two of V, I, R, or P and the rest are computed live. The chart on the left plots your operating point against a family of resistance lines; the chart on the right shows how power scales with resistance at the current voltage.

Voltage (V) volts
Current (I) amperes
Resistance (R) ohms (Ω)
Power (P) watts

V–I Characteristic Curves

Power vs Resistance

Enter any two values to solve.

Calculator 2 — LED Resistor

Pick a supply voltage, an LED color, and the desired forward current. The calculator returns the series resistor you need, snapped to the nearest standard E-series value, and shows the operating point on the LED’s I–V curve.

Supply (VS) volts
LED color quick preset
Forward (Vf) LED voltage drop
Target (ILED) amperes
Calculated R
Nearest E12
Nearest E24

LED I–V Curve · operating point · power shading

Set a supply voltage, color, and target current.

Calculator 3 — Voltage Divider

Two resistors in series across a supply pull a fraction of the input voltage out at their midpoint. Set Vin, R1, and R2 to see the unloaded Vout; add an optional load to see how the output sags under real-world current draw.

Input (Vin) volts
R1 (top) ohms
R2 (bottom) ohms
Rload (optional) 0 = unloaded

Vout vs R2 · load overlay when Rload > 0

Set Vin, R1, and R2 to see Vout.

Calculator 4 — Series / Parallel

Combine two or more resistors or capacitors and read the equivalent value. Resistors and capacitors follow opposite rules: resistors add in series and reciprocate in parallel; capacitors do the reverse.

Component type
Topology

Individual values vs equivalent total

Pick a type and topology, then enter component values.

Calculator 5 — RC Timer / Time Constant

A resistor charging a capacitor follows V(t)=V·(1−e−t/τ), where τ = R·C. After 5τ the cap is essentially full (99.3 %). Drag the sliders, hit Play, and watch the curve fill in.

Supply (V) volts
Resistance (R) ohms (Ω)
Capacitance (C) farads
Time constant τ
5τ (full)
Cutoff freq fc
V(t) at cursor

V(t) · markers at τ (63.2 %) and 5τ (99.3 %)

Set R, C, and V to see the time constant.

Calculator 6 — Battery Charge & Capacity

Real-world battery math: charge time, runtime, capacity from a discharge test, and a voltage → SOC estimator. Linear approximation (skips the CC/CV taper above ~80 %); use the efficiency knob to fold in switching / heat losses.

Quick presets:
What are you calculating?
Battery capacity mAh
Start charge %
Target charge %
Charger spec given as pick one
Charge current amperes
Battery voltage volts (per pack)
Efficiency % (default 85)
Enter capacity, target, charger spec to see how long charging takes.

Visual Component Lab

A hands-on bench: pick colors on a live resistor preview, scan an E-series value cloud sized by popularity, and toggle the tolerance chart on demand. Every panel stays in sync with the dark/light theme and feeds the Quick Wheel above when you find a value worth playing with.

Resistor Color-Code Decoder

Pick the color of each band — the value, tolerance, and tolerance bar update live. The mini-chart below compares this nominal value across every common tolerance grade so you can see how much tighter each step gets.

Number of bands
Quick presets:
1 kΩ ±5% 950 Ω – 1.05 kΩ

E-Series Standard Values

Manufacturers don’t make every possible resistor — they ship preferred values from the IEC 60063 E-series. Each step doubles the previous: E6 for ±20% parts, E12 for ±10%, E24 for ±5%, E96 for ±1%. Type a target value to find the closest preferred match in the active series.

Circuit Design Guides & Practical Tips

Decoupling, pull-ups vs. pull-downs, choosing the right transistor, protecting inputs — the practical rules of thumb that aren’t in a textbook. Filter by tier, or search for a specific topic.

Best practice

Decoupling capacitors are non-negotiable

Place a 100 nF ceramic + 10 µF bulk capacitor as close as possible to every IC’s power pin. The 100 nF handles fast transients; the 10 µF holds the rail steady during current spikes. Skipping decoupling is the #1 cause of mysterious “random” bugs that vanish when you press a finger on the board.

Example An ATmega328P needs decoupling within 10 mm of VCC; otherwise EMI couples into the ADC and you’ll see noisy readings.

Best practice

Pull-ups vs. pull-downs

Floating MCU inputs read random values — you must define a default. Pull-up: input idles high, switch pulls it low. Pull-down: input idles low, switch pulls it high. Use 10 kΩ for general logic, 4.7 kΩ for I²C / 1-Wire (datasheet-specified), 100 kΩ when you need ultra-low quiescent current.

Example AVR / ESP32 / RP2040 all expose internal pull-ups (~30–50 kΩ). Toggle them in software instead of soldering external resistors when the value isn’t critical.

Warning

Power-supply sequencing

Some ICs (FPGAs, DDR memory, mixed-signal chips) require core / IO rails to come up in a specific order — typically core before IO. Wrong order can latch up the chip permanently. Read the Power Sequencing section of every datasheet before you design the supply rails.

Example Xilinx 7-series FPGAs require VCCINT before VCCAUX before VCCO. Violating that order is silent until you ship 100 units that all fail in the field.

Hazard

ESD protection on exposed pins

Anything connected to a connector or human-touchable surface (USB, audio jacks, switches, buttons) needs ESD protection. A 25 kV finger-zap into a bare GPIO will kill the IC every time. Use TVS diodes (e.g. PESD5V0S2UT, USBLC6-2SC6) inline with each exposed signal — 5 V / 8 V / 12 V variants per logic level.

Example USB ports without ESD diodes blow MCUs the first time someone shuffles across carpet and plugs in a cable.

Best practice

BJT vs. MOSFET — which switch?

BJTs (2N3904, BC547) are current-controlled — drive the base with a few mA via a series resistor. MOSFETs (IRLZ44N, AO3401) are voltage-controlled — drive the gate above VGS(th). For switching loads above ~500 mA, prefer MOSFETs: lower RDS(on) means less heat. For analog gain stages, BJTs still rule.

Example Switching a 12 V relay at 50 mA: a 2N7000 logic-level MOSFET works at a 3.3 V gate. A 2N3904 BJT needs ~1 mA base current via a 1 kΩ resistor.

Warning

Reverse-polarity protection

If your circuit might be plugged in backwards (battery clips, screw terminals, barrel jacks), add reverse protection or risk magic smoke. Schottky in series: simple, ~0.3 V drop, fine for low-current loads. P-channel MOSFET (gate to ground via a Zener): near-zero drop, perfect for battery-powered designs.

Example A barrel-jack 12 V supply reversed across an LM7805 instantly cooks the regulator unless you have a 1N5819 or P-FET in the path.

Best practice

Switch debouncing

Mechanical contacts bounce 5–20 ms when toggled, generating dozens of false edges per press. Two clean fixes: RC filter10 kΩ + 100 nF gives a ~1 ms time constant, smooth in hardware. Software debounce — track the last edge time, ignore changes within 20 ms. SPDT switches with a cross-coupled NAND latch produce a perfect bounce-free signal.

Example An Arduino “count button presses” sketch without debouncing will register 5–15 counts for one physical press.

Warning

Heat dissipation & thermal resistance

Power dissipated in a part raises its junction temperature: TJ = TA + (P × θJA). For a TO-220 package, θJA ≈ 50 °C/W without a heatsink. Drop 2 W into one and the junction hits 100 °C above ambient — over TJ(max)=150 °C if your room is over 50 °C. Use heatsinks, copper pours, or larger packages above ~1 W.

Example An LM317 dropping 5 V at 1 A dissipates 5 W. Without a heatsink it would hit 250 °C above ambient — instant smoke. Add a TO-220 heatsink (θHS≈10 °C/W) and it stabilises at 50–60 °C above ambient.

Best practice

PCB trace width for current

PCB traces aren’t superconductors. IPC-2221 rule of thumb (1 oz copper, 10 °C rise): 1 A → 10 mil, 3 A → 30 mil, 5 A → 60 mil, 10 A → 200 mil. For internal layers, double the width. KiCad’s Calculator Tools has IPC-2221 built in.

Example Routing a 5 A motor supply on a 10 mil trace: temperature-rise calc says 60 °C — trace warms enough to melt solder mask near connectors.

Warning

Input protection on MCU GPIO

GPIOs typically tolerate VCC + 0.3 V max. Connecting them to higher-voltage signals or noisy real-world inputs (sensors, motor encoders, automotive busses) requires clamping. Standard recipe: 1 kΩ series resistor + Schottky diodes to VCC and GND. The diodes shunt over- and under-shoots; the resistor limits current through them to safe values (typically ≤ 1 mA into the ESD structure).

Example Reading a 12 V automotive signal directly into a 3.3 V GPIO blows the input the first time the alternator spikes to 18 V.

Best practice

I²C / SPI / UART signal integrity

Each digital interface has its own gotchas. I²C is open-drain — both SDA and SCL must have pull-ups (typically 2.2 kΩ10 kΩ; smaller for fast-mode + long buses, larger for low-power); without them the bus floats and reads garbage. SPI is push-pull, so no pull-ups, but keep CLK runs short (< 15 cm at 4 MHz+) and route MISO/MOSI as a balanced pair; for noisy environments add a 22 Ω series resistor near the driver to round the edges. UART tolerates long wires but breaks if the two endpoints don’t share a common ground; a return-current path through chassis or USB shield counts.

Example An I²C bus that works on the bench but flakes once you add a third sensor needs the pull-ups dropped from 10 kΩ to 4.7 kΩ — the extra device capacitance has slowed the rise time below spec.

Best practice

Linear vs. switching regulator

Pick a linear regulator (LDO) when the input voltage is only a little above the output, the load current is modest (< 500 mA), and you need clean low-noise rails (analog, RF, audio). Efficiency is just Vout / Vin — drop 12 V to 3.3 V at 1 A and you dissipate 8.7 W as heat. Pick a switching regulator (buck for step-down, boost for step-up) when the conversion ratio is large, current is high, or battery life matters; expect 85–95 % efficiency but more switching-noise hygiene (input/output caps, layout, inductor choice).

Example A 5 V → 3.3 V rail at 100 mA is fine on an LDO (170 mW dissipated). A 12 V → 3.3 V rail at 500 mA on the same LDO would dissipate 4.35 W — switch to a buck converter.

⚠ Warning

Inductive kickback — always clamp it

When current through any inductor (relay coil, solenoid, motor, transformer) is suddenly interrupted, the collapsing magnetic field generates a high-voltage spike of opposite polarity to the supply — easily hundreds of volts from a 12 V coil. That spike will instantly destroy the switching transistor or MCU pin that turned the load off. The fix is a flyback diode (e.g. 1N4148 for small coils, 1N4007 for relays) reverse-biased across the inductor — anode to the load’s low side, cathode to the supply rail. For PWM motor drive add an RC snubber across the switch as well.

Example Driving a 12 V automotive relay coil from an MCU through a 2N7000 MOSFET requires a diode across the coil; without it the MOSFET fails on the first switch-off and takes the GPIO with it.

Best practice

LDO selection: dropout, headroom, and Iq

An LDO needs a minimum Vin − Vout headroom (the “dropout” spec) to regulate; below that, the output just follows the input minus the dropout. Classic 7805 needs ~2 V; modern LDOs (e.g. AMS1117 ~1.1 V, MCP1700 ~178 mV at 250 mA) are far better for battery use. Watch quiescent current (Iq) for always-on battery designs — an LDO drawing 5 mA Iq drains a coin cell dead in days, while a low-Iq part (1 µA Iq) lasts years. Always-confirm output capacitor type; many low-quiescent LDOs specifically require a low-ESR ceramic cap to stay stable.

Example Powering an MCU sleeping at 5 µA from a 7805 (Iq = 5 mA) means the regulator wastes 1000× more current than the load. Replace with a low-Iq LDO (e.g. TPS7A02) and battery life jumps from days to years.

Best practice

Crystal load capacitance (CL)

A crystal’s rated frequency is only achieved at its specified load capacitance (CL, typically 8–22 pF). The MCU oscillator pins see two caps to ground (C1, C2) plus stray board capacitance (Cstray, ~3–5 pF for a clean two-layer board). Standard formula: CL = (C1·C2) / (C1+C2) + Cstray. Pick C1 = C2 = 2·(CL − Cstray) as a starting point. Wrong CL shifts the actual frequency tens of ppm — fine for blinking an LED, fatal for precision timing or radio.

Example A 16 MHz crystal spec’d for CL = 18 pF on a board with Cstray ≈ 3 pF needs C1 = C2 = 2 × (18 − 3) = 30 pF. Using the wrong 22 pF caps from another design pulls the frequency off by ~30 ppm and your USB serial drifts.

Reference Tables

SI prefixes, resistor and capacitor markings, wire-gauge ratings, logic thresholds, and battery-cell voltages — the lookup tables that round out the cheat sheet. Switch tables with the tabs, or filter rows live with the search box.

SI prefixes from yotta (1024) down to yocto (10−24) — the units every electrical quantity gets multiplied by.
Prefix Symbol Factor Hobby example
yottaY1024(astrophysics scale)
zettaZ1021
exaE1018
petaP1015
teraT10121 TΩ insulation resistance
gigaG1095 GHz Wi-Fi, 1 GHz scope
megaM10616 MHz crystal, 10 MΩ multimeter input
kilok1031 kΩ pull-up, 1 kV insulation tester
(none)1001 V, 1 A, 1 Ω — the base units
millim10−31 mA LED current, 100 mV ripple
microµ10−6100 µF bulk cap, 10 µA leakage
nanon10−9100 nF decoupling, ns timing
picop10−1222 pF crystal load cap
femtof10−15fs laser pulses
attoa10−18
zeptoz10−21
yoctoy10−24
Last updated Electronics Fundamentals v1.0 · 12 widgets Bug or correction? Open an issue on GitHub.