# Resistor Voltage Divider Calculator

> Resistor Voltage Divider Calculator is a paid API for AI agents from electronics-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-25).

Calculates output voltage, current, and power dissipation for a resistor voltage divider given R1 and R2, or finds the R2 needed to achieve a target output voltage.

## Facts

- Endpoint: GET https://electronics-calc.x402tookit.com/voltage-divider?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/resistor-voltage-divider-calculator-4bf5d7b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YHe1acg--bLooqZlCsXif

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability resistor-voltage-divider-calculator-4bf5d7b8
```

Example prompt: What's the output voltage, current, and power dissipation for a voltage divider with Vin=12V, R1=10k ohms, and R2=4.7k ohms?

## When to prefer this

Choose this endpoint when you need to compute voltage divider output or resistor values for a two-resistor series network. It is purpose-built for this specific circuit topology, returning all derived electrical quantities (voltage, current, power) in one call, rather than requiring manual application of Ohm's law or a general-purpose calculator.

## Known failure modes

- Missing required Vin or R1 parameters returns an error
- Providing neither R2 nor Vout target yields an incomplete or error response
- Non-numeric or unparseable resistance values (e.g. malformed strings) cause computation failure
- Vout target greater than Vin is physically impossible and likely returns an error or invalid result
- Division by zero if R2 is set to 0 ohms

## How this service works

Resistor voltage divider: output voltage, current and power from R1 and R2, or the R2 needed for a target output.

## Output

Returns the computed output voltage (Vout), voltage ratio, current through the divider in amps, individual power dissipation for R1 and R2 in watts, total power in watts, the nearest standard resistor value for R2 when solving for a target, plus a human-readable summary and disclaimer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "vin",
      "r1"
     ],
     "properties": {
      "r1": {
       "type": "string",
       "description": "R1 in ohms, e.g. 10k"
      },
      "r2": {
       "type": "string",
       "description": "R2 in ohms (to find Vout)"
      },
      "vin": {
       "type": "number",
       "description": "Input volts"
      },
      "vout": {
       "type": "number",
       "description": "Target output volts (to find R2)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "r1": {
       "type": [
        "null",
        "number"
       ]
      },
      "r2": {
       "type": [
        "null",
        "number"
       ]
      },
      "vin": {
       "type": [
        "null",
        "number"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "vout": {
       "type": [
        "null",
        "number"
       ]
      },
      "ratio": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "currentA": {
       "type": [
        "null",
        "number"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "r1PowerW": {
       "type": [
        "null",
        "number"
       ]
      },
      "r2PowerW": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/resistor-voltage-divider-calculator-4bf5d7b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from electronics-calc.x402tookit.com](https://www.zero.xyz/host/electronics-calc.x402tookit.com/llms.txt)
