{
  "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": "deck-cost-calculator",
  "category": "financial-adjacent",
  "title": "Deck Cost Calculator",
  "description": "Build a deck budget from its actual parts — surface, railing, footings and stairs — rather than one rate per square metre.",
  "url": "https://craftquantities.com/calculators/financial-adjacent/deck-cost-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/deck-cost-calculator.json",
  "inputCount": 9,
  "testCaseCount": 4,
  "sourceCount": 2,
  "lastVerified": "2026-08-27",
  "citation": {
    "author": "Craft Quantities",
    "title": "Deck Cost Calculator",
    "version": "1.0.0",
    "sourcesChecked": "2026-08-27",
    "url": "https://craftquantities.com/calculators/financial-adjacent/deck-cost-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. Deck Cost Calculator. Version 1.0.0. Sources checked 2026-08-27. https://craftquantities.com/calculators/financial-adjacent/deck-cost-calculator/",
      "apa": "Craft Quantities. (2026). Deck Cost Calculator (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/financial-adjacent/deck-cost-calculator/",
      "harvard": "Craft Quantities (2026) Deck Cost Calculator (Version 1.0.0). Available at: https://craftquantities.com/calculators/financial-adjacent/deck-cost-calculator/",
      "bibtex": "@misc{craftquantities-calculators-financial-adjacent-deck-cost-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Deck Cost Calculator},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/financial-adjacent/deck-cost-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "deckArea",
      "label": "Deck area",
      "type": "number",
      "dimension": "area",
      "defaultValue": 30,
      "min": 0.01,
      "max": 2000,
      "step": 0.5,
      "help": "Plan area of the deck surface."
    },
    {
      "id": "areaRate",
      "label": "Surface rate (per m², materials + labour)",
      "type": "number",
      "defaultValue": "",
      "min": 0,
      "max": 100000,
      "step": 1,
      "help": "Your rate for boards, joists and fixing.",
      "money": {
        "role": "rate",
        "appliesTo": "deckArea"
      }
    },
    {
      "id": "railingLength",
      "label": "Railing length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 20,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "Total length of railing."
    },
    {
      "id": "railingRate",
      "label": "Railing rate (per m)",
      "type": "number",
      "defaultValue": "",
      "min": 0,
      "max": 100000,
      "step": 1,
      "help": "Your rate per linear metre.",
      "money": {
        "role": "rate",
        "appliesTo": "railingLength"
      }
    },
    {
      "id": "footingCount",
      "label": "Number of footings",
      "type": "number",
      "defaultValue": 12,
      "min": 0,
      "max": 500,
      "step": 1,
      "help": "Post footings below the deck."
    },
    {
      "id": "footingRate",
      "label": "Rate per footing",
      "type": "number",
      "defaultValue": "",
      "min": 0,
      "max": 100000,
      "step": 1,
      "help": "Excavation, concrete and post base.",
      "money": {
        "role": "rate",
        "appliesTo": "footingCount"
      }
    },
    {
      "id": "stairRisers",
      "label": "Stair risers",
      "type": "number",
      "defaultValue": 4,
      "min": 0,
      "max": 100,
      "step": 1,
      "help": "Number of steps down to ground."
    },
    {
      "id": "stairRate",
      "label": "Rate per riser",
      "type": "number",
      "defaultValue": "",
      "min": 0,
      "max": 100000,
      "step": 1,
      "help": "Stringer, tread and fixing per step.",
      "money": {
        "role": "rate",
        "appliesTo": "stairRisers"
      }
    },
    {
      "id": "contingencyPercent",
      "label": "Contingency (%)",
      "type": "number",
      "defaultValue": 10,
      "min": 0,
      "max": 50,
      "step": 1,
      "help": "Allowance for what you have not found yet."
    }
  ],
  "sources": [
    {
      "label": "Element-based estimating. Rates are user-supplied; no market data is embedded."
    },
    {
      "label": "Railing and stairs are priced per linear metre and per riser because their cost does not scale with deck area"
    }
  ],
  "testCases": [
    {
      "name": "30 m² deck with all elements priced",
      "inputs": {
        "deckArea": 30,
        "areaRate": 180,
        "railingLength": 20,
        "railingRate": 120,
        "footingCount": 12,
        "footingRate": 95,
        "stairRisers": 4,
        "stairRate": 140,
        "contingencyPercent": 10
      },
      "expected": 10450,
      "toleranceDecimalPlaces": 2,
      "unit": "currency",
      "confidence": "medium",
      "steps": [
        {
          "label": "Deck surface",
          "value": 5400,
          "unit": "currency"
        },
        {
          "label": "Railing",
          "value": 2400,
          "unit": "currency"
        },
        {
          "label": "Footings",
          "value": 1140,
          "unit": "currency"
        },
        {
          "label": "Stairs",
          "value": 560,
          "unit": "currency"
        },
        {
          "label": "Contingency",
          "value": 950,
          "unit": "currency"
        },
        {
          "label": "Cost per unit area of deck",
          "value": 348.3333333333333,
          "unit": "currency/m²"
        },
        {
          "label": "Railing share of the total",
          "value": 22.966507177033492,
          "unit": "%"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Zero rates give zero cost",
      "inputs": {
        "deckArea": 30,
        "areaRate": 0,
        "railingLength": 20,
        "railingRate": 0,
        "footingCount": 12,
        "footingRate": 0,
        "stairRisers": 4,
        "stairRate": 0,
        "contingencyPercent": 10
      },
      "expected": 0,
      "toleranceDecimalPlaces": 8,
      "unit": "currency",
      "confidence": "medium",
      "steps": [
        {
          "label": "Deck surface",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Railing",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Footings",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Stairs",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Contingency",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Cost per unit area of deck",
          "value": 0,
          "unit": "currency/m²"
        },
        {
          "label": "Railing share of the total",
          "value": 0,
          "unit": "%"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "No contingency lowers the total",
      "inputs": {
        "deckArea": 30,
        "areaRate": 180,
        "railingLength": 20,
        "railingRate": 120,
        "footingCount": 12,
        "footingRate": 95,
        "stairRisers": 4,
        "stairRate": 140,
        "contingencyPercent": 0
      },
      "expected": 9500,
      "toleranceDecimalPlaces": 2,
      "unit": "currency",
      "confidence": "medium",
      "steps": [
        {
          "label": "Deck surface",
          "value": 5400,
          "unit": "currency"
        },
        {
          "label": "Railing",
          "value": 2400,
          "unit": "currency"
        },
        {
          "label": "Footings",
          "value": 1140,
          "unit": "currency"
        },
        {
          "label": "Stairs",
          "value": 560,
          "unit": "currency"
        },
        {
          "label": "Contingency",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Cost per unit area of deck",
          "value": 316.6666666666667,
          "unit": "currency/m²"
        },
        {
          "label": "Railing share of the total",
          "value": 25.263157894736842,
          "unit": "%"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Surface only, no railing or stairs",
      "inputs": {
        "deckArea": 30,
        "areaRate": 180,
        "railingLength": 0,
        "railingRate": 120,
        "footingCount": 0,
        "footingRate": 95,
        "stairRisers": 0,
        "stairRate": 140,
        "contingencyPercent": 10
      },
      "expected": 5940,
      "toleranceDecimalPlaces": 2,
      "unit": "currency",
      "confidence": "medium",
      "steps": [
        {
          "label": "Deck surface",
          "value": 5400,
          "unit": "currency"
        },
        {
          "label": "Railing",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Footings",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Stairs",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Contingency",
          "value": 540,
          "unit": "currency"
        },
        {
          "label": "Cost per unit area of deck",
          "value": 198,
          "unit": "currency/m²"
        },
        {
          "label": "Railing share of the total",
          "value": 0,
          "unit": "%"
        }
      ],
      "basis": "ambiguous"
    }
  ]
}
