Resistor Color Code, Explained
After reading this you can read any 4-band or 5-band resistor by sight, convert a stated resistance back into its color bands, and know how far the real part can drift from the printed number.
What the color code is and why it exists
A resistor is a small cylinder. Printing tiny numbers on a 2 mm body is hard to read and hard to print, so manufacturers wrap colored bands around the body instead. Each color stands for a digit, and the position of the band tells you whether it is a digit, a multiplier, or a tolerance.
Take a common part: yellow, violet, black, red, gold. That decodes to 4, 7, then a multiplier of 10^2, giving 4700 ohms, with a tolerance of ±5%. That is a 4.7 kΩ resistor, one of the most stocked values in the world. By the end of this article you will read that sequence without pausing.
The single fact that makes everything else easy is the digit order. Memorize it once:
Black, brown, red, orange, yellow, green, blue, violet, grey, white map to digits 0 through 9, in that order. The two darkest colors are the smallest numbers; white is 9. Say it out loud a few times and the code stops being a lookup and becomes reading.
When to use the code, and when the part just tells you
Color bands appear on through-hole axial resistors, the ones with a wire lead out each end. If you are working with those, reading bands is the fastest way to sort a drawer of loose parts.
Surface-mount resistors do not use color bands. They use a printed number system instead: three or four digits, or an EIA-96 code. A chip marked 472 means 47 followed by two zeros, so 4700 ohms. Do not try to read colors off an SMD part; there are none.
Precision resistors below about ±1% almost always use the 5-band scheme, because you need a third significant digit to specify them. A 1% resistor of 4.99 kΩ needs three digits (4, 9, 9) plus a multiplier, so a 4-band code cannot express it.
The math behind the bands
For a 4-band resistor the value is two significant digits times a power-of-ten multiplier:
Here d_1 and d_2 are the first two digit bands (0 through 9), and m is the multiplier band read as an exponent. Brown multiplier is 10^1, red is 10^2, and so on. Gold and silver break the pattern: gold is 10^{-1} (×0.1) and silver is 10^{-2} (×0.01), used for values below 10 ohms.
For a 5-band resistor you keep three significant digits:
The extra band d_3 is the third digit. Everything else works the same way. The multiplier is still a power of ten, and the last band is still tolerance.
The tolerance band tells you the guaranteed spread. Gold is ±5%, silver ±10%, brown ±1%, red ±2%, green ±0.5%, blue ±0.25%, violet ±0.1%, grey ±0.05%. The stated resistance is the center; the true part sits somewhere in the band.
A worked example: yellow, violet, black, red, gold
Decoding the default 4-band part
These are the tool's default bands. Work left to right.
- Band 1 is yellow, which is digit
4. - Band 2 is violet, which is digit
7. The two digits form47. - The multiplier band is red, which is 10^2 = 100.
- Multiply: 47 \times 100 = 4700 ohms, written 4.7 kΩ.
- The tolerance band is gold, which is ±5%.
Now the spread. Five percent of 4700 is 0.05 \times 4700 = 235 ohms. So the real part is guaranteed to fall between 4465 and 4935 ohms.
Notice the field defaults set band 3 to black. In 4-band mode the tool ignores band 3, because a 4-band resistor has no third digit. Band 3 only matters when you switch to 5-band mode.
Reading and interpreting the result
The number the calculator returns is nominal. The tolerance band is the honest part of the spec. A resistor sold as 4.7 kΩ ±5% is not defective at 4600 ohms; it is inside its guarantee.
This matters when the circuit is sensitive. In a voltage divider, both resistors carry their own tolerance, and the errors combine. Two ±5% resistors can push the output ratio off by close to 10% in the worst case. If you need tight output, buy ±1% parts and expect them in the 5-band scheme.
The chart below shows the guaranteed window for the worked example. The center bar is the nominal 4700 ohms; the shaded ends are the ±235 ohm limits.
Encoding a value back into colors
Going from a number to bands reverses the math. Suppose you have 4700 ohms and want the 4-band code. Write the value in scientific form with two significant digits: 4.7 \times 10^3 = 47 \times 10^2. The digits are 4 and 7, so yellow and violet. The multiplier exponent is 2, so red. Pick a tolerance band for the last stripe.
Watch the multiplier for small values. To encode 6.8 ohms you write it as 68 \times 10^{-1}. Digits are 6 and 8 (blue, grey) and the multiplier is gold, since gold means ×0.1. This is the only place the gold and silver bands do double duty: they are multipliers here and tolerance in the last position.
| Value | Band 1 | Band 2 | Multiplier |
|---|---|---|---|
| 220 Ω | Red (2) | Red (2) | Brown (×10) |
| 1 kΩ | Brown (1) | Black (0) | Red (×100) |
| 4.7 kΩ | Yellow (4) | Violet (7) | Red (×100) |
| 10 kΩ | Brown (1) | Black (0) | Orange (×1000) |
| 1 MΩ | Brown (1) | Black (0) | Green (×100000) |
Common mistakes
The most frequent error is reading the resistor backwards. Bands are grouped toward one end, with a wider gap before the tolerance band. Put the tolerance band (usually gold or silver) on your right. If you read yellow-violet-red-gold as gold-red-violet-yellow you get a nonsense multiplier, so orientation is the first thing to fix.
Red and brown look alike under warm light, and violet and blue blur together on old parts. When two candidate readings differ by a factor of ten, measure the part with a meter before you trust your eyes. A misread 1 kΩ as 10 kΩ can starve an LED or overheat a transistor.
Another trap is counting bands. A 5-band part read as 4-band shifts every role one place and gives a wildly wrong answer. Count the bands first, then pick the matching mode.
Finally, do not confuse the tolerance band with a fifth digit. On a 5-band resistor the fifth band is still tolerance, not a fourth significant figure. Only the first three bands are digits.
Related tools
Once you know a resistor's value, the next questions are usually about the circuit around it. Use the Ohm's Law Calculator to find the current or power for a given voltage across the part. If the resistor feeds an LED, the LED Series Resistor Calculator picks the value for your supply and LED. For two resistors in a divider, the Voltage Divider Calculator gives the output voltage or the R2 you need. When the resistor sits with a capacitor, the Capacitor Charge Calculator shows the RC time constant and charge curve.
Frequently asked questions
Which end do I start reading from?
Start from the end where the bands are bunched together. The lone band separated by a wider gap is the tolerance band, and it goes last. If the gap is unclear, the tolerance band is often gold or silver, colors that never appear as the first digit.
What does no tolerance band mean?
A resistor with only three bands and no fourth is a ±20% part. That looseness is rare today; almost everything you buy is ±5% or tighter.
Can the multiplier be gold or silver?
Yes. Gold as a multiplier means ×0.1 and silver means ×0.01. You see these on resistors below 10 ohms, such as a 4.7 ohm part coded yellow, violet, gold.
Why do 5-band resistors exist?
They carry three significant digits instead of two, which is required to specify ±1% and tighter values like 4.99 kΩ or 1.21 kΩ. Two digits cannot express those.
My meter reads a different value than the code. Is the resistor bad?
Probably not. Compare the reading against the tolerance window. A 4.7 kΩ ±5% part reading 4560 ohms is well inside its 4465 to 4935 ohm range and is fine.