Data Productslive

RoofCostLab

Roofing cost calculators that show their math — real material prices, real crew hours, and every assumption written out so a homeowner can check it.

Category
Data Products
Stack
Astro · TypeScript · Tailwind CSS
Overview

Most roofing cost sites give you a number and hide the model behind it. RoofCostLab does the opposite: it publishes the material quantities, the crew hours, the labour rates and the assumptions, then shows the figure those inputs produce. Estimates are built from published 2026 retail material pricing and U.S. Bureau of Labor Statistics wage data adjusted for burden and overhead, with state selection to account for regional wage variation. Eighteen calculators cover replacement cost, pitch and squares, material-specific pricing for metal, flat, cedar shake, slate and tile, and components including gutters, sheathing, trusses, rafters, ventilation and snow load. The eighteenth, an itemised free roof estimate, breaks a replacement into materials, labour, tear-off, a decking allowance and the permit, prints as a one-page sheet, and checks up to three contractor quotes against it, all in the browser. RoofCostLab is our own product: MergeMain built it and has run it since it launched in August 2026.

The hard part

The editorial position is the engineering spec. If the promise is 'calculators that show their math', the math cannot be a formula buried in a component. RoofCostLab runs on one shared calculation engine: the same code renders each page's figures at build time and recalculates them in the browser as the inputs change, so the published number and the interactive one cannot drift apart. Quantities are what a roofer orders, not what the roof measures — materials are bought in whole units (bundles, rolls, sheets) and priced as ordered, and 225 unit tests hold that behaviour in place. The methodology is public, with a dated corrections log, and the site states plainly that its results are planning figures, not binding quotes.

Challenges
  • 01Making a cost model transparent enough for a homeowner to audit
  • 02Keeping published figures and the interactive calculators from drifting apart
  • 03Pricing materials the way a roofer buys them, not the way a roof measures
  • 04Accounting for regional labour cost variation across US states
Solutions
  • A public methodology listing every input with its source, plus a dated corrections log
  • One shared engine renders each page at build time and runs the calculator in the browser
  • Whole-unit ordering (bundles, rolls, sheets) priced as ordered, covered by 225 unit tests
  • BLS wage data adjusted for burden and overhead, keyed by state
What shipped
18 calculators across cost, measurement, material and component
Itemised free roof estimate that prints as a one-page sheet and checks up to three contractor quotes
One calculation engine, rendered at build time and in the browser from the same code
Materials ordered in whole units and priced as ordered, guarded by 225 unit tests
19 hand-written project cost pages
Per-pitch reference pages for 3/12, 4/12, 6/12 and 12/12 roofs
Public methodology page with a dated corrections log
State-level labour rate adjustment from BLS wage data
Guides on roof types, roof parts, vents, flashing and shingle types
Explore the product