Resistor Color Code Calculator: 4-Band and 5-Band Values
Choose the colors painted on a resistor and read its resistance, its tolerance and the range the real part can fall in, with the working shown.
For learning and low-voltage classroom projects such as battery-powered breadboard circuits. Mains electricity is dangerous: real wiring follows the local electrical code and is done by a licensed electrician.
This tool runs in your browser. Nothing you type is uploaded or saved, and there is nothing to install or sign up for.
What the painted bands on a resistor tell you
A resistor is a small part that limits how much electricity flows through a circuit. How strongly it does that is its resistance, measured in ohms (symbol Ω). Most through-hole resistors, the kind with two wire legs that push into a breadboard, are too small to print numbers on. Instead they carry colored rings. Each color stands for a digit, a multiplier or a tolerance, and this calculator turns the rings back into a number.
You get the resistance in ohms, a shorter form with a prefix (k for thousand, M for million), the tolerance as a percent and the lowest and highest value a part with that marking may have. An optional box adds up a handful of resistors in series and in parallel.
Reading a resistor off the breadboard, step by step
- Count the rings and tap 4 bands or 5 bands.
- Turn the resistor so the ring that sits a little apart from the others, often gold or silver, is on the right. That ring is the tolerance band and is read last.
- Starting from the left, set Band 1 and Band 2 (and Band 3 on a 5-band part) to the colors you see. The drawing above the menus repaints itself so you can compare it with the part in your hand.
- Set the Multiplier band and the Tolerance band.
- Read the value in the navy panel. Copy result copies it as one line and Reset brings back the starting example.
Worked example: yellow, violet, red, gold
These four colors are on screen when the page opens.
- Yellow is 4 and violet is 7, so the digits are 47.
- Red as the multiplier means × 100:
47 × 100 = 4,700 Ω, written 4.7 kΩ. - Gold as the last band means ±5%. Five percent of 4,700 is 235.
- Lowest value: 4,700 − 235 = 4,465 Ω. Highest value: 4,700 + 235 = 4,935 Ω.
So a meter reading of 4,620 Ω on this part is perfectly normal. If you would like to see how far a measured value is from the marked one as a percent, the percent error calculator does that comparison.
A 5-band example
Switch to 5 bands and choose brown, black, black, brown, brown. The three digits are 1, 0 and 0, which make 100. The brown multiplier is × 10, giving 1,000 Ω or 1 kΩ. The final brown ring is ±1%, so the part lies between 990 Ω and 1,010 Ω.
The color table and the rule behind it
The method is always the same: write down the digits side by side, then multiply by the multiplier.
resistance = digits × multiplier
lowest = resistance × (100 − tolerance) / 100 and highest = resistance × (100 + tolerance) / 100
| Color | As a digit | As a multiplier | As a tolerance |
|---|---|---|---|
| Black | 0 | × 1 | not used |
| Brown | 1 | × 10 | ±1% |
| Red | 2 | × 100 | ±2% |
| Orange | 3 | × 1 k | not on this page |
| Yellow | 4 | × 10 k | not on this page |
| Green | 5 | × 100 k | ±0.5% |
| Blue | 6 | × 1 M | ±0.25% |
| Violet | 7 | × 10 M | ±0.1% |
| Gray | 8 | × 100 M | not on this page |
| White | 9 | × 1 G | not used |
| Gold | none | × 0.1 | ±5% |
| Silver | none | × 0.01 | ±10% |
| No band | none | none | ±20% |
Gold and silver never stand for a digit. As a multiplier they shrink the number instead of growing it: green, blue, gold is 56 × 0.1 = 5.6 Ω. A resistor with only three rings has no tolerance band at all, which is read as ±20%, so that 5.6 Ω part may be anywhere from 4.48 Ω to 6.72 Ω.
Mistakes that give the wrong value
- Reading from the wrong end. Backward, yellow-violet-red-gold would start with gold, which cannot be a digit. When a part has no gold or silver ring, look for the wider gap before the last band.
- Mixing up similar colors. Red, orange and brown look alike under yellow room light, and so do blue, violet and gray. Check under daylight or a white lamp.
- Treating the multiplier as a digit. Brown-black-red is 10 × 100 = 1,000 Ω, not 102 Ω.
- Counting the bands wrong. On a 5-band resistor the third ring is still a digit. Read as a 4-band part, the answer is off by a factor of ten or more.
- Expecting the exact number. The tolerance is the maker’s promise for a new part at room temperature. Heat and age can move the real value a little further.
This page reads the common 4-band and 5-band markings only. A sixth ring (temperature coefficient), tiny surface-mount number codes and a few rarer tolerance colors are not covered, and paint colors on old or overheated parts can be misleading. When the value matters, measure the resistor with a multimeter while it is out of the circuit.
Ideas for the electronics bench and the classroom
Sorting a mixed bag of resistors is a good first lab. Students decode each part here, write the value on a paper strip and then confirm it with a meter. Once the values are known, the optional list box shows what happens when parts are combined: type 100, 220, 470 and it reports 790 Ω in series and about 59.98 Ω in parallel. For the share of the electricity each one carries, the series and parallel resistor calculator goes further.
Knowing the value is usually step one of a bigger job. To choose the part that protects a light-emitting diode, continue with the LED resistor calculator.
To find the voltage across a resistor or the flow through it, use the Ohm’s law calculator.
Two resistors in a row can also split a battery voltage into a smaller one, a trick the voltage divider calculator works out for you.
Small ceramic capacitors use a printed number instead of rings, and the capacitor code calculator decodes those.
All of these sit with the other science and engineering calculators on this site.
The full list of free online tools for class and homework also covers math, conversions and study helpers.
Frequently asked questions
What is the value of a yellow, violet, red, gold resistor?
It is 4,700 ohms, usually written 4.7 k ohms, with a tolerance of plus or minus 5 percent. Yellow and violet give the digits 47, red multiplies by 100, and gold is the tolerance, so the real part lies between 4,465 and 4,935 ohms.
How do I know which end of a resistor to start reading from?
Start from the end where the rings are bunched together. The tolerance band sits slightly apart at the other end and is very often gold or silver, colors that can never be a first digit.
Why do some resistors have five rings instead of four?
A 4-band resistor has two digit bands, a multiplier and a tolerance band. A 5-band resistor has three digit bands, so it can show a more exact value such as 1,000 ohms at plus or minus 1 percent with brown, black, black, brown, brown.
What do gold and silver mean on a resistor?
In the last position gold means a tolerance of plus or minus 5 percent and silver plus or minus 10 percent. In the multiplier position gold means times 0.1 and silver times 0.01, which is how values under 10 ohms are marked.
What if a resistor has no tolerance band?
A resistor with only three bands is read as plus or minus 20 percent. Green, blue, gold with no fourth band is 5.6 ohms and may measure anywhere from 4.48 to 6.72 ohms.
Why does my multimeter show a different value from the color code?
The color code gives the nominal value, and the tolerance band says how far a new part may be from it. A 4.7 k ohm resistor with a gold band is within specification anywhere from 4,465 to 4,935 ohms.
