← All tool references

Engineering · execute

Resistor Calculator

Decode a four-band resistor by color and inspect its nominal, minimum, maximum, and tolerance values.

Open public tool

Overview

Category
Engineering
API mode
execute
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/resistor-calculator

View this descriptor as JSON

Execute availability

This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.

POST /api/v1/tools/resistor-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

band1 · string · required
Choose the first significant-digit color band on the resistor. Accepted values: black, brown, red, orange, yellow, green, blue, violet, grey, white.
band2 · string · required
Choose the second significant-digit color band on the resistor. Accepted values: black, brown, red, orange, yellow, green, blue, violet, grey, white.
multiplier · string · required
Choose the resistor multiplier color band. Accepted values: black, brown, red, orange, yellow, green, blue, gold, silver.
tolerance · string · required
Choose the resistor tolerance color band. Accepted values: brown, red, green, blue, violet, grey, gold, silver.
{
    "type": "object",
    "properties": {
        "band1": {
            "type": "string",
            "enum": [
                "black",
                "brown",
                "red",
                "orange",
                "yellow",
                "green",
                "blue",
                "violet",
                "grey",
                "white"
            ],
            "description": "Choose the first significant-digit color band on the resistor."
        },
        "band2": {
            "type": "string",
            "enum": [
                "black",
                "brown",
                "red",
                "orange",
                "yellow",
                "green",
                "blue",
                "violet",
                "grey",
                "white"
            ],
            "description": "Choose the second significant-digit color band on the resistor."
        },
        "multiplier": {
            "type": "string",
            "enum": [
                "black",
                "brown",
                "red",
                "orange",
                "yellow",
                "green",
                "blue",
                "gold",
                "silver"
            ],
            "description": "Choose the resistor multiplier color band."
        },
        "tolerance": {
            "type": "string",
            "enum": [
                "brown",
                "red",
                "green",
                "blue",
                "violet",
                "grey",
                "gold",
                "silver"
            ],
            "description": "Choose the resistor tolerance color band."
        }
    },
    "required": [
        "band1",
        "band2",
        "multiplier",
        "tolerance"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

resistance_ohms · number
Nominal resistance in ohms.
tolerance_percent · number
Tolerance percentage.
minimum_ohms · number
Lower tolerance bound.
maximum_ohms · number
Upper tolerance bound.
formatted · string
Formatted nominal resistance.
{
    "type": "object",
    "properties": {
        "resistance_ohms": {
            "type": "number",
            "description": "Nominal resistance in ohms."
        },
        "tolerance_percent": {
            "type": "number",
            "description": "Tolerance percentage."
        },
        "minimum_ohms": {
            "type": "number",
            "description": "Lower tolerance bound."
        },
        "maximum_ohms": {
            "type": "number",
            "description": "Upper tolerance bound."
        },
        "formatted": {
            "type": "string",
            "description": "Formatted nominal resistance."
        }
    },
    "additionalProperties": false
}

Brown, black, red, gold: 1 kΩ ±5%

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/resistor-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "band1": "brown",
    "band2": "black",
    "multiplier": "red",
    "tolerance": "gold"
}'
{
    "ok": true,
    "data": {
        "slug": "resistor-calculator",
        "result": {
            "values": {
                "resistance_ohms": 1000,
                "tolerance_percent": 5,
                "minimum_ohms": 950,
                "maximum_ohms": 1050,
                "formatted": "1 kΩ"
            },
            "display": {
                "display": "1000"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.