Everyday tool

Unit Price Calculator

Enter each package price and the matching quantity and unit.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

Unit Price Calculator made simple.

The comparison is valid only when the quantities use the same unit. It does not account for shipping, quality, discounts or local tax.

Guide

Using Unit Price Calculator

Two boxes of cereal, two bags of rice, two packs of paper towels. Which one costs less for the same amount? This page answers that. You enter the price and the size of Package A and Package B, and name the unit you used, such as oz, kg or rolls. It divides each price by its size, shows the cost for one unit, and tells you which package is cheaper and by what share. It is a quick check for shoppers who want to compare labels. Everything is worked out in your browser.

How to use it

  1. Decide on one unit for both packages, for example ounces. If one label uses pounds and the other uses ounces, change one of them by hand first.
  2. Enter the price of Package A and the quantity it holds, then the price and quantity of Package B.
  3. Type the unit in the Shared unit box. It starts as oz. You can write kg, g, item, roll or anything short.
  4. Press Calculate. The result lists the price for one unit of each package and says which one is lower.
  5. Press Copy result if you want to keep the answer, or Clear to start a new comparison.

Worked examples

Two cereal boxes in ounces

You enter
Price a
4.99
Quantity a
16
Price b
7.49
Quantity b
28
Unit
oz
You get
Package a
0.3119 per oz
Package b
0.2675 per oz
Verdict
Package B has the lower unit price (14.23% lower).

4.99 divided by 16 is about 0.3119, and 7.49 divided by 28 is about 0.2675. The bigger box costs less per ounce, even though it costs more in total.

Run through the tool’s own code.

Two packs with the same unit price

You enter
Price a
3.5
Quantity a
12
Price b
5.25
Quantity b
18
Unit
oz
You get
Package a
0.2917 per oz
Package b
0.2917 per oz
Verdict
Both have the same unit price.

Both packs cost the same for each ounce, because 5.25 over 18 matches 3.5 over 12. Then the choice can rest on other things, such as brand or how much you will use.

Run through the tool’s own code.

Rice in grams

You enter
Price a
10
Quantity a
500
Price b
18
Quantity b
1000
Unit
g
You get
Package a
0.02 per g
Package b
0.018 per g
Verdict
Package B has the lower unit price (10% lower).

The kilo bag is cheaper per gram by exactly one tenth of the dearer rate. Both sizes were entered in grams so the comparison is fair.

Run through the tool’s own code.

Paper towel rolls

You enter
Price a
6
Quantity a
12
Price b
5
Quantity b
8
Unit
rolls
You get
Package a
0.5 per rolls
Package b
0.625 per rolls
Verdict
Package A has the lower unit price (20% lower).

Pack B costs less in total, but Pack A costs less for each roll. Note that the tool repeats your unit text as typed, so it reads per rolls.

Run through the tool’s own code.

A zero quantity is refused

You enter
Price a
5
Quantity a
0
Price b
5
Quantity b
8
Unit
rolls
You get
Error
package A quantity must be greater than zero.

A price cannot be split across zero units, so the quantity must be above zero.

Run through the tool’s own code.

When it helps

  • Compare a family pack with a standard pack at the supermarket when the shelf label is hard to read.
  • Decide whether a bulk buy at a warehouse store is really cheaper than the small size you usually buy.
  • Compare two online listings for the same product that come in different counts, such as 50 and 120 sachets.
  • Check the cost per page, per capsule or per bag for office and kitchen supplies.
  • Work out which pet food bag costs less per kilogram before you add it to a regular order.
  • Teach children how division shows the better deal in a maths or money lesson.

Limits to keep in mind

  • There is only one unit box, so both quantities must already use the same unit. The tool does not change pounds into ounces or litres into millilitres.
  • It compares exactly two packages at a time.
  • The answer ignores shipping, tax, coupons, quality, expiry dates and how much you will really use.
  • Prices are plain numbers. There is no currency symbol, and the tool does not convert between currencies.
  • Unit prices are shown to at most four decimal places, so two very close prices can look the same on screen.
  • The unit text is repeated as you wrote it and is limited to 20 characters.

Tips

  • Write down the quantity in the smallest unit on either label, then use that unit for both. Grams and millilitres avoid most fractions.
  • Multi-packs sometimes list a count and a size, such as 6 cans of 330 ml. Multiply them first and enter the total.
  • A lower unit price only helps if you use the whole pack before it spoils or goes out of date.
  • Use the Copy result button to paste the figures into a shopping list or a message to a family member.
  • Try a price of zero only to test a free sample. It is accepted, but it makes the other package look worse by one hundred percent.

Common questions

About Unit Price Calculator.

What is a unit price?

It is the cost of one unit of a product, such as one ounce, one gram or one item. You get it by dividing the total price by the number of units in the package. It lets you compare packs of different sizes.

How do I compare prices per ounce?

Enter the price and the ounce count for each package, and keep oz in the Shared unit box. The result shows the price per ounce for both and says which package is lower.

Can I compare a package in pounds with one in ounces?

Not directly. This tool has one shared unit, so you must change one quantity first. A pound is 16 ounces, so a 2 pound bag would be entered as 32 oz.

What does the percentage in the result mean?

It shows how much lower the cheaper unit price is, compared to the higher one. If the result says 14.23 percent lower, the cheaper package costs about 14 percent less per unit than the dearer one.

Is the bigger package always cheaper per unit?

No. Larger sizes often cost less per unit, but not always. Sales, coupons and special sizes can reverse the order. The only way to be sure is to divide, and this page does the division for you.

Does it include tax, delivery or discounts?

No. It only divides the price you typed by the quantity you typed. If the price you enter already includes tax or a discount, the answer will include them too. Delivery fees need to be added by you.

Can I use it for things sold by the piece?

Yes. Type item, roll, sheet or any short word as the unit, and enter the count of pieces for each package. The word appears after per in the result.

Why does it say per rolls or per items?

The tool repeats the unit word exactly as you wrote it and does not change it to a singular. Type roll or item instead if you prefer that wording.

Can I enter a price of zero?

A price of zero is accepted. A quantity of zero is not, because the price cannot be divided across no units. Negative values are also refused.

Are my prices stored anywhere?

No. The sums are worked out inside your browser and the numbers are not uploaded.

How do I use Unit price calculator?

Enter each package price and the matching quantity and unit.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.