Skip to content

Resistor Color Code Calculator

Through-hole resistors use colored bands to encode their value. Once you learn the code, you can read any resistor at a glance. Until then — use this calculator.


Most resistors you’ll encounter are 4-band resistors. Precision resistors use 5 bands.

BandMeaning
Band 1First significant digit
Band 2Second significant digit
Band 3Multiplier (×10ⁿ)
Band 4Tolerance

Formula: Value = (Band1 × 10 + Band2) × Multiplier

Example: Yellow, Violet, Red, Gold = (4, 7) × 100 = 4700 Ω = 4.7 kΩ ±5%

BandMeaning
Band 1First significant digit
Band 2Second significant digit
Band 3Third significant digit
Band 4Multiplier
Band 5Tolerance

Formula: Value = (Band1 × 100 + Band2 × 10 + Band3) × Multiplier


The first band is closest to one end of the resistor. A few tips for orientation:

  • The tolerance band (Gold or Silver) is always last — start from the opposite end.
  • The first band is usually closer to a lead than the tolerance band.
  • If you see a wide gap before the last band, that’s the tolerance band — read left to right from the other side.

ValueColor Code (4-band)Common Use
10 ΩBrown, Black, Black, GoldCurrent limiting (high current)
100 ΩBrown, Black, Brown, GoldLED current limiting
330 ΩOrange, Orange, Brown, GoldLED with 3.3V supply
470 ΩYellow, Violet, Brown, GoldGeneral LED limiting
1 kΩBrown, Black, Red, GoldPull-up/pull-down
4.7 kΩYellow, Violet, Red, GoldI2C pull-up
10 kΩBrown, Black, Orange, GoldGPIO pull-up/pull-down
100 kΩBrown, Black, Yellow, GoldHigh-impedance pull-up

The tolerance band tells you how close to the stated value the resistor actually is:

  • ±1% (Brown) — Metal film, precision applications
  • ±2% (Red) — Metal film
  • ±5% (Gold) — Carbon film, most common
  • ±10% (Silver) — Carbon composition, older stock

For most microcontroller applications (pull-ups, LED limiting, voltage dividers), ±5% is perfectly adequate.