Unit Price Calculator — Compare Two Package Sizes
Compare two package sizes and find which one is cheaper per ounce, pound, or count. Enter both prices and sizes to see the true per-unit cost and savings.
Unit Price Calculator
Background.
A unit price calculator answers the one question every grocery aisle is designed to obscure: which package is actually cheaper per ounce, per pound, per count, or per load? Retail pricing psychology relies on shoppers comparing sticker prices instead of per-unit cost, and package engineering — the practice regulators now call 'shrinkflation' — makes that comparison even harder by quietly shrinking the contents of a package while holding its price steady. The U.S. National Institute of Standards and Technology, whose Office of Weights and Measures writes the model regulation that every state unit-pricing law is built on, uses almost exactly this scenario as its own textbook example: a 32-ounce ketchup bottle at $4.99 works out to about $0.16 an ounce, while a 14-ounce bottle at $3.19 works out to about $0.23 an ounce — the larger bottle is the better deal by roughly 32 percent per ounce, even though its sticker price is higher.
This calculator exists because that arithmetic, while simple, is exactly the kind of division most people do not do standing in a store aisle holding two boxes. Enter the price and size of Package A, then the price and size of Package B, using the same unit of measure for both (ounces to ounces, count to count, load to load — this tool does not convert between units; that is a job for a dedicated unit converter). The calculator divides each price by its corresponding size, compares the two unit prices, and tells you plainly which package is the better deal, by how many cents per unit, and by what percentage.
Unit pricing is not a purely private convenience — it is public policy. NIST's Office of Weights and Measures maintains Handbook 130's Uniform Unit Pricing Regulation, the model law that individual U.S. states adopt (in whole or in part) to require or encourage retailers to post per-unit costs on shelf labels. As of the most recent NIST review, nineteen states and two territories had adopted some form of unit-pricing regulation, eleven of them mandatory. NIST's own consumer research, cited in its December 2024 policy update, found that 82 percent of shoppers use unit pricing when it is clearly displayed — but shelf labels are not always present, not always legible, and not always comparable across brands or store chains, especially online where unit-price disclosure rules are inconsistent. This calculator exists to fill that gap: when the shelf tag is missing, faint, or simply not trusted, you can do the math yourself in seconds.
The shrinkflation problem sharpens the stakes further. NIST's 2024 review notes that a large share of consumer packaged goods have been downsized — same price, less product — over the past several years, a pattern that a sticker-price comparison cannot detect but a unit-price comparison catches immediately. A box that quietly drops from 16 ounces to 14 ounces at the same price is a unit-price increase of roughly 14 percent, invisible on the shelf tag unless you calculate it. Because the calculator reports both a dollar-and-cents savings figure and a percentage, you can use whichever framing matters more for your decision: percentage for judging whether a 'bulk discount' claim is honest, and raw cents for deciding whether the better per-unit deal is worth carrying home a heavier bag or a bigger box you may not have room to store. The tool is deliberately narrow in scope — it does not convert between units of measure, does not track prices over time, and does not know your local sales tax — so that its one job, comparing two prices you already have in hand, stays fast and auditable.
What is unit price calculator?
Unit price is the cost of a product expressed per standard unit of measure — dollars per ounce, per pound, per liter, per count, or per 100 grams — rather than as a single package price. NIST's Uniform Unit Pricing Regulation (Handbook 130) defines it this way specifically so that shoppers can compare packages of different sizes on a level footing: a $4.99 bottle and a $3.19 bottle are not directly comparable numbers, but $0.16 per ounce and $0.23 per ounce are. The regulation requires that, where unit pricing is mandated, the unit price be computed as price divided by the labeled net quantity, using a small, consistent set of standard units (ounce or pound, or 100 grams or kilogram, depending on how the item is labeled) so that a shopper comparing brand X and brand Y sees costs expressed the same way.
This calculator implements exactly that division for two packages at a time. It is a comparison tool, not a converter: both quantities you enter must already share the same unit (both in ounces, both in count, both in loads of laundry detergent). If one package is priced per pound and the other per ounce, convert one of them to match before using this tool — Quanta's conversion calculators handle that step. Given two same-unit prices, the calculator reports each package's unit price, identifies the cheaper one, and expresses the gap both in cents per unit and as a percentage, so you can judge the deal by whichever measure matters most for the purchase in front of you.
How to use this calculator.
- Enter the price of Package A (the shelf price you'd actually pay).
- Enter the size of Package A in whatever unit is printed on the label — ounces, pounds, count, sheets, loads, and so on.
- Enter the price of Package B.
- Enter the size of Package B in the SAME unit as Package A. If the labels use different units, convert one first — this tool compares, it does not convert.
- Pick the unit label from the dropdown purely for display; it does not change the math.
- Read the cheaper unit price (primary result) and the plain-language 'better value' statement.
- Use the percent-cheaper figure to judge whether a 'bulk savings' or 'family size' claim on the packaging is actually true.
The formula.
Each package's unit price is simply its price divided by its size: unitPrice = price / quantity. Once both unit prices are known, the calculator picks the smaller one as the winner and computes two comparison figures. The savings per unit is the plain dollar difference between the two unit prices — higher unit price minus lower unit price. The percent-cheaper figure divides that savings by the higher (losing) unit price and multiplies by 100, which answers a different question than the raw cents figure: 'by what fraction is the winning package cheaper, relative to the alternative I did not choose?'
Using NIST's own worked example: a 32-ounce bottle at $4.99 has a unit price of 4.99 ÷ 32 = $0.155938 per ounce (displayed as $0.16). A 14-ounce bottle at $3.19 has a unit price of 3.19 ÷ 14 = $0.227857 per ounce (displayed as $0.23). The 32-ounce bottle is cheaper per ounce, so it is the winner. The savings per unit is 0.227857 − 0.155938 = $0.071919 per ounce, and the percent-cheaper figure is 0.071919 ÷ 0.227857 × 100 ≈ 31.56 percent — meaning the smaller bottle costs about 31.6 percent more per ounce than the larger one, even though its total sticker price is lower. This is precisely the gap a sticker-price-only comparison misses, and precisely why unit pricing regulation exists.
The calculator treats a tie (equal unit prices to full precision) as a tie rather than arbitrarily picking a winner, and it guards against the two ways this math can break: a negative price (meaningless) and a zero or negative package size (undefined division). Every other combination of non-negative prices and positive sizes produces a finite, well-defined comparison.
A worked example.
This is NIST's own textbook illustration of why unit pricing matters. A 32-ounce bottle of ketchup costs $4.99; a smaller 14-ounce bottle costs $3.19. Dividing each price by its size gives a unit price of 4.99 / 32 = $0.155938 per ounce for the large bottle and 3.19 / 14 = $0.227857 per ounce for the small bottle. The large bottle is cheaper per ounce even though it costs more at the register. The calculator reports a savings of roughly $0.0719 per ounce and a percent-cheaper figure of about 31.6 percent — the small bottle is nearly a third more expensive per ounce than the large one. A shopper buying the small bottle because '$3.19 is less than $4.99' would be paying a real, quantifiable premium for the smaller size, exactly the gap NIST's Office of Weights and Measures designed unit-price shelf labels to expose.
Frequently asked questions.
What is unit price and why does it matter more than the sticker price?
Do I have to convert units before using this calculator?
Is a bigger package always the better per-unit deal?
What is shrinkflation, and how does unit pricing expose it?
Are retailers required to post unit prices?
Why does the calculator show both a dollar savings figure and a percentage?
What happens if the two packages have exactly the same unit price?
Can I use this for anything other than groceries?
Does this calculator account for sales tax, coupons, or membership fees?
References& sources.
- [1]National Institute of Standards and Technology, Office of Weights and Measures. SP 1181, Unit Pricing Guide (2017).
- [2]National Institute of Standards and Technology (December 2024). Best Practices for Uniform Unit Pricing: An Update to NIST SP 1181 and NIST Handbook 130 Regulations.
- [3]National Institute of Standards and Technology. Uniform Unit Pricing: Tools for Consumers to Fight Shrinkflation.
- [4]National Institute of Standards and Technology, Handbook 130 (2009 edition), Uniform Unit Pricing Regulation.
- [5]National Institute of Standards and Technology, Handbook 130 (2023), Section C — Uniform Unit Pricing Regulation.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled