# Resistors

Pages

## Take a Stance, The Resist Stance

Resistors - the most ubiquitous of electronic components. They are a critical piece in just about every circuit. And they play a major role in our favorite equation, Ohm's Law.

In this, our pièce de résistance, we'll cover:

• What is a resistor?!
• Resistor units
• Resistor circuit symbol(s)
• Resistors in series and parallel
• Different variations of resistors
• Color coding decoding
• Surface mount resistor decoding
• Example resistor applications

Some of the concepts in this tutorial build on previous electronics knowledge. Before jumping into this tutorial, consider reading (at least skimming) these first: ## Resistor Basics

Resistors are electronic components which have a specific, never-changing electrical resistance. The resistor's resistance limits the flow of electrons through a circuit.

They are passive components, meaning they only consume power (and can't generate it). Resistors are usually added to circuits where they complement active components like op-amps, microcontrollers, and other integrated circuits. Commonly resistors are used to limit current, divide voltages, and pull-up I/O lines.

## Resistor units

The electrical resistance of a resistor is measured in ohms. The symbol for an ohm is the greek capital-omega: Ω. The (somewhat roundabout) definition of 1Ω is the resistance between two points where 1 volt (1V) of applied potential energy will push 1 ampere (1A) of current.

As SI units go, larger or smaller values of ohms can be matched with a prefix like kilo-, mega-, or giga-, to make large values easier to read. It's very common to see resistors in the kilohm (kΩ) and megaohm (MΩ) range (much less common to see miliohm (mΩ) resistors). For example, a 4,700Ω resistor is equivalent to a 4.7kΩ resistor, and a 5,600,000Ω resistor can be written as 5,600kΩ or (more commonly as) 5.6MΩ.

## Schematic symbol

All resistors have two terminals, one connection on each end of the resistor. When modeled on a schematic, a resistor will show up as one of these two symbols:

Two common resistor schematic symbols. R1 is an American-style 1kΩ resistor, and R2 is an international-style 47kΩ resistor.

The terminals of the resistor are each of the lines extending from the squiggle (or rectangle). Those are what connect to the rest of the circuit.

The resistor circuit symbols are usually enhanced with both a resistance value and a name. The value, displayed in ohms, is obviously critical for both evaluating and actually constructing the circuit. The name of the resistor is usually an R preceding a number. Each resistor in a circuit should have a unique name/number. For example, here's a few resistors in action on a 555 timer circuit:

In this circuit, resistors play a key role in setting the frequency of the 555 timer's output. Another resistor (R3) limits the current through an LED.

## Types of Resistors

Resistors come in a variety of shapes and sizes. They might be through-hole or surface-mount. They might be a standard, static resistor, a pack of resistors, or a special variable resistor.

## Termination and Mounting

Resistors will come in one of two termination-types: through-hole or surface-mount. These types of resistors are usually abbreviated as either PTH (plated through-hole) or SMD/SMT (surface-mount technology or device).

Through-hole resistors come with long, pliable leads which can be stuck into a breadboard or hand-soldered into a prototyping board or printed circuit board (PCB). These resistors are usually more useful in breadboarding, prototyping, or in any case where you'd rather not solder tiny, little 0.6mm-long SMD resistors. The long leads usually require trimming, and these resistors are bound to take up much more space than their surface-mount counterparts.

The most common through-hole resistors come in an axial package. The size of an axial resistor is relative to its power rating. A common ½W resistor measures about 9.2mm across, while a smaller ¼W resistor is about 6.3mm long.

A half-watt (½W) resistor (above) sized up to a quarter-watt (¼W).

Surface-mount resistors are usually tiny black rectangles, terminated on either side with even smaller, shiny, silver, conductive edges. These resistors are intended to sit on top of PCBs, where they're soldered onto mating landing pads. Because these resistors are so small, they're usually set into place by a robot, and sent through an oven where solder melts and holds them in place.

A tiny 0603 330Ω resistor hovering over shiny George Washington's nose on top of a [U.S. quarter](http://en.wikipedia.org/wiki/Quarter_(United_States_coin).

SMD resistors come in standardized sizes; usually either 0805 (0.08" long by 0.05" wide), 0603, or 0402. They're great for mass circuit-board-production, or in designs where space is a precious commodity. They take a steady, precise hand to manually solder, though!

## Resistor Composition

Resistors can be constructed out of a variety of materials. Most common, modern resistors are made out of either a carbon, metal, or metal-oxide film. In these resistors, a thin film of conductive (though still resistive) material is wrapped in a helix around and covered by an insulating material. Most of the standard, no-frills, through-hole resistors will come in a carbon-film or metal-film composition.

Peek inside the guts of a few carbon-film resistors. Resistance values from top to bottom: 27Ω, 330Ω and a 3.3MΩ. Inside the resistor, a carbon film is wrapped around an insulator. More wraps means a higher resistance. Pretty neat!

Other through-hole resistors might be wirewound or made of super-thin metallic foil. These resistors are usually more expensive, higher-end components specifically chosen for their unique characteristics like a higher power-rating, or maximum temperature range.

Surface-mount resistors are usually either thick or thin-film variety. Thick-film is usually cheaper but less precise than thin. In both resistor types, a small film of resistive metal alloy is sandwiched between a ceramic base and glass/epoxy coating, and then connected to the terminating conductive edges.

## Special Resistor Packages

There are a variety of other, special-purpose resistors out there. Resistors may come in pre-wired packs of five-or-so resistor arrays. Resistors in these arrays may share a common pin, or be set up as voltage dividers.

An array of five 330Ω resistors, all tied together at one end.

## Variable Resistors (i.e. Potentiometers)

Resistors don't have to be static either. Variable resistors, known as rheostats, are resistors which can be adjusted between a specific range of values. Similar to the rheostat is the potentiometer. Pots connect two resistors internally, in series, and adjust a center tap between them creating an adjustable voltage divider. These variable resistors are often used for inputs, like volume knobs, which need to be adjustable.

A smattering of potentiometers. From top-left, clockwise: a standard 10k trimpot, 2-axis joystick, softpot, slide pot, classic right-angle, and a breadboard friendly 10k trimpot.

## Decoding Resistor Markings

Though they may not display their value outright, most resistors are marked to show what their resistance is. PTH resistors use a color-coding system (which really adds some flair to circuits), and SMD resistors have their own value-marking system.

## Decoding the Color Bands

Through-hole, axial resistors usually use the color-band system to display their value. Most of these resistors will have four bands of color circling the resistor, though you will also find five band and six band resistors.

### Four Band Resistors

In the standard four band resistors, the first two bands indicate the two most-significant digits of the resistor's value. The third band is a weight value, which multiplies the two significant digits by a power of ten.

The final band indicates the tolerance of the resistor. The tolerance explains how much more or less the actual resistance of the resistor can be compared to what its nominal value is. No resistor is made to perfection, and different manufacturing processes will result in better or worse tolerances. For example, a 1kΩ resistor with 5% tolerance could actually be anywhere between 0.95kΩ and 1.05kΩ.

How do you tell which band is first and last? The last, tolerance band is often clearly separated from the value bands, and usually it'll either be silver or gold.

### Five and Six Band Resistors

Five band resistors have a third significant digit band between the first two bands and the multiplier band. Five band resistors also have a wider range of tolerances available.

Six band resistors are basically five band resistors with an additional band at the end that indicates the temperature coefficient. This indicates the expected change in resistor value as the temperature changes in degrees Celsius. Generally these temperature coefficient values are extremely small, in the ppm range.

### Decoding Resistor Color Bands

When decoding the resistor color bands, consult a resistor color code table like the one below. For the first two bands, find that color's corresponding digit value. The 4.7kΩ resistor shown here has color bands of yellow and violet to begin - which have digit values of 4 and 7 (47). The third band of the 4.7kΩ is red, which indicates that the 47 should be multiplied by 102 (or 100). 47 times 100 is 4,700!

4.7kΩ resistor with four color bands

If you're trying to commit the color band code to memory, a mnemonic device might help. There are a handful of (sometimes unsavory) mnemonics out there to help remember the resistor color code. A good one, which spells out the difference between black and brown is:

"Big brown rabbits often yield great big vocal groans when gingerly snapped."

Or, if you remember "ROY G. BIV", subtract the indigo (poor indigo, no one remembers indigo), and add black and brown to the front and gray and white to the back of the classic rainbow color-order.

### Resistor Color Code Table

Having trouble seeing? Click the image for a better view!

### Resistor Color Code Calculator

If you'd rather skip the math (we won't judge!), and just use a handy calculator, give one of these a try!

