{
  "schemaVersion": 1,
  "slug": "resistance-calculator",
  "category": "conversion",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "8e2486e662524fe48b180959481b073e1c05384fda8af507439d4e223dbddd17",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/resistance-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "Ω = x×F_in; y = Ω÷F_out; S = 1÷Ω",
    "vars": [
      [
        "x",
        "Input value"
      ],
      [
        "Ω",
        "Resistance in ohms"
      ],
      [
        "y",
        "Converted value"
      ],
      [
        "S",
        "Conductance in siemens"
      ],
      [
        "F_in",
        "Input unit factor"
      ],
      [
        "F_out",
        "Output unit factor"
      ]
    ],
    "note": "Conductance = 1 / resistance in siemens. At zero resistance, conductance is undefined and is left blank (not zero)."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-04",
    "sources": [
      {
        "name": "NIST SP 811 — Conversion factors by quantity",
        "url": "https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9"
      }
    ],
    "basis": "Convert electrical resistance via ohms and SI prefixes.",
    "limitations": "Only the displayed unit definitions are converted; rounding and measurement uncertainty are separate.",
    "implementationHash": "8e2486e662524fe48b180959481b073e1c05384fda8af507439d4e223dbddd17",
    "domain": "conversion"
  },
  "contract": {
    "compute": "const units={\"ohm\":\"Ω\",\"kohm\":\"kΩ\",\"mohm\":\"MΩ\",\"mlliohm\":\"mΩ\"}, factors={\"ohm\":1,\"kohm\":1000,\"mohm\":1000000,\"mlliohm\":0.001}; if(!Number.isFinite(value)||value<0||value>1000000000000000||!Object.prototype.hasOwnProperty.call(units,from)||!Object.prototype.hasOwnProperty.call(units,to))return {\"result\":null,\"ohms\":null,\"kilohms\":null,\"siemens\":null,\"__error\":\"inputError\"}; const out=(function(){const F={ohm:1,kohm:1000,mohm:1e6,mlliohm:0.001}; const ohm=value*F[from]; return { result: ohm/F[to], ohms: ohm, kilohms: ohm/1000, siemens: ohm>0 ? 1/ohm : null };})(); if(out.__error)return {...{\"result\":null,\"ohms\":null,\"kilohms\":null,\"siemens\":null},...out}; out.__resultUnit=units[to]; out.__unitRatio=factors[to]/factors[from]; return out;",
    "inputs": [
      {
        "name": "value",
        "type": "number",
        "default": 1,
        "min": 0,
        "max": 1000000000000000,
        "step": 0.0001,
        "requiredValue": true,
        "strictRange": true
      },
      {
        "name": "from",
        "type": "select",
        "default": "kohm",
        "options": [
          {
            "value": "kohm"
          },
          {
            "value": "ohm"
          },
          {
            "value": "mohm"
          },
          {
            "value": "mlliohm"
          }
        ]
      },
      {
        "name": "to",
        "type": "select",
        "default": "ohm",
        "options": [
          {
            "value": "ohm"
          },
          {
            "value": "kohm"
          },
          {
            "value": "mohm"
          },
          {
            "value": "mlliohm"
          }
        ]
      },
      {
        "name": "precision",
        "type": "select",
        "default": 4,
        "options": [
          {
            "value": 0
          },
          {
            "value": 2
          },
          {
            "value": 4
          },
          {
            "value": 6
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "result",
        "precision": 4,
        "unit": "",
        "precisionField": "precision",
        "unitField": "__resultUnit",
        "trimTrailingZeros": true,
        "notation": "auto"
      },
      {
        "name": "ohms",
        "precision": 4,
        "unit": "Ω",
        "showWhen": {
          "to": [
            "kohm",
            "mohm",
            "mlliohm"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "kilohms",
        "precision": 6,
        "unit": "kΩ",
        "showWhen": {
          "to": [
            "ohm",
            "mohm",
            "mlliohm"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "siemens",
        "precision": 9,
        "unit": "S",
        "optional": true,
        "notation": "auto"
      }
    ],
    "interpret": null
  }
}
