How to Calculate Resistor Values and Color Codes
Learn how to read resistor color codes and calculate resistance values using the standard 4-band and 5-band color code system with real formulas and examples.
Understanding Resistor Color Codes
Resistors use a system of colored bands to indicate their resistance value, tolerance, and sometimes temperature coefficient. The color code was standardized by the IEC 60062 specification and is used universally across through-hole resistors. Each color corresponds to a digit (0–9), a multiplier, or a tolerance percentage. Reading the bands from left to right gives you the resistance in ohms.
The Color-to-Digit Table
The standard mapping is: Black=0, Brown=1, Red=2, Orange=3, Yellow=4, Green=5, Blue=6, Violet=7, Gray=8, White=9. Multiplier bands use the same colors but represent powers of ten — for example, Red as a multiplier means ×100 (10²). Gold represents ×0.1 and Silver represents ×0.01, used for sub-ohm values. Tolerance bands include Gold (±5%), Silver (±10%), Brown (±1%), and Red (±2%).
Reading a 4-Band Resistor
A 4-band resistor has two significant digit bands, one multiplier band, and one tolerance band. For example, Yellow-Violet-Red-Gold reads as: 4, 7, ×100, ±5% = 4,700 Ω ±5%, commonly written as 4.7 kΩ. The formula is: R = (10 × Band1 + Band2) × Multiplier. Always orient the resistor so the tolerance band (usually gold or silver) is on the right before reading.
Reading a 5-Band Resistor
Precision resistors use a 5-band system with three significant digit bands, one multiplier band, and one tolerance band. A Brown-Black-Black-Red-Brown resistor reads: 1, 0, 0, ×100, ±1% = 10,000 Ω ±1%, or 10 kΩ. The formula is: R = (100 × Band1 + 10 × Band2 + Band3) × Multiplier. Five-band resistors are common in precision analog circuits where tight tolerances matter.
Calculating Required Resistance from Ohm's Law
When you need a specific resistance value in a circuit, use Ohm's Law: R = V / I, where V is the voltage across the resistor in volts and I is the current through it in amperes. For example, if you need to drop 9 V across a resistor while allowing 20 mA of current: R = 9 / 0.02 = 450 Ω. Since 450 Ω is not a standard value, you would select the nearest E24 series value of 470 Ω.
Standard Resistor Value Series (E-Series)
Resistors are manufactured in standardized value series: E12 (12 values per decade, ±10% tolerance), E24 (24 values, ±5%), E48 (48 values, ±2%), and E96 (96 values, ±1%). Each series spaces values so the tolerance ranges of adjacent resistors just touch. When your calculated value falls between standard values, choose the nearest E-series value and verify the circuit still operates within acceptable limits.
Power Rating Considerations
Beyond resistance value, resistors have a power rating in watts (commonly 1/8 W, 1/4 W, 1/2 W, 1 W, 2 W). Use the formula P = I²R or P = V²/R to find the power dissipated. For the 470 Ω example above: P = (0.02)² × 470 = 0.188 W, so a 1/4 W resistor is marginal — a 1/2 W resistor is the safe choice. Always derate by at least 50% in high-temperature environments.
Try These Calculators
Put what you learned into practice with these free calculators.
Related Guides
How to Calculate LED Resistor Values
Learn how to calculate the correct current-limiting resistor value for any LED using forward voltage, supply voltage, and desired current with step-by-step examples.
How to Calculate Series and Parallel Circuits
Learn how to analyze series and parallel resistor, capacitor, and inductor circuits. Includes formulas for total resistance, voltage, and current with worked examples.
How to Calculate Voltage Dividers
Learn how to design a resistive voltage divider using the voltage divider formula. Covers output voltage calculation, loading effects, and practical design guidelines.