Resistor Color Code Calculator: Reading Bands and Sizing LED Resistors
By FindMySum · Last reviewed
A resistor color code calculator turns the coloured rings on a through-hole resistor into a value in ohms, along with the tolerance and, on precision parts, the temperature coefficient. This page also does the most common resistor design job in hobby electronics: choosing the series resistor that keeps an LED at a safe current. This article explains the colour code as defined in IEC 60062, walks through the calculator's default examples, and covers the practical points that trip people up.
The colour code
Each colour stands for a digit from 0 to 9, and the same colours double as multipliers:
| Colour | Digit | Multiplier | Tolerance |
|---|---|---|---|
| Black | 0 | ×1 | |
| Brown | 1 | ×10 | ±1% |
| Red | 2 | ×100 | ±2% |
| Orange | 3 | ×1,000 | ±0.05% |
| Yellow | 4 | ×10,000 | ±0.02% |
| Green | 5 | ×100,000 | ±0.5% |
| Blue | 6 | ×1,000,000 | ±0.25% |
| Violet | 7 | ×10,000,000 | ±0.1% |
| Grey | 8 | ×100,000,000 | ±0.01% |
| White | 9 | ×1,000,000,000 | |
| Gold | ×0.1 | ±5% | |
| Silver | ×0.01 | ±10% | |
| Pink | ×0.001 | ||
| No band | ±20% |
Four-band resistors have two digit bands, a multiplier and a tolerance. Five-band resistors add a third digit for more precision. Six-band resistors add a final band for the temperature coefficient, in parts per million per kelvin.
Worked example: the calculator's default
The calculator opens with a yellow, violet, red, gold resistor.
- Yellow is 4 and violet is 7, so the significant figures are 47.
- Red as a multiplier is ×100, giving 4,700 Ω, written 4.7 kΩ or 4K7.
- Gold is ±5%, so the actual resistance can be anywhere from 4,465 Ω to 4,935 Ω.
A five-band resistor with the same value would read yellow, violet, black, brown, brown: 470 × 10 = 4,700 Ω, ±1%.
Which way round?
The bands are printed closer to one end; start reading from that end. The tolerance band is often separated by a slightly wider gap, and gold and silver never appear as the first band. If you still can't tell, both readings can't usually be standard values. A resistor read one way as 4.7 kΩ might read the other way as an unlikely figure, so the standard value is almost always the right answer. When in doubt, measure.
Temperature coefficient
Resistance changes with temperature. The sixth band gives the change in parts per million for each kelvin (or degree Celsius). A brown band means 100 ppm/K: a 10 kΩ resistor warming by 30 °C shifts by 10,000 × 100 × 30 ÷ 1,000,000 = 30 Ω, or 0.3%. That matters in measurement circuits and precision references; for an LED or a pull-up resistor it rarely does.
Sizing an LED resistor
An LED needs its current limited, because above its forward voltage the current rises very steeply. A series resistor takes up the difference between the supply and the LED:
R = (Vsupply − n × Vf) ÷ I
where Vf is the LED's forward voltage, n is the number of LEDs in series and I is the target current in amps.
The calculator's default LED example is a 5 V supply, a red LED with a 2 V forward voltage, and 20 mA:
- Voltage across the resistor: 5 − 2 = 3 V.
- Resistance: 3 ÷ 0.020 = 150 Ω, which happens to be a standard E12 value.
- Power in the resistor: 0.020² × 150 = 0.06 W.
- A rating of at least twice that is 0.12 W, so a common ⅛ W (0.125 W) resistor is enough, and ¼ W gives more margin.
When the exact value isn't standard, the calculator rounds up to the next E12 or E24 value. A 9 V battery driving a 2.1 V LED at 15 mA needs 460 Ω; the next E12 value is 470 Ω, which gives 14.7 mA, a difference you won't see.
Forward voltage depends on colour
Red, orange and yellow LEDs typically have forward voltages around 1.8 to 2.2 V, while blue, white and true green LEDs built on indium gallium nitride sit around 2.8 to 3.4 V. The exact figure varies between manufacturers and with current, so take it from the datasheet. If you only have a rough figure, the resistor value it produces will still be safe as long as you err towards a lower Vf, because a lower Vf leads to a larger resistor and less current.
Strings and supplies
Putting several LEDs in series with one resistor is efficient, since less voltage is wasted in the resistor, but you need a supply comfortably above the total forward voltage. If the supply is only just above it, small changes in supply voltage or LED temperature cause large swings in current. Leave at least a volt or two across the resistor, and for anything above a few hundred milliamps use a constant-current driver instead of a resistor.
More questions
Is there a mnemonic for the resistor colour order?
Many people learn the digits 0 to 9 as black, brown, red, orange, yellow, green, blue, violet, grey, white with a phrase whose first letters match, such as 'Better Be Right Or Your Great Big Venture Goes West'. The middle of the sequence follows the rainbow from red to violet, which makes it easier to remember once the ends are fixed.
How are surface-mount resistors marked if they have no colour bands?
Small SMD resistors use a printed number code instead, also defined in IEC 60062. Three digits mean two significant figures and a multiplier (472 is 47 × 10² = 4.7 kΩ), four digits mean three figures and a multiplier (4701 = 4.70 kΩ), and an R marks the decimal point (4R7 = 4.7 Ω). Precision parts may use the three-character EIA-96 code.
Why are resistor values numbers like 47, 68 and 82 rather than 50 or 80?
They come from the E-series in IEC 60063, where each value is about the same percentage step above the last. In E12 the steps are roughly 21%, so with ±10% parts the tolerance ranges of neighbouring values just about touch, and every resistance in between is covered by some standard part. E24, E48 and E96 do the same for tighter tolerances.
My multimeter reads a different value from the colour code. Is the resistor faulty?
Not necessarily. Check whether the reading falls inside the tolerance range the calculator shows. Measuring a resistor that is still soldered into a circuit also gives misleading results, because other components in parallel lower the reading. Lift one leg out of the board, keep your fingers off both probes, and measure again.
Can I put a resistor on either side of an LED?
Yes. In a simple series circuit the same current flows through every part, so the resistor limits it equally whether it sits on the anode side or the cathode side. What matters is that the LED is the right way round: current flows from anode (the longer leg) to cathode (the flat side of the lens).
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.