Three inputs per package
How to use the unit price calculator
Choose Two products to compare a pair, or One product to see a single package expressed in every unit for its dimension. Each product needs three values: the package price in U.S. dollars, the package size as a positive number, and the unit that size is measured in.
Enter the price printed on the shelf tag or product page, before sales tax and shipping. Enter the net amount on the label — the weight, volume, or item count you actually receive — not the shipping weight or the package dimensions. The unit menu is grouped by dimension: Weight covers oz, lb, g, and kg; Volume covers U.S. fluid ounces and liters; Count covers individual items.
When both products are valid and share a dimension, the result shows each product's unit price, the difference per unit, the percentage saving against the higher unit price, and a table of every supported unit price. The headline uses Product A's unit, so a 16 oz package compared with a 1 lb package is reported per ounce.
| Package price | $0.01 to $1,000,000, up to two decimal places |
|---|---|
| Weight package size | Greater than 0, up to 1,000,000 oz, lb, g, or kg |
| Volume package size | Greater than 0, up to 1,000,000 fl oz or L |
| Count package size | Whole number from 1 to 1,000,000 items |
| Products compared | One or two; Product B is optional |
Empty, non-finite, zero, and negative values are rejected with a message next to the affected field instead of being treated as zero. The page address stores the mode and all six values, so a shared link restores the comparison. Reset returns to the documented example: Product A at $4.99 for 16 oz and Product B at $7.49 for 32 oz.
Unit price formula and unit factors
A unit price divides the package price by the amount in the package. Before dividing, the calculator converts the package size to one base unit for its dimension — grams for weight, liters for volume, and items for count — so packages entered in different units can be compared.
unit price = package price ÷ package size in the chosen unitprice per base unit = package price ÷ (package size × unit factor)price in another unit = price per base unit × that unit's factorComparisonpercent less = (higher unit price − lower unit price) ÷ higher unit price × 100The factors below are exact definitions, not rounded labels. The calculator divides once to reach the base unit, then multiplies to express the same price in each supported unit. It does not round between those steps.
| Weight | 1 oz = 28.349523125 g; 1 lb = 453.59237 g = 16 oz; 1 kg = 1,000 g |
|---|---|
| Volume | 1 U.S. fl oz = 29.5735295625 mL; 1 L = 1,000 mL |
| Count | 1 item = 1 count unit |
For example, 16 oz × 28.349523125 g/oz = 453.59237 g, so a $4.99 package costs $4.99 ÷ 453.59237 g = $0.011 per gram. Multiplying the per-ounce price by 16 gives the price per pound, and multiplying the per-gram price by 1,000 gives the price per kilogram. The percent figure uses the higher unit price as its denominator, which is why it answers "how much less does the cheaper option cost?" It is a comparison of two prices, not a percentage change over time; see percentage difference vs percentage change for that distinction.
Unit definitions: NIST Handbook 44 (2026), Appendix C, Units of Weight or Mass and Units of Volume. The calculator uses the international avoirdupois pound (453.59237 g exactly) and the U.S. customary fluid ounce (29.5735295625 mL, 1/128 of a 231 in³ gallon).
Worked example: $4.99 for 16 oz vs $7.49 for 32 oz
The default values are Product A at $4.99 for 16 oz and Product B at $7.49 for 32 oz. Both are weight, so the two packages are comparable. Divide each price by its own package size, then compare the quotients in the same unit.
| Product A per ounce | $4.99 ÷ 16 oz = $0.311875 → $0.3119 |
|---|---|
| Product B per ounce | $7.49 ÷ 32 oz = $0.2340625 → $0.2341 |
| Difference per ounce | $0.311875 − $0.2340625 = $0.0778125 → $0.0778 |
| Percent less | $0.0778125 ÷ $0.311875 × 100 = 24.9499% → 24.9% |
| Cheaper per ounce | Product B |
Product B is cheaper per unit even though it costs $2.50 more at the register. The larger package is the better value in this example because its unit price is lower; that is a result of these two prices, not a rule that the bigger package always wins.
The same division gives every other weight unit. Product A is $4.99 per pound because 16 oz is exactly 1 lb. Product B is $7.49 ÷ 2 = $3.745 per pound because 32 oz is 2 lb. Per kilogram, the packages are $11.0011 and $8.2563. Those figures are conversions of the same unit price, not separate calculations.
Unit prices are displayed to four decimal places, while the difference and percentage use unrounded values. Recomputing from the printed figures can therefore differ in the last digit, and 24.9499% is displayed as 24.9%.
Compare only within the same dimension
A unit price only answers a question inside one dimension. Weight tells you how heavy a package is, volume tells you how much space it fills, and count tells you how many items it contains. None of those quantities substitutes for another.
| Weight | oz, lb, g, kg — normalized to grams |
|---|---|
| Volume | U.S. fl oz, L — normalized to liters |
| Count | items — normalized to a count |
An ounce and a fluid ounce are not the same unit. The ounce is a mass unit (1/16 lb); the U.S. fluid ounce is a volume unit (1/128 of a U.S. gallon). Relating them requires the density of the specific product, so this calculator does not convert between weight and volume. A 16 fl oz bottle and a 16 oz package are not the same size.
If Product A is priced by weight and Product B by count, the result still shows each product's own unit price, but it does not subtract them, calculate a percentage, or name a winner. A comparison error explains which dimensions were used. Change one unit so both packages share a group, or run the products separately and compare only within each dimension. A per-item price is also only meaningful for interchangeable items; a count cannot compare different kinds of products.
Labels in other volume units need conversion first. The Gallons to Liters Calculator handles gallon labels, and a quart is one quarter of a gallon. There is no supported weight or volume conversion between the two families.
Package size and rounding pitfalls
Use the net amount, not the package description. A bag holding 2 × 12 oz pouches contains 24 oz, not 12 oz, and a "family size" box may contain several inner bags. Add the net contents before entering the size, and do not enter the shipping weight or the package dimensions.
Check whether the label means drained weight. A can of beans or fruit may list a net weight that includes liquid. If you are comparing the drained product, use the drained weight the label provides; mixing net and drained weights makes the unit prices incomparable in practice.
Enter the price you will actually pay. A sale price changes the unit price even though the package size is unchanged. For a "buy one, get one" offer, divide the total price by the total size rather than comparing one sticker price. If the price reflects a markdown, the Discount Calculator can verify the sale price first.
Keep conversion and display rounding separate. Per-gram prices are fractions of a cent. The calculator keeps the full-precision quotient and rounds only the figure it shows, so a difference or percentage computed from the printed unit prices can differ by one unit in the last decimal place. If two packages differ by less than a hundredth of a cent per unit, treat the arithmetic winner as a tie in practice.
Label quantities can be approximate. A net weight marked "about" or a count that varies with piece size carries that uncertainty into the unit price. The calculator cannot detect a rounded label, a multipack entered as a single item, or a unit chosen from the wrong dimension.
Do not mix price bases. A shelf tag of $0.25 per ounce and another of $3.50 per pound need a common unit before comparison: $3.50 ÷ 16 = $0.21875 per ounce. Store labels in per-100 g, per-100 mL, or per-quart terms need the same treatment; the FAQ below shows the conversion.
What the calculator does not do
- It does not fetch live prices, price history, store data, or product availability; every price comes from your input.
- It does not add sales tax, shipping, handling, bottle deposits, coupons, or membership fees.
- It does not convert between weight, volume, and count; those conversions need density or a measured item weight, which the calculator does not assume.
- It does not convert currencies. All prices are in U.S. dollars.
- It does not judge quality, brand, freshness, storage life, or how much of the package you will use.
- It does not round a package up to a whole number of purchases, and it does not replace a register total or a financial decision.
The price you enter is the price the calculation uses. Sales tax is added by the seller at checkout, and its rate can depend on the item and the location, so the calculator leaves it out. If a shipping charge belongs to a specific package, add that part of the charge to the package price before entering it. A flat order-level shipping fee depends on the whole order and cannot be assigned to one package without a rule.
The comparison is arithmetic on the numbers provided. It cannot detect a mislabeled package, a multipack entered as a single item, an outdated shelf tag, or a package whose contents have changed size between visits.
Unit price calculator FAQs
Can I compare more than two packages at once?
No. The calculator compares two packages at a time and uses Product A's unit for the headline comparison. To rank several packages, compare the first two, then enter the current cheapest as Product A and the next package as Product B. Each pair is stored in the page address, so a comparison can be reopened or shared.
Why is the comparison shown per ounce when one package is in pounds?
The headline uses Product A's unit, so if Product A is 16 oz and Product B is 1 lb, both prices are shown per ounce. Both sizes are converted to grams before dividing: 16 oz and 1 lb are both 453.59237 g. The table also lists the price per pound, gram, and kilogram. Changing Product A's unit changes the display unit, not which package is cheaper.
How do you find the unit price or price per ounce?
Divide the package price by the package amount in a common unit. For $4.99 for 16 oz, $4.99 ÷ 16 = $0.3119 per ounce. If one label uses pounds, convert both packages to the same dimension and unit before comparing.
How do I compare a store price shown per 100 g or per 100 mL?
Convert the label price to a price per gram or per milliliter first. At $0.89 per 100 g, the price is $0.89 ÷ 100 = $0.0089 per gram. Multiply by 28.349523 to get $0.2523 per ounce, or by 1,000 to get $8.90 per kilogram. For liquids, $1.29 per 100 mL is $0.0129 per milliliter, $0.3815 per U.S. fluid ounce (× 29.5735295625), or $12.90 per liter. Compare the converted figure with the calculator's per-unit result for the other package.
Is the larger package always cheaper per unit?
No. A larger package is only the better value when its price per unit is lower; some larger sizes cost more per unit, especially outside a promotion. A lower unit price also does not mean lower total spending, because the larger package costs more at checkout, and anything you discard raises the effective cost of what you use. Enter the actual prices rather than assuming the larger size wins.