Unit Price Comparator
Compare price per unit across package sizes to find value.
Compare price per unit across package sizes to find value. Enter your numbers and get an instant result.
Enter a price, a pack count and a size per pack for two products, and the page divides each price by the total size to compare the cost of one unit. A unit label such as gram or item names what is being compared but does not enter the arithmetic.
The total size is the pack count multiplied by the size per pack, so two boxes of 400 grams is 800 grams. A pack count or size left at zero, blank or non-numeric is read as one, which keeps the page from dividing by zero but can hide a missing value.
The result names the cheaper package and the percentage by which it is cheaper per unit. It does not convert currencies, compare different unit systems, or include delivery, tax or a loyalty scheme.
How the comparison is calculated
Each package's unit cost is its price divided by the product of its quantity and its size. The two costs are compared directly, so the cheaper package is the one with the lower number regardless of which side of the form it is on.
The percentage is the difference between the two costs divided by the dearer cost, which reads as how much cheaper the winner is relative to the alternative. It is not a saving against the cheaper price, which would be a different figure.
- Unit cost: price divided by (quantity times size)
- Blank or zero quantity and size fall back to one
- The winner is named with a percentage
What the figure leaves out
Delivery, tax, packaging and the value of a larger pack that spoils before it is used are all outside the calculation. A cheaper unit price can still be the more expensive purchase once those are counted.
The unit label is free text and is not used to convert anything. Comparing a price per gram with a price per ounce requires converting one input first, because the page assumes both packages are measured in the same unit.
How to use the two package forms
Fill in each package's Unit Name, Price, Quantity and Size per Pack, using the same unit on both sides so the comparison is valid. The Value Verdict recalculates as the numbers change, naming the cheaper package and the percentage by which it wins.
Treat a blank or zero quantity and size as one: the page substitutes that silently rather than refusing, so an empty field is an input to check, not a skipped one. Read the per-unit costs to four decimals when the verdict is close.
What to Expect
Best for
- Comparing two packages of the same product at different sizes
- Checking whether a bulk pack is really cheaper per unit
- A shopping decision with the arithmetic shown
Not ideal for
- Comparing different unit systems, which need a conversion first
- Including delivery, tax or a multi-buy offer
- Weighing the cost of spoilage or storage
What this tool keeps
- The prices and sizes as entered, without rounding before the comparison
- A unit cost to four decimal places
- A percentage that says how much cheaper the winner is
What may need cleanup
- A missing quantity or size that was silently read as one
- The unit label, which is descriptive rather than part of the arithmetic
- Any offer that changes the effective price
Common errors
- Entering the total size in the size-per-pack field as well as the quantity
- Comparing a per-gram price with a per-ounce price
- Leaving the quantity blank and reading the result as a total price
Example use cases
- Comparing two bags of coffee
- Checking a bulk pack against a single unit
- A maths exercise on unit rates
Sample input
Package A at 4.99 for one 500-gram pack and Package B at 8.99 for two 400-gram packs.
Sample output
Package A at a lower cost per gram, about 11 per cent cheaper than Package B's unit price.
Who this is for
- Shoppers comparing pack sizes
- Small buyers checking a bulk order
- Students learning unit rates
Frequently asked questions
How does the unit price comparison work?
Each price is divided by the total size of its pack to compare the cost of one unit, with a percentage saying how much cheaper the winner is.
Does the unit label enter the arithmetic?
No. A label such as gram or item names what is being compared but does not change the division.
Can it compare different unit systems?
No. The units must be converted to the same system before comparing.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.