๐ฆ Cost Per Unit Calculator
Compare the true unit price of two products side by side. Enter price, quantity and unit (each, oz, lb, g, kg, ml, L, pack) to instantly see which deal offers the best value for money.
What is this tool?
Cost per unit โ also called unit price โ is the amount you pay for a single, standardized unit of a product, regardless of how it is packaged. It is the single most reliable way to compare two deals that look different on the shelf. A 12 oz jar of peanut butter for $4.99 and a 28 oz tub for $9.49 are hard to compare at a glance, but convert both to "price per ounce" and the better deal jumps out immediately. Unit pricing is so important that several governments, including the U.S. Federal Trade Commission, require large retailers to display unit prices on shelf labels so shoppers can make informed decisions.
The core formula is simple: Unit Price = Total Price ÷ Quantity. Once every product is expressed in the same standardized unit โ for example, price per 100 g or price per fluid ounce โ you can rank any number of options and pick the cheapest. This is especially valuable for bulk purchases, warehouse club comparisons, subscription box sizing, recipe costing, household budgeting, and procurement decisions in small businesses.
This cost per unit calculator goes one step further than a basic division tool. It supports two products side by side and handles automatic unit normalization across both weight (oz, lb, g, kg) and volume (ml, L, fl oz) units. That means you can compare a product sold by the pound against one sold by the kilogram, or a 750 ml bottle against a 1 gallon jug, and the calculator converts everything to a shared base before computing the unit price. The result is a clear, apples-to-apples comparison so you always leave the store โ or the online checkout โ confident that you chose the best value.How it works
The calculator takes three inputs for each product: the total price, the quantity, and the unit of measure (each, oz, lb, g, kg, ml, L, pack). For each product it first converts the quantity into a base unit โ grams for weight, milliliters for volume, or pieces for count-based units โ then divides the price by the normalized quantity to get the unit price. Product A and Product B are shown side by side, and the lower unit price is highlighted as the better deal.
Below is the unit conversion table the calculator uses internally. All weight units are normalized to grams (g) and all volume units to milliliters (ml) before the division step:
| Unit | Type | Converts to |
|---|---|---|
| oz (ounce) | weight | 1 oz = 28.3495 g |
| lb (pound) | weight | 1 lb = 453.592 g |
| g (gram) | weight | base unit |
| kg (kilogram) | weight | 1 kg = 1000 g |
| ml (milliliter) | volume | base unit |
| L (liter) | volume | 1 L = 1000 ml |
| each / pack | count | base unit (1 each = 1 piece) |
For example, Product A is $4.99 for 12 oz and Product B is $9.49 for 28 oz. Converting to grams: 12 oz = 340.19 g and 28 oz = 793.79 g. The unit prices become $4.99 ÷ 340.19 = $0.01467 per gram for A, and $9.49 ÷ 793.79 = $0.01195 per gram for B. Product B is cheaper per unit, so the calculator marks it as the better buy even though its total price is higher.How to use
- Enter the total price, quantity and unit for Product A.
- Enter the total price, quantity and unit for Product B (optional).
- Choose the same unit family for both products for an exact comparison.
- Click the Compare button.
- Read the unit price for each product and the recommendation for the better deal.
Frequently Asked Questions
What is a unit price?
A unit price is the cost of a single standardized unit of a product, such as price per ounce, per gram, per liter or per piece. It lets you compare two packages of different sizes fairly, because it removes the effect of packaging size and shows you the true cost of the contents.
Can I compare a product sold by weight with one sold by volume?
The calculator can normalize within weight units (oz, lb, g, kg) and within volume units (ml, L) separately. It cannot directly compare a weight-based product with a volume-based product because the conversion depends on density. For best results, compare two products that use the same unit family.
What units does the calculator support?
It supports eight common units: each (piece), oz (ounce), lb (pound), g (gram), kg (kilogram), ml (milliliter), L (liter) and pack. Weight units are normalized to grams, volume units to milliliters, and count units stay as pieces.
Why does the calculator show a different unit price than the shelf label?
Retailers sometimes round unit prices or use a different base unit (for example price per 100 g versus price per ounce). The calculator uses exact conversion factors and shows the full precision, so small differences are normal. The relative ranking between two products will always match.
Is it always better to buy the product with the lower unit price?
Usually yes, but not always. If the larger package will spoil, expire or go stale before you finish it, the effective unit price of what you actually use may be higher. Also consider storage space and any membership fees required to access the lower unit price.
Does the calculator work for online shopping comparisons?
Yes. Simply copy the price, quantity and unit from the online product listing into the calculator. This is especially useful for subscription services, bulk retailers and marketplace sellers who use many different package sizes.
This tool is for informational purposes only and does not constitute financial advice. Consult a qualified financial professional for advice specific to your situation.
Tips & Advice
Always compare unit prices rather than total prices โ a bigger package is not automatically cheaper, and retailers sometimes use strategically sized packages to make a deal look better than it is. Watch out for "shrinkflation", where the price stays the same but the quantity drops, silently raising the unit price. When comparing products sold in different unit families (weight vs volume, for example a jar of honey sold by weight versus syrup sold by volume), you cannot get a perfect comparison without knowing the density, so in those cases pick a single product family at a time. Bulk buys usually win on unit price but only if you will actually use the full quantity before it expires or goes stale. Factor in membership fees: a warehouse club unit price may look lower, but the annual fee must be spread across your yearly purchases to give a true cost. Finally, remember that store brands and generic labels very often have a lower unit price than name brands, sometimes by a wide margin, with negligible quality difference.
Related Tools
Percentage Calculator
Calculate percentages, changes, and ratios online for free. Find what is X perce
Discount Calculator
Calculate the final price after any percentage discount online for free. Works f
Budget Calculator
Track your monthly income and expenses with our free budget calculator. See your
Profit Margin Calculator
Calculate profit margin instantly. Enter revenue and cost to see gross profit, n
Markup Calculator
Calculate markup and margin instantly. Enter cost and selling price (or cost and
Sources & References
Last reviewed: August 2026.
- Federal Trade Commission (FTC) โ Shopping guides and unit pricing consumer guidance (ftc.gov).
- Consumer Reports โ Price-per-unit comparison methodology and buying guides (consumerreports.org).
- National Institute of Standards and Technology (NIST) โ Handbook 130, Uniform Laws and Regulations on unit pricing (nist.gov).
Limitations
This calculator performs exact arithmetic unit conversions but cannot account for product quality differences, shelf life, storage costs, or membership fees. Weight-to-volume comparisons require density data that the tool does not estimate.