Unit Price Calculator
Compare a second product
- Unit price of A = $4.50 ÷ 500.00 units = $0.009 per unit. Comparing unit prices — not pack prices — is the only fair way to compare different pack sizes.
- Unit price of B = $7.20 ÷ 1,000.00 = $0.007 per unit. Product B is cheaper by $0.002 per unit, a saving of 20.0% per unit.
A unit price calculator helps you compare products sold in different package sizes by revealing the true cost per unit. It divides the total price by the quantity in any consistent unit — grams, milliliters, sheets, or individual items — so you can see which option is genuinely the better deal. For example, rice at $4.50 for 500 g works out to $0.009/g, while $7.20 for 1,000 g is $0.0072/g, making the bigger bag 20% cheaper per gram. Similarly, eggs at $3.60 for 12 cost exactly $0.30 each. The saving percent is computed against the more expensive unit price: (higher − lower) ÷ higher × 100.
This approach is the accepted standard because it normalizes every product to the same basis, letting you make apples-to-apples comparisons regardless of packaging. Shelf-edge unit pricing is regulated or customary in many US states and the EU, where price per 100 g or per kg is required under EU Directive 98/6/EC. Bigger is usually but not always cheaper per unit — promotions on small packs regularly undercut the family size, which is the entire point of checking. This page shows the formula, step-by-step workings, worked examples, and sources.
Worked examples
Rice: $4.50 for 500 g vs $7.20 for 1,000 g
The bigger bag wins: $0.0072/g against $0.009/g — a 20% saving per gram. (4.5 $ · 500 units · 7.2 $ · 1000 units)
| Unit price — product A | $0.009 per unit |
| Unit price — product B | $0.007 per unit |
| Better value | Product B — saves 20.0% per unit |
Coffee: $12 for 250 g vs $20 for 500 g
Again the larger pack is cheaper per gram, by about 17%. (12 $ · 250 units · 20 $ · 500 units)
| Unit price — product A | $0.048 per unit |
| Unit price — product B | $0.040 per unit |
| Better value | Product B — saves 16.7% per unit |
Eggs: $3.60 for 12
Single-product mode: exactly $0.30 per egg. (3.6 $ · 12 units · 0 $ · 0 units)
| Unit price — product A | $0.300 per unit |
What unit price tells you that shelf price cannot
Shelf price is the number you pay at the register, but it tells you nothing about value. Two packages of rice sit side by side: one costs $4.50 for 500 g, the other costs $7.20 for 1,000 g. At a glance the bigger bag looks dearer — you are handing over $2.70 more. Divide each price by the quantity, though, and the picture flips. The small bag works out to $0.009/g, while the large bag comes to $0.0072/g. The bigger bag is 20% cheaper per gram. That gap is the pack-size illusion: a higher total price can still mean a lower cost per unit.
The same pattern shows up across the grocery store. Coffee at $12 for 250 g costs $0.048/g, while a 500 g bag at $20 costs $0.040/g. The larger bag saves about 16.7% per gram, even though the shelf price is $8 higher. Eggs make the arithmetic even simpler: $3.60 for a dozen works out to exactly $0.30 each. Once you see the unit price, the shelf price stops being the deciding factor. You are comparing grams, milliliters, sheets, or items directly, rather than guessing whether a bigger box is worth the extra money.
Bigger is usually but not always cheaper per unit. Promotions on small packs regularly undercut the family size, which is the entire point of checking. A sale tag on the 500 g rice bag might drop its unit price below the 1,000 g bag, flipping the math in the other direction. A unit price calculator does this division for you instantly, so you can spot those reversals without doing long division in the aisle. Shelf-edge unit pricing is regulated or customary in many US states and the EU — under EU Directive 98/6/EC, stores typically display price per 100 g or per kilogram — but the labels are not always easy to compare across different pack sizes or units.
The saving percent is computed against the more expensive unit price: (higher − lower) ÷ higher × 100. In the rice example, that is ($0.009 − $0.0072) ÷ $0.009 × 100, which equals 20%. In the coffee example, ($0.048 − $0.040) ÷ $0.048 × 100 equals about 16.7%. This figure tells you exactly how much you gain by choosing the cheaper unit price, expressed as a percentage of what you would have paid at the higher rate. It is a quick way to see whether the larger pack is worth the storage space or whether a promotion on the smaller pack has already closed the gap.
Worked comparisons
A unit price calculator turns shelf math into a quick, repeatable check. The formula is always the same — total price divided by quantity, using any consistent unit such as grams, milliliters, sheets, or individual items. The examples below were verified by hand so you can see exactly how the numbers fall out and why comparing two sizes often, but not always, points you toward the larger pack.
Consider rice. A 500-gram bag priced at $4.50 works out to $0.009 per gram. A 1,000-gram bag priced at $7.20 works out to $0.0072 per gram. The bigger bag is 20 percent cheaper per gram, a saving computed against the more expensive unit price using (higher minus lower) divided by higher, times 100.
Coffee follows the same logic. A 250-gram bag at $12 costs $0.048 per gram, while a 500-gram bag at $20 costs $0.040 per gram. The larger bag saves about 16.7 percent per gram. For eggs, a carton of 12 priced at $3.60 costs exactly $0.30 each — a useful per-item figure when the goods are sold as discrete units rather than by weight.
Bigger is usually but not always cheaper per unit. Promotions on small packs regularly undercut the family size, which is the entire point of checking. Shelf-edge unit pricing is regulated or customary in many US states and the EU, where labels commonly show price per 100 grams or per kilogram under EU Directive 98/6/EC. Even with those labels present, running your own numbers catches sale prices and multi-pack quirks that the printed tag may not reflect.
| Product | Option | Total price | Quantity | Unit price | Saving vs. smaller pack |
|---|---|---|---|---|---|
| Rice | Smaller bag | $4.50 | 500 g | $0.009/g | — |
| Rice | Bigger bag | $7.20 | 1,000 g | $0.0072/g | 20% cheaper per gram |
| Coffee | Smaller bag | $12 | 250 g | $0.048/g | — |
| Coffee | Bigger bag | $20 | 500 g | $0.040/g | ≈16.7% cheaper per gram |
| Eggs | Carton | $3.60 | 12 items | $0.30 each | — |
How to use this unit price calculator
Using this unit price calculator is straightforward. Start by entering the total price and quantity for option A, then do the same for option B. The quantity you enter can be a weight, a volume, or a plain count — grams, milliliters, sheets, or individual items all work — but it must be expressed in the same unit for both options. If you enter grams for A, enter grams for B; if you enter ounces for A, enter ounces for B. The calculator applies the core formula — unit price equals total price divided by quantity — in whatever consistent quantity unit you choose, so the two results stay directly comparable.
If you only want the price of a single unit, leave option B empty. The calculator will return the unit price for option A alone, with no comparison. This is useful when you are checking a single shelf label or confirming a per-item cost. For example, eggs at $3.60 for 12 cost exactly $0.30 each, and the calculator shows that result instantly.
When you fill in both A and B, the calculator also shows how much one option saves over the other. The saving percent is computed against the more expensive unit price, using the formula (higher minus lower) divided by higher, times 100. A verified example makes this concrete: rice at $4.50 for 500 g works out to $0.009/g, while $7.20 for 1,000 g works out to $0.0072/g. The bigger bag is 20% cheaper per gram. A separate verified example shows coffee at $12 for 250 g, or $0.048/g, versus $20 for 500 g, or $0.040/g — the larger bag saves about 16.7% per gram.
One reason to check is that bigger is usually, but not always, cheaper per unit. Promotions on small packs regularly undercut the family size, which is the entire point of checking. Shelf-edge unit pricing is regulated or customary in many US states and the EU, where labels often show price per 100 g or per kg under EU Directive 98/6/EC, but those labels are not always present or current. Entering the numbers yourself takes only a moment and removes the guesswork.
Reading shelf unit-price labels
Many grocery stores and big-box retailers print unit-price labels right on the shelf edge, below or beside the main price tag. In the United States, shelf-edge unit pricing is regulated or customary in many states, and in the EU it is supported by Directive 98/6/EC, which calls for price per 100 g or per kg on food labels. These printed labels do the same math a unit price calculator does for you: they divide total price by quantity so you can compare two packages without doing the arithmetic yourself.
The unit shown on the label changes by product category because the quantity that makes sense varies. Dry goods are often priced per ounce or per 100 g. Liquids are typically priced per fluid ounce, per milliliter, or per liter. Paper towels and toilet paper may be priced per sheet or per roll. Individually packaged items like eggs or razors may be priced per count. As long as you compare two products in the same unit, the comparison holds. Eggs at $3.60 for 12 cost exactly $0.30 each, so a carton of 18 at $6.00 would need to beat $0.30 per egg to be the better deal.
Where a printed label uses a different base than the one you want, convert both products into the same unit before comparing. A label that reads price per 100 g is fine for comparing two items in grams, but if one product is sold by the ounce and the other by the pound, you need to reconcile the units. Rice at $4.50 for 500 g works out to $0.009 per gram, while $7.20 for 1,000 g is $0.0072 per gram. The bigger bag is 20% cheaper per gram. The saving percent is computed against the more expensive unit price: (higher minus lower) divided by higher, times 100. Coffee shows the same pattern: $12 for 250 g is $0.048 per gram, while $20 for 500 g is $0.040 per gram, so the larger bag saves about 16.7% per gram.
Bigger is usually but not always cheaper per unit. Promotions on small packs regularly undercut the family size, which is the entire point of checking. A sale tag on a 200 g package can beat the standard price of a 500 g package, and store brands in smaller containers sometimes cost less per unit than name brands in bulk. The printed shelf label gives you a quick read, but when the base units differ or a promotion changes the math, running the numbers yourself is the only way to be sure.
When the cheaper unit price is the wrong buy
A unit price calculator gives you the number you need, but it cannot make the buying decision for you. Unit price is necessary, not sufficient. Once you know that rice at $4.50 for 500 g costs $0.009/g while the 1,000 g bag at $7.20 costs $0.0072/g, you know the larger bag is 20% cheaper per gram. But 20% cheaper per gram is not 20% cheaper overall if half the bag goes stale before you finish it.
Perishables are the most common trap. Coffee at $12 for 250 g works out to $0.048/g, and the 500 g bag at $20 drops to $0.040/g, saving about 16.7% per gram. If you drink coffee daily, that larger bag is a clear win. If you brew a cup once a week, the beans may lose flavor before they are gone, and the smaller bag is the better buy. The same logic applies to produce, dairy, and anything with a short shelf life. Storage also matters: the larger package needs space, and if you cannot keep it fresh, the lower unit price is money wasted.
Quality tiers and product format change the math entirely. Concentrated cleaners and ready-to-use versions often sit on the same shelf at very different unit prices, but the concentrate is meant to be diluted. Comparing the unit price of a concentrate against the unit price of a ready-to-use bottle without accounting for dilution will point you toward the wrong product. Quality tiers work the same way: a lower unit price on a lower-grade product is not a bargain if the performance means you use more of it per task or replace it sooner.
Finally, remember that bigger is usually but not always cheaper per unit. Promotions on small packs regularly undercut the family size, which is the entire point of checking. Shelf-edge unit pricing is regulated or customary in many US states and the EU, where Directive 98/6/EC calls for price per 100 g or per kg, but a sale tag can still flip the ranking. The saving percent is computed against the more expensive unit price: (higher − lower) ÷ higher × 100. Run the numbers, then weigh perishability, storage, quality, and format before you put the item in your cart.
- Perishables: a lower unit price is only a real saving if you finish the product before it spoils.
- Storage: larger packs need space and proper conditions; spoiled or stale goods erase the savings.
- Quality tiers: cheaper per unit can cost more in use if the lower-grade product performs worse or requires more per application.
- Concentrated vs ready-to-use: compare the cost per use after dilution, not the raw unit price of two different product formats.
- Promotions: small packs on sale often beat the family size, so verify the unit price every time.
Common unit-price mistakes
Using a unit price calculator is straightforward, but a few common mistakes can lead you to the wrong shelf decision. The most frequent error is comparing unit prices expressed in different units. A store label showing price per gram on one product and price per kilogram on another makes the numbers look wildly different even when the packages hold similar amounts. Always convert both figures to the same unit before comparing. Unit price equals total price divided by quantity, and that quantity can be measured in grams, milliliters, sheets, or individual items, as long as you stay consistent across every product you are evaluating.
A second mistake involves confusing pack count with weight. A buyer might see two coffee packages and assume the larger bag automatically wins, but the relevant comparison is the unit price, not the total size. Verified example: coffee at $12 for 250 g works out to $0.048/g, while $20 for 500 g comes to $0.040/g. The larger bag saves about 16.7% per gram. The saving percent is computed against the more expensive unit price, using the formula (higher minus lower) divided by higher times 100. That formula works the same way whether you are comparing rice, eggs, or paper towels.
A third mistake is treating different product grades as if they were identical. Premium rice, standard rice, and quick-cooking rice may all sit on the same shelf, but they are not the same product. A lower unit price on a lower grade does not mean you found a bargain, it means you are buying something different. The same applies to organic versus conventional, brand name versus store brand, and whole bean versus pre-ground coffee. A unit price calculator can only compare prices within the same product category, so make sure you are comparing like with like.
The final mistake is assuming bigger is always cheaper per unit. Bigger is usually but not always cheaper per unit, and promotions on small packs regularly undercut the family size. That assumption is the entire point of checking. Verified example: rice at $4.50 for 500 g costs $0.009/g, while $7.20 for 1,000 g costs $0.0072/g, making the bigger bag 20% cheaper per gram. But a sale on the small bag could easily flip that result. Verified example: eggs at $3.60 for 12 cost exactly $0.30 each, and a smaller promotion pack priced at $2.40 for 10 would beat that at $0.24 each. Shelf-edge unit pricing is regulated or customary in many US states and the EU, where Directive 98/6/EC requires price per 100 g or per kg on food labels, but those labels will not protect you from the mistakes above.
- Comparing per-gram with per-kg figures without converting to the same unit first
- Forgetting pack count versus weight, such as comparing 12 eggs by weight instead of by item
- Comparing different product grades as if they were identical, such as premium versus standard rice
FAQs
Which is better value: $4.50 for 500 g or $7.20 for 1 kg of rice?
The 1 kg bag is the better value. It costs $0.0072 per gram, while the 500 g bag costs $0.009 per gram. That makes the larger bag 20% cheaper per gram, so you save money by choosing the 1 kg option over the smaller 500 g package.
How do you calculate unit price?
Divide the total price by the quantity. For example, $3.60 ÷ 12 eggs = $0.30 per egg. This simple formula lets you compare products of different sizes or counts on equal footing, so you can identify which option gives you the lowest cost for each individual unit.
Is the bigger pack always cheaper per unit?
No. In the coffee example it is, coming out 16.7% cheaper per gram. However, promotions often make small packs cheaper per unit instead. The only way to know for sure is to always divide the price by the quantity and compare the results directly.
What quantity unit should I use?
Use whatever both products share. Grams work well for food sold by weight, milliliters for liquids, and count for items like eggs or rolls. Consistency matters, not the unit itself. As long as you use the same unit for both items, your comparison will be accurate and meaningful.
How is the saving percentage calculated?
It is calculated against the pricier unit price. For the rice example, the saving is ($0.009 − $0.0072) ÷ $0.009 = 20% per gram. This tells you exactly how much you save by choosing the lower-priced option relative to the higher one.
Why do stores show price per 100 g?
A common base makes unlike pack sizes comparable at a glance. It is required for many foods in the EU and shown voluntarily or by state rule in much of the US. This standard unit helps shoppers quickly spot the best deal without doing the math themselves.