Unit Price Calculator - Per Ounce, Gram & Count

Use this unit price calculator to compare two products by cost per ounce, gram, milliliter, or item and see which package is the better value.

Unit Price Calculator

Optional label so you can tell the two products apart in the results.

$

Shelf price you pay for the entire package.

Package size in the unit you select. Metric and US customary units are auto-converted for the comparison.

Unit of measure for the package size. Mixed metric and US customary units are auto-converted.

Optional label for the second product. Leave the default to compare against Product A.

$

Shelf price for the second package.

Package size for product B in the unit you select.

Unit of measure for product B. Mixed unit systems (oz vs g, fl oz vs mL) are auto-converted.

Results

Better value
0
Product A unit price $0
Product B unit price $0
Product A per 100 / per item $0
Product B per 100 / per item $0
Savings per unit $0
Percent savings 0%

What Is the Unit Price Calculator?

The unit price calculator compares two products by the cost of a single standardized unit so you can see which package is the better value. Enter the shelf price and the package size for each product, pick the unit, and the calculator returns the cost per ounce, gram, milliliter, or item for both products, plus how much you save by choosing the cheaper one.

  • Grocery shopping: Pick the cheaper cereal, pasta, rice, or canned good when two boxes show the same brand in different sizes, and stop assuming that a bigger box is always a better deal.
  • Household staples and cleaning supplies: Compare paper towels, trash bags, laundry detergent, and dish soap across brands and sizes, then commit to the option that costs the least per roll, sheet, fluid ounce, or load.
  • Bulk and club-store trips: Decide whether the warehouse-size package is really a better value per unit than the grocery-store size, especially for items you might not finish before they expire.
  • Multi-pack vs single items: Compare a multi-pack of beverages, snacks, or travel-size toiletries against buying the same number of items separately to see if the bundle actually saves money per unit.

The result panel reports the cheaper product by name along with the savings per unit and the percent difference, so the next decision at the register takes seconds instead of guesswork.

When a sale tag shows a percentage off instead of a per-ounce price, switch to the Percent Off Calculator to convert the discount into the actual final price before comparing it with the other product.

How the Unit Price Calculator Works

The calculator reads both product entries, converts each package size into a single base unit, and divides the shelf price by that base size to produce a per-unit cost that is directly comparable.

unitPrice = totalPrice / packageSize (converted to base unit) perReference = unitPrice x 100 (for weight and volume) or unitPrice (for count) savingsPerUnit = unitPriceB - unitPriceA percentSavings = (savingsPerUnit / higherUnitPrice) x 100
  • productAPrice / productBPrice: The shelf price you pay for each package, in the same currency. Prices must be positive numbers.
  • productASize / productBSize: The package size in the unit you select. The calculator converts oz, lb, g, kg, mL, L, fl oz, and gal into a common base unit before dividing.
  • productAUnit / productBUnit: The unit selector supports US customary, metric, fluid volume, and count, so 18 oz and 510 g can be compared without retyping the price.

When one product is in ounces and the other in grams, the calculator converts both to grams using the NIST factor 1 oz = 28.349523125 g before dividing.

The same approach is used in real estate when comparing rent or sale price per square foot: normalize the size to a single unit first, then divide the price by that size. The math is the same even when the unit is floor area instead of weight or volume.

Two rolls of paper towels compared in ounces

Product A: 4.99 dollars, 12 oz. Product B: 6.49 dollars, 18 oz.

unitPriceA = 4.99 / 12 = 0.4158. unitPriceB = 6.49 / 18 = 0.3606 dollars per oz.

Better value: Product B. Savings: 0.0553 dollars per oz (13.29%).

The 18 oz roll costs 0.06 dollars less per ounce than the 12 oz roll, even though the total shelf price is 1.50 dollars higher.

According to US Federal Trade Commission, the FTC Unit Pricing Rule (16 CFR Part 245) requires retailers to display the price per unit of measure so consumers can compare value across package sizes and brands.

According to Consumer.gov, comparing unit prices is the standard way to find the best value among similar products because shelf prices reflect package size as well as brand.

The same per-unit formula is used in real estate when comparing rent or sale price per square foot and per square meter, and the Price Per Square Foot Calculator runs that comparison for floor area instead of weight or volume.

Key Concepts Explained

Four short concepts cover the math, the conversions, and the shelf-reference price that most grocers print on the price tag.

Base unit normalization

A unit price only makes sense after both products are measured in the same unit. The calculator converts ounces, pounds, grams, and kilograms to grams, and fluid ounces, milliliters, liters, and gallons to milliliters, so the division price / size is fair.

Per-100 reference price

Many US retailers print the per-100-gram or per-100-milliliter price on the shelf tag. The calculator reports the same reference so you can match the answer to the tag, and falls back to per-item pricing for count products.

Conversion factors

All conversion factors come from NIST Special Publication 811. The international avoirdupois ounce is exactly 28.349523125 g, the pound is exactly 0.45359237 kg, the US fluid ounce is exactly 29.5735295625 mL, and the US liquid gallon is exactly 3.785411784 L.

Percent savings

Percent savings is the difference between the two unit prices, divided by the higher unit price and multiplied by 100. It is the cleanest way to see how much the cheaper product saves you per unit.

When the unit systems match (oz versus oz, g versus g, mL versus mL), no conversion is needed and the unit prices are read straight off the shelf.

Tracking which groceries cost the least per unit is a useful input for the Monthly Budget Calculator because it shows how the savings add up across an entire month of recurring shopping trips.

How to Use the Unit Price Calculator

