Not every floor ships in whole boxes. When you sell by the square foot, the price is the floor area, plus the extra for cuts, times the rate for the wood the shopper picked.
This is a look inside the Flooring by the Room calculator on our Shopify demo store. It's built with Appify Custom Product Options.
The shopper picks a wood, measures each room, and chooses how much waste to add. The price summary then shows the square feet line by line before the total.
We've covered the measuring side before: how the Room map handles L-shapes and several rooms, and a room-map calculator that turns walls into whole boxes. This one is about the pricing.
What it does
The calculator has three options on one page: a Material swatch with three wood pictures, a Room map for the measurements, and an Add Waste Material dropdown. Waste starts at No waste.
In plain words, the price is the total area times the rate for the chosen wood. The total area is the rooms plus the waste. With prices in dollars, the rates are 7 a square foot for Dark, 6 for Medium and 5.50 for Light.
Why a per-square-foot flooring calculator is hard to build
- The shopper buys more floor than the room. A basic options app prices area as length times width times a rate, and that's the whole calculation. Here the shopper picks No waste or 5% to 20%, and Appify Custom Product Options adds it to the area before the rate applies.
- Each wood has its own rate. The rate sits on each Material swatch, so the price changes the moment the shopper picks a different wood. The square feet stay put.
- The area comes from the rooms, not a typed number. The Room map totals every room the shopper adds, and the formula reads that total, however many rooms there are.
- The shopper should see how the price was built. Basic options apps have no pricing variables. Here the area, the waste and the total area are each a named pricing variable, and each one gets its own line in the summary, in square feet.
- The floor plan has to survive the order. The rooms, walls, wood and waste all travel with the cart line. Shoppers can edit them from the cart, and reordering brings every choice back.
One price, worked out
Here's a 14 by 12 foot bedroom in the Medium wood, with 10% waste and prices in dollars. The shopper picks the rectangle shape, names the room and types the two lengths. The numbers below come straight from the calculator's price summary.
- Room Area: 168.00 sq ft.
- Waste Material: 10% of the room, 16.80 sq ft.
- Total Area: 184.80 sq ft.
- Perimeter and Rooms: 52.00 ft around, 1 room.
- Total: 184.80 sq ft at 6 a square foot comes to 1,108.80.
Switch the wood to Dark and only the rate changes. The 184.80 square feet stay the same.
The design decisions
Five pricing variables, built in order
The calculator keeps five pricing variables. AREA, PERIMETER and ROOMS read straight from the Room map.
WASTE is the area times the waste the shopper chose. TOTAL_AREA adds AREA and WASTE.
Variables run from top to bottom, so each one can use the ones above it. You can read the whole price in five short lines.
The waste dropdown holds a percentage, not a price
Add Waste Material offers No waste, 5%, 10%, 15% and 20%. Behind each choice is a plain number, from 0 up to 0.20.
The dropdown adds no money by itself. The WASTE variable reads it and turns it into square feet.
The rate lives on the swatch
Material is an image swatch with a wood picture on each choice. Each choice carries its rate in the option's values and pricing table: 7, 6 and 5.50. To change what a wood costs, you change one number on one row.
Square feet in one place, money in another. The variables work out how much floor the shopper needs, and the swatch knows what it costs. One short formula joins them, so a new rate never touches the area math, and a new waste option never touches a price.
One short total price formula
The total price formula is TOTAL_AREA times the price of the chosen Material. That's all of it. You don't have to write it yourself: describe the rule to Chat with AI and it writes the line.
A summary that speaks in square feet
The price summary lists five variables, each with Format value as price turned off and a value template such as "{result} sq ft". Perimeter reads in feet, Rooms is a whole number, and Total Area is in bold.
The shopper sees exactly how much extra the waste adds before they add to cart. Values shown this way are measurements, so they don't change with the shopper's currency.
The Room map does the measuring
The map is set to feet and inches, and every room must close before add to cart. A help line under the map tells shoppers they can start from a rectangle or an L and add more rooms.
What arrives with the order
The calculated price goes to checkout on one cart line. The line keeps the full walk: each room's name, every wall, the perimeter and the area. Add to cart also adds a Room map image link, one picture of all the rooms.
Cart properties carry the wood and the waste percentage the shopper chose, and the same details show on the app's Orders page.
Shoppers can tap Edit options in the cart to change the wood or add a room without starting over. Later, Appify Reorder brings the floor back with every choice filled in, where Shopify's own Buy again drops them.
Make it yours
- Add an underlay priced on the same floor. Add an underlay swatch with its own rate per square foot. The total price formula multiplies TOTAL_AREA by the two rates added together, so the underlay covers the same square feet as the wood.
- Set a floor for small jobs. A minimum price keeps a closet-sized order from pricing below the least you'll take.
- Sell by the box instead. The same area can round up to whole cartons. Our box-or-area breakdown shows how.
Get this calculator
Ask Chat with AI to build it in your own words. For example:
"Build a flooring calculator priced by the square foot."
"Add a Material image swatch with Dark at 7, Medium at 6 and Light at 5.50 a square foot."
"Add a Room map in feet and inches. Allow several rooms, starting from a rectangle or an L."
"Add a waste dropdown: No waste, 5%, 10%, 15% and 20%."
"Price it as room area plus waste, times the material rate."
Chat with AI builds the options and the pricing. Swap in your own rates, then check a room in the preview before you publish. For the wider picture, read how to sell custom flooring on Shopify.
FAQ
How do you price flooring by the square foot on Shopify?
Measure the floor with a Room map, then multiply the total area by your rate in the total price formula. Appify Custom Product Options can put a different rate on each wood choice.
Can shoppers choose how much waste to add?
Yes. A dropdown holds the percentages, a pricing variable turns the chosen one into square feet, and the price uses the area with waste added.
Can the price summary show square feet instead of dollars?
Yes. Add a pricing variable to the summary and give it a custom value template, such as "{result} sq ft".
Does changing the wood change the square footage?
No. Only the rate changes. The room area, waste and total area stay the same.
Do I need a variant for every wood and room size?
No. The wood is a swatch choice with its own rate, and the size comes from the Room map, so one product covers every floor.
Every room and every cut, priced by the square foot.
Whatever you sell, however you price it · The last options app you'll shop for