{
  "schemaVersion": 1,
  "slug": "tablespoon-teaspoon-calculator",
  "category": "conversion",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "2a0235af0bac0bafa934191e37f8459c63ae5de9e856e84cb04e88d74a418d1c",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/tablespoon-teaspoon-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": "V_ml = V₁ × f",
    "vars": [
      [
        "V₁",
        "Entered amount"
      ],
      [
        "f",
        "Millilitres per source unit"
      ],
      [
        "V_ml",
        "Amount in millilitres"
      ]
    ],
    "note": "US factors: tbsp 14.7868 ml, tsp 4.9289 ml, Australian tbsp 20 ml, cup 236.588 ml, fl oz 29.5735 ml. Tablespoons = V_ml ÷ 14.7868; 1 tbsp = 3 tsp."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "NIST SP 811 — Volume conversion factors",
        "url": "https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b8"
      }
    ],
    "referenceRole": "definition",
    "implementationHash": "2a0235af0bac0bafa934191e37f8459c63ae5de9e856e84cb04e88d74a418d1c",
    "basis": "V_ml = V₁ × f",
    "limitations": "The references explain definitions and methods; any extra preset must be checked against the assumptions on this page."
  },
  "contract": {
    "compute": "const F={\"tbsp\":14.78676478125,\"tsp\":4.92892159375,\"tbspau\":20,\"ml\":1,\"cup\":236.5882365,\"floz\":29.5735295625},U={\"tbsp\":\"US tbsp\",\"tsp\":\"US tsp\",\"tbspau\":\"AU tbsp\",\"ml\":\"mL\",\"cup\":\"US cup\",\"floz\":\"US fl oz\"};if(!Number.isFinite(value)||value<-1000000||value>1000000||!Object.prototype.hasOwnProperty.call(U,from)||!Object.prototype.hasOwnProperty.call(U,to))return {\"result\":null,\"tablespoons\":null,\"teaspoons\":null,\"ml\":null,\"cups\":null,\"flOz\":null,\"__error\":\"inputError\"};const source=unit==='auto'?from:unit;if(!Object.prototype.hasOwnProperty.call(F,source))return {\"result\":null,\"tablespoons\":null,\"teaspoons\":null,\"ml\":null,\"cups\":null,\"flOz\":null,\"__error\":\"inputError\"};const ml=value*F[source];return {result:ml/F[to],tablespoons:ml/F.tbsp,teaspoons:ml/F.tsp,ml,cups:ml/F.cup,flOz:ml/F.floz,__resultUnit:U[to],__unitRatio:F[to]/F[source]};",
    "inputs": [
      {
        "name": "value",
        "type": "number",
        "default": 2,
        "min": -1000000,
        "max": 1000000,
        "step": 0.25,
        "requiredValue": true,
        "strictRange": true
      },
      {
        "name": "unit",
        "type": "select",
        "default": "auto",
        "options": [
          {
            "value": "auto"
          },
          {
            "value": "tbsp"
          },
          {
            "value": "tsp"
          },
          {
            "value": "tbspau"
          },
          {
            "value": "ml"
          },
          {
            "value": "cup"
          },
          {
            "value": "floz"
          }
        ],
        "showWhen": {
          "from": []
        }
      },
      {
        "name": "from",
        "type": "select",
        "default": "tbsp",
        "options": [
          {
            "value": "tbsp"
          },
          {
            "value": "tsp"
          },
          {
            "value": "tbspau"
          },
          {
            "value": "ml"
          },
          {
            "value": "cup"
          },
          {
            "value": "floz"
          }
        ]
      },
      {
        "name": "to",
        "type": "select",
        "default": "tsp",
        "options": [
          {
            "value": "tsp"
          },
          {
            "value": "tbsp"
          },
          {
            "value": "tbspau"
          },
          {
            "value": "ml"
          },
          {
            "value": "cup"
          },
          {
            "value": "floz"
          }
        ]
      },
      {
        "name": "precision",
        "type": "select",
        "default": 4,
        "options": [
          {
            "value": 0
          },
          {
            "value": 2
          },
          {
            "value": 4
          },
          {
            "value": 6
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "result",
        "precision": 4,
        "precisionField": "precision",
        "unitField": "__resultUnit",
        "trimTrailingZeros": true,
        "notation": "auto"
      },
      {
        "name": "tablespoons",
        "precision": 4,
        "unit": "tbsp",
        "notation": "auto",
        "showWhen": {
          "to": [
            "tsp",
            "tbspau",
            "ml",
            "cup",
            "floz"
          ]
        }
      },
      {
        "name": "teaspoons",
        "precision": 3,
        "unit": "tsp",
        "notation": "auto",
        "showWhen": {
          "to": [
            "tbsp",
            "tbspau",
            "ml",
            "cup",
            "floz"
          ]
        }
      },
      {
        "name": "ml",
        "precision": 2,
        "unit": "ml",
        "notation": "auto",
        "showWhen": {
          "to": [
            "tbsp",
            "tsp",
            "tbspau",
            "cup",
            "floz"
          ]
        }
      },
      {
        "name": "cups",
        "precision": 5,
        "unit": "cups",
        "notation": "auto",
        "showWhen": {
          "to": [
            "tbsp",
            "tsp",
            "tbspau",
            "ml",
            "floz"
          ]
        }
      },
      {
        "name": "flOz",
        "precision": 3,
        "unit": "fl oz",
        "notation": "auto",
        "showWhen": {
          "to": [
            "tbsp",
            "tsp",
            "tbspau",
            "ml",
            "cup"
          ]
        }
      }
    ],
    "interpret": null
  }
}
