Skip to content
Takeoff Daddy
Announcement

We Open Sourced Our Construction Calculators

The pure math behind 26 free calculators (concrete, roofing, lumber, labor cost, and more) is now a zero-dependency TypeScript npm package anyone can use.

Why we did it

By the Takeoff Daddy team. Published April 4, 2026.

When we did this, Takeoff Daddy had 26 free construction calculators: concrete volume, roofing cost, lumber board feet, labor burden, critical path scheduling, and more. The site has 45 today.

The math powering those calculators was buried inside React components, tightly coupled to UI state and browser APIs. It couldn't be used outside the browser, couldn't be unit tested cleanly, and was invisible to the developer community.

So we extracted all of it into a standalone TypeScript package and open sourced it. No React. No DOM. No dependencies. Just pure calculation functions that work anywhere JavaScript runs.

What's in the package

The package is available from GitHub and covers 26 calculation domains across five categories:

Concrete & masonry

Materials & aggregates

Roofing

Structures & exterior

Business & finance

How to use it

Install from the GitHub source package. Then import any function into your project, such as calculateConcrete, calculateMarkup or calculateRoofingCost, and use it:

  • // Concrete for a 20 x 30 ft slab, 4 inches thick
  • const slab = calculateConcrete({ shape: 'rectangular', length: 20, width: 30, depth: 4 / 12, units: 'imperial' })
  • console.log(slab.volumeCuYd) // 7.41 cubic yards
  • console.log(slab.bagsNeeded) // 445 x 60 lb bags
  • // Price it with a 25% markup
  • const quote = calculateMarkup({ costs: 850, markupPercent: 25 })
  • console.log(quote.totalWithMarkup) // $1,062.50
  • console.log(quote.profitMarginPercent) // 20%

Every function accepts a units parameter, 'imperial' or 'metric', and returns a fully typed result object. No setup, no configuration, no side effects.

Design decisions

A few things we were deliberate about:

  • Zero dependencies. Nothing to audit, nothing to break, no supply chain risk.
  • Pure functions only. Input object in, result object out. No globals, no state, no DOM.
  • TypeScript first. Full types on every input and output. Your editor will autocomplete the whole API.
  • Dual ESM + CJS output. Works in Next.js, Vite, Node scripts, edge runtimes, anywhere.
  • Imperial and metric. Every calculator supports both unit systems natively.

What's next

The package is live and open source. We'd love contributions, especially for areas we haven't covered yet: HVAC load calculations, electrical, plumbing, sitework, and earthworks.

We're also planning a WordPress plugin, so any contractor or construction blog can embed these calculators with a single shortcode. More on that soon.

In the meantime, try the live calculators, star the repo on GitHub, or install the package and let us know what you build with it.

See Takeoff Daddy on your drawings

See a plan set go from AI takeoff to a priced quote. $299 per seat per month with unlimited takeoffs, or $2,990 per seat per year. 14-day free trial, card required.

14-day free trial. Card required. $299 per seat per month after.

Want AI-powered takeoffs and estimates?

See Takeoff Daddy. It turns your plans into a complete material list and quote in minutes.

14-day free trial. Card required. $299 per seat per month after.