Resistor Colour Code & Ohm’s Law

Read the coloured bands on a resistor and get its value in ohms. Then work out what it will do in the circuit, using the voltage, current and power that Ohm's law ties together, including whether it is about to get hot.

How to use it

Set the bands in order - two or three digits, then a multiplier, then the tolerance - and the value appears with the range that tolerance allows, which matters more than the nominal figure.

  1. Orient the resistor The tolerance band — usually gold — sits slightly apart at one end. Read from the other end.
  2. Set the colours The strip at the bottom of the result redraws to match, so you can check it against the part in your hand.
  3. Then check the power Fill in the voltage and the tool works out current and watts. Above 0.25 W a standard resistor will run hot.
Full instructions
In depth

Reading resistor colour bands and checking the power with Ohm's law

A resistor's value is printed on it as coloured bands, and this article explains how to read them. It covers four, five and six-band parts, the tolerance range they allow, and the Ohm's law section that tells you whether the part will survive in your circuit.

Screenshot: Bands, values and what happens next
Bands, values and what happens next as it appears when the page opens.

How the colour code works

Every through-hole resistor carries its value as a set of coloured bands painted around the body. The system goes back to the 1920s, when printing tiny numbers on a cylinder was expensive and unreliable. Colours were easier to apply and easier to read from any angle.

The bands fall into groups. The first two or three are digits. After those comes a multiplier band, which tells you what power of ten to multiply the digits by. Last is the tolerance band, which says how far the actual resistance is allowed to stray from the printed value. A four-band resistor has two digits, a multiplier and a tolerance. A five-band part squeezes in a third digit for extra precision.

The calculator lets you set each band's colour from a dropdown. As you change them, it decodes the value and redraws a picture of the part so you can compare it with the one in your hand.

Which end to read from

The tolerance band sits slightly apart from the others, usually at the right-hand end. It is often gold or silver, colours that never appear as a first digit. Read from the other end, where the bands are grouped closely together.

Getting this backwards gives a wildly wrong answer. A brown-black-red-gold resistor is 1, 0, times one hundred, giving one thousand ohms. Read from the wrong end it becomes gold-red-black-brown, which is not a valid sequence at all. The calculator catches invalid digit colours and warns you, but the safest check is always to orient the part correctly before you start.

Four, five and six-band resistors

The Number of bands selector switches between the three common formats. Four bands is the most widely used for general-purpose parts. Two digits, a multiplier, and a tolerance of five per cent (gold) or ten per cent (silver) cover nearly every part in a hobby bin.

Five-band resistors are precision parts. The extra band is a third digit, not a different multiplier. That gives values like 1.00 kilo-ohms instead of the rounded 1 kilo-ohms of a four-band part. Precision resistors typically carry a brown tolerance band, meaning one per cent.

Six-band resistors add a temperature coefficient band that describes how much the value drifts as the part heats up. It matters in precision analogue circuits and almost nowhere else. There is no dropdown for that band here and the drawn strip stops at five, because the coefficient never changes the resistance. Choosing 6 bands gives you the same three-digit reading a five-band part gives, which is the correct answer for the value.

What tolerance actually means

A gold tolerance band means plus or minus five per cent. A silver band means ten per cent. No band at all means twenty per cent, though those are rare today.

The range is wider than most people assume. A one-thousand-ohm resistor with five per cent tolerance is legitimately anywhere from nine hundred and fifty to one thousand and fifty ohms and still within specification. The calculator shows this range clearly: the minimum and maximum values appear beneath the decoded number.

If your circuit needs a tighter value, buy one-per-cent parts rather than hoping a five-per-cent part lands close to the target. The cost difference is small, and measuring every resistor before you solder it is a poor use of an afternoon.

Ohm's law and solving for what you need

Below the band selectors sit three fields: Voltage across it, Current through it, and Resistance. Fill in any two and the calculator works out the rest, including the power in watts.

The resistance field defaults to the value decoded from the bands above, so you can just type the voltage and get the current and power straight away. If you already know the resistance you want and are picking a colour-coded part to match, type the resistance by hand and leave the decoded value aside.

The formula is simple. Voltage equals current times resistance. Power equals voltage times current. But working these out by hand with real circuit values, converting milliamps to amps and checking the units, is where most mistakes happen. The calculator handles the conversion and shows the result in sensible units.

Power is what actually burns a resistor

The value printed on a resistor is rarely the problem. The power running through it is. A standard through-hole resistor is rated at a quarter of a watt. Push more than that through it and it drifts in value, discolours, and eventually fails. At high enough power it can crack or catch fire.

The calculator shows the power alongside the other figures and warns you if it exceeds 0.25 watts. At that point you need a higher-wattage resistor, a different circuit design, or a heatsink. The warning takes two seconds to read and can save a board.

