{
  "capability_id": "electrical.pcb.trace_width",
  "tool_id": "pcb-trace-width",
  "engine": "pcb-trace-width",
  "calculation_version": "1.1.1",
  "generated_at": "2026-09-16T22:03:43.715Z",
  "engine_build": "2026-09-12",
  "test_count": 15,
  "passed": 15,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 3,
      "passed": 3
    },
    "boundary": {
      "total": 6,
      "passed": 6
    },
    "property": {
      "total": 6,
      "passed": 6
    }
  },
  "engine_tested": true,
  "expert_reviewed": true,
  "internally_reviewed": false,
  "review_kind": "expert",
  "source_checked": true,
  "reviewed_by": "CalculatorX electrical review",
  "reviewer_role": "electrical-engineer",
  "last_reviewed": "2026-08-10",
  "expert_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": "electrical-engineer"
    },
    "reviewed_at": "2026-08-10",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "expert"
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/electric/pcb-trace-width",
  "api": "https://www.calculatorx.com/api/v1/calc/pcb-trace-width",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.pcb.trace_width.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.pcb.trace_width.output.json",
  "assumptions": [
    "Classic IPC-2221 closed form; not IPC-2152 charts.",
    "1 oz/ft² ≡ 1.378 mil thickness.",
    "Steady current; no via heating or nearby power planes.",
    "When u_* are set, first-order GUM sensitivity with independent inputs (no ρ on this page)."
  ],
  "limitations": [
    "IPC-2221 closed form only — not IPC-2152 chart interpolation",
    "1 oz/ft² modeled as 1.378 mil thickness",
    "Bad mode/layer → INVALID_MODE; non-positive → VALUE_MUST_BE_POSITIVE",
    "Optional u_* use GUM sensitivity on the primary result only; uncertainty_k is coverage (not IPC k)"
  ],
  "boundary_conditions": [
    "Missing I/width_mil/dT → MISSING_REQUIRED_INPUT",
    "≤ 0 → VALUE_MUST_BE_POSITIVE",
    "Bad mode/layer → INVALID_MODE",
    "Non-finite → INVALID_NUMBER",
    "uncertainty_k without any u_* → INVALID_INPUT"
  ],
  "sources": [
    {
      "title": "IPC-2221 — Generic Standard on Printed Board Design",
      "section": "Conductor width and current capacity (external/internal k factors)",
      "supports": "I = k·ΔT^0.44·A^0.725 with k=0.048 / 0.024",
      "kind": "standard"
    },
    {
      "title": "IPC-2152 — Standard for Determining Current-Carrying Capacity in Printed Board Design",
      "section": "Updated current-carrying methodology",
      "supports": "Context that IPC-2221 is a legacy closed-form estimate vs newer charts",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:ab133c3d31e3709abb2d5806d4879effbe5694df076c67b8a033e98baea82a6c",
  "tests": [
    {
      "id": "external-10a",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "width",
        "I": 10,
        "dT": 10,
        "copper_oz": 1,
        "layer": "external"
      },
      "expect": {
        "width_mil": 283.2319087512239,
        "I": 10,
        "k": 0.048
      },
      "expectWarning": null,
      "actual": {
        "mode": "width",
        "layer": "external",
        "I": 10,
        "width_mil": 283.2319087512239,
        "width_mm": 7.194090482281086,
        "area_mil2": 390.29357025918654,
        "dT": 10,
        "copper_oz": 1,
        "thickness_mil": 1.378,
        "k": 0.048
      },
      "tol": 1e-9
    },
    {
      "id": "current-roundtrip",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "current",
        "width_mil": 283.2319087512239,
        "dT": 10,
        "copper_oz": 1,
        "layer": "external"
      },
      "expect": {
        "I": 10
      },
      "expectWarning": null,
      "actual": {
        "mode": "current",
        "layer": "external",
        "I": 10,
        "width_mil": 283.2319087512239,
        "width_mm": 7.194090482281086,
        "area_mil2": 390.2935702591865,
        "dT": 10,
        "copper_oz": 1,
        "thickness_mil": 1.378,
        "k": 0.048
      },
      "tol": 1e-9
    },
    {
      "id": "internal-wider",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "width",
        "I": 10,
        "dT": 10,
        "copper_oz": 1,
        "layer": "internal"
      },
      "expect": {
        "width_mil": 736.8107715863429,
        "k": 0.024
      },
      "expectWarning": null,
      "actual": {
        "mode": "width",
        "layer": "internal",
        "I": 10,
        "width_mil": 736.8107715863429,
        "width_mm": 18.71499359829311,
        "area_mil2": 1015.3252432459805,
        "dT": 10,
        "copper_oz": 1,
        "thickness_mil": 1.378,
        "k": 0.024
      },
      "tol": 1e-9
    },
    {
      "id": "missing-I",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "width",
        "dT": 10
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "I is required"
    },
    {
      "id": "zero-dT",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "width",
        "I": 10,
        "dT": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "dT must be greater than zero"
    },
    {
      "id": "bad-layer",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "width",
        "I": 10,
        "dT": 10,
        "layer": "mid"
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "layer must be \"external\" or \"internal\""
    },
    {
      "id": "boundary-external-10a",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "width",
        "I": 10,
        "dT": 10,
        "copper_oz": 1,
        "layer": "external"
      },
      "expect": {
        "width_mil": 283.2319087512239,
        "k": 0.048
      },
      "expectWarning": null,
      "actual": {
        "mode": "width",
        "layer": "external",
        "I": 10,
        "width_mil": 283.2319087512239,
        "width_mm": 7.194090482281086,
        "area_mil2": 390.29357025918654,
        "dT": 10,
        "copper_oz": 1,
        "thickness_mil": 1.378,
        "k": 0.048
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-unc-I-dT",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "width",
        "I": 10,
        "dT": 10,
        "copper_oz": 1,
        "layer": "external",
        "u_I": 0.5,
        "u_dT": 1
      },
      "expect": {
        "width_mil": 283.2319087512239
      },
      "expectWarning": null,
      "actual": {
        "mode": "width",
        "layer": "external",
        "I": 10,
        "width_mil": 283.2319087512239,
        "width_mm": 7.194090482281086,
        "area_mil2": 390.29357025918654,
        "dT": 10,
        "copper_oz": 1,
        "thickness_mil": 1.378,
        "k": 0.048,
        "uncertainty": {
          "y": 283.2319087512239,
          "u_c": 26.01955958693784,
          "U": 52.03911917387568,
          "k": 2,
          "k_source": "user",
          "unit": "mil",
          "u_rel": 0.09186662513294737,
          "mode": "sensitivity",
          "primary": "width_mil",
          "contributions": [
            {
              "i": 0,
              "label": "I",
              "c": 39.066470172582605,
              "u": 0.5,
              "variance": 381.5472729363216,
              "percent": 56.35707844905321,
              "type": null,
              "nu": null
            },
            {
              "i": 1,
              "label": "dT",
              "c": -17.189246875936345,
              "u": 1,
              "variance": 295.4702081618874,
              "percent": 43.642921550946795,
              "type": null,
              "nu": null
            }
          ],
          "largest": {
            "i": 0,
            "label": "I",
            "percent": 56.35707844905321
          },
          "reported": {
            "u_c": 26,
            "y": 283,
            "significant_digits": 2,
            "decimal_places": 0,
            "formatted_u_c": "26",
            "formatted_y": "283",
            "k": 2,
            "U": 52,
            "formatted_U": "52"
          },
          "capability_id": "engineering.uncertainty.propagate"
        }
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-unc-k-without-u",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "width",
        "I": 10,
        "dT": 10,
        "uncertainty_k": 2
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "uncertainty_k requires at least one u_* input"
    },
    {
      "id": "property-width",
      "ok": true,
      "kind": "property",
      "detail": "10A external width",
      "expect": 283.2319087512239,
      "actual": 283.2319087512239
    },
    {
      "id": "property-roundtrip",
      "ok": true,
      "kind": "property",
      "detail": "width→I round-trip",
      "expect": 10,
      "actual": 10
    },
    {
      "id": "property-internal",
      "ok": true,
      "kind": "property",
      "detail": "internal wider",
      "expect": true,
      "actual": true
    },
    {
      "id": "property-more-I",
      "ok": true,
      "kind": "property",
      "detail": "2I → wider",
      "expect": true,
      "actual": true
    },
    {
      "id": "property-uncertainty-compose",
      "ok": true,
      "kind": "property",
      "detail": "u_* → sensitivity U on width_mil",
      "expect": {
        "width_mil": 283.2319087512239,
        "u_c": 26.01955958693784,
        "U": 52.03911917387568
      },
      "actual": {
        "y": 283.2319087512239,
        "u_c": 26.01955958693784,
        "U": 52.03911917387568,
        "k": 2,
        "k_source": "user",
        "unit": "mil",
        "u_rel": 0.09186662513294737,
        "mode": "sensitivity",
        "primary": "width_mil",
        "contributions": [
          {
            "i": 0,
            "label": "I",
            "c": 39.066470172582605,
            "u": 0.5,
            "variance": 381.5472729363216,
            "percent": 56.35707844905321,
            "type": null,
            "nu": null
          },
          {
            "i": 1,
            "label": "dT",
            "c": -17.189246875936345,
            "u": 1,
            "variance": 295.4702081618874,
            "percent": 43.642921550946795,
            "type": null,
            "nu": null
          }
        ],
        "largest": {
          "i": 0,
          "label": "I",
          "percent": 56.35707844905321
        },
        "reported": {
          "u_c": 26,
          "y": 283,
          "significant_digits": 2,
          "decimal_places": 0,
          "formatted_u_c": "26",
          "formatted_y": "283",
          "k": 2,
          "U": 52,
          "formatted_U": "52"
        },
        "capability_id": "engineering.uncertainty.propagate"
      }
    },
    {
      "id": "property-no-unc-omit",
      "ok": true,
      "kind": "property",
      "detail": "no u_* → no uncertainty object",
      "expect": null
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 15,
      "total": 15,
      "golden": 3,
      "boundary": 6,
      "property": 6
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-09-12T08:32:37.705Z",
  "rendered_at": "2026-09-16T22:03:43.715Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.1.1",
    "artifacts": {
      "engine": "1.1.1",
      "page": "1.1.1",
      "capability": "1.1.1",
      "evidence": "1.1.1",
      "input_schema": "1.1.1",
      "output_schema": "1.1.1",
      "mcp_contract": "1.1.1"
    },
    "digests": {
      "input_schema_sha256": "d1e90b3da4e4ecf021381bab0a4c623086bd91906768ffafc94d8d33959bade4",
      "output_schema_sha256": "bdf90386bd1c257900163ad73f8c237dd5a9b884b32e9f2b95a0342d529a89e3",
      "evidence_sha256": "0a53284df3e50e0c975fab7234b14c89c3f99932f56434c714a5b12a0c6851f2",
      "evidence_core_sha256": "0a53284df3e50e0c975fab7234b14c89c3f99932f56434c714a5b12a0c6851f2",
      "capability_sha256": "0e5e3553f6637e92ef67ab2bd42fc200aa791e778124bbf5c3eba1d01a2b3fdc",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.1.1"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        },
        {
          "id": "schema-coverage-requires-u",
          "status": "pass"
        },
        {
          "id": "schema-rejects-boundary-unc-k-without-u",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
