Wall Math is a set of three small calculators: paint, wallpaper, flooring. The flooring one is the simplest arithmetic on the site and the one that taught me the most about what a calculator owes its user. The whole engine function is nine lines. Here is the part that matters:
const requiredArea = area * (1 + extra / 100);
const boxes = Math.ceil(requiredArea / perBox);
return {
area, requiredArea, boxes,
purchasedArea: boxes * perBox,
excessArea: boxes * perBox - area,
roundingExtra: boxes * perBox - requiredArea,
};
Area, allowance, divide by the carton, round up. Every flooring calculator on the internet does this. The difference is in what gets returned, and the two extra fields at the bottom are the reason this post exists.
Two kinds of "extra"
When you buy flooring you always take home more than your floor. There are two reasons, and they are not the same kind of thing.
The first is the allowance you chose for cuts, mistakes and a spare plank or two. Ten percent is the number people repeat. It is a decision, and it is yours.
The second is that cartons come in fixed sizes. You cannot buy 3.86 cartons, so you buy 4, and the last carton's remainder lands on your garage floor whether you wanted it or not. That is not a decision. It is arithmetic.
Most calculators add these together and show one number: "you need 4 boxes." The user then reads that as "my 10 percent allowance is included," which is true, and concludes the allowance did something, which is often false.
The worked example that changed the output
A 12-by-15 foot living room is 180 square feet. Take three vinyl plank products from one manufacturer, all cut to the same 7-by-48-inch plank, with cartons of 51.33, 23.64 and 18.91 square feet. Those three figures come from Shaw's own product pages, read on 2026-09-10, and the exact styles are listed in the sources below.
With a 10 percent allowance, the area to cover becomes 198 square feet:
| Carton | 198 ÷ carton | Buy | Coverage |
|---|---|---|---|
| 51.33 | 3.86 | 4 | 205.32 |
| 23.64 | 8.38 | 9 | 212.76 |
| 18.91 | 10.47 | 11 | 208.01 |
Now run the same floor with no allowance at all: 180 ÷ 51.33 is 3.51, so still 4 cartons. The other two drop to 8 and 10.
For the largest carton, the 10 percent bought exactly nothing. Four cartons either way. That floor was already going to arrive with 25.32 square feet spare, because you cannot buy three and a half cartons, and 25.32 is more than the 18 square feet that a 10 percent allowance on 180 square feet adds. The rounding had already handed you more than the allowance was ever going to.
On the smallest carton, the same 10 percent is the difference between 10 and 11 cartons. Real money, and also real safety, since dropping it leaves 9.10 square feet spare instead of 28.01.
Same room. Same rule of thumb. It costs a carton in one case and zero in another, and the thing that decides which is a number printed on the side of the box that most people have never looked up.
What the calculator returns now
So the result object separates them. excessArea is everything above the measured floor. roundingExtra is only the part above the area you asked for, the part you could not have avoided at that carton size. The page shows both, and a small chart on the rounding guide draws three bars for a 120 square foot floor: the floor, the floor with 10 percent, and what you actually buy in 23.64 square foot cartons. At 0, 10 and 15 percent allowance that floor is 6 cartons every time. Six, six, six. The allowance slider moves and the answer does not.
I think that is the single most useful thing the page does. Not the count. The count any spreadsheet can produce. The useful part is telling someone, before they drive to the store, that the decision they are agonising over changes nothing for their carton, or that it changes exactly one carton and here is what that carton buys them.
Nobody upstream publishes the 10 percent
We went looking for where the rule comes from. Shaw's vinyl planning and installation page and its flooring overview page, both read on 2026-09-10, state no waste or overage percentage and give no quantity guidance at all. What they do say is to "always work from multiple cartons to achieve a uniform appearance," which is worth knowing if your plan was to open one box at a time and return the rest.
So the calculator labels the allowance as the user's input, not a recommendation. The assumption string in the result says so in plain words, and the page repeats it. Which number did you assume was a rule the last time you bought flooring?
Checking arithmetic you publish
Every worked number in the guides, including the 0 to 15 percent allowance table, was computed by hand and matched against the engine's regression tests before the pages went live. That is slow, and it is the only way I know to publish a table of numbers under my own name without flinching. The whole formula fits on one line: floor area × (1 + allowance) ÷ square feet per carton, rounded up. The work is in saying which part of the answer was your choice.
The calculator is here: https://www.wallmath.com/flooring-calculator/
Sources
- Shaw Prime Plank, style 0616V: 51.33 sq ft per carton, 7 in × 48 in planks: https://shawfloors.com/en-us/vinyl/prime-plank-greyed-oak-7-/0616v-00532
- Shaw Distinction Plus, style 2045V: 23.64 sq ft per carton: https://shawfloors.com/en-us/vinyl/distinction-plus-barrel-oak-7-/2045v-07066
- Shaw Paladin Plus, style 0278V: 18.91 sq ft per carton: https://shawfloors.com/en-us/vinyl/paladin-plus-fresh-pine-7-/0278v-05052
- Shaw vinyl planning and installation page, no waste percentage stated (read 2026-09-10): https://shawfloors.com/en-us/plan-and-install/vinyl
- Wall Math rounding guide (allowance vs whole-box rounding): https://www.wallmath.com/flooring-boxes/
Top comments (0)