Your room
The longer side of the main rectangle.
The shorter side.
Bay windows, closets or niches that also get floor. Use 0 if none.
Your floor
Each type has its own price per m², pack size and waste allowance in the workbook.
Diagonal and herringbone cut more boards, so they add extra waste.

CalcBuilder example

Flooring Material Estimator

September 21, 2026

Flooring Material Estimator shown on the live frontend, with a calculated result.

Live result on the frontend

Excel-powered flooring estimator: enter the room size, floor type and layout to get packs to order, total cost and a price comparison of every floor type.

The Flooring Material Estimator is powered by a real Excel workbook that holds the price table, pack sizes and waste allowances. Calc Builder writes the room and choices into the sheet, lets it recalculate and turns the results into a quote-ready dashboard.

What it calculates

A visitor enters a room length and width, an optional alcove area, a floor type and a layout pattern. The workbook returns:

  • Room area and waste — the floor area plus the recommended waste for the floor type and the extra waste that diagonal or herringbone layouts need.
  • Packs to order — the area to buy divided by the coverage of one pack and rounded up with ROUNDUP, plus the flooring left over.
  • Cost — the total price and the cost per m² of room, using the price per m² of the chosen floor type.
  • Comparison — the total cost of the same room on all four floor types, read back from the Prices sheet and drawn as bars, with the cheapest one flagged.

How it’s built

The Spreadsheet screen holds the workbook with two sheets: Estimator (inputs and results) and Prices (a price table for four floor types and a waste table for three layouts). Five input mappings write the Number fields and the two Option Lists into cells B4:B8; the lists send a type number that the sheet turns into names, prices and waste with INDEX/MATCH. Ten output mappings bring the result cells back into PHP variables. The execution mode is custom, so the //[EXCEL] marker in the PHP Code shows exactly where the sheet runs.

Mapped output cells arrive as formatted text (such as 1,924.56), so the PHP Code strips the separators before doing arithmetic. After the marker $objPHPExcel is the loaded workbook, so the code also reads the price table and the per-type totals from the Prices sheet to build the comparison, and draws a room sketch whose pattern follows the layout. The workbook is available for download below: import the calculator, then upload the Excel file on its Spreadsheet screen.

Flooring Material Estimator - input form on the frontend

The input form as your visitors see it, styled with the Form Layout.

Flooring Material Estimator - Spreadsheet screen

The Spreadsheet screen: the workbook is uploaded here and the execution mode is set.

Flooring Material Estimator - input field mapping

Input mapping: each Calc Builder variable is written into a cell of the workbook before it recalculates.

Flooring Material Estimator - PHP Code screen

The PHP Code: the //[EXCEL] marker runs the sheet, then the Prices sheet is read back to draw the comparison and the room sketch.

Want this exact example on your own site?

Download the file above, then in your Joomla admin open Components › CalcBuilder › Import and upload it — it's the same file you'd get from that component's own Export button, so it drops in as a ready-to-use, fully working copy in one step.

This example is powered by an Excel workbook. After importing the calculator, open its Spreadsheet screen, upload the Excel file below and save — the cell mappings come with the import.