Understanding Resistors, Capacitors, and the Color Code

Resistors and capacitors are the two components you will meet in almost every circuit, so understanding them early pays off for years. Once you know what they do, Compoden's AI build assistant can fold the right values into a recommended kit so you are not guessing at parts. This guide explains both components and how to read the resistor color code.

What a resistor does

A resistor limits the flow of current. Picture it as a narrow section in a pipe: water still flows, but less of it. You use resistors to protect parts that would draw too much current, such as putting one in series with an LED so it does not burn out. Resistance is measured in ohms, and the value is fixed by how the resistor is made.

What a capacitor does

A capacitor stores a small amount of electrical charge and releases it. A common use is smoothing a power supply: when the voltage dips for an instant, the capacitor fills the gap, steadying the line. Capacitance is measured in farads, though real parts are usually microfarads or smaller. Some capacitors, such as electrolytics, have a positive and negative leg and must be connected the right way around.

Reading the resistor color code

Most through-hole resistors show their value with coloured bands. On a common four-band resistor, the first two bands are digits, the third is a multiplier, and the fourth is the tolerance. The digit values run black 0, brown 1, red 2, orange 3, yellow 4, green 5, blue 6, violet 7, grey 8, white 9. So brown-black-red gives 1, 0, then times 100, which is 1,000 ohms, or 1k.

The tolerance band

The final band tells you how close to the marked value the real resistor is. Gold means within five percent, silver within ten percent. A 1k resistor with a gold band could measure anywhere from about 950 to 1,050 ohms. For most beginner projects this margin is fine, but precision circuits may call for tighter-tolerance parts.

Picking values for a project

Choosing a resistor for an LED is a typical first calculation: you work out the value from the supply voltage, the LED's forward voltage, and the current you want. If maths is not your favourite, this is exactly the kind of choice the assistant handles, picking a safe, in-stock value so your LED is bright but not stressed.

Build it with Compoden's AI

Rather than memorising every value, describe your project to the AI build assistant and let it select the resistors and capacitors your build needs from real in-stock parts, with matching wiring and code. Start with the assistant or browse components at /collections/all.

Learn what these two parts do and the color code, and most schematics become much easier to read.

What is the difference between a resistor and a capacitor? A resistor limits current flow, while a capacitor stores and releases a small amount of charge, often to steady a supply.

How do I read a four-band resistor? The first two bands are digits, the third multiplies them, and the fourth shows tolerance. Brown-black-red is 1,000 ohms.

Do capacitors have a polarity? Some do. Electrolytic capacitors have positive and negative legs and must be connected correctly, while many small ceramic types do not.

Back to blog