Five short steps take you from a confused aisle to a confident pick.

  1. 1 Name each product: Type a short label for each option such as 'Brand A 12 oz' so the results panel tells you which is which.
  2. 2 Enter the shelf price: Put the total price you pay for the package in the price field. Use the same currency for both products.
  3. 3 Enter the package size and unit: Type the package size as it appears on the label and pick the unit. Ounces, pounds, grams, kilograms, milliliters, liters, fluid ounces, gallons, and count are all supported.
  4. 4 Read the better-value answer: Look at the big result tile. It shows the name of the cheaper product, the savings per unit, and the percent savings so the decision is one glance.
  5. 5 Use the per-100 reference to verify: Match the per-100-gram or per-100-mL row to the shelf tag when one is printed. If the shelf tag disagrees, double-check the package size or the unit.

A shopper compares a 4.99 dollar 12 oz box of pasta with a 6.49 dollar 18 oz box. The calculator reports Product B as the better value with 13.29 percent saved over the smaller box.

After picking the cheaper box, plug the chosen brand and size into the Grocery Calculator to estimate the total grocery spend for the week, then compare that total against your planned grocery budget.

Benefits of Using the Unit Price Calculator

The calculator removes the mental math that pushes most shoppers to grab the bigger box or the brand they trust.

  • Compare any two packages fairly: Mix ounces and grams, pounds and kilograms, fluid ounces and milliliters, and gallons and liters, and the calculator normalizes everything to a single base unit before dividing the price.
  • Catch inflated 'bigger value' claims: Bulk and club-store packages sometimes cost more per unit than the grocery-store size. A two-product comparison surfaces the gap so you stop paying extra for packaging that looks like a deal.
  • Match the shelf tag: The per-100-gram and per-100-mL outputs mirror the standard shelf-reference price most US retailers print, so you can sanity-check the calculator against the in-store sign.
  • Plan shopping lists and shared grocery runs: Use the per-item cost as the cleanest input for shared grocery math, so each housemate can pay a fair share of the bulk savings.

Because the calculator handles both weight and fluid volume in the same form, the same workflow works for cereal, rice, juice, and detergent, with only the unit selector changing.

When the bulk box is shared between roommates or family members, the per-item cost from this calculator becomes the input for the Split Bill Calculator so each person owes a fair share of the bulk savings.

Factors That Affect Your Results

The package size, the unit you pick, and the precision of the shelf price all change the answer in small but real ways.

Package size accuracy

The size on the label is rounded for printing. A 16.9 fl oz bottle is 500 mL, and a 32 oz jar is 907 g, not 1 kg. Use the printed size in the unit you select.

Mixing unit systems

Comparing 18 oz and 510 g works only because the calculator converts both to grams using the NIST factor 1 oz = 28.349523125 g.

Count vs weight vs volume

A 12-pack of cans and a 24-pack of cans are both count products, so the calculator divides by item count. Do not enter a count of 24 under fluid ounces by mistake.

Sale prices and coupons

Enter the price you actually pay at the register, including any store loyalty discount. The calculator does not see rebates, fuel points, or percentage-off coupons, so apply those first.

  • The calculator does not convert between currencies. Use the same currency for both products, or convert one price first.
  • It does not account for waste, spoilage, or items you will not finish. A bulk package that is cheaper per unit can still cost more overall if half of it goes unused before the best-by date.
  • Unit price ignores quality and dietary fit. The cheapest per ounce is not always the right choice if the lower-priced product is lower in protein or active ingredient.

The same NIST conversion factors used here for the unit math also apply to other per-unit comparisons, such as ingredient cost in a recipe.

According to NIST, NIST Special Publication 811 defines the international avoirdupois ounce as exactly 28.349523125 grams, the pound as exactly 0.45359237 kilograms, the US fluid ounce as exactly 29.5735295625 milliliters, and the US liquid gallon as exactly 3.785411784 liters.

Once the cheaper brand is picked, the per-ounce or per-gram cost from this calculator becomes one of the direct inputs of the Recipe Cost Calculator for the per-serving cost of a recipe.

unit price calculator comparing two products by cost per ounce, gram, milliliter, and item count
unit price calculator comparing two products by cost per ounce, gram, milliliter, and item count

Frequently Asked Questions

Q: What is a unit price calculator?

A: A unit price calculator takes the shelf price of a product and the size of the package, then returns the cost of a single standardized unit such as one ounce, one gram, one milliliter, or one item. It lets you compare two products fairly even when the package sizes and unit systems are different.

Q: How do I calculate the unit price of a product?

A: Divide the shelf price by the package size after converting the size to a single base unit. For weight, convert to grams; for volume, convert to milliliters; for items, use the count. The unit price calculator runs that step automatically and reports the per-unit cost to four decimals.

Q: How do I compare two products by unit price?

A: Enter both products with their prices and package sizes, even if the unit labels are different, and the calculator will normalize them and report the cheaper product, the savings per unit, and the percent difference. The result panel flags the better value so the choice at the register is one glance.

Q: What units can a unit price calculator use?

A: This calculator accepts ounces, pounds, grams, kilograms, milliliters, liters, US fluid ounces, US gallons, and a count of items. Each pair of products is converted to a common base unit (grams for weight, milliliters for volume, items for count) before the price is divided.

Q: Does a unit price calculator convert metric and imperial units?

A: Yes. The calculator uses the NIST factors that define one ounce as exactly 28.349523125 grams, one pound as 0.45359237 kilograms, one US fluid ounce as 29.5735295625 milliliters, and one US gallon as 3.785411784 liters, so an 18 oz package and a 510 g package are compared on the same scale.

Q: Why is the larger package sometimes more expensive per unit?

A: Packaging, marketing, and the price elasticity of bulk buyers all push the per-unit cost of a larger package in either direction. A bigger box can carry a premium for the convenience of fewer shopping trips, while a smaller box can be priced low to attract first-time buyers; the only way to know is to divide the price by the size, which is exactly what the unit price calculator does.