#### Four Band Resistors

 Band 1 Band 2 Band 3 Band 4 Value 1 (MSV) Value 2 Weight Tolerance Black (0) Brown (1) Red (2) Orange (3) Yellow (4) Green (5) Blue (6) Violet (7) Gray (8) White (9) Black (0) Brown (1) Red (2) Orange (3) Yellow (4) Green (5) Blue (6) Violet (7) Gray (8) White (9) Black (1) Brown (10) Red (100) Orange (1k) Yellow (10k) Green (100k) Blue (1M) Violet (10M) Gray (100M) White (1G) Gold (± 5%) Silver (± 10%)

### Resistance:  1 kΩ ±5%

#### Five and Six Band Resistors

Note: Calculate your six band resistor here, but be sure to append the temperature coefficient to the final value of the resistor.

 Band 1 Band 2 Band 3 Band 4 Band 5 Value 1 (MSV) Value 2 Value 3 Weight Tolerance Black (0) Brown (1) Red (2) Orange (3) Yellow (4) Green (5) Blue (6) Violet (7) Gray (8) White (9) Black (0) Brown (1) Red (2) Orange (3) Yellow (4) Green (5) Blue (6) Violet (7) Gray (8) White (9) Black (0) Brown (1) Red (2) Orange (3) Yellow (4) Green (5) Blue (6) Violet (7) Gray (8) White (9) Black (1) Brown (10) Red (100) Orange (1k) Yellow (10k) Green (100k) Blue (1M) Violet (10M) Gray (100M) White (1G) Gold (± 5%) Silver (± 10%) Brown (± 1%) Red (± 2%) Green (± 0.5%) Blue (± 0.25%) Violet (± 0.1%) Gray (± 0.05%)

