Something wrong with this tool?

About Unit Price Calculator Online

This tool calculates the price per unit (per ounce, gram, liter, item, or other unit) so you can compare products that come in different package sizes. Enter the package price and quantity, and it returns the per-unit cost.

Unit pricing is the single most powerful technique for grocery savings. A larger package isn't always cheaper per unit — generic brands often beat name brands on unit price, and the second-cheapest store-brand product is often a worse deal than the cheapest after unit-price comparison.

Use it in the supermarket aisle, when shopping online, or when stocking a small business. The tool handles different units (kg vs g, lb vs oz, gallon vs liter) and normalises everything to a single chosen unit for direct comparison.

How to use this tool

How to compute price per unit for shelf comparisons

  1. Enter total price

    "Total price" is what you'd pay for the whole package — sticker price including any per-package fees but BEFORE bulk-checkout discounts.

  2. Enter units

    "Units" defaults to 100 — handy because per-100g/per-100ml is the canonical EU shelf-tag unit. For US ounce/pound prices, change to the package's exact net quantity (e.g. 16 for a 16 oz can).

  3. Press Run

    Result returns pricePerUnit = totalPrice / units, rounded to 4 decimals. Units of 0 throws "Units must be > 0." — division by zero isn't allowed.

  4. Comparing across stores

    Always normalise to the SAME unit on both sides. A bigger package isn't automatically cheaper per unit; even "family size" sometimes loses to the medium. Let the number, not the marketing, decide.