Skip to content

Unit Price Calculator

Compare package sizes by price per unit and find the better buy.

Products to compare
More options

Calculated on your device. Nothing you enter is sent anywhere.

Better buy

Item 2

Item 2 costs $0.1999 per unit, against $0.2342 for the most expensive option.

Lowest price per unit
$0.1999
Cheaper per unit than the most expensive
14.66%
Highest price per unit
$0.2342

Price per unit for each product
ItemPrice per unitExtra vs best (%)
10.234217.18%
20.19990%

In short

The unit price is the price divided by the number of units in the package: dollars per ounce, cents per gram or cost per load. Comparing unit prices shows which size gives more for the money, as long as every quantity is in the same unit. Bigger packages are often cheaper per unit, but not always.

How it works

A unit price is a rate: what one unit of the product costs.

Unit price

unit price = price ÷ quantity

OpenStax Prealgebra uses it to decide the better buy: divide each package’s price by its quantity, and pick the smaller result. The calculator also shows how much more each option costs per unit than the best one:

Premium over the best

premium = (unit price − lowest) ÷ lowest × 100

Many shelf labels already show a unit price. The US National Institute of Standards and Technology publishes a best-practice guide for them, which recommends using the same unit across a product category so shoppers can compare. Labels round to the cent or a tenth of a cent, so two products can look identical on the shelf when one is slightly cheaper.

Worked examples

Liquid or powder detergent

Liquid costs $14.99 for 64 loads and powder $15.99 for 80 loads. Per load, that is $0.2342 and $0.1999, so the better buy is Item 2, the powder, even though its package price is higher. This is OpenStax’s Example 5.67.

Open this example in the calculator

When the bigger bottle costs more per ounce

NIST’s example: a 64-ounce bottle of ketchup at $4.49 and a 38-ounce bottle at $2.29. The large bottle works out at $0.0702 an ounce, and the small one at $0.0603. Item 2, the smaller bottle, is the better deal, because the store charged extra for the large size.

Open this example in the calculator

Three sizes of coffee

16 oz for $4.29, 32 oz for $6.99 and 48 oz for $12.49. Per ounce: $0.2681, $0.2184 and $0.2602. The middle size, Item 2, is 18.5% cheaper per ounce than the small bag, while the largest bag costs more per ounce than the 32 oz one.

Open this example in the calculator

Using this calculator well

  • Convert to one unit first. If one package is in grams and another in ounces, convert before comparing (1 oz = 28.349523125 g). The unit converter can help.
  • Check multi-buy offers. For “3 for $5”, enter the total price and the total quantity of all three packages, not the price of one.
  • Cheapest per unit isn’t always best. A larger pack is no saving if part of it spoils or goes unused. Compare what you will actually use.
  • Watch for shrinking packages. When a product gets smaller but keeps its price, the unit price rises. Comparing unit prices over time makes this visible.

Frequently asked questions

How do you calculate unit price?

Divide the price by the number of units. A 24-pack of bottles for $3.99 costs $3.99 ÷ 24 = $0.166 per bottle, about 17 cents. Use whatever unit makes sense, such as ounces, grams, sheets or loads, as long as you use the same one for every product.

Is the bigger package always cheaper?

Usually, but not always. Stores sometimes charge more per unit for large sizes, and sales on small sizes can reverse the usual pattern. NIST’s ketchup example shows a 64-ounce bottle costing more per ounce than a 38-ounce bottle. Checking the unit price is the only reliable way to know.

How do I compare products sold in different units?

Convert one quantity to the other’s unit first. To compare 500 g with 16 oz, convert 16 oz to 453.6 g, then divide each price by its grams. Comparing $ per gram with $ per ounce directly gives a meaningless result.

Why does the shelf label show a different unit price?

Shelf labels round the unit price, often to the nearest cent or tenth of a cent, and may use a different unit, such as per 100 g or per pound. This calculator keeps four decimal places. Small differences can also come from a price change that the label hasn’t caught up with.

Sources and methodology

  1. Prealgebra 2e, 5.6 Ratios and Rate, OpenStax, Rice University, unit price = price ÷ number of units; Example 5.66: $3.99 for 24 bottles ≈ $0.17 each; Example 5.67: $14.99 for 64 loads vs $15.99 for 80 loads, the powder is the better buy (accessed November 24, 2026)
  2. New Best Practices Guide Shows Unit Pricing Is a Great Deal (NIST SP 1181), National Institute of Standards and Technology, a 64-ounce bottle of ketchup at $4.49 (7¢ per ounce) is a worse deal than a 38-ounce bottle at $2.29 (6¢ per ounce) (accessed November 24, 2026)

Rounding: Unit prices are rounded half-up to 4 decimal places, finer than shelf labels, so close comparisons are not decided by rounding to the cent.

Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.

Changelog
  • 1.0.0 · November 24, 2026: First published.

How we build and test calculators

Embed this calculator on your site

Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.

<iframe src="https://northcalculator.com/embed/en/unit-price" title="Unit Price Calculator" width="100%" height="760" style="border:0" loading="lazy"></iframe>