Resistor Math
Resistor color codes and bench math.
-
Resistor color code calculator
Read 4, 5 and 6-band resistors: value, tolerance and the range a meter should show.
-
Voltage divider calculator
Output voltage, current and power of a two-resistor divider, with the R2 for a target voltage.
-
LED resistor calculator
The series resistor for one LED or a string, rounded to a stock value, with its power rating.
-
Parallel and series resistor calculator
Total resistance of two to six resistors in parallel and in series, with each one's current and power.
-
Ohm's law calculator
Enter any two of voltage, current, resistance and power to get the other two.
-
Resistor voltage drop calculator
The voltage across a resistor from the current, or from the supply and the rest of the circuit.
-
SMD resistor code calculator
Decode 3-digit, 4-digit, R and EIA-96 codes on surface-mount resistors.
-
RC time constant calculator
τ = RC, the capacitor voltage at each time constant, and the filter cutoff.
Most small electronics questions come down to one of two jobs: working out what a resistor is, or working out which resistor a circuit needs. The first is a decoding problem, because the value is hidden in colored bands or a cryptic three-character code. The second is a little algebra built on Ohm's law. The calculators below cover both jobs for low-voltage DC projects, show the formula next to each answer, and round to values that are actually sold, so you can go straight from the result to the parts drawer.
Identify the part in your hand
The color code calculator reads 4, 5 and 6-band resistors. On a 4-band part the first two bands are digits, the third is a power-of-ten multiplier and the fourth is the tolerance. Brown, black, orange, gold therefore means 1, 0, three zeros, plus or minus 5%: a 10 kΩ resistor that should measure somewhere between 9.5 kΩ and 10.5 kΩ. A 5-band part adds a third digit for finer values, so brown, black, black, red, brown is also 10 kΩ, this time held to 1%. A sixth band, when present, gives the temperature coefficient in ppm per kelvin. The calculator prints the tolerance range alongside the value, which makes a misread band obvious the moment you put a meter on the part.
The SMD code calculator handles the tiny surface-mount parts that have no room for bands. A three-digit code such as 472 means 47 followed by two zeros, or 4.7 kΩ. Four-digit codes do the same with one more significant figure, so 1002 is 10 kΩ. An R marks the decimal point on low values: 4R7 is 4.7 Ω. Precision 1% parts often use the EIA-96 scheme instead, where two digits point into a table of 96 values and a letter sets the multiplier, so 01C decodes as 10 kΩ.
Choose the resistor a circuit needs
The LED resistor calculator subtracts the LEDs' forward voltage from the supply and divides what is left by the current you want. Three red LEDs in series at about 2 V each, run from 12 V at 20 mA, leave 6 V for the resistor, which asks for 300 Ω. That is not a stock value, so the tool steps up to 330 Ω from the E12 series, then reports the real current of about 18 mA and the roughly 0.11 W the resistor will turn into heat.
The voltage divider calculator works out the output of two resistors in series across a supply: Vout equals Vin times R2 over R1 plus R2. A 10 kΩ over a 20 kΩ brings 5 V down to about 3.33 V, the classic way to feed a 5 V signal into a 3.3 V input. It also reports the current through the pair and the power in each half, and can find the R2 that hits a target voltage.
The parallel and series calculator combines two to six parts. In series the values simply add. In parallel the reciprocals add, so the total is always smaller than the smallest part: 10 kΩ alongside 4.7 kΩ comes to about 3.2 kΩ. Combining stock values like this is a handy way to reach an odd resistance without ordering a special part.
Check a circuit that already exists
The Ohm's law calculator takes any two of voltage, current, resistance and power and fills in the other two. Put 12 V across 220 Ω and about 54.5 mA flows, dissipating roughly 0.65 W, far beyond what a common quarter-watt part is rated for. The voltage drop calculator answers the related question of how many volts a single resistor eats, either from the current through it or from the supply and the resistance of everything else in the loop.
The RC time constant calculator multiplies resistance by capacitance to get tau, the time a charging capacitor needs to reach about 63% of the supply. After two time constants it sits near 86%, after three near 95%, and after five it is within one percent of full. Ten kilohms with 100 µF gives a time constant of one second, a common starting point for power-on delays. The same pair of values also sets the cutoff of a simple RC filter: 10 kΩ with 100 nF rolls off at about 159 Hz.
Stock values and why answers get rounded
Resistors are made in preferred-number series defined by IEC 60063. The E12 series has twelve values per decade (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68 and 82, then the same steps times ten), each roughly 20% above the last so that 10% parts cover the whole range without gaps. E24 doubles the count for 5% parts, and E96 serves 1% work. When a calculation lands between two stock values, the tools say which series the result belongs to, or round it to the next value up where rounding down would push a current higher than you asked for.
Limits worth knowing
These pages are for battery, USB and bench-supply circuits, and the inputs stop at 60 V. Every answer assumes ideal parts at room temperature. Real resistors sit anywhere inside their tolerance band, LEDs vary from batch to batch, and capacitors can be off by 20% or more, so measure the finished circuit before relying on a figure. Each calculation keeps its inputs in the page link, so a result can be bookmarked or shared and will open exactly as you left it.