Unit Price Calculator

Last updated

This calculator compares two packages by unit price: each price divided by its quantity, where quantity is size times pack count, converted to grams, millilitres or items with the exact factors in NIST Handbook 44. Unit prices are rounded as the Uniform Unit Pricing Regulation in NIST Handbook 130 sets out, to the cent at a dollar or more and a tenth of a cent below. It names the lower one, the saving and the dearer item's matching price.

Item A contents
Item B contents
Lower unit price –
Item A –
Item B –
Saving on the cheaper pack –
Dearer item matches at –
Unit price in every unit

Two packs of the same product rarely share a size, so the shelf price alone cannot say which is the better buy. Enter the price, size and unit of each item, plus a pack count for a multipack, and the calculator divides each price by its quantity. It names the item with the lower unit price, shows both in the unit Item A is sold in, and adds a table in every other unit of the same kind. The currency picker changes only the symbol and the number of decimals.

How the unit price is worked out

A unit price is the price of one unit of measure:

unit price = price ÷ (size × pack)

Before dividing, the calculator turns each quantity into grams, millilitres or items, so an item in ounces can be compared with one in pounds or kilograms. It uses the exact values in NIST Handbook 44, the same ones behind this site's weight converter: 28.349523125 g to the avoirdupois ounce and 453.59237 g to the pound. For liquids, the US gallon is 231 cubic inches, or 3.785411784 litres, and holds 4 quarts, 8 pints or 128 fluid ounces. The fluid ounce, pint, quart and gallon on this page are the US ones; British pints and gallons are about 20% larger, and the volume converter covers those. Weight, volume and count cannot be mixed, so an item in ounces against one in fluid ounces returns an error instead of a guess.

The headline unit follows Item A. It is the unit you entered, except that grams are priced per 100 g, millilitres per 100 mL and a count as "each". Three more figures come from the two unit prices:

difference = 1 − lower ÷ higher

saving = (higher − lower) × quantity of the cheaper item

matching price = lower × quantity of the dearer item

The saving is how much less the cheaper pack costs than the same amount bought at the dearer rate. The matching price is the most the dearer item could cost without being dearer per unit, so it is rounded down to the cent.

A worked example

The defaults compare an 18 oz jar at $4.79 with a 2 lb jar at $7.49. Item A costs 4.79 ÷ 18 = $0.266 per oz. Item B holds 2 × 16 = 32 oz, so it costs 7.49 ÷ 32 = $0.234 per oz, and the result reads "B by 12.0%". Thirty-two ounces at Item A's rate would cost $8.52, so the larger jar saves $1.03. Eighteen ounces at Item B's rate come to $4.213, so Item A would match at $4.21. The table gives the same comparison per pound ($4.26 against $3.75), per 100 g ($0.939 against $0.826) and per kilogram ($9.39 against $8.26).

Multipacks and mixed units

The pack count is for labels that give the size of one container. The Uniform Unit Pricing Regulation takes soft drinks sold "in 2 L bottles and 12 fl oz cans" as its example of one product in two units of measure, and the calculator handles that case directly. A 12-pack of 12 fl oz cans at $6.99 holds 144 fl oz, the same as a size of 144 with a pack of 1. Against a 2 L bottle at $2.48, the cans cost $0.049 per fl oz and the bottle $0.037. The result is "B by 24.5%", a saving of $0.80, and the cans would match at $5.28. Per litre, that is $1.64 against $1.24.

How the figures are rounded

Section 4 of the regulation says a unit price "shall be to the nearest cent when a dollar or more". Under a dollar, the regulation lets a store list it to the tenth of a cent or to the whole cent, but not both. This page uses tenths of a cent: $0.9994 shows as $0.999, while $0.9996 and $1.004 both show as $1.00. Other currencies get their own decimals from one unit of currency upwards and one more below it, so ¥298 for 500 g against ¥398 for 700 g reads ¥60 and ¥57 per 100 g, "B by 4.6%".

The verdict is judged on the figures as displayed. When two unit prices round to the same figure, the calculator shows up to two more decimals to separate them: $0.2341 and $0.2344 per oz appear in full, as "A by 0.1%". If they still agree, the result is "Equal". A unit price that would otherwise round to zero gets the same two extra decimals, so 20,000 staples at $5.00 read $0.0003 each. The percentage itself comes from the unrounded prices.

Where unit pricing rules come from

In the United States the model text is the Uniform Unit Pricing Regulation, adopted by the National Council on Weights and Measures and published in NIST Handbook 130. It took its present name in 1983 and offers, in its own words, "a national approach to the subject for those jurisdictions choosing to adopt such a regulation". It is a model, not a federal rule. It has force only where a jurisdiction adopts it, and the handbook adds that it "applies only when stores voluntarily provide unit pricing information".

