Resistor Color Code

Interactive simulation — adjust parameters and watch the visualization update in real time.

Interactive bands

Leads (silver) — tan body — four bands

How it works

Four-band resistors encode two significant digits, a decimal multiplier, and tolerance. Click each band to cycle colors, or enter a target resistance (supports k/M/G suffixes) to snap the bands to the nearest valid 4-band code.

Key equations

R = (10Ā·d₁ + dā‚‚) Ɨ 10^m Ā  (m from multiplier color)