{
  "schemaVersion": 1,
  "slug": "dry-to-cooked-pasta-calculator",
  "category": "cooking",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "4ba6b578e67d158810751c9ce7842d611f06cb0c423677b0b77aef452c9a2a6d",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/dry-to-cooked-pasta-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": "m_c = 2.25 × m_d",
    "vars": [
      [
        "m_d",
        "Dry pasta (g)"
      ],
      [
        "m_c",
        "Cooked pasta (g)"
      ]
    ],
    "note": "Servings = cooked weight ÷ 200 g; approximate cups = cooked weight ÷ 140 g; estimated energy = 3.71 × dry weight in grams (USDA reference for dry enriched pasta, 371 kcal/100 g). Cooking yield and cup mass vary by pasta type and method."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "USDA Standard Reference — Dry pasta energy and portion data",
        "url": "https://www.nal.usda.gov/sites/default/files/page-files/Total%20Kcal.pdf"
      }
    ],
    "referenceRole": "input",
    "implementationHash": "4ba6b578e67d158810751c9ce7842d611f06cb0c423677b0b77aef452c9a2a6d",
    "basis": "m_c = 2.25 × m_d",
    "limitations": "Use the cited guidance and your own measurements, bills or product specifications to choose inputs. Sample defaults are not current local data."
  },
  "contract": {
    "compute": "const cooked = dryGrams*2.25; return { cookedGrams: cooked, servings: cooked/200, cups: cooked/140, calories: dryGrams*3.71 };",
    "inputs": [
      {
        "name": "dryGrams",
        "type": "number",
        "default": 100,
        "min": 0,
        "max": 100000,
        "step": 10
      }
    ],
    "outputs": [
      {
        "name": "cookedGrams",
        "precision": 0,
        "unit": "g"
      },
      {
        "name": "servings",
        "precision": 2,
        "unit": ""
      },
      {
        "name": "cups",
        "precision": 2,
        "unit": "cups"
      },
      {
        "name": "calories",
        "precision": 0,
        "unit": "kcal"
      }
    ],
    "interpret": null
  }
}
