Skip to content

Resistor Color Code & LED Resistor Calculator

Decode 4, 5 and 6-band resistor colour codes (IEC 60062) with tolerance and temperature coefficient, or size the series resistor for one or more LEDs.

Calculator Details

Resistance:4.7 kΩ ±5%See results ↓

Read a colour code, or size an LED resistor

Count the coloured rings on the resistor

The band nearest one end

Second significant figure

Power of ten: gold ×0.1, silver ×0.01, pink ×0.001

Usually set slightly apart; gold ±5%, brown ±1%, no band ±20%

Your Results

Resistance: 4.7 kΩ ±5%

Resistance

4.7 kΩ ±5%

4.465 kΩ to 4.935 kΩ

Your resistor

Nominal

4.7 kΩ

Minimum

4.465 kΩ

Maximum

4.935 kΩ

Bands from left: Yellow, Violet, Red, Gold

The bands read 4,700 Ω ±5%: anywhere from 4,465 Ω to 4,935 Ω.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

How the bands read: 4.7 kΩ ±5%
BandColourMeansValue
Band 1YellowDigit 14
Band 2VioletDigit 27
Band 3RedMultiplier×100
Band 4GoldTolerance±5%

47 ×100 = 4.7 kΩ; within tolerance 4.465 kΩ to 4.935 kΩ.

How This Calculator Works

How It’s Calculated

Colour code: R = digits × 10^multiplier, ± tolerance
LED resistor: R = (Vsupply − n × Vf) ÷ I, rounded up to a standard value
Power: P = I² × R

Your calculation: the digit bands read 47, the multiplier is 10^2, so R = 47 × 10^2 = 4.7 kΩ; ±5% gives 4.465 kΩ to 4.935 kΩ.

Frequently Asked Questions

How do I read a resistor colour code?

Hold the resistor with the tolerance band (often gold or silver, and set a little apart) on the right. Read the first two bands (three on a 5- or 6-band resistor) as digits, then multiply by ten to the power of the next band. Yellow-violet-red is 4, 7 and ×100, so 4,700 Ω or 4.7 kΩ.

Which end of the resistor do I start from?

Start from the end the bands are closest to. The tolerance band is usually spaced further from the others, and gold or silver are never first-digit colours. If it is still ambiguous, read it both ways and pick the value that is a standard E12 or E24 number, or measure it with a multimeter.

What does the tolerance band mean?

It is how far the real resistance may be from the marked value. Gold is ±5% and brown ±1%; with no tolerance band the code means ±20%. A 4.7 kΩ ±5% resistor can measure anywhere from 4,465 Ω to 4,935 Ω.

What is the 6th band?

On 6-band resistors the last band is the temperature coefficient: how much the resistance changes per degree, in parts per million per kelvin (ppm/K). Brown is 100 ppm/K, so a 10 kΩ resistor drifts about 1 Ω for each degree Celsius it warms.

How do I calculate the resistor for an LED?

Subtract the LED’s forward voltage from the supply voltage and divide by the LED current in amps: R = (Vs − Vf) ÷ I. With a 5 V supply, a 2 V red LED and 20 mA, R = 3 ÷ 0.02 = 150 Ω. For several LEDs in series, subtract all their forward voltages.

Why round the LED resistor up, not to the nearest value?

A larger resistor means slightly less current, which keeps the LED within its rating and barely changes its brightness. Rounding down could push the current over the datasheet maximum. The calculator picks the next E12 or E24 value up and shows the current you will actually get.

What power rating does the resistor need?

Work out the power it dissipates, P = I² × R, then choose a rating at least twice that so it runs cool. Most indicator LEDs at 20 mA need only a ⅛ W or ¼ W resistor; high-current LEDs or high supply voltages can need ½ W or more.

Can I use one resistor for several LEDs in parallel?

It is not recommended. LEDs of the same type still have slightly different forward voltages, so in parallel one takes more of the current, heats up and fails first. Give each parallel LED (or each series string) its own resistor.

The LED calculation assumes a constant forward voltage; check Vf and the maximum current on your LED’s datasheet. It does not cover constant-current drivers, PWM dimming or high-power LEDs that need a heat sink. Colours on screen are approximate; the band names are given in text.

Colour code: IEC 60062:2016 Marking codes for resistors and capacitors, Table 1 (colour code: significant figures, multiplier, tolerance) and Table 2 (temperature coefficient, ppm/K). Pink (×10⁻³) was added in the 2016 edition.

Standard values: IEC 60063:2015 Preferred number series for resistors and capacitors, E12, E24 and E96 values per decade. E96 (1% tolerance) is 10^(i/96) rounded to 3 significant figures for every i, with no exceptions (unlike E24).

Power ratings: Common through-hole and SMD resistor power ratings (W); the calculator recommends the smallest rating at least twice the dissipated power, a widely used design margin (derating to 50%).

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:

ColourDigitMultiplierTolerance
Black0×1
Brown1×10±1%
Red2×100±2%
Orange3×1,000±0.05%
Yellow4×10,000±0.02%
Green5×100,000±0.5%
Blue6×1,000,000±0.25%
Violet7×10,000,000±0.1%
Grey8×100,000,000±0.01%
White9×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.

  1. Yellow is 4 and violet is 7, so the significant figures are 47.
  2. Red as a multiplier is ×100, giving 4,700 Ω, written 4.7 kΩ or 4K7.
  3. 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:

  1. Voltage across the resistor: 5 − 2 = 3 V.
  2. Resistance: 3 ÷ 0.020 = 150 Ω, which happens to be a standard E12 value.
  3. Power in the resistor: 0.020² × 150 = 0.06 W.
  4. 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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy