What Is a Resistor?

A resistor is a passive electronic component that opposes the flow of electric current. By adding a known amount of resistance to a circuit, resistors let you control current, divide voltage, and protect sensitive components from too much power. They are the most commonly used component in electronics — you'll find them in everything from smartphones to industrial machinery.

How Resistors Work

When current flows through a resistor, the material inside (typically carbon film, metal film, or a wire-wound element) converts some electrical energy into heat. The amount of opposition is measured in ohms (Ω). A higher ohm value means more resistance and less current allowed through for a given voltage — exactly as Ohm's Law predicts.

Reading the Color Code

Most through-hole resistors have colored bands painted on them to indicate their resistance value. The standard system uses 4-band or 5-band codes.

4-Band Color Code

  • Band 1: First significant digit
  • Band 2: Second significant digit
  • Band 3: Multiplier (number of zeros to add)
  • Band 4: Tolerance (how accurate the value is)
Color Digit Value Multiplier
Black0×1
Brown1×10
Red2×100
Orange3×1,000
Yellow4×10,000
Green5×100,000
Blue6×1,000,000
Violet7
Gray8
White9
Gold×0.1 (Tolerance: ±5%)
Silver×0.01 (Tolerance: ±10%)

Example: A resistor with bands Yellow, Violet, Red, Gold = 4, 7, ×100, ±5% = 4,700Ω (4.7kΩ) ±5%

Types of Resistors

  • Carbon Film — inexpensive, general-purpose. Good for most beginner projects.
  • Metal Film — more precise and stable. Preferred in audio and measurement circuits.
  • Wire-Wound — very accurate, handles high power. Used in power electronics.
  • SMD (Surface Mount) — tiny rectangular components used on modern circuit boards. Labeled with a 3-digit numerical code instead of color bands.
  • Variable Resistors (Potentiometers) — adjustable resistance. Found in volume knobs and dimmers.

Power Rating: Don't Ignore It

Every resistor has a power rating in watts (W) — the maximum power it can safely dissipate without overheating. Common ratings are ¼W, ½W, 1W, and 2W. Use the formula P = I² × R or P = V² ÷ R to calculate how much power your resistor will handle. Always choose a resistor with a rating higher than your calculated value — at least double is good practice.

Common Uses in Circuits

  • Current limiting: Protect LEDs by placing a resistor in series
  • Voltage dividers: Two resistors in series can scale down a voltage
  • Pull-up / pull-down: Define a logic level on a microcontroller input pin
  • Biasing: Set the operating point of transistors and op-amps

Choosing the Right Resistor

For most beginner projects, a standard ¼W carbon or metal film resistor is perfectly adequate. Pick the correct resistance value using Ohm's Law, verify the power requirement is within the rating, and you're good to go. Keeping an assortment kit of common values (from 10Ω to 1MΩ) on your workbench will cover the vast majority of projects you'll ever build.