Resistor Color Code Calculator Formula
Understand the math behind the resistor color code calculator. Each variable explained with a worked example.
Formulas Used
Resistance
resistance = base_val * pow(10, multiplier_exp)Resistance (k)
resistance_k = base_val * pow(10, multiplier_exp) / 1000Variables
| Variable | Description | Default |
|---|---|---|
band1 | Band 1 Digit (0-9) | 4 |
band2 | Band 2 Digit (0-9) | 7 |
multiplier_exp | Multiplier (10^x) | 2 |
base_val | Derived value= band1 * 10 + band2 | calculated |
How It Works
Resistor Color Codes
4-Band System
Black=0, Brown=1, Red=2, Orange=3, Yellow=4, Green=5, Blue=6, Violet=7, Grey=8, White=9
Worked Example
Yellow(4), Violet(7), Red(x100).
band1 = 4band2 = 7multiplier_exp = 2
- 01Base = 4 x 10 + 7 = 47
- 02Multiplier = 10^2 = 100
- 03Resistance = 47 x 100 = 4700 ohms = 4.7k
Ready to run the numbers?
Open Resistor Color Code Calculator