{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "ohms-law-calculator",
  "category": "electrical",
  "title": "Ohm's Law Calculator",
  "description": "Enter voltage and resistance to get the current and power that follow from Ohm's Law.",
  "url": "https://craftquantities.com/calculators/electrical/ohms-law-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/ohms-law-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-02",
  "citation": {
    "author": "Craft Quantities",
    "title": "Ohm's Law Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-02",
    "url": "https://craftquantities.com/calculators/electrical/ohms-law-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Ohm's Law Calculator. Version 1.0.1. Sources checked 2026-09-02. https://craftquantities.com/calculators/electrical/ohms-law-calculator/",
      "apa": "Craft Quantities. (2026). Ohm's Law Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/electrical/ohms-law-calculator/",
      "harvard": "Craft Quantities (2026) Ohm's Law Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/electrical/ohms-law-calculator/",
      "bibtex": "@misc{craftquantities-calculators-electrical-ohms-law-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Ohm's Law Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/electrical/ohms-law-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "voltage",
      "label": "Voltage (V)",
      "type": "number",
      "defaultValue": 12,
      "min": 0,
      "max": 500,
      "step": 0.1,
      "help": "The voltage across the circuit or component."
    },
    {
      "id": "resistance",
      "label": "Resistance (Ω)",
      "type": "number",
      "defaultValue": 4,
      "min": 0.01,
      "max": 100000,
      "step": 0.1,
      "help": "The resistance of the circuit or component, in ohms."
    }
  ],
  "sources": [
    {
      "label": "Ohm's Law: V = I x R. Power equation: P = V x I. Both are exact, universal physics relationships, not rules of thumb."
    }
  ],
  "testCases": [
    {
      "name": "12V across 4 ohms",
      "inputs": {
        "voltage": 12,
        "resistance": 4
      },
      "expected": 3,
      "toleranceDecimalPlaces": 2,
      "unit": "A (current)",
      "confidence": "high",
      "steps": [
        {
          "label": "Power",
          "value": 36,
          "unit": "W"
        },
        {
          "label": "Voltage",
          "value": 12,
          "unit": "V"
        },
        {
          "label": "Resistance",
          "value": 4,
          "unit": "Ω"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "120V across 60 ohms",
      "inputs": {
        "voltage": 120,
        "resistance": 60
      },
      "expected": 2,
      "toleranceDecimalPlaces": 2,
      "unit": "A (current)",
      "confidence": "high",
      "steps": [
        {
          "label": "Power",
          "value": 240,
          "unit": "W"
        },
        {
          "label": "Voltage",
          "value": 120,
          "unit": "V"
        },
        {
          "label": "Resistance",
          "value": 60,
          "unit": "Ω"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
