Skip to content

Library Guides

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.

By CentralUpdated 24 November 202612 min read8 sources, checked 23 November 2026
On this page
  1. The unit price formula
  2. Eight worked examples
  3. How to compare two pack sizes
  4. Rounding
  5. Which base unit to use, and where a unit price is required
  6. Where the unit price has to appear online
  7. The two Google feed values
  8. Unit price in a spreadsheet
  9. What the free calculator does
  10. Common mistakes
  11. Where Central helps

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.
Unit price calculatorFree tool

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
  1. 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.
  2. 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.
  3. Divide, then round once. Price divided by quantity gives the price for one base unit.
You wantDivide the price by
Price per ounceThe weight in ounces
Price per poundThe weight in ounces, divided by 16
Price per kilogramThe weight in grams, divided by 1,000
Price per 100 gramsThe weight in grams, divided by 100
Price per literThe volume in milliliters, divided by 1,000
Price per 100 millilitersThe volume in milliliters, divided by 100
Price per itemThe number of items in the pack
Price per square footThe area the pack covers, in square feet

Eight worked examples#

Prices are examples; each result is rounded once, at the end.

CaseProduct and priceCalculationUnit price
Per ounce and per poundTrail mix, 12 oz, $8.998.99 / 12 oz, and 8.99 / 0.75 lb74.9¢ per ounce, $11.99 per pound
Per 100 grams and per kilogramCoffee, 250 g, 6.49 €6.49 / 0.25 kg, and 6.49 / 2.525.96 € per 1 kg, 2.60 € per 100 g
Per liter and per 100 millilitersOlive oil, 750 ml, 11.99 €11.99 / 0.75 l, and 11.99 / 7.515.99 € per 1 l, 1.60 € per 100 ml
Per countFire starter cubes, 24 count, $5.495.49 / 2422.9¢ each
Per square footVinyl flooring, one box covers 23.4 sq ft, $65.2965.29 / 23.4 sq ft$2.79 per square foot
MultipackFour 230 g gas canisters for the Northpeak camping stove, 19.96 €19.96 / (4 x 0.23 kg) = 19.96 / 0.92 kg21.70 € per 1 kg
ConcentrateLaundry detergent, 1.5 l, 30 wash loads, 8.97 €8.97 / 30 loads, or 8.97 / 1.5 l0.30 € per wash load, or 5.98 € per 1 l
Drained weightOlives in brine, 340 g net, 200 g drained, 2.99 €2.99 / 0.2 kg14.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.

PackPricePer ouncePer pound
Trail mix, 12 oz$8.9974.9¢$11.99
Trail mix, 2 lb (32 oz)$21.9868.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.

WhereRounding ruleSource
United States, model regulationTo 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 throughoutUniform Unit Pricing Regulation, Section 4
United States, NIST guideStandard rounding: 13.5¢ becomes 14¢, 13.4¢ becomes 13¢NIST SP 1181, Section 4
EU and GermanyDirective 98/6/EC and the PAngV name the unit, not a rounding method. Round to the cent, as for the selling priceDirective 98/6/EC; PAngV
Google feedAt 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 literGoogle Merchant Center Help

Which base unit to use, and where a unit price is required#

WhereBase unitRequired?
United StatesWeight: 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 UnionOne 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)
Germany1 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 KingdomOne 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 example 750ml.
  • 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:

Productpriceunit_pricing_measureunit_pricing_base_measureGoogle shows
Perfume, 125 ml19.90 EUR125ml100ml15.92 EUR per 100 ml
Walnut flooring113.19 EUR2.38sqm1sqm47.56 EUR per 1 m²
10 bottles of red wine65.00 USD7.5l750ml6.50 USD per 750 ml
50 business cards13.38 EUR50ct1ct0.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,1kg

What Google's two pages add:

  • Where it is required. Products sold by weight, volume, length or area need unit_pricing_measure in 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: sqm with sqm).
  • 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#

  1. Mixing units. Dividing by grams and labeling the result "per kg", or comparing a price per ounce with a price per pound.
  2. Forgetting the drained weight. Canned vegetables, olives and fish in liquid are priced on the drained weight where it must be declared.
  3. 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).
  4. Including the deposit. A refundable deposit stays out of the unit price in Germany (section 7 PAngV) and in the UK definition.
  5. Calculating a multipack from one unit.
  6. Rounding too early. Rounding 0.749 to 0.75 before multiplying by 16 turns $11.99 per pound into $12.00.
  7. Changing the base unit within a category. One size per ounce and the next per pound cannot be compared.
  8. 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.

See it on your own products

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

  1. 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
  2. NIST Special Publication 1181, Unit Pricing Guide (2025 edition)National Institute of Standards and Technology (NIST)checked 23 November 2026
  3. A Guide to U.S. Retail Pricing Laws and RegulationsNational Institute of Standards and Technology (NIST)checked 23 November 2026
  4. 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
  5. Preisangabenverordnung (PAngV), sections 4 to 7Bundesamt für Justiz, gesetze-im-internet.dechecked 23 November 2026
  6. The Price Marking Order 2004 (S.I. 2004/102), latest revised version, articles 1 and 5legislation.gov.ukchecked 23 November 2026
  7. Unit pricing measure [unit_pricing_measure]Google Merchant Center Helpchecked 23 November 2026
  8. Unit pricing base measure [unit_pricing_base_measure]Google Merchant Center Helpchecked 23 November 2026

More on this topic

Product regulations

You choose what goes in and where it goes out.

Central AI does everything in between. Your first 3 products are free.

  1. Your inputYour shop, your files or your product pages.
  2. Central AIResearches, verifies and writes everything in between. Every value is backed by sources you can check; what the sources do not support is held back.
  3. Your channelsProduct data and listings for the channels you choose.