## Decoding Surface-Mount Markings

SMD resistors, like those in 0603 or 0805 packages, have their own way of displaying their value. There are a few common marking methods you'll see on these resistors. They'll usually have three to four characters -- numbers or letters -- printed on top of the case.

If the three characters you're seeing are all numbers, you're probably looking at an E24 marked resistor. These markings actually share some similarity with the color-band system used on the PTH resistors. The first two numbers represent the first two most-significant digits of the value, the last number represents a magnitude.

In the above example picture, resistors are marked 104, 105, 205, 751, and 754. The resistor marked with 104 should be 100kΩ (10x104), 105 would be 1MΩ (10x105), and 205 is 2MΩ (20x105). 751 is 750Ω (75x101), and 754 is 750kΩ (75x104).

Another common coding system is E96, and it's the most cryptic of the bunch. E96 resistors will be marked with three characters -- two numbers at the beginning and a letter at the end. The two numbers tell you the first three digits of the value, by corresponding to one of the not-so-obvious values on this lookup table.

CodeValue
CodeValue
CodeValue
CodeValue
CodeValue
CodeValue
01100
17147
33215
49316
65464
81681
02102
18150
34221
50324
66475
82698
03105
19154
35226
51332
67487
83715
04107
20158
36232
52340
68499
84732
05110
21162
37237
53348
69511
85750
06113
22165
38243
54357
70523
86768
07115
23169
39249
55365
71536
87787
08118
24174
40255
56374
72549
88806
09121
25178
41261
57383
73562
89825
10124
26182
42267
58392
74576
90845
11127
27187
43274
59402
75590
91866
12130
28191
44280
60412
76604
92887
13133
29196
45287
61422
77619
93909
14137
30200
46294
62432
78634
94931
15140
31205
47301
63442
79649
95953
16143
32210
48309
64453
80665
96976

The letter at the end represents a multiplier, matching up to something on this table:

LetterMultiplierLetterMultiplierLetterMultiplier
Z0.001A1D1000
Y or R0.01B or H10E10000
X or S0.1C100F100000

So a 01C resistor is our good friend, 10kΩ (100x100), 01B is 1kΩ (100x10), and 01D is 100kΩ. Those are easy, other codes may not be. 85A from the picture above is 750Ω (750x1) and 30C is actually 20kΩ.

## Power Rating

The power rating of a resistor is one of the more hidden values. Nevertheless it can be important, and it's a topic that'll come up when selecting a resistor type.

Power is the rate at which energy is transformed into something else. It's calculated by multiplying the voltage difference across two points by the current running between them, and is measured in units of a watt (W). Light bulbs, for example, power electricity into light. But a resistor can only turn electrical energy running through it into heat. Heat isn't usually a nice playmate with electronics; too much heat leads to smoke, sparks, and fire!

Every resistor has a specific maximum power rating. In order to keep the resistor from heating up too much, it's important to make sure the power across a resistor is kept under it's maximum rating. The power rating of a resistor is measured in watts, and it's usually somewhere between ⅛W (0.125W) and 1W. Resistors with power ratings of more than 1W are usually referred to as power resistors, and are used specifically for their power dissipating abilities.

## Finding a resistor's power rating

A resistor's power rating can usually be deduced by observing its package size. Standard through-hole resistors usually come with ¼W or ½W ratings. More special purpose, power resistors might actually list their power rating on the resistor.

These power resistors can handle a lot more power before they blow. From top-right to bottom-left there are examples of 25W, 5W and 3W resistors, with values of 2Ω, 3Ω 0.1Ω and 22kΩ. Smaller power-resistors are often used to sense current.

The power ratings of surface mount resistors can usually be judged by their size as well. Both 0402 and 0603-size resistors are usually rated for 1/16W, and 0805's can take 1/10W.

## Measuring power across a resistor

Power is usually calculated by multiplying voltage and current (P = IV). But, by applying Ohm's law, we can also use the resistance value in calculating power. If we know the current running through a resistor, we can calculate the power as:

Or, if we know the voltage across a resistor, the power can be calculated as:

## Series and Parallel Resistors

Resistors are paired together all the time in electronics, usually in either a series or parallel circuit. When resistors are combined in series or parallel, they create a total resistance, which can be calculated using one of two equations. Knowing how resistor values combine comes in handy if you need to create a specific resistor value.

## Series resistors

When connected in series resistor values simply add up.

N resistors in series. The total resistance is the sum of all series resistors.

So, for example, if you just have to have a 12.33kΩ resistor, seek out some of the more common resistor values of 12kΩ and 330Ω, and butt them up together in series.

## Parallel resistors

Finding the resistance of resistors in parallel isn't quite so easy. The total resistance of N resistors in parallel is the inverse of the sum of all inverse resistances. This equation might make more sense than that last sentence:

N resistors in parallel. To find the total resistance, invert each resistance value, add them up, and then invert that.

(The inverse of resistance is actually called conductance, so put more succinctly: the conductance of parallel resistors is the sum of each of their conductances).

As a special case of this equation: if you have just two resistors in parallel, their total resistance can be calculated with this slightly-less-inverted equation:

As an even more special case of that equation, if you have two parallel resistors of equal value the total resistance is half of their value. For example, if two 10kΩ resistors are in parallel, their total resistance is 5kΩ.

A shorthand way of saying two resistors are in parallel is by using the parallel operator: ||. For example, if R1 is in parallel with R2, the conceptual equation could be written as R1||R2. Much cleaner, and hides all those nasty fractions!

## Resistor networks

As a special introduction to calculating total resistances, electronics teachers just love to subject their students to finding that of crazy, convoluted resistor networks.

A tame resistor network question might be something like: "what's the resistance from terminals A to B in this circuit?"

To solve such a problem, start at the back-end of the circuit and simplify towards the two terminals. In this case R7, R8 and R9 are all in series and can be added together. Those three resistors are in parallel with R6, so those four resistors could be turned into one with a resistance of R6||(R7+R8+R9). Making our circuit:

Now the four right-most resistors can be simplified even further. R4, R5 and our conglomeration of R6 - R9 are all in series and can be added. Then those series resistors are all in parallel with R3.

And that's just three series resistors between the A and B terminals. Add 'em on up! So the total resistance of that circuit is: R1+R2+R3||(R4+R5+R6||(R7+R8+R9)).

## Example Applications

Resistors exist in just about every electronic circuit ever. Here are a few examples of circuits, which heavily depend on our resistor friends.

## LED Current Limiting

Resistors are key in making sure LEDs don't blow up when power is applied. By connecting a resistor in series with an LED, current flowing through the two components can be limited to a safe value.

When sizing out a current-limiting resistor, look for two characteristic values of the LED: the typical forward voltage, and the maximum forward current. The typical forward voltage is the voltage which is required to make an LED light up, and it varies (usually somewhere between 1.7V and 3.4V) depending upon the color of the LED. The maximum forward current is usually around 20mA for basic LEDs; continuous current through the LED should always be equal to or less than that current rating.

Once you've gotten ahold of those two values, you can size up a current-limiting resistor with this equation:

VS is the source voltage -- usually a battery or power supply voltage. VF and IF are the LED's forward voltage and the desired current that runs through it.

For example, assume you have a 9V battery to power an LED. If your LED is red, it might have a forward voltage around 1.8V. If you want to limit the current to 10mA, use a series resistor of about 720Ω.

## Voltage Dividers

A voltage divider is a resistor circuit which turns a large voltage into a smaller one. Using just two resistors in series, an output voltage can be created that's a fraction of the input voltage.

Here's the voltage divider circuit:

Two resistors, R1 and R2, are connected in series and a voltage source (Vin) is connected across them. The voltage from Vout to GND can be calculated as:

For example, if R1 was 1.7kΩ and R2 was 3.3kΩ, a 5V input voltage could be turned into 3.3V at the Vout terminal.

Voltage dividers are very handy for reading resistive sensors, like photocells, flex sensors, and force-sensitive resistors. One half of the voltage divider is the sensor, and the part is a static resistor. The output voltage between the two components is connected to an analog-to-digital converter on a microcontroller (MCU) to read the sensor's value.

Here a resistor R1 and a photocell create a voltage divider to create a variable voltage output.

## Pull-up Resistors

A pull-up resistor is used when you need to bias a microcontroller's input pin to a known state. One end of the resistor is connected to the MCU's pin, and the other end is connected to a high voltage (usually 5V or 3.3V).

Without a pull-up resistor, inputs on the MCU could be left floating. There's no guarantee that a floating pin is either high (5V) or low (0V).

Pull-up resistors are often used when interfacing with a button or switch input. The pull-up resistor can bias the input-pin when the switch is open. And it will protect the circuit from a short when the switch is closed.

In the circuit above, when the switch is open the MCU's input pin is connected through the resistor to 5V. When the switch closes, the input pin is connected directly to GND.

The value of a pull-up resistor doesn't usually need to be anything specific. But it should be high enough that not too much power is lost if 5V or so is applied across it. Usually values around 10kΩ work well.

Don't limit your flow of resistors. We've got kits, packs, single pieces, and tools that you just can't resist.

COM-10969
\$7.95
158

PRT-14490
\$0.95

PRT-14491
\$1.20

KIT-13053
\$5.95
2

TOL-12966
\$14.95
20

TOL-13114
\$4.80
2

SWG-10108
\$0.95

## Resources and Going Further

Now that you're a budding expert on all things resistor, how 'bout exploring some more fundamental electronics concepts! Resistors certainly aren't the only basic component we use in electronics, there's also:

Or maybe you'd like to further explore resistor applications?

In 2003, CU student Nate Seidle fried a power supply in his dorm room and, in lieu of a way to order easy replacements, decided to start his own company. Since then, SparkFun has been committed to sustainably helping our world achieve electronics literacy from our headquarters in Boulder, Colorado.

No matter your vision, SparkFun's products and resources are designed to make the world of electronics more accessible. In addition to over 2,000 open source components and widgets, SparkFun offers curriculum, training and online tutorials designed to help demystify the wonderful world of embedded electronics. We're here to help you start something.