{
  "id": "firewood",
  "version": "24a1c07daa00",
  "status": "published",
  "name": "Firewood Calculator",
  "question": "How much firewood is in my stack?",
  "summary": "Firewood calculator: turns the length, height and piece length of a stacked pile into cords, face cords (ricks), cubic feet and cubic metres, with the cost at a price per cord.",
  "category": "construction",
  "subcategory": "materials",
  "url": "https://www.acalculator.org/construction/firewood-calculator",
  "markdown": "https://www.acalculator.org/construction/firewood-calculator.md",
  "kind": "function",
  "method": "Cubic feet = length × height × piece length × stacks; cords = cubic feet ÷ 128; face cords = length × height × stacks ÷ 32 ft²; steres = the volume in m³.",
  "assumptions": [
    "The wood is stacked tightly in straight rows, as a cord is defined; loose, thrown wood takes more room.",
    "A face cord (rick) is any 4 × 8 ft face, whatever the piece length, so its share of a cord depends on the piece length."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "l": {
        "title": "Stack length",
        "description": "How long the stack is along the ground.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      },
      "h": {
        "title": "Stack height",
        "description": "How high the wood is stacked.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      },
      "d": {
        "title": "Piece length",
        "description": "How deep the stack is: the length of one split piece.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      },
      "n": {
        "title": "Stacks",
        "description": "How many stacks of this size.",
        "type": "integer",
        "minimum": 1,
        "maximum": 10000
      },
      "p": {
        "title": "Price per cord",
        "description": "The price of one full cord. Leave empty to skip the cost.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 1000000
      }
    }
  },
  "outputs": {
    "cords": {
      "label": "Full cords",
      "description": "The stacked volume ÷ 128 ft³.",
      "format": "number"
    },
    "faceCords": {
      "label": "Face cords (ricks)",
      "description": "The face (length × height × stacks) ÷ 32 ft², a 4 × 8 ft face of any piece length.",
      "format": "number"
    },
    "cubicFeet": {
      "label": "Cubic feet",
      "description": "Length × height × piece length × stacks.",
      "format": "number"
    },
    "steres": {
      "label": "Cubic metres (steres)",
      "description": "The stacked volume in cubic metres; one stere is 1 m³ of stacked wood.",
      "format": "number"
    },
    "cost": {
      "label": "Cost",
      "description": "Full cords × the price per cord.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "l": 2.4384,
      "h": 1.2192,
      "d": 0.4064,
      "n": 1
    },
    "outputs": {
      "cords": 0.3333333333333333,
      "faceCords": 1,
      "cubicFeet": 42.666666666666664,
      "steres": 1.208185454592
    },
    "text": "Your stack is 0.333 cords (1 face cords, 42.67 ft³)."
  },
  "examples": [
    {
      "given": {
        "l": 2.4384,
        "h": 1.2192,
        "d": 1.2192,
        "n": 1
      },
      "expect": {
        "cords": 1,
        "cubicFeet": 128,
        "faceCords": 1,
        "steres": 3.624556363776
      },
      "source": "Wikipedia, Cord (unit) (a cord is 128 ft³, 4 ft high × 8 ft wide × 4 ft deep; a face cord or rick is 4 × 8 ft of 16 in wood, one third of a cord; 1 stere = 1 m³), https://en.wikipedia.org/wiki/Cord_(unit) (retrieved 2026-10-03); hand calculation in content.mdx: 8 × 4 × 4 = 128 ft³ = 1 cord"
    },
    {
      "given": {
        "l": 2.4384,
        "h": 1.2192,
        "d": 0.4064,
        "n": 1,
        "p": 300
      },
      "expect": {
        "cords": 0.3333333333333333,
        "faceCords": 1,
        "cubicFeet": 42.666666666666664,
        "cost": 100
      },
      "source": "Wikipedia, Cord (unit) (a cord is 128 ft³, 4 ft high × 8 ft wide × 4 ft deep; a face cord or rick is 4 × 8 ft of 16 in wood, one third of a cord; 1 stere = 1 m³), https://en.wikipedia.org/wiki/Cord_(unit) (retrieved 2026-10-03); hand calculation in content.mdx: 8 × 4 × 16 ÷ 12 = 42.67 ft³ = 1/3 cord; × $300 = $100",
      "tolerance": 1e-12
    },
    {
      "given": {
        "l": 6.096,
        "h": 1.524,
        "d": 0.4572,
        "n": 2
      },
      "expect": {
        "cubicFeet": 300,
        "cords": 2.34375,
        "faceCords": 6.25
      },
      "source": "Wikipedia, Cord (unit) (a cord is 128 ft³, 4 ft high × 8 ft wide × 4 ft deep; a face cord or rick is 4 × 8 ft of 16 in wood, one third of a cord; 1 stere = 1 m³), https://en.wikipedia.org/wiki/Cord_(unit) (retrieved 2026-10-03); hand calculation in content.mdx: 20 × 5 × 1.5 × 2 = 300 ft³ ÷ 128 = 2.34375 cords; face 200 ft² ÷ 32 = 6.25",
      "tolerance": 1e-12
    }
  ],
  "sources": [
    "Wikipedia, Cord (unit): a cord is 128 ft³ (4 × 4 × 8 ft); a face cord or rick is 4 × 8 ft of 16 in pieces, one third of a cord; 1 stere = 1 m³ ≈ 0.276 cords; Maine’s loose thrown cord, retrieved 2026-10-03. https://en.wikipedia.org/wiki/Cord_(unit)",
    "NIST Special Publication 811 (2008), Appendix B: 1 ft = 0.3048 m exactly, 1 in = 0.0254 m, retrieved 2026-10-03. https://www.nist.gov/pml/special-publication-811"
  ],
  "related": [
    "cubic-feet",
    "board-foot",
    "cubic-yards"
  ],
  "changelog": []
}