For an LED circuit, a common beginner project, the power through the resistor is usually well below the limit. But once you move to motor drivers, power supplies or audio amplifiers, checking the wattage becomes essential.

Picking a resistor for an LED

This is the most common practical use of the calculator. An LED needs a resistor in series to limit the current, and the right value depends on three things: the supply voltage, the LED's forward voltage, and the current you want.

Subtract the forward voltage from the supply. Divide by the current. That gives the resistance. For a five-volt supply, a red LED with a two-volt drop, and twenty milliamps of current: three volts divided by 0.02 amps gives one hundred and fifty ohms.

Type one hundred and fifty into the resistance field and three into the voltage field. Three is the number that belongs there, not five: the field asks for the voltage across the resistor, and the LED has already taken two of the five volts. The calculator returns twenty milliamps and sixty milliwatts, well inside a quarter-watt part. Put five in that box instead and you get thirty-three milliamps and a hundred and sixty-seven milliwatts, which is the answer to a different question. Set the bands to match and you have your component.

When the colours lie

Colour bands fade over time, especially on parts that have been running warm. Red and orange look nearly identical under warm workshop lighting. Brown and violet can blend when the band is narrow. A multimeter reads the actual value in seconds and settles any argument.

Treat the colour code as a quick identification, not a measurement. If you are building something that matters, measure the part. If you are sorting a bag of loose resistors into bins, the colour code gets you close enough. This calculator works as a cross-check in either case.

Surface-mount resistors use a printed number code instead of colour bands. A three-digit code like 472 means 47 followed by two zeros, which is 4700 ohms. That is a different system entirely and is not covered by this tool, which is built for through-hole parts with painted bands.

Common mistakes and how to avoid them

The most frequent error is reading the bands from the wrong end. If the first band you read is gold or silver, you have it backwards. Gold and silver are only valid as the multiplier or tolerance band, never as a digit. The calculator catches this and shows an error message rather than a wrong answer.

Another common slip is confusing the multiplier with a digit. On a four-band resistor the third band is always the multiplier, not a third digit. On a five-band resistor the third band is a digit, and the fourth is the multiplier. Selecting the wrong number of bands in the calculator leads to a value that is off by a factor of ten or more.

Finally, forgetting to check the power. A circuit that works at low voltage can overheat a resistor at higher voltage, and the same value that was fine in a test rig may burn on the real board. Always fill in the voltage field and glance at the power figure before you solder.

Everything stays on your device

The entire calculation runs in your own browser. No values are sent anywhere. There is no account, no tracking of what parts you look up, and no server involved in the arithmetic.

Your settings are remembered so you do not have to start from scratch each time. That memory lives in this browser on this device only and disappears if you clear your browsing data.

Help

Bands, values and what happens next

Set the bands in order - two or three digits, then a multiplier, then the tolerance - and the value appears with the range that tolerance allows, which matters more than the nominal figure. Underneath, give any two of voltage, current and resistance to get the third, and the power with it: the number that decides whether a quarter-watt part survives.

Orient the resistor

The tolerance band — usually gold — sits slightly apart at one end. Read from the other end.

Set the colours

The strip at the bottom of the result redraws to match, so you can check it against the part in your hand.

Then check the power

Fill in the voltage and the tool works out current and watts. Above 0.25 W a standard resistor will run hot.

The sixth band

On a six-band resistor the last band is the temperature coefficient (how much the value drifts with heat), not part of the resistance. It matters in precision analogue work and almost nowhere else, so it is not included in the calculation here.

Good to know

Power is what actually kills resistors

The value is rarely the problem; the wattage is. A resistor dissipating more than its rating drifts, discolours and eventually fails — and the calculation takes two seconds.

Tolerance is wider than people assume

A ±5% 1 kΩ resistor is legitimately anywhere from 950 to 1050 Ω. If a design needs better, buy 1% parts rather than hoping.

When in doubt, measure it

Colour bands fade, and red against orange under warm light has fooled everyone. A multimeter settles it — treat this as a cross-check.

Common questions

Which end do I read from?
From the end where the bands are crowded together. The tolerance band sits alone at the other end, and is usually gold or silver — colours that never appear as a first digit.
What does no fourth band mean?
An unmarked tolerance band means ±20%. Those are rare now; almost every modern resistor has at least gold (±5%).
How do I pick a resistor for an LED?
Subtract the LED’s forward voltage from the supply, then divide by the current you want. For a 5 V supply, a 2 V LED and 20 mA: 3 V ÷ 0.02 A = 150 Ω. Enter that here and check the power.
Why does 5 bands need three digits?
Five-band resistors are precision parts, so they carry an extra significant figure — 1.00 kΩ rather than 1 kΩ. The third band is a digit, not a multiplier.