Component guide · Beginner · 4 min read
Resistors Explained
Colour Codes, Ohm's Law and Choosing Values
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A resistor limits the current flowing in a circuit. Its value in ohms (Ω) follows Ohm's law: voltage = current x resistance (V = I x R). Through-hole resistors show their value with coloured bands; for example brown-black-orange-gold is 10 kΩ ±5%. Choose the value from Ohm's law and a power rating at least twice the power it will dissipate.
Key specs at a glance
- Unit
- Ohm (Ω); 1 kΩ = 1,000 Ω; 1 MΩ = 1,000,000 Ω
- Ohm's law
- V = I x R, so R = V / I and I = V / R
- Power
- P = I² x R = V² / R
- Common power ratings
- 1/8 W, 1/4 W (most breadboard resistors), 1/2 W, 1 W and up
- Tolerance
- ±5% (gold band, carbon film), ±1% (brown band, metal film)
- Standard series
- E12 (10% steps), E24 (5%), E96 (1%)
What does a resistor do?
A resistor resists current. In practice that lets you:
Resistor colour code chart
On a 4-band resistor, bands 1 and 2 are digits, band 3 is the multiplier and band 4 is tolerance. On a 5-band resistor, bands 1 to 3 are digits, band 4 the multiplier and band 5 the tolerance. Read from the end with the bands bunched together; the tolerance band is set slightly apart.
| Colour | Digit | Multiplier | Tolerance |
|---|---|---|---|
| Black | 0 | x1 | |
| Brown | 1 | x10 | ±1% |
| Red | 2 | x100 | ±2% |
| Orange | 3 | x1k | |
| Yellow | 4 | x10k | |
| Green | 5 | x100k | ±0.5% |
| Blue | 6 | x1M | ±0.25% |
| Violet | 7 | x10M | ±0.1% |
| Grey | 8 | ||
| White | 9 | ||
| Gold | x0.1 | ±5% | |
| Silver | x0.01 | ±10% |
- Black
- Digit:
- 0
- Multiplier:
- x1
- Brown
- Digit:
- 1
- Multiplier:
- x10
- Tolerance:
- ±1%
- Red
- Digit:
- 2
- Multiplier:
- x100
- Tolerance:
- ±2%
- Orange
- Digit:
- 3
- Multiplier:
- x1k
- Yellow
- Digit:
- 4
- Multiplier:
- x10k
- Green
- Digit:
- 5
- Multiplier:
- x100k
- Tolerance:
- ±0.5%
- Blue
- Digit:
- 6
- Multiplier:
- x1M
- Tolerance:
- ±0.25%
- Violet
- Digit:
- 7
- Multiplier:
- x10M
- Tolerance:
- ±0.1%
- Grey
- Digit:
- 8
- White
- Digit:
- 9
- Gold
- Multiplier:
- x0.1
- Tolerance:
- ±5%
- Silver
- Multiplier:
- x0.01
- Tolerance:
- ±10%
Common values to recognise
| Bands (4-band) | Value | Typical use |
|---|---|---|
| Red, red, brown, gold | 220 Ω | LED on 5 V |
| Orange, orange, brown, gold | 330 Ω | LED on 5 V, WS2812B data line |
| Brown, black, red, gold | 1 kΩ | Transistor base, voltage divider |
| Yellow, violet, red, gold | 4.7 kΩ | I2C pull-ups |
| Brown, black, orange, gold | 10 kΩ | Button pull-up or pull-down, DHT22 data |
| Brown, black, yellow, gold | 100 kΩ | High-impedance dividers, battery monitoring |
- Red, red, brown, gold
- Value:
- 220 Ω
- Typical use:
- LED on 5 V
- Orange, orange, brown, gold
- Value:
- 330 Ω
- Typical use:
- LED on 5 V, WS2812B data line
- Brown, black, red, gold
- Value:
- 1 kΩ
- Typical use:
- Transistor base, voltage divider
- Yellow, violet, red, gold
- Value:
- 4.7 kΩ
- Typical use:
- I2C pull-ups
- Brown, black, orange, gold
- Value:
- 10 kΩ
- Typical use:
- Button pull-up or pull-down, DHT22 data
- Brown, black, yellow, gold
- Value:
- 100 kΩ
- Typical use:
- High-impedance dividers, battery monitoring
Reading SMD resistor codes
Surface-mount resistors use numbers: the first two (or three) digits are the value and the last is the number of zeros. 103 = 10 followed by 3 zeros = 10 kΩ; 4701 = 4.7 kΩ; R marks a decimal point, so 4R7 = 4.7 Ω. Tiny 0402 parts are often unmarked; measure them with a multimeter.
Choosing the power rating
Calculate the power, then pick a rating at least twice as high so the resistor stays cool. Example: an LED resistor of 220 Ω carrying 15 mA dissipates 0.015² x 220 = 0.05 W, so a 1/4 W part is ample. A 10 Ω resistor carrying 0.5 A dissipates 2.5 W and needs a 5 W wire-wound resistor.
Voltage divider formula
Vout = Vin x R2 / (R1 + R2), where R1 connects to Vin and R2 to ground. To read up to 15 V with a 3.3 V ADC: R1 = 39 kΩ and R2 = 10 kΩ give 15 x 10 / 49 = 3.06 V. Keep divider currents small for batteries (100 kΩ range), but not so large that ADC readings become noisy.
Try it: Ohm's law calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Reading the colour bands from the wrong end.
- Using a 1/4 W resistor where the power is over 0.125 W.
- Measuring a resistor while it is still in a powered circuit.
- Using a divider to power something; it only works for signals with tiny currents.
- Forgetting that 5% tolerance means a 10 kΩ resistor may read between 9.5 and 10.5 kΩ.
Frequently asked questions
How do I read a resistor colour code?
Hold the resistor with the tolerance band (gold or silver) on the right. Read the first two bands as digits and the third as the number of zeros. Brown-black-orange = 1, 0, three zeros = 10,000 Ω (10 kΩ).
What resistor do I need for an LED?
R = (supply voltage - LED forward voltage) / current. For a red LED on 5 V at 15 mA: (5 - 2) / 0.015 = 200 Ω, so use the next standard value, 220 Ω.
Does it matter which way round a resistor goes?
No. Resistors are not polarised; either orientation works.
What is a pull-up resistor?
A resistor from a signal pin to the supply that keeps the pin high when nothing drives it low, such as an unpressed button. 10 kΩ is typical; many microcontrollers have internal pull-ups.
What is the difference between carbon film and metal film resistors?
Metal film resistors have tighter tolerance (usually ±1%), lower noise and better temperature stability. Carbon film resistors (±5%) are cheaper and fine for most hobby circuits.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 12 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- IEC 60062 marking codes for resistors and capacitors
- Vishay and Yageo carbon and metal film resistor datasheets
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



