Unit Price Calculator
Unit price = total cost / quantity: 6 / 3 kilograms = 2 per kilogram. To compare two packs, divide each price by its own quantity and compare the per-unit figures, not the pack prices. A 500 g pack at 4 is 4 / 500 = 0.008 per gram, or 0.80 per 100 g; a 750 g pack at 5 is 5 / 750 = 0.0067 per gram, or about 0.67 per 100 g, so the larger pack is cheaper per unit.
Shelf tags make two packs look comparable until you notice the sizes differ. A unit price calculator strips away the packaging and answers one question: how much does a single gram, litre, ounce or item cost? Enter the price and quantity you see on the label and this tool divides them, then lets you set two products side by side to see which is genuinely cheaper per unit. Everything runs locally in your browser.
Unit price = total price / quantity. A 6 pack costing 12 is 12 / 6 = 2 per item. Compare unit prices, never pack prices, because a bigger pack can cost more in total yet less per unit.
What does one unit cost?
Enter the price on the label and how much is in the pack.
Which pack is the better deal?
Use the same unit for both packs, such as grams for both.
How is the unit price worked out?
The arithmetic is one division. Divide the total price by the quantity to get the cost of a single unit, then scale it to a readable size such as per 100 grams or per litre. Division matters because the two packs almost never share a quantity. A 500 g pack at 4 gives 4 / 500 = 0.008 per gram, which is 0.80 per 100 g. A 750 g pack at 5 gives 5 / 750 = 0.0067 per gram, or about 0.67 per 100 g. Notice that the more expensive pack is the better value once size is accounted for.
Worked example: two boxes of cereal
Box A holds 375 g and costs 3. Box B holds 500 g and costs 3.60. Which is cheaper? Compute both unit prices:
| Box | Price | Quantity | Price per 100 g |
|---|---|---|---|
| A | 3 | 375 g | 3 / 375 x 100 = 0.80 |
| B | 3.60 | 500 g | 3.60 / 500 x 100 = 0.72 |
Box B is cheaper by 0.08 per 100 g. As a share of Box A that is 0.08 / 0.80 = 0.10, a 10% saving per unit, even though Box B costs 0.60 more at the till. That gap is the whole reason to compare unit prices rather than sticker prices.
Why is the bigger pack not always cheaper?
Bulk sizing often lowers the per-unit cost because packaging and handling are spread over more product. But it is a tendency, not a rule. A short-term promotion can make the small pack cheaper, a premium brand can charge more per gram at every size, and a "value" pack can quietly shrink while the price holds. The only reliable check is the division. Use this tool each time rather than trusting the word "value" on the box.
What are the edge cases and limits?
Quantity must be greater than zero, because dividing by zero is undefined; the calculator flags a zero or negative quantity as an error. Prices cannot be negative. When both packs use different units, convert them first — this tool will not detect a mismatch, so the result is only valid if you enter a consistent basis. Results are shown to two decimals for per-100 figures and four for raw per-unit figures, while the calculation keeps the full precision of your input. Currency symbols are omitted on purpose: enter any currency and the comparison stays valid.
In short: unit price is the price divided by the quantity. Compare that number across packs, convert to a common unit first, and let the per-100 figure decide which deal actually saves you money.
Frequently asked questions
What exactly is a unit price?
A unit price is the cost of one unit of quantity: one gram, one litre, one ounce, one sheet, or one item. You get it by dividing the total price by the number of units in the pack. A 6 pack that costs 12 has a unit price of 12 / 6 = 2 per item. The unit can be anything consistent — what matters is that you compare the same unit across products.
How do I compare two packs of different sizes?
Divide each pack price by its own quantity, then compare the two per-unit numbers. Do not compare the pack prices themselves. A 500 g pack at 4 works out to 4 / 500 = 0.008 per gram, while a 750 g pack at 5 is 5 / 750 = 0.0067 per gram. The larger pack costs more in total but less per gram, so it is the better value.
Why should I compare per 100 g or per litre instead of per gram?
Per-gram prices are tiny decimals that are hard to read and easy to mis-round. Multiplying by 100 gives a friendlier number — 0.008 per gram becomes 0.80 per 100 g — without changing which product is cheaper. This calculator shows both so you can check the arithmetic and read the figure that makes sense for the shelf label in your country.
Does a bigger pack always cost less per unit?
No. Bulk packs are often cheaper, but not always — promotions, brand premiums and packaging changes can reverse the pattern. Never assume the bigger box wins. Divide both prices by their quantities and let the numbers decide. This tool also shows the percentage saving so you can tell whether the difference is worth paying more upfront or storing the extra product.
What should I do when the two packs use different units?
Convert one to the other before comparing. For weight, 1 kilogram = 1,000 grams; for volume, 1 litre = 1,000 millilitres. A 1 kg bag at 8 is 8 / 1000 = 0.008 per gram, directly comparable with a 500 g bag at 4. If you mix units without converting, the comparison is meaningless. This calculator accepts any unit label as long as you keep the basis consistent.
Does the calculator account for tax, coupons or member discounts?
No. It uses only the numbers you enter, so type in the price you will actually pay after coupons and tax if you want a true comparison. The tool performs simple division and stores nothing: every calculation runs in your browser. It gives arithmetic only, not shopping advice, and it does not check whether a "unit" on a label matches the real quantity.
Last updated: November 23, 2026