The regulation once assigned a unit to each product group and priced most goods sold by weight per pound. In 1993 weights and measures jurisdictions and retail trade associations asked for an update. One concern was the pound itself: some jurisdictions were not enforcing the regulation on stores that chose to price per ounce. The revision adopted in 1997 dropped the product table. A store may now price goods sold by weight per ounce, pound, 100 g or kilogram, and liquids per fluid ounce, pint, quart, gallon, 100 mL or litre, provided every size of a product is priced the same way. The same revision raised the exemption for low-priced items from 10 cents to 50 cents. Packages under 1 oz or 1 fl oz are exempt too, as is a product stocked in only one brand and one size. In December 2014 NIST published a best-practice guide for retailers, Special Publication 1181.

Europe made the unit price compulsory. Directive 98/6/EC of 16 February 1998 requires a selling price and a unit price on products offered to consumers, "to improve consumer information and to facilitate comparison of prices". It defines the unit price as the final price, taxes included, for one kilogram, litre, metre, square metre or cubic metre, or another single unit in customary use, and gave member states until 18 March 2000 to comply. In the United Kingdom the Price Marking Order 2004, in force from 22 July 2004, implemented it. As made, the Order carries a schedule of exceptions: herbs and spices are priced per 10 g, coffee and breakfast cereals per 100 g, and wine per 75 cl. Below £1 a unit price is given to the nearest 0.1p, and a shop with a sales floor of 280 square metres or less need not unit-price goods pre-packaged in a constant quantity.

Australia's Unit Pricing Code is a mandatory industry code under the Competition and Consumer Act 2010. According to the ACCC it applies to retailers that sell a listed range of staple groceries, whether online or from a store using more than 1,000 square metres of floor space for groceries. Their unit prices "must be in dollars and cents, rounded to the nearest cent", and beverages are priced per litre.

What a unit price leaves out

A lower unit price is the better buy only when the two items are otherwise alike and you will use the larger amount. A concentrate and a ready-to-use product are not alike per fluid ounce, so compare them per wash or per serving instead: choose "count" as the unit and enter the number of uses on each label. When one item is on promotion, work out the price after the discount first and enter that. A sales tax charged at one rate on both items changes neither the percentage nor the ranking.

A unit price compares quantity, not quality, and a shelf tag may round differently from this page, so check the label and the receipt before relying on a figure. See the site disclaimer.

Frequently asked questions

How do I work out a unit price?

Divide the price by the quantity in the pack. An 18 oz jar at $4.79 costs 4.79 ÷ 18 = $0.266 per oz. For a multipack, multiply the size of one container by the number in the pack first, so twelve 12 fl oz cans count as 144 fl oz.

How do I compare ounces with pounds, or cans with litres?

Convert both items to one unit before dividing. A pound is 16 oz, so a 2 lb jar holds 32 oz. A US fluid ounce is 29.5735 mL, so 144 fl oz of cans is 4.26 litres and a 2 L bottle is 67.6 fl oz. The calculator does this for you, but it will not compare a weight with a volume or a count.

How do shelf tags round unit prices?

The Uniform Unit Pricing Regulation in NIST Handbook 130 puts a unit price of a dollar or more to the nearest cent, and one under a dollar to a tenth of a cent or a whole cent, whichever method the store uses throughout. The UK Price Marking Order gives unit prices below £1 to the nearest 0.1p. This page shows tenths of a cent under a dollar, so $0.9994 reads $0.999.

What price would make the dearer item the same value?

Multiply the lower unit price by the dearer item's quantity. With the defaults, 18 oz at Item B's $0.234 per oz comes to $4.213, so the page reports A at $4.21. It rounds down to the cent, because $4.22 would still leave Item A dearer per ounce.

Do stores have to show unit prices?

It depends on where you shop. In the United States the Uniform Unit Pricing Regulation is a model that applies only where a jurisdiction has adopted it, and it governs stores that provide unit prices. The UK Price Marking Order 2004 requires a unit price on goods sold loose and on pre-packaged goods that must be marked with a quantity, with exemptions for small shops. Australia's Unit Pricing Code is mandatory for larger grocery stores and online grocers.

Sources

  1. NIST Handbook 130 (2026), IV.C: Uniform Unit Pricing Regulation, National Institute of Standards and Technology, 2026
  2. NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement, National Institute of Standards and Technology, 2026
  3. Directive 98/6/EC on consumer protection in the indication of the prices of products offered to consumers, legislation.gov.uk, The National Archives, 1998
  4. The Price Marking Order 2004 (S.I. 2004 No. 102), as made, legislation.gov.uk, The National Archives, 2004
  5. Unit Pricing Code, Australian Competition and Consumer Commission
  6. Unit Pricing Guide: A Best Practice Approach to Unit Pricing (NIST SP 1181), National Institute of Standards and Technology, 2014