Unit Price Calculator
By Jason Smith · Updated October 27, 2026
Unit price is the price divided by the size you type.
Enter a price and a size for each product. Both lines use the unit you pick. That menu is a label. It does not convert one unit into another.
Product A
Product B
Price divided by the size on that row
Unit price = price ÷ size. Each unit-price line rounds to four decimal places and prefixes a dollar sign. The cheaper line is the smaller unit price. The percent is (higher − lower) ÷ higher × 100, rounded to one decimal, using the unrounded unit prices. A tie prints "Tie, same cost per" and the label. A size that is not greater than 0 is rejected. NIST Special Publication 1181 describes unit pricing as the cost per unit of measure, such as per ounce. NIST Handbook 130, in the Uniform Unit Pricing Regulation, says a store that shows unit prices should use one consistent measure for that commodity. This page will not pick the measure for you.
| A price | A size | B price | B size | A line | B line | Winner line |
|---|---|---|---|---|---|---|
| $3 | 12 | $5 | 20 | $0.25 per oz | $0.25 per oz | Tie, same cost per oz |
| $2 | 10 | $3 | 12 | $0.2 per oz | $0.25 per oz | Product A, 20% cheaper per oz |
| $4.99 | 16 | $7.99 | 32 | $0.3119 per oz | $0.2497 per oz | Product B, 19.9% cheaper per oz |
| $5 | 16 | $5 | 1 | $0.3125 per oz | $5 per oz | Product A, 93.8% cheaper per oz |
| $5 | 16 | $5 | 16 | $0.3125 per oz | $0.3125 per oz | Tie, same cost per oz |
$3 ÷ 12 and $5 ÷ 20 are both 0.25, so the winner line is a tie. $2 ÷ 10 is 0.2 and $3 ÷ 12 is 0.25. The percent uses the higher unit price as the base: (0.25 − 0.2) ÷ 0.25 × 100 = 20, and the line says Product A is 20% cheaper per oz. $4.99 ÷ 16 = 0.311875, which rounds to $0.3119. $7.99 ÷ 32 = 0.2496875, which rounds to $0.2497. The percent is taken from the unrounded pair and rounds to 19.9. Product B is the cheaper line.
The percent is off the higher unit price
The percent is not A's share of the two prices, and it is not a percent off the package price. It is how far the lower unit price sits below the higher one. On the $2 and $3 row, 20% cheaper means 0.2 is 20% below 0.25. It does not mean either package is 20% off its shelf price. Switching which product is cheaper changes the base, the same way a percent change changes when you swap the old and new values. The Percent Change Calculator is that comparison: type the earlier number and the later number, and the base is the earlier one. Use it when both amounts are known. Use this page when you are comparing two packages per unit. Here the base is always the more expensive unit price, not whichever price came first.
The unit menu does not convert
$5 with size 16 and $5 with size 1, both labeled ounce, print $0.3125 per oz and $5 per oz. The winner line says Product A is 93.8% cheaper per oz, because (5 − 0.3125) ÷ 5 × 100 rounds to 93.8. The page treated 16 and 1 as different sizes. It did not read "pound" off a package. If those two packages are 16 ounces and 1 pound, convert first. The Weight Converter is the page that turns a pound into ounces. After both sizes are in the same unit, type them here. The last row is that correction: both sizes 16, both prices $5, and the winner line is a tie at $0.3125 per oz. Changing the menu from ounce to pound changes only the word after "per". The division does not change with it.