Construction calculator API: add roofing and material estimates to your app
65 JSON endpoints for roofing, decking, fencing, drywall, insulation, tile, gravel and concrete quantities, imperial or metric. Examples and a free key.
October 1, 2026 · 5 min read

If you build software for contractors or homeowners, sooner or later someone asks for "how many bundles of shingles?" or "how many fence posts?" right inside your app. Writing those formulas is easy to start and slow to get right: pitch factors, waste allowances, coverage per bundle, metric customers. The Construction Calculator API gives you the same formulas that run our calculator sites, as 65 JSON endpoints, so you can add a material estimate with one HTTP call.
What it covers
- Roofing (22 endpoints): pitch to angle and factor, roof area and squares, shingle bundles, underlayment, drip edge, ridge cap, nails, sheathing, valleys, attic ventilation, gutters, metal and flat roofs, snow load, labor.
- Decking (9) and fencing (9): boards with pattern waste, joists, screws, posts, footings, railings, pickets, rails, post concrete, chain-link takeoffs.
- Interiors: drywall sheets and full room takeoffs, mud and tape, blown-in and batt insulation to a target R-value, tile, grout, thinset and backer board.
- Outdoors and conversions: gravel, mulch, topsoil, sand, sod, grass seed, concrete slabs and footings, paint, unit and board-foot conversions.
Every endpoint accepts a GET query string or a POST JSON body and returns the same shape: your inputs after defaults, the result, a unit label for every number, plus notes and warnings. Add units=metric and lengths, areas, volumes and weights come back in metric; counts and money are never converted.
Example: a shingle order from a footprint
A 50 × 40 ft house with a 6/12 roof and 10% waste:
curl --get https://construction-calculator-api.p.rapidapi.com/v1/roofing/shingles \
-H "X-RapidAPI-Key: $RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: construction-calculator-api.p.rapidapi.com" \
-d length=50 -d width=40 -d pitch=6 -d wastePercent=10The response says the roof is 2,236 sq ft (24.6 squares with waste) and you need 74 bundles: the same figure our roofing calculator publishes for that roof. Chain a few more calls (underlayment, drip edge, ridge cap, nails) and you have a complete material list.
Where developers use it
- Quote and lead forms: a homeowner enters measurements; you show a material list and a price range before anyone visits the site.
- Estimating, CRM and field-service tools: attach quantities to a job record automatically.
- Supply stores and home-improvement apps: "you need 74 bundles" next to the product page.
- Spreadsheets and no-code: call it from Google Sheets (Apps Script), Zapier or Make with a plain GET request.
Getting a key
- Open the Construction Calculator API on RapidAPI and subscribe to the free Basic plan.
- Copy your
X-RapidAPI-Keyfrom the endpoint page and try any endpoint in the browser playground. - Keep the key on your server: call the API from your backend, not from browser JavaScript.
The full endpoint list, error codes and an OpenAPI 3.1 file you can import into Postman or Insomnia are on the API documentation page. Paid plans on RapidAPI raise the monthly request quota when you go live.
Accuracy and limits
The formulas are ported from our tested calculators, and the test suite pins the figures those sites and apps publish. They're planning estimates, not engineering: snow loads, trusses and footings still need a local code check. If you'd rather not code at all, our free web calculators do the same math by hand, starting with Smart Roofing Calculator.
Frequently asked questions
Is there a free plan?
Yes. The Basic plan on RapidAPI is free for testing; paid plans raise the monthly request quota.
Does the API support metric units?
Yes. Add units=metric to any call to send and receive metres, millimetres, square and cubic metres, kilograms, tonnes and litres. Counts and money are never converted.
Which trades does it cover?
Roofing, decking, fencing, drywall, insulation, tile, landscape and aggregates, concrete and paint, plus unit conversions: 65 endpoints in total.
Can I import it into Postman?
Yes. Import the OpenAPI 3.1 file linked from the documentation page.




