{
  "schemaVersion": 1,
  "slug": "sqft-sqm-calculator",
  "category": "conversion",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "15434777a45e0ed0c5dae9f0a0449cf4276d383dd3a40488f8f75b3b4177d08c",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/sqft-sqm-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² = ft² × 0.09290304; ft² = m² ÷ 0.09290304",
    "vars": [
      [
        "v",
        "Entered area"
      ],
      [
        "ft²",
        "Square feet"
      ],
      [
        "m²",
        "Square metres"
      ]
    ],
    "note": "Uses 1 ft² = 0.09290304 m² and 1 acre = 4046.8564224 m²; negative areas are rejected."
  },
  "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": "1 square foot = 0.09290304 square metres.",
    "limitations": "Only the displayed unit definitions are converted; rounding and measurement uncertainty are separate.",
    "implementationHash": "15434777a45e0ed0c5dae9f0a0449cf4276d383dd3a40488f8f75b3b4177d08c",
    "domain": "conversion"
  },
  "contract": {
    "compute": "const F={\"ft2\":0.09290304,\"m2\":1}, U={\"ft2\":\"ft²\",\"m2\":\"m²\"}, L={\"ft2m\":[\"ft2\",\"m2\"],\"m2ft\":[\"m2\",\"ft2\"]}; const pair=Object.prototype.hasOwnProperty.call(L,direction)?L[direction]:[from,to], source=pair[0], target=pair[1]; if(!Number.isFinite(value)||value<0||value>1000000000000||!Object.prototype.hasOwnProperty.call(F,source)||!Object.prototype.hasOwnProperty.call(F,target))return {\"result\":null,\"squareFeet\":null,\"squareMetres\":null,\"acres\":null,\"__error\":\"inputError\"}; const base=value*F[source], out=(function(value,direction){if(value<0) return { result:null, squareFeet:null, squareMetres:null, acres:null, __error:'inputError' }; const m2 = direction === 'ft2m' ? value*0.09290304 : value; return { result: direction === 'ft2m' ? m2 : m2/0.09290304, squareFeet: m2/0.09290304, squareMetres: m2, acres: m2/4046.8564224 };})(base/F[\"ft2\"],\"ft2m\"); if(out.__error)return {...{\"result\":null,\"squareFeet\":null,\"squareMetres\":null,\"acres\":null},...out}; out.result=value*(F[source]/F[target]);out.__resultUnit=U[target];out.__unitRatio=F[target]/F[source];return out;",
    "inputs": [
      {
        "name": "value",
        "type": "number",
        "default": 1000,
        "min": 0,
        "max": 1000000000000,
        "step": 0.01,
        "requiredValue": true,
        "strictRange": true
      },
      {
        "name": "direction",
        "type": "select",
        "default": "auto",
        "options": [
          {
            "value": "auto"
          },
          {
            "value": "ft2m"
          },
          {
            "value": "m2ft"
          }
        ],
        "showWhen": {
          "from": []
        }
      },
      {
        "name": "precision",
        "type": "select",
        "default": 4,
        "options": [
          {
            "value": 0
          },
          {
            "value": 2
          },
          {
            "value": 4
          },
          {
            "value": 6
          }
        ]
      },
      {
        "name": "from",
        "type": "select",
        "default": "ft2",
        "options": [
          {
            "value": "ft2"
          },
          {
            "value": "m2"
          }
        ]
      },
      {
        "name": "to",
        "type": "select",
        "default": "m2",
        "options": [
          {
            "value": "m2"
          },
          {
            "value": "ft2"
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "result",
        "precision": 4,
        "unit": "",
        "precisionField": "precision",
        "unitField": "__resultUnit",
        "trimTrailingZeros": true,
        "notation": "auto"
      },
      {
        "name": "squareFeet",
        "precision": 4,
        "unit": "ft²",
        "showWhen": {
          "to": [
            "m2"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "squareMetres",
        "precision": 4,
        "unit": "m²",
        "showWhen": {
          "to": [
            "ft2"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "acres",
        "precision": 5,
        "unit": "ac",
        "notation": "auto"
      }
    ],
    "interpret": null
  }
}
