Construction Formula API

Free, open REST API for construction material calculations. No API key required. Returns JSON with formulas, results, and helpful notes.

Free — No API Key CORS Enabled GET & POST

Quick Start

GET Request

curl "https://buildcalcpro.org/api/calculate/concrete?length_ft=10&width_ft=10&thickness_in=4"

POST Request

curl -X POST "https://buildcalcpro.org/api/calculate/concrete" \
  -H "Content-Type: application/json" \
  -d '{"length_ft": 10, "width_ft": 10, "thickness_in": 4}'

Response

{
  "success": true,
  "calculator": "concrete",
  "inputs": {
    "shape": "slab",
    "quantity": 1,
    "length_ft": 10,
    "width_ft": 10,
    "thickness_in": 4
  },
  "results": {
    "volume_cubic_feet": 33.33,
    "volume_cubic_yards": 1.23,
    "volume_cubic_meters": 0.9439,
    "bags_80lb": 56,
    "bags_60lb": 74
  },
  "formula": "Volume (cu yd) = (Length_ft × Width_ft × Thickness_in ÷ 12) ÷ 27",
  "notes": "Add 5-10% extra for waste and spillage."
}

Available Calculators

Concrete

Volume in cubic yards, bags (80lb & 60lb) for slabs, footings, columns.

Endpoint

GET /api/calculate/concrete

Parameters

ParameterRequiredDescription
length_ftrequiredLength in feet (slab/footing)
width_ftrequiredWidth in feet (slab/footing)
thickness_inoptionalThickness in inches (default: 4)
shapeoptionalslab | footing | column | cylinder
diameter_inoptionalDiameter in inches (column/cylinder)
height_inoptionalHeight in inches (column/cylinder)
quantityoptionalNumber of shapes (default: 1)

Roofing

Shingle bundles, squares, underlayment rolls, ridge caps.

Endpoint

GET /api/calculate/roofing

Parameters

ParameterRequiredDescription
length_ftrequiredBuilding length in feet
width_ftrequiredBuilding width in feet
pitchoptionalRoof pitch, e.g. 4/12 (default: 4/12)
waste_pctoptionalWaste percentage (default: 10)

Drywall

Sheets, joint tape, compound, and screws for any room.

Endpoint

GET /api/calculate/drywall

Parameters

ParameterRequiredDescription
length_ftrequiredRoom length in feet
width_ftrequiredRoom width in feet
height_ftoptionalCeiling height (default: 8)
include_ceilingoptionaltrue/false (default: false)
sheet_sizeoptional4x8 or 4x12 (default: 4x8)
doorsoptionalNumber of doors (default: 0)
windowsoptionalNumber of windows (default: 0)

Paint

Gallons and liters of paint for room walls.

Endpoint

GET /api/calculate/paint

Parameters

ParameterRequiredDescription
length_ftrequiredRoom length in feet
width_ftrequiredRoom width in feet
height_ftoptionalCeiling height (default: 8)
doorsoptionalNumber of doors (default: 0)
windowsoptionalNumber of windows (default: 0)
coatsoptionalNumber of coats (default: 2)

Tile

Tiles and boxes needed with grout gap and waste factor.

Endpoint

GET /api/calculate/tile

Parameters

ParameterRequiredDescription
room_length_ftrequiredRoom length in feet
room_width_ftrequiredRoom width in feet
tile_length_inoptionalTile length in inches (default: 12)
tile_width_inoptionalTile width in inches (default: 12)
grout_gap_inoptionalGrout gap in inches (default: 0.125)
waste_pctoptionalWaste percentage (default: 10)

Gravel

Tons and cubic yards for driveways and landscaping.

Endpoint

GET /api/calculate/gravel

Parameters

ParameterRequiredDescription
length_ftrequiredArea length in feet
width_ftrequiredArea width in feet
depth_inoptionalDepth in inches (default: 4)
gravel_typeoptionalpea-gravel | crushed-stone | river-rock | etc.

Insulation

Depth, volume, rolls/bags based on R-value target.

Endpoint

GET /api/calculate/insulation

Parameters

ParameterRequiredDescription
area_sqftrequiredArea to insulate (sq ft)
target_r_valueoptionalTarget R-value (default: 38)
insulation_typeoptionalfiberglass-batt | blown-cellulose | spray-closed | etc.

Mulch & Soil

Cubic yards and bags for garden beds.

Endpoint

GET /api/calculate/mulch

Parameters

ParameterRequiredDescription
length_ftrequiredBed length in feet
width_ftrequiredBed width in feet
depth_inoptionalDepth in inches (default: 3)
materialoptionalmulch | topsoil | compost | gravel | sand

Brick & Block

Bricks/blocks and mortar bags for walls.

Endpoint

GET /api/calculate/brick

Parameters

ParameterRequiredDescription
wall_length_ftrequiredWall length in feet
wall_height_ftrequiredWall height in feet
brick_typeoptionalstandard-brick | modular-brick | cmu-8 | cmu-12
waste_pctoptionalWaste percentage (default: 10)

Lumber

Board feet and linear feet for lumber pieces.

Endpoint

GET /api/calculate/lumber

Parameters

ParameterRequiredDescription
thickness_inoptionalThickness in inches (default: 2)
width_inoptionalWidth in inches (default: 4)
length_ftoptionalLength in feet (default: 8)
quantityoptionalNumber of pieces (default: 1)

AI Agent Integration

This API is designed for AI agents, chatbots, and LLMs that need to perform construction calculations. Every response includes the formula used and contextual notes to help AI provide accurate answers.

OpenAPI Spec

Download the OpenAPI 3.0 specification for tool integration:

/api/openapi.json

LLM Discovery

Our llms.txt file includes API documentation for AI crawlers.