Price Calculator by Dimensions for Shopify: Worked Examples

Price calculator by dimensions: the short answer
To price by dimensions on Shopify, multiply width by height to get area, add a waste allowance, divide by the coverage of one package and round up to a whole number. Shopify then charges the catalog price times that quantity. The calculator's job is to produce the right quantity and show the shopper the total before checkout, not to override the price.
The formula in one block
- Area = width x height (both in the same unit)
- Needed area = area x (1 + waste %)
- Packages = needed area / coverage per package, rounded up to a whole number
- Total = packages x catalog price per package
If you sell by the unit (per square foot or per square metre) instead of by the box, skip step 3's package coverage and round up to the smallest unit your catalog sells.
What "dimensions" can mean
Width x height is the most common case, but a measurement price calculator can start from different inputs:
- Area: room, wall, window or lawn size, turned into square feet or square metres.
- Length: a cut length of fabric, trim, rope or turf roll, in feet or metres.
- Volume: mulch, gravel or soil, in cubic yards or cubic metres.
- Weight: bulk goods, in pounds or kilograms.
Some merchants call this a unit price calculator, because the end result is a price per unit multiplied by a computed number of units. For a fuller definition, see how a measurement price calculator works.
Why Shopify needs help with width x height pricing
Shopify has no native field where a shopper types 12 and 14 and gets a quantity back. Out of the box, each variant has one price and the cart takes a whole-number quantity. Anything that depends on room size has to be solved on top of that.
Native Shopify: price is per variant, quantity is a whole number
If you sell tile by the box, the shopper has to do the math themselves: measure the room, add waste, divide by box coverage, round up, then type the result into the quantity field. Many do it wrong. Some forget waste, some round down, and some mix up square feet and square metres. The full background is in our guide on how to sell by square foot on Shopify.
Searches for a "WooCommerce measurement price calculator" often assume a cart line's price can be computed freely from the size entered. Shopify works differently: the price comes from the catalog, and the quantity is what varies. That is not a flaw to hide. It is the rule any honest Shopify calculator has to work within.
Why one variant per size fails
The usual workaround is a variant for every size: 12 x 14, 12 x 15, 13 x 14, and so on. It breaks down quickly:
- Shopify limits how many variants a product can have, and even a modest range of widths and heights multiplies fast.
- Every price change means editing hundreds of variants.
- Shoppers with a 12.5 x 14.25 ft room have no variant that fits, so they pick one that is close and hope.
- The variant sets a price, but it still does not tell the shopper how many boxes cover that size, so quantities are still wrong.
Why quote forms and "enter size in notes" fail
A quote form or an order-note field moves the math to your team. Someone reads the note, works out the quantity, emails a corrected total and waits for a reply. Wrong sizes, typos and unit mix-ups turn into manual order edits, partial refunds, returns and support tickets. It also adds a delay at exactly the moment the shopper is ready to buy.
Worked example 1: 12 x 14 ft room, 10% waste, 20 sq ft boxes
A shopper is covering a 12 x 14 ft room with laminate that comes in boxes of 20 sq ft. You recommend 10% waste for cuts and mistakes. The price of $54.00 per box is an example figure for this walkthrough.
Step-by-step math with rounding table
| Step | Calculation | Result |
|---|---|---|
| Room area | 12 x 14 | 168 sq ft |
| Add 10% waste | 168 x 1.10 | 184.8 sq ft |
| Boxes needed | 184.8 / 20 | 9.24 boxes |
| Round up | ceiling of 9.24 | 10 boxes |
| Coverage purchased | 10 x 20 | 200 sq ft |
| Spare material | 200 - 184.8 | 15.2 sq ft above the waste-adjusted need |
Rounding down to 9 boxes gives 180 sq ft. That covers the room itself but falls 4.8 sq ft short of the waste-adjusted amount, which is how shoppers end up with one tile row missing and a second order from a different dye lot.
Catalog price per box and the resulting total
At $54.00 per box, the cost per square foot is $54.00 / 20 = $2.70. The two tempting shortcuts both mislead:
- Area x price per sq ft: 168 x $2.70 = $453.60. This ignores waste and package size, and the shopper cannot buy 8.4 boxes.
- Unrounded boxes: 9.24 x $54.00 = $498.96. Shopify cannot charge a fractional quantity.
The correct order is 10 boxes x $54.00 = $540.00. Shopify charges the catalog price times the quantity, and the calculator makes sure the quantity is 10.
What the shopper sees in the cart
The shopper enters 12 and 14 on the product page and sees 10 boxes, 200 sq ft of coverage and an estimated total before adding to cart. The measurements stay attached to the cart line. If they change the quantity to 11, the coverage shown updates to 220 sq ft, so the cart never shows coverage that no longer matches what they are buying.
For a deeper walkthrough of this scenario, read the square footage calculator with boxes, waste and cart guide.
Worked example 2: Metric width x height in square metres
Metric stores need the same logic with different units. Here a shopper is covering a window with 2.4 m x 1.8 m of frosted film.
Wall or window film: 2.4 m x 1.8 m
Area = 2.4 x 1.8 = 4.32 m². What happens next depends on how you sell it.
Sold per m². The price per m² multiplied by the area is the total, but only if your catalog unit allows it. If one catalog unit is 1 m² at $18.00, 4.32 m² rounds up to 5 units and the total is $90.00. If you want finer granularity, set the catalog unit to 0.1 m² at $1.80: 4.32 m² becomes 44 units (4.4 m²) and the total is $79.20. The catalog unit is the rounding step.
Sold per 1.5 m² pack at $24.00. The math differs:
| Case | Needed area | Packs | Coverage | Total |
|---|---|---|---|---|
| No waste | 4.32 m² | 4.32 / 1.5 = 2.88, round up to 3 | 4.5 m² | $72.00 |
| 10% waste | 4.752 m² | 4.752 / 1.5 = 3.168, round up to 4 | 6.0 m² | $96.00 |
The waste setting changes the result by a whole pack. That is a business decision, so set it per product: film that is easy to trim may need 5%, patterned material that must align may need more.
Unit conversion: cm, mm and m to m²
Convert each side to metres first, then multiply:
- 240 cm x 180 cm: 2.4 m x 1.8 m = 4.32 m²
- 2400 mm x 1800 mm: 2.4 m x 1.8 m = 4.32 m²
Do not convert after multiplying without squaring the factor: 43,200 cm² is 4.32 m² because 1 m² is 10,000 cm², and 4,320,000 mm² is 4.32 m² because 1 m² is 1,000,000 mm². Let the shopper type in the unit they measured with (inches, feet, cm, mm or m) and have the calculator convert to your pricing unit.
Minimum and maximum limits
Set a minimum and maximum so the calculator rejects values you cannot fulfil. For example, a minimum of 0.5 m² avoids tiny orders that cost more to pick than they earn, and a maximum of 20 m² sends large projects to a conversation with your team. Limits also catch typos such as 24 instead of 2.4.
Worked example 3: Length x width for rolls or cut lengths
Sometimes the quantity is a length, not an area. Take artificial turf sold in rolls 4 ft wide, priced per linear foot at $3.00 (an example price). A shopper has a 10 x 25 ft lawn.
- Area = 10 x 25 = 250 sq ft.
- A 4 ft wide roll covers 4 sq ft per linear foot, so 250 / 4 = 62.5 linear feet at minimum.
- Strips are 4 ft wide, so laying them along the 25 ft side takes 10 / 4 = 2.5, rounded up to 3 strips, or 75 ft. Laying them along the 10 ft side takes 25 / 4 = 6.25, rounded up to 7 strips, or 70 ft.
An area-based calculation gives the 62.5 ft floor, and a waste allowance has to cover strip layout. Here, 12% waste gives 250 x 1.12 = 280 sq ft, or 70 linear feet at $3.00 = $210.00. If your layout rules are stricter than a single waste percentage, say so on the product page.
Linear dimensions drive quantity for fabric, trim, rope, chain and anything cut from a roll. In those cases a minimum cut and an increment (for example, 1 ft or 0.5 m) matter more than package coverage. The details are in selling by length with minimums and increments.
How to set up dimension pricing on Shopify with Shoperize Price Calculator
Shoperize Price Calculator turns shopper area, dimensions, length, volume or weight into purchasable Shopify quantities, coverage and estimated totals. You install it from the Shopify App Store listing. The steps below follow the 12 x 14 ft example.
1. Set the catalog price per unit or package
In Shopify, price the product as you would sell it: $54.00 per box, $24.00 per pack or $3.00 per linear foot. This is the price that checkout charges. The app computes the quantity; it does not replace the line price with an arbitrary number.
2. Choose units and conversion
Pick the unit the shopper measures in (feet, inches, metres, centimetres or millimetres) and the unit your product is sold in. The calculator handles the conversion, so a shopper in a metric market can still buy from a catalog priced per square foot.
3. Add waste, package coverage and rounding
Enter waste (10%), package coverage (20 sq ft per box) and rounding (up to the next whole box). These three settings produce the 9.24 to 10 boxes result from the example above.
4. Set limits and assign products
Add minimum and maximum values, then assign the rule to the products it applies to. Different products can use different coverage and waste settings.
5. Test in the cart
Open a product, enter 12 and 14, add to cart, then change the quantity. Confirm that the measurements stay in the cart and that coverage updates with the new quantity. Test a very small value, a value above your maximum and a metric entry too.
Ways to create rules
You can create rules manually, from templates, or as editable AI drafts that you review before publishing (plan limits apply). The Free plan supports one published area calculator on up to three products, which is enough to test the flow on real products. Advanced capabilities depend on the plan.
What this approach does not do (and what to check in any app)
Made-to-measure pricing with option surcharges
Custom curtains, blinds and signs are often priced with a formula: base price per square metre, plus surcharges for fabric choice, lining, mounting or finish, sometimes with price tiers by size band. That is a different problem from converting a size into a quantity of catalog units. Shoperize Price Calculator does not set arbitrary line prices, so if your pricing depends on that kind of formula, evaluate tools built for it and check how they handle checkout.
Free price calculator by dimensions: what free covers
A free price calculator by dimensions is useful for testing. The Shoperize Free plan covers one published area calculator on up to three products. Before relying on any free tier, check which units, rounding and limits it includes, and whether the products you actually sell fit within its caps.
Checklist for any dimension calculator
- Cart enforcement: does the quantity in the cart stay tied to the measurements, and what happens when the shopper edits it?
- Rounding: does it round up to whole packages automatically?
- Unit conversion: does it handle feet, inches, metres, centimetres and millimetres, including square feet?
- Waste and limits: can you set them per product?
- Theme compatibility: test on your live theme, on mobile as well as desktop.
- Checkout behavior: place a test order and confirm the charged total matches what the shopper saw.
For a longer evaluation framework, read the custom price calculator app buyer's guide. If you are comparing against a specific tool, see our Apippa alternative page.
Quick unit math reference
| Conversion | Rule | Example |
|---|---|---|
| sq ft to sq m | multiply by 0.0929 | 168 sq ft = 15.6 m² |
| sq m to sq ft | multiply by 10.764 | 4.32 m² = 46.5 sq ft |
| price per sq ft to price per m² | multiply by 10.764 | $2.70/sq ft = $29.06/m² |
| lb to kg | divide by 2.2046 | 10 lb = 4.54 kg |
| price per lb to price per kg | multiply by 2.2046 | $3.00/lb = $6.61/kg |
| inches to cm | multiply by 2.54 | 48 in = 121.9 cm |
How to calculate price per square metre
Divide the price by the area it covers. A $24.00 pack that covers 1.5 m² costs $16.00 per m². To price a job, reverse it: price per m² x area in m². For example, $16.00 x 4.32 = $69.12, though a pack-based sale will round up to whole packs as shown above.
How to calculate home or room dimensions for ordering
Measure each rectangle separately and add them together. An L-shaped room becomes two rectangles. Add alcoves as their own rectangles. Doorways usually stay in, since flooring runs through them. Measure at the longest and widest points of each rectangle and round up to the next inch or centimetre.
Price per lb to price per kg, and 1 kg in pounds
1 kg = 2.2046 lb, and 1 kg = 1,000 g. Because a kilogram is heavier than a pound, a price per kg is higher than a price per lb: multiply the per-lb price by 2.2046.
Get started
If you sell flooring, tile, wallpaper, turf, fabric or any product bought by measurement, you can test this flow on real products with Shoperize Price Calculator on the Shopify App Store. More details are at calculator.shoperize.com, and setup help is at help.shoperize.com.
Frequently Asked Questions
Can Shopify calculate price by width and height natively?
No. Native Shopify gives each variant one price and takes a whole-number quantity, with no field that turns width and height into a quantity. You need an app, such as a measurement price calculator, or the shopper has to do the math themselves.
Is there a free price calculator by dimensions for Shopify?
Yes. Shoperize Price Calculator has a Free plan that supports one published area calculator on up to three products. Advanced capabilities depend on the plan, so test your units, rounding and limits on real products first.
How do I stop customers ordering partial boxes?
Shopify quantities are whole numbers, so a product sold by the box cannot be bought in fractions. The real risk is ordering too few boxes. Set package coverage and rounding up in the calculator so 9.24 boxes becomes 10, and the cart shows the coverage that quantity gives.
Can I charge any custom price per size?
No. On Shopify the charge is the catalog price times the quantity, and Shoperize Price Calculator works within that. It computes the right quantity and estimated total, but it does not replace the line price with an arbitrary number. Formula pricing with option surcharges needs a different type of tool.