How this resistor colour code calculator works
Pick the bands and get the value, the tolerance and the range the part is actually guaranteed to fall in. Or go the other way: type a resistance and it gives you the nearest value anyone actually makes, along with the colours to look for. Four, five and six band parts are all handled, including the temperature coefficient band that turns up on precision resistors.
It also tells you something most decoders do not: whether the value you decoded is a real preferred value. If it is not, you have almost certainly misread a band, and that is far more useful than being handed a confident number for a resistor that does not exist.
The code
green 5, blue 6, violet 7, grey 8, white 9
multiplier: the same colours as powers of ten, plus gold ÷10 and silver ÷100
tolerance: brown 1%, red 2%, gold 5%, silver 10%, no band 20%
value = digits × multiplier
A four-band resistor has two digits, a multiplier and a tolerance. A five-band one has three digits for the extra precision that tighter tolerances need. A six-band one adds a temperature coefficient in parts per million per kelvin. Gold and silver appear only as multipliers or tolerances, never as digits, which is a useful sanity check when you cannot tell which end to read from.
Worked example
Yellow, violet, red, gold. Yellow is 4 and violet is 7, so the digits give 47. Red as a multiplier is ×100. So the value is 4,700 ohms, written 4.7 kΩ, and gold means ±5%.
That tolerance is the part worth reading properly. The resistor is guaranteed only to lie between 4.465 kΩ and 4.935 kΩ. Measuring the one in your hand tells you about that one and nothing about the next one out of the bag, which is a different draw from the same distribution. If a circuit needs better than the band says, the fix is buying a tighter tolerance, not selecting from a pile.
And notice the value itself: 4.7 kΩ, not 5 kΩ. There is a reason for that, and it is the best thing on this page.
Why 4.7 and 6.8 exist and 5.0 does not
Resistors are not made in round numbers. They are made in E-series preferred values, which are geometric runs through each decade: E24 has 24 values, E12 has 12, E6 has 6. That is why the shelf is full of 4.7 and 5.6 and 6.8 and has never heard of 5.0. Which neighbours you get depends on the series: at 5% tolerance the E24 series does offer 5.1, only 2% from the round number you wanted, but at 10% the E12 series jumps straight from 4.7 to 5.6 and the closest you can buy is 6% away.
The reason is elegant once you see it. The number of steps is chosen so that the tolerance bands of neighbouring values just touch. E24 steps by the 24th root of 10, which is 1.1007, about 10%, and E24 parts are sold at 5% tolerance: each value covers ±5% around itself, so consecutive values butt up against each other with no gap and no overlap. E12 steps by the 12th root of 10, about 21%, and is sold at 10%. E6 steps by about 47% and is sold at 20%.
So the series is not a list of convenient numbers, it is the minimum set that covers every possible resistance exactly once at a given tolerance. Adding more values would be waste, because their tolerance bands would overlap and you would be stocking two parts that can be the same resistor. Removing any would leave a gap that nothing on the shelf can fill. The odd-looking numbers are the answer to an optimisation problem, and they have been since the 1950s.
Reading a real resistor, where it goes wrong
Two practical problems come up constantly, and neither is about the arithmetic. The first is which end to start from. The tolerance band is usually set slightly apart from the rest, and gold or silver is almost always tolerance rather than a digit, so start at the end furthest from it. On a five-band part with no gold or silver anywhere, look for the wider gap before the last band.
The second is that brown, red and orange look alike on a small part under warm light, and so do violet and blue when the part is a bit dusty. This is not a failure of attention; the colours are genuinely close and the bands are two millimetres wide. It is why a multimeter beats an eye, and it is why this page checks whether your decoded value is a real preferred value. A resistor that decodes to something outside the E-series is nearly always a misread band rather than an unusual part, so when you see that warning, go back to the colour you were least sure about.
One last thing worth knowing: a single black band on its own is a zero-ohm link, a wire in a resistor's body used to bridge a gap on a circuit board so the machine that places resistors can place it. It is not a resistor with an unfortunate value, and this page will tell you so rather than reporting nought ohms with a straight face.