ToolNestr

Cost-per-Unit Calculator

Compare two products by price per unit to find the better deal.

Reviewed by the ToolNestr Editorial Team — July 2026

Product A

Product B

How cost-per-unit comparison works

The unit price is the cost for a single unit of measure — one gram, one millilitre, or one item. The formula is simple:

Unit Price = Price ÷ Quantity

Once both products have their unit prices calculated in the same base unit, a direct comparison tells you which is the better deal.

Worked example

Product A: $3.00 for 500 g  |  Product B: $5.00 for 1000 g

Product A unit price: $3.00 ÷ 500 g = $0.006 / g
Product B unit price: $5.00 ÷ 1000 g = $0.005 / g
Winner: Product B is ~16.7% cheaper per gram
Cost-per-Unit Comparison Diagram Two product packages side by side with price divided by quantity to show unit price comparison Product A $3.00 ÷ 500 g = $0.006 / g Product B $5.00 ÷ 1000 g = $0.005 / g B is ~17% cheaper Package A unitPrice = price ÷ quantity Package B Cheaper per unit → B
Both products converted to price per gram — the lower unit price wins

Common use cases

🛒

Grocery shopping

Compare two brands, different pack sizes, or bulk vs individual portions. A larger bag of rice might look pricier but often works out cheaper per serving. The unit price reveals the truth behind the shelf tag.

📦

Bulk buying decisions

Warehouse clubs sell in huge quantities — but is the giant tub actually cheaper per unit? Sometimes the regular supermarket pack has a better unit price, especially during sales.

⚖️

Comparing package sizes

A 200 ml bottle for $2 vs a 750 ml bottle for $6 — which is better? The unit price cuts through the noise. Stores often use different sizes to make direct comparison harder.

🧴

Non-food products

Cleaning supplies, toiletries, pet food, and even paint all benefit from unit price comparison. Any product sold in variable quantities can be compared using this method.

Tips for getting accurate comparisons

Always use the same unit

You cannot compare grams with millilitres — one is mass, the other is volume. Convert both to the same type of unit first. This tool detects mismatched unit types and warns you before the comparison.

Watch out for "per 100 g" labels

Some stores display the price per 100 g rather than per gram. That makes it look like the number is smaller than it really is. Always check what base unit the store is using before comparing.

Consider quality differences

Unit price is purely a cost metric. A cheaper brand might use lower-quality ingredients, have thinner packaging, or contain more water. Use unit price as one factor alongside reviews, ingredients, and your own experience.

Check for promotional pricing

A temporary discount can flip the unit price comparison. If you compare during a sale, remember the regular price may tell a different story. Bulk buys on promotion can be excellent value — but only if you will actually use the quantity before it expires.

Why unit price matters more than package price

The total price on the shelf tag tells you what you will pay at the register, but it hides the true value. A $10 bag of dog food might seem more expensive than a $6 bag — but if the $10 bag contains 5 kg and the $6 bag contains 2 kg, the larger bag is actually cheaper per kilogram ($2/kg vs $3/kg). Over a month of feeding, choosing the larger bag saves real money.

Supermarkets and retailers are well aware of this psychology. They deliberately sell products in non-standard sizes to make direct comparison difficult. A brand might offer a 450 g jar instead of 500 g, or a 720 ml bottle instead of 750 ml. The price difference seems small, but the unit price reveals whether you are getting the same value. This practice, sometimes called "shrinkflation," is common across the grocery industry.

Unit price comparison becomes especially important for frequently purchased items. A difference of $0.01 per gram might not seem like much, but for a product you buy every week, it adds up significantly over a year. For example, if coffee costs $0.01/g more and you buy 500 g per month, that is an extra $60 per year — enough for several more bags of coffee.

The cost-per-unit calculator is particularly useful for household budgeting across multiple categories. When you track the unit prices of staples like rice, pasta, detergent, and toilet paper, you can identify which stores consistently offer better value. Over time, these small savings compound into substantial annual reductions in your grocery bill without any sacrifice in quality or quantity.

Related tools

Frequently asked questions

Is the bigger pack always cheaper?

No — sometimes the smaller pack has a lower unit price, especially on promotions.

Can I compare different units?

Convert to the same unit first (e.g. kg → g); comparing g to ml is meaningless.

What about quality differences?

Unit price only measures cost — judge quality separately.

Why do stores use misleading unit pricing?

Different units (per 100g vs per kg) make comparison harder — that is why this tool normalises everything.

All tool categories

Everyday (26 tools)
🌐 Networking & IP Tools (36 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
⚛️ Physics (48 tools)
🧪 Chemistry (50 tools)
🧬 Biology (50 tools)
🏠 Construction & Home Improvement (105 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
🕐 Time & Date (15 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)