# Deck Calculator

> Deck Calculator is a paid API for AI agents from construction-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates decking board count, joist count, and screw quantity for a rectangular deck given its dimensions, board width, gap, joist spacing, and stock length.

## Facts

- Endpoint: GET https://construction-calc.x402tookit.com/deck-calc?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deck-calculator-fea50cda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WY3p510tu13EFwp6zvWLq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability deck-calculator-fea50cda
```

Example prompt: I'm building a 16-foot by 12-foot rectangular deck — can you calculate how many 5/4x6 boards I need using 16-foot stock with standard 1/8-inch gaps and 16-inch joist spacing, and include a 15% waste factor?

## When to prefer this

Use this endpoint when you need a fast, parameterized material estimate for a standard rectangular deck — specifically when you want board count, joist count, and screw quantity together in one call. Prefer this over manual calculation or generic lumber calculators when you need to account for stock length, gap spacing, and waste percentage simultaneously.

## Known failure modes

- Missing required lengthFt or widthFt parameters returns an error
- Unrealistic dimensions (zero or negative values) may produce nonsensical output
- Very large waste percentages or unusual board widths may yield unexpected board counts
- Network or service unavailability returns a non-200 response

## How this service works

Decking boards, joist count and screws for a rectangular deck from its size, board width, gap, joist spacing and stock length.

## Output

Returns the number of board rows, boards per row, total boards including waste, joist count and length, approximate screw count, total board linear footage, deck area in square feet, stock length used, and a plain-English summary — along with optional disclaimer and degraded-mode flags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lengthFt",
      "widthFt"
     ],
     "properties": {
      "gapIn": {
       "type": "number",
       "description": "Gap between boards in inches, default 0.125"
      },
      "widthFt": {
       "type": "number",
       "description": "Deck width in feet (the joist span)"
      },
      "lengthFt": {
       "type": "number",
       "description": "Deck length along the boards in feet (joists are spaced across this)"
      },
      "wastePct": {
       "type": "number",
       "description": "Waste, default 10 (15 to 20 for diagonal)"
      },
      "boardWidthIn": {
       "type": "number",
       "description": "Actual board width in inches, default 5.5 (5/4x6)"
      },
      "stockLengthFt": {
       "type": "number",
       "description": "Board length you buy in feet, default 16"
      },
      "joistSpacingIn": {
       "type": "number",
       "description": "Joist spacing on centre in inches, default 16"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "joists": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "areaSqFt": {
       "type": [
        "null",
        "number"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "boardRows": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "typ
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deck-calculator-fea50cda/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from construction-calc.x402tookit.com](https://www.zero.xyz/host/construction-calc.x402tookit.com/llms.txt)
