Skip to content
Documentation sections

Resistor Color Code Calculator

POSThttps://rftools.io/api/py/v1/calculate

Slug resistor-color-code. Decode resistor color bands to resistance value and tolerance. Supports 4-band and 5-band resistors; the 6th (temperature-coefficient) band of a 6-band resistor is not decoded. Instant color band to ohms conversion.

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of resistor-color-code
NameUnitRangeDefaultDescription
numBandsnumbernone4 … 64Number of Bands
band1numbernone0 … 91Band 1 (1st digit)One of: 0 Black (0) · 1 Brown (1) · 2 Red (2) · 3 Orange (3) · 4 Yellow (4) · 5 Green (5) · 6 Blue (6) · 7 Violet (7) · 8 Grey (8) · 9 White (9)
band2numbernone0 … 90Band 2 (2nd digit)One of: 0 Black (0) · 1 Brown (1) · 2 Red (2) · 3 Orange (3) · 4 Yellow (4) · 5 Green (5) · 6 Blue (6) · 7 Violet (7) · 8 Grey (8) · 9 White (9)
band3numbernone0 … 114The third digit of a 5- or 6-band resistor. Ignored for 4-band resistors, whose third band is the multiplier band.One of: 0 Black (0) · 1 Brown (1) · 2 Red (2) · 3 Orange (3) · 4 Yellow (4) · 5 Green (5) · 6 Blue (6) · 7 Violet (7) · 8 Grey (8) · 9 White (9)
multipliernumbernone0 … 112Multiplier BandOne of: 0 Black (×1) · 1 Brown (×10) · 2 Red (×100) · 3 Orange (×1k) · 4 Yellow (×10k) · 5 Green (×100k) · 6 Blue (×1M) · 7 Violet (×10M) · 8 Grey (×100M) · 9 White (×1G) · 10 Gold (×0.1) · 11 Silver (×0.01)
tolerancenumbernone1 … 1110Tolerance BandOne of: 1 Brown (±1%) · 2 Red (±2%) · 3 Orange (±0.05%) · 4 Yellow (±0.02%) · 5 Green (±0.5%) · 6 Blue (±0.25%) · 7 Violet (±0.1%) · 8 Grey (±0.05%) · 10 Gold (±5%) · 11 Silver (±10%)

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of resistor-color-code
FieldUnitDescription
resistanceheadlineΩResistance
tolerance%Tolerance
minResistanceΩMin Value
maxResistanceΩMax Value

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.