Home › All Tools ›

Unit Price Calculator

Use Unit Price Calculator online for free at FreeToolZones — no sign-up, no watermark.

Loading tool...

The larger pack is not always the better deal. A big bag of rice can cost more per gram than a smaller one on offer, a bulk bottle of detergent can lose to two smaller bottles, and a family pack of snacks can hide a higher unit price behind a lower-looking shelf price. The Unit Price Calculator on FreeToolZones removes the guesswork. Enter the price and quantity of two products, click Compare, and the tool shows the price per unit for each one, names the better value, and tells you how much cheaper it is in percentage terms. In a supermarket aisle, that small calculation is the difference between a genuine saving and a confident mistake.

Unit pricing is the fairest way to compare products of different sizes. Shelf prices compare packs; unit prices compare the actual amount you get. Supermarkets in many countries print a unit price on the shelf label, but the print is small, the units sometimes differ between products, and offers, multipacks, and different brands make mental arithmetic difficult when you are in a hurry. A calculator that handles the division for you, side by side, keeps the comparison honest. It also helps beyond groceries: pet food, cleaning products, building materials, printer paper, and any product sold by weight, volume, or count can be compared the same way, as long as both products use the same unit.

What Is the Unit Price Calculator?

The Unit Price Calculator is a free comparison tool that calculates the price per unit for two products, called Product A and Product B, and identifies which one offers better value. For each product you enter a price and a quantity. You also enter a unit label, which defaults to g for grams, but can be anything that describes what you are measuring, such as ml, pieces, sheets, or metres. The tool divides each price by its quantity to get the price per unit, then compares the two results.

When you click Compare, the tool shows a result panel with three summary figures: the price per unit for Product A, the price per unit for Product B, and the better value, shown as Product A, Product B, or Tie. Below that, a comparison table lists each product with its price, quantity, and price per unit. If one product is cheaper per unit, a sentence below the table states how many percent cheaper it is per unit. Prices per unit are shown to four decimal places, because the difference between two close products often lives in the third or fourth decimal, while the prices and quantities in the table are shown to two decimal places.

The calculation is simple division, and the tool is transparent about it. The price per unit for Product A is its price divided by its quantity, and the same applies to Product B. The percentage saving is the absolute difference between the two unit prices divided by the higher unit price, multiplied by 100. There are no hidden adjustments for tax, delivery, quality, or brand. The tool answers one question only: which product costs less for each unit you receive? That narrow focus is what makes the answer trustworthy. For tax-inclusive comparisons, use the VAT Calculator or the GST Calculator first, then compare the final prices here.

Both products must use the same unit. The tool reminds you of this beside the unit label field. Comparing grams with millilitres, or pieces with grams, will produce a number, but the number will be meaningless. If your two products are labelled in different units, convert one of them first with a converter such as the Weight Converter or the Volume Converter, so that both quantities share the same unit before you compare.

How to Use the Unit Price Calculator

  1. Enter Product A details. Under the Product A heading, type the price in the Price field and the amount in the Quantity field. For example, a 500 g pack costing 4.99 would be price 4.99 and quantity 500. Prices and quantities can include decimals.
  2. Enter Product B details. Under the Product B heading, type the second product’s price and quantity in the same way. Use the same unit as Product A, or the comparison will not be valid.
  3. Set the unit label. In the Unit label field, type the unit you are using, such as g, ml, or pieces. The default is g. The label is used in the result headings and in the cheaper-by sentence, so choose a label that matches your quantities. If you leave it blank, the tool uses the word unit.
  4. Click Compare. The tool checks that both prices are zero or greater and both quantities are greater than zero. If any value is missing or invalid, it shows a message asking you to enter a price and a quantity greater than zero for both products.
  5. Read the summary figures. The three summary figures show the price per unit for each product and the better value. The lower price per unit wins. If both unit prices are exactly equal, the result is a Tie.
  6. Check the comparison table. The table repeats the price, quantity, and price per unit for each product, so you can verify the inputs you typed and spot a typing error, such as an extra zero in a quantity.
  7. Read the percentage difference. When one product wins, the sentence below the table tells you how much cheaper it is per unit, as a percentage. A small percentage difference may not matter if you prefer the other brand; a large one is a clear saving.
  8. Change the numbers and compare again. There is no reset button. Simply edit any field and click Compare again. This makes it easy to test several offers in the aisle, such as comparing a single pack against a multipack, then against a different brand.

Work through the comparison before you put the product in the basket, not after. In a shop, keep the tool open on your phone, read the price and quantity from the shelf label or the pack, and type them in. The whole comparison takes under a minute, and it is much more reliable than estimating in your head while other shoppers wait behind you.

Key Features of the Unit Price Calculator

  • Side-by-side comparison of two products. Product A and Product B are shown in separate sections with identical fields, so there is no confusion about which numbers belong to which product.
  • Price per unit to four decimal places. Small differences matter in unit pricing. Four decimal places reveal a real difference between two products whose unit prices look identical at two decimal places.
  • Clear better-value verdict. The summary names the winner directly, or reports a Tie when the unit prices are equal. You do not need to interpret the numbers yourself.
  • Percentage saving. The cheaper-by percentage puts the difference in context. Saving 2 percent and saving 30 percent feel very different, even when the absolute difference per unit looks small.
  • Comparison table. The table lists price, quantity, and price per unit for both products in one place, making it easy to double-check your inputs and to explain the decision to someone else.
  • Flexible unit label. Any short label works, from g and ml to pieces, sheets, capsules, or loads. The label travels into the results, so the answer reads in the unit you actually used.
  • Decimal support. Prices such as 4.99 and quantities such as 1.5 are accepted, because the inputs accept any step value. This covers weights, volumes, and prices with cents or pence.
  • Input validation with a clear message. Negative prices and zero or missing quantities are rejected with a message that says exactly what to fix, instead of producing a misleading result or a division-by-zero error.

Practical Use Cases With Concrete Examples

Groceries: rice, pasta, and cooking oil

Consider two bags of rice: a 1 kg bag at 2.40 and a 5 kg bag at 11.50. The big bag looks cheaper per bag, but the unit prices tell the real story: 0.0024 per gram against 0.0023 per gram, so the big bag is slightly cheaper per gram, by about 4 percent. Now imagine the small bag is on offer at 1.99. Its unit price drops below the big bag, and the small bag wins. The same logic applies to pasta, flour, sugar, and cooking oil. Always compare in the same unit: convert kilograms to grams or litres to millilitres first if the packs use different units.

Household products: detergent and cleaning sprays

Laundry detergent is sold by weight, by volume, and by number of washes, which makes comparison tricky. If two products both state a number of washes, use washes as your unit label and compare price per wash. If they state only weight or volume, compare price per gram or per millilitre, and treat the result as a comparison of product amount, not of cleaning power. For multipacks, enter the total quantity across all bottles in the pack, not the quantity of one bottle. A pack of three 500 ml bottles is 1500 ml, and entering 500 would make the pack look three times as expensive per unit as it really is.

Pet food and baby products

Pet food bags, nappies, and wipes are classic bulk-buy traps. A jumbo pack of nappies may cost more per nappy than a standard pack on promotion. Enter the pack price and the count of items, with the unit label set to pieces, and compare. For pet food, compare price per gram across bag sizes and brands, but remember that nutritional content and your pet’s preference also matter. The calculator answers the price question; the quality question is yours.

Office and school supplies

Printer paper, notebooks, pens, and printer ink can all be compared by unit. A ream of 500 sheets against a box of five reams, a pack of ten pens against a pack of fifty, or two ink cartridges with different page yields: in each case, enter the total quantity and the total price. For ink, page yield is a fairer unit than cartridge count, if both cartridges state a yield. Use the Discount Calculator first if one product has a percentage discount, so you compare the price you will actually pay.

Building materials and bulk goods

Paint by the litre, timber by the metre, screws by the box, and soil by the litre all invite unit comparison. A larger tin of paint is usually cheaper per litre, but not always, especially when a smaller tin is on clearance. Enter the volume or length and the price, and let the tool decide. For materials sold by area, such as tiles or flooring, convert both products to price per square metre before comparing, using the Area Converter if the packs state different units.

Tips and Best Practices

  • Always use the same unit for both products. This is the single most important rule. Grams against grams, millilitres against millilitres, pieces against pieces. Convert first when the labels differ.
  • Use total quantity for multipacks. Multiply the per-item quantity by the number of items in the pack. Forgetting this step is the most common unit-price error.
  • Compare the price you will actually pay. Apply discounts, loyalty prices, and coupons before entering the price. A headline price that you will not pay makes the comparison wrong.
  • Check for shrinkage. Manufacturers sometimes reduce a pack size while keeping the price. A pack that was 500 g last month may be 450 g now. Read the quantity on the pack in front of you, not the quantity you remember.
  • Consider waste and storage. The cheapest per unit is not always the best buy if the product will expire before you use it, or if you have nowhere to store it. A slightly higher unit price on a smaller pack can be the smarter choice for perishable goods.
  • Do not compare different qualities blindly. Unit price compares amount, not quality, durability, or taste. Use it to compare like with like, and let quality decide between products whose unit prices are close.
  • Double-check quantities with an extra zero. A quantity typed as 5000 instead of 500 will make a product look ten times cheaper per unit. Glance at the comparison table after each calculation to catch typing errors.

Limitations to Know Before You Rely on It

The calculator compares exactly two products at a time, using one unit label for both. It does not convert units for you, does not handle more than two products in one comparison, and does not account for tax, delivery charges, loyalty points, quality, expiry dates, or storage costs. Prices are treated as plain numbers with no currency symbol, so the result inherits whatever currency your inputs used, and mixing currencies would be meaningless. Quantities must be greater than zero, and prices must be zero or greater; a free product with a price of zero is accepted and will correctly show a unit price of zero. The percentage saving is calculated against the higher unit price, which is the standard way to express how much cheaper the winner is. The tool does not store your comparisons or remember past inputs, so note down a result you want to keep before you change the numbers.

Frequently Asked Questions

What is a unit price?

A unit price is the cost of one unit of a product, calculated by dividing the total price by the total quantity. For example, a 500 g pack costing 5.00 has a unit price of 0.01 per gram. Unit prices let you compare products of different sizes fairly.

Can I compare products with different units, such as grams and millilitres?

No, not directly. Both products must use the same unit, as the tool reminds you. Convert one quantity to the other’s unit first, using a converter, then compare. Comparing grams with millilitres would produce a meaningless result.

What does the percentage in the result mean?

It means how much cheaper the winning product is per unit, compared with the more expensive product’s unit price. If Product A is 20 percent cheaper per unit than Product B, you pay 20 percent less for each gram, millilitre, or piece when you buy Product A.

Why does the tool show four decimal places for unit prices?

Unit prices are often very small numbers, and two products can look identical at two decimal places while differing meaningfully. Four decimal places reveal the real difference, which matters when you buy large quantities.

Can I compare more than two products?

Not in one calculation. Compare two products, note the winner, then compare the winner against the next product. Repeat until you have tested all the options. Each comparison takes only a few seconds.

What happens if I enter a quantity of zero?

The tool shows a message asking you to enter a price and a quantity greater than zero for both products. Division by zero is not possible, so the calculation does not run until both quantities are valid.

Related Tools

These related tools on FreeToolZones help with shopping and price comparisons.

Browse More Tools