How to calculate unit price: formula, examples and where it is required
The unit price formula with eight worked examples, how to compare pack sizes, rounding, the base unit by country and Google's two unit pricing feed values.
On this page
In short
- A unit price is the selling price divided by the net quantity in the pack, expressed for one standard unit such as one pound, one ounce, one kilogram or one liter.
- The United States has no federal unit pricing mandate; NIST lists Connecticut, Maryland, Massachusetts, New Hampshire, New Jersey, New York, Oregon, Rhode Island, Vermont and the District of Columbia as having mandatory provisions.
- NIST's Uniform Unit Pricing Regulation shows a unit price of a dollar or more to the nearest cent, and a unit price under a dollar either to the tenth of a cent or to the whole cent.
- Directive 98/6/EC defines the unit price as the final price, including VAT, for one kilogram, liter, meter, square meter or cubic meter; Germany has asked for 1 kilogram or 1 liter on packaged goods since 28 May 2022.
- In the United Kingdom, the Price Marking Order 2004 as amended from 6 April 2026 sets the unit price per kilogram, liter, meter, square meter, cubic meter or single item.
- Google calculates the unit price it shows from three feed values: price, unit_pricing_measure and unit_pricing_base_measure.
The unit price formula#
A unit price is the selling price divided by the quantity in the pack, expressed for one standard unit: one pound, one ounce, one kilogram, one liter.
unit price = selling price / net quantity in the pack x base quantity- Take the selling price. That is the price the buyer pays for the pack. In the EU and the United Kingdom it includes VAT. Leave out shipping and any refundable deposit.
- Put the net quantity into the base unit. 750 ml is 0.75 l, 12 oz is 0.75 lb, and four canisters of 230 g are 920 g or 0.92 kg. The exact factors between metric and US units are in units of measurement in product data.
- Divide, then round once. Price divided by quantity gives the price for one base unit.
| You want | Divide the price by |
|---|---|
| Price per ounce | The weight in ounces |
| Price per pound | The weight in ounces, divided by 16 |
| Price per kilogram | The weight in grams, divided by 1,000 |
| Price per 100 grams | The weight in grams, divided by 100 |
| Price per liter | The volume in milliliters, divided by 1,000 |
| Price per 100 milliliters | The volume in milliliters, divided by 100 |
| Price per item | The number of items in the pack |
| Price per square foot | The area the pack covers, in square feet |
Eight worked examples#
Prices are examples; each result is rounded once, at the end.
| Case | Product and price | Calculation | Unit price |
|---|---|---|---|
| Per ounce and per pound | Trail mix, 12 oz, $8.99 | 8.99 / 12 oz, and 8.99 / 0.75 lb | 74.9¢ per ounce, $11.99 per pound |
| Per 100 grams and per kilogram | Coffee, 250 g, 6.49 € | 6.49 / 0.25 kg, and 6.49 / 2.5 | 25.96 € per 1 kg, 2.60 € per 100 g |
| Per liter and per 100 milliliters | Olive oil, 750 ml, 11.99 € | 11.99 / 0.75 l, and 11.99 / 7.5 | 15.99 € per 1 l, 1.60 € per 100 ml |
| Per count | Fire starter cubes, 24 count, $5.49 | 5.49 / 24 | 22.9¢ each |
| Per square foot | Vinyl flooring, one box covers 23.4 sq ft, $65.29 | 65.29 / 23.4 sq ft | $2.79 per square foot |
| Multipack | Four 230 g gas canisters for the Northpeak camping stove, 19.96 € | 19.96 / (4 x 0.23 kg) = 19.96 / 0.92 kg | 21.70 € per 1 kg |
| Concentrate | Laundry detergent, 1.5 l, 30 wash loads, 8.97 € | 8.97 / 30 loads, or 8.97 / 1.5 l | 0.30 € per wash load, or 5.98 € per 1 l |
| Drained weight | Olives in brine, 340 g net, 200 g drained, 2.99 € | 2.99 / 0.2 kg | 14.95 € per 1 kg |
Three of these need a rule, not only arithmetic:
- Multipack. The quantity is the content of the whole pack. Divided by one canister, the example would show 86.78 € per kilogram, four times too high.
- Concentrate. Whether a wash load may be the unit depends on the country. Germany allows "a usual application" as the unit for household laundry detergents, and for individually portioned washing and cleaning products when the number of portions is stated next to the total quantity (section 5 (5) PAngV). NIST's Unit Pricing Guide for US retailers says the opposite: loads, uses and servings are not acceptable units. Its model regulation has one concentrate rule: the unit price of infant formula may be based on the reconstituted volume.
- Drained weight. Where the net weight and the net drained weight must both be declared, the EU directive says the unit price of the drained weight is sufficient (Article 4 (2) of Directive 98/6/EC), and Germany requires the unit price to refer to the drained weight (section 5 (4) PAngV). From the 340 g net weight the olives would show 8.79 € per kilogram, which is too low. The declarations themselves are covered in selling food online in the EU.
How to compare two pack sizes#
Convert both packs to the same base unit, then compare the two unit prices.
| Pack | Price | Per ounce | Per pound |
|---|---|---|---|
| Trail mix, 12 oz | $8.99 | 74.9¢ | $11.99 |
| Trail mix, 2 lb (32 oz) | $21.98 | 68.7¢ | $10.99 |
The large pack costs about 8 percent less per ounce: (74.9 - 68.7) / 74.9. Both lines must use one unit. NIST's model regulation says so: if sizes of the same product are labeled in different units, such as 2 L bottles and 12 fl oz cans, the retailer must unit price them consistently (Section 6). In a shop with size variants, each variant needs its own unit price; how to set up the variants is in product variants.
Rounding#
Divide by the exact quantity and round only the result.
| Where | Rounding rule | Source |
|---|---|---|
| United States, model regulation | To the nearest cent when the unit price is a dollar or more. Under a dollar: to the tenth of a cent or to the whole cent, one method for the whole store, with the same rounding up or down throughout | Uniform Unit Pricing Regulation, Section 4 |
| United States, NIST guide | Standard rounding: 13.5¢ becomes 14¢, 13.4¢ becomes 13¢ | NIST SP 1181, Section 4 |
| EU and Germany | Directive 98/6/EC and the PAngV name the unit, not a rounding method. Round to the cent, as for the selling price | Directive 98/6/EC; PAngV |
| Google feed | At most two decimals in unit_pricing_measure; 1.0234 is rounded to 1.02. Google rounds the unit price it shows: 69.99 EUR for 9 l appears as 7.78 per liter | Google Merchant Center Help |
Which base unit to use, and where a unit price is required#
| Where | Base unit | Required? |
|---|---|---|
| United States | Weight: per pound or ounce, or per kilogram or 100 g. Liquid volume: per gallon, quart, pint or fluid ounce, or per liter or 100 mL. Dry measure: per dry quart or dry pint, or per liter or 100 mL. Count: per individual unit or multiple units. Area: per square yard, square foot or square inch, or the metric equivalents. Length: per yard, foot, 100 feet or inch, or per meter, decimeter or centimeter (Uniform Unit Pricing Regulation, Section 2) | No federal mandate. State law decides, see below |
| European Union | One kilogram, one liter, one meter, one square meter or one cubic meter, or a different single unit that is widely and customarily used in the Member State for specific products (Directive 98/6/EC, Article 2) | Yes, for products traders offer to consumers. Member States may waive it where it would not be useful or would confuse (Articles 3 and 5) |
| Germany | 1 kilogram, 1 liter, 1 cubic meter, 1 meter or 1 square meter. Loose goods sold by weight or volume: 1 kilogram or 100 grams, 1 liter or 100 milliliters (section 5 PAngV, in force since 28 May 2022) | Yes, for goods offered by weight, volume, length or area |
| United Kingdom | One kilogram, one liter, one meter, one square meter or one cubic meter, and one item where the product is sold by number (Price Marking Order 2004, article 1, as amended from 6 April 2026) | Yes, for products sold from bulk, or required by weights and measures law to be marked with a quantity or made up in a prescribed quantity (article 5) |
United States in detail. NIST's Unit Pricing Guide states: "There is no federal mandate that requires unit pricing." The Uniform Unit Pricing Regulation in NIST Handbook 130 is a model text for the states, and it applies only when a retailer provides unit prices. It exempts packages under 1 oz (28 g) or 1 fl oz (29 mL), items with a total price of 50 cents or less, and products offered in only one brand and one size (Section 3). Which states go further is counted differently in NIST's own documents:
- NIST's guide to US retail pricing laws (page updated 31 July 2024) counts 18 states and one territory with unit pricing laws or regulations. Ten have mandatory provisions: Connecticut, Maryland, Massachusetts, New Hampshire, New Jersey, New York, Oregon, Rhode Island, Vermont and the District of Columbia. Nine have voluntary provisions: Arkansas, Florida, Hawaii, Mississippi, Montana, Nevada, Virginia, West Virginia and the US Virgin Islands.
- The 2025 edition of NIST's Unit Pricing Guide counts 16 states and three territories, adds Puerto Rico, leaves out Virginia and does not say which are mandatory.
Check the state's own law before you rely on either list. The Unit Pricing Guide also recommends the unit most commonly shown on packages in the category, and the same unit across the whole category.
United Kingdom in detail. Older articles quote special quantities such as 100 g for some products. That list was Schedule 1 of the Order, and it was omitted on 6 April 2026 by the Price Marking (Amendment) Order 2024.
Where the unit price has to appear online#
In the EU the unit price belongs wherever an offer or an advertisement shows a price, legible and next to the selling price. The placement rules, Germany's exemptions and the 30-day rule for price reductions are in unit prices in online shops. The US model regulation is written for stores: its presentation rules (Section 5) describe signs, stickers, labels and tags at the shelf or on the product. What else a listing must show is in product compliance for online listings.
The two Google feed values#
Google does not take a finished unit price. It calculates one from price and two attributes, as of November 2026:
unit_pricing_measure: the content of the product, as a positive number plus a unit, for example750ml.unit_pricing_base_measure: the quantity the unit price is shown for. It is a whole number (1, 10, 100, 2, 4 or 8) plus a unit; 75cl, 750ml, 50kg and 1000kg are also accepted.
Google's own filled examples:
| Product | price | unit_pricing_measure | unit_pricing_base_measure | Google shows |
|---|---|---|---|---|
| Perfume, 125 ml | 19.90 EUR | 125ml | 100ml | 15.92 EUR per 100 ml |
| Walnut flooring | 113.19 EUR | 2.38sqm | 1sqm | 47.56 EUR per 1 m² |
| 10 bottles of red wine | 65.00 USD | 7.5l | 750ml | 6.50 USD per 750 ml |
| 50 business cards | 13.38 EUR | 50ct | 1ct | 0.27 EUR per 1 ct |
The gas canister multipack from above, as a feed row:
id,title,price,unit_pricing_measure,unit_pricing_base_measure
NP-GAS-4,Northpeak gas canister 230 g (pack of 4),19.96 EUR,0.92kg,1kgWhat Google's two pages add:
- Where it is required. Products sold by weight, volume, length or area need
unit_pricing_measurein the EU, the EFTA countries, the United Kingdom, Australia and New Zealand. Elsewhere it is optional. - Units. oz, lb, mg, g, kg, floz, pt, qt, gal, ml, cl, l, cbm, in, ft, yd, cm, m, sqft, sqm and ct; sheet and item only in Australia and New Zealand. For the United Kingdom, submit metric values: Google reads imperial units as US units.
- Same type of unit. Google recommends the same type of unit in both attributes (its example:
sqmwithsqm). - What is shown. Google may show a different base measure than the one you submit. If a product has a unit pricing measure and an energy efficiency class, only the energy class is shown.
The other price attributes are in the Merchant Center product data specification, and the way the file reaches Google is in how to build a Google Shopping feed. The product feed checker checks a whole feed against Google's rules before you upload it.
Unit price in a spreadsheet#
One formula covers a whole product list. Put the price in column B, the content of one unit in grams or milliliters in column C, and the number of units in the pack in column D. In E2:
=ROUND(B2/(C2*D2/1000),2)The result is the price per kilogram or per liter. With 19.96 in B2, 230 in C2 and 4 in D2, E2 shows 21.70. Replace 1000 with 100 for a price per 100 g or 100 ml. With ounces in column C, replace 1000 with 16 for a price per pound. The formula needs one unit in the whole column: if column C mixes grams, kilograms and ounces, convert it first, for example with the unit normalizer.
What the free calculator does#
The unit price calculator takes a selling price, the content of one unit and the number of units in the pack. The content can be in metric units (mg, g, kg, ml, cl, l, cm, m, m², m³) or in US units (oz, lb, fl oz, pt, qt, gal, in, ft, yd, sq ft). It returns the unit price line for the listing and Google's two feed values, in Google's unit names such as floz and sqft.
You choose the quantity the price is shown for: 1 kg or 100 g, 1 l or 100 ml, 1 m, 1 m² or 1 m³, or 1 oz, 1 lb, 1 fl oz, 1 pt, 1 qt, 1 gal, 1 in, 1 ft, 100 ft, 1 yd or 1 sq ft. A price under a dollar for a US unit is shown to the tenth of a cent. A metric content can be shown per US unit and the other way round: the calculator converts with the exact factor, names the factor under the result and writes the content for the feed in the system of the price, rounded to 2 decimals. It reads oz as a weight, and fl oz, pt, qt and gal as US liquid measures.
It also works on a whole file: upload a product list, pick the price column and the content column, and it adds the unit price and both feed values to every row, as CSV, Excel or JSON. The content column can hold values such as 750 ml, 12 oz, 1.5 lb or 2 x 12 fl oz. The calculation runs in your browser.
Common mistakes#
- Mixing units. Dividing by grams and labeling the result "per kg", or comparing a price per ounce with a price per pound.
- Forgetting the drained weight. Canned vegetables, olives and fish in liquid are priced on the drained weight where it must be declared.
- Including shipping in the price. The unit price comes from the selling price of the product. In Germany, shipping costs are stated separately (section 6 PAngV).
- Including the deposit. A refundable deposit stays out of the unit price in Germany (section 7 PAngV) and in the UK definition.
- Calculating a multipack from one unit.
- Rounding too early. Rounding 0.749 to 0.75 before multiplying by 16 turns $11.99 per pound into $12.00.
- Changing the base unit within a category. One size per ounce and the next per pound cannot be compared.
- Leaving the old unit price after a price change. It changes with every new price and pack size.
Where Central helps#
Central does not give legal advice and does not certify compliance. It researches the values a unit price depends on (net quantity, unit, pack count, drained weight) in your own data, on the open web and in verified databases, and backs every value with sources you can check. Values the sources do not support are held back, so a unit price is not calculated from a guessed quantity.
Questions
How do you calculate unit price?
Divide the selling price by the net quantity in the pack, with the quantity expressed in the unit you want to show. A 750 ml bottle at 11.99 € is 11.99 / 0.75 l = 15.99 € per liter. A 12 oz bag at $8.99 is 8.99 / 12 = 74.9 cents per ounce.
What is the difference between unit price and selling price?
The selling price is what the buyer pays for the pack. The unit price is that price converted to one standard quantity, such as one kilogram, one liter or one pound, so that packs of different sizes can be compared.
Is unit pricing required in the United States?
Not by federal law. NIST states that unit pricing is voluntary unless a state law or regulation mandates it, and lists ten jurisdictions with mandatory provisions: Connecticut, Maryland, Massachusetts, New Hampshire, New Jersey, New York, Oregon, Rhode Island, Vermont and the District of Columbia.
Should I show the price per 100 grams or per kilogram?
It depends on the country. Germany asks for 1 kilogram or 1 liter on packaged goods and allows 100 grams or 100 milliliters only for loose goods. NIST's model regulation for the United States allows the price per pound or ounce, or per kilogram or 100 grams, as long as all sizes of a product use the same unit.
How do I calculate the unit price of a multipack?
Use the content of the whole pack. Four canisters of 230 g for 19.96 € hold 920 g, so the unit price is 19.96 / 0.92 kg = 21.70 € per kilogram. Dividing by one canister would show a price four times too high.
Sources
- NIST Handbook 130 (2026 edition), IV.C Uniform Unit Pricing Regulation, sections 1 to 6National Institute of Standards and Technology (NIST)checked 23 November 2026
- NIST Special Publication 1181, Unit Pricing Guide (2025 edition)National Institute of Standards and Technology (NIST)checked 23 November 2026
- A Guide to U.S. Retail Pricing Laws and RegulationsNational Institute of Standards and Technology (NIST)checked 23 November 2026
- Directive 98/6/EC on consumer protection in the indication of the prices of products, consolidated version of 28 May 2022, Articles 2 to 5EUR-Lexchecked 23 November 2026
- Preisangabenverordnung (PAngV), sections 4 to 7Bundesamt für Justiz, gesetze-im-internet.dechecked 23 November 2026
- The Price Marking Order 2004 (S.I. 2004/102), latest revised version, articles 1 and 5legislation.gov.ukchecked 23 November 2026
- Unit pricing measure [unit_pricing_measure]Google Merchant Center Helpchecked 23 November 2026
- Unit pricing base measure [unit_pricing_base_measure]Google Merchant Center Helpchecked 23 November 2026
- CE marking for online sellers: what to check if you are not the manufacturerRegulations
- Digital product passportGlossary
- EPRELGlossary
- EU Batteries Regulation for online sellers: duties, dates and listingsRegulations
- EU digital product passport: rules, timeline and dataRegulations
- EU energy labels online: what a shop must show next to the priceRegulations
- EU responsible person: who needs one and what a listing must showRegulations
- GPSRGlossary
- GPSR for online sellers: what EU product listings must showRegulations
- Packaging registration for online sellers: LUCID, licensing and the PPWRRegulations
- Proposition 65 warnings for online sellers: what a listing must showRegulations
- Selling cosmetics online in the EU: what the listing must showRegulations
- Selling food online in the EU: mandatory information before purchaseRegulations
- Textile labeling for online sellers: fiber composition in the listingRegulations
- Toy safety for online sellers: warnings and CE in the listingRegulations
- WEEE registration for online sellers: who needs a number and where to show itRegulations