ToolNimba
๐Ÿ’ฐ Finance & Money

How to Calculate Unit Price (Simple Formula and Examples)

Shihab Mia By Shihab Mia July 10, 2026 6 min read

Two grocery products on a shelf being compared by their price per ounce

Quick answer

To calculate unit price, divide the total price by the quantity or size: unit price = total price / size. For example, a 12 oz item at 3.99 costs 0.33 per ounce (3.99 / 12). To compare two products, divide each price by its size in the same unit, then pick the lower number. That is the better value.

Unit price is the single most useful number in a grocery aisle, yet most stores bury it in tiny print or leave it off entirely. Once you know the formula, you can compare any two products in seconds and stop overpaying for the option that just looks cheaper. This guide covers the formula, a step by step example, a handy reference chart, and the mistakes that trip people up.

The unit price formula

The formula is short and never changes:

Unit price formula

Unit price = total price / quantity (or size)

The "quantity" is whatever unit the product is measured in: ounces, grams, liters, sheets, count, or pounds. Divide the price you pay by that number and you get the cost of a single unit. A lower unit price means you pay less for the same amount of product, which is the whole point of comparing.

  • Total price is the sticker price you actually pay for the package.
  • Size is the amount inside: 12 oz, 500 g, 2 liters, 200 sheets, and so on.
  • Unit price is the result: price per ounce, per gram, per liter, or per item.

Worked example: which pack is cheaper?

Say you are choosing between two bottles of the same product. The small one looks cheaper because the sticker price is lower, but that can be misleading. Here is how to find the truth.

  1. Small bottle: 3.99 for 12 oz. Divide 3.99 by 12 to get 0.33 per ounce.
  2. Large bottle: 5.49 for 20 oz. Divide 5.49 by 20 to get 0.27 per ounce.
  3. Compare the two unit prices: 0.27 is lower than 0.33.
  4. Pick the lower number. The larger 20 oz pack is cheaper per ounce, so it is the better value even though its sticker price is higher.

That is the counterintuitive part. The bottle with the bigger price tag actually costs you less for every ounce you use. This is often (but not always) true, which is exactly why you check the unit price instead of guessing. The same math works whether you are comparing paper towels by the sheet, coffee by the gram, or soda by the liter. If math on the spot feels tedious, the unit price calculator does it instantly.

Unit price reference chart

Use this chart as a quick sanity check. Each row shows a price, a size, and the resulting unit price so you can see the pattern.

Common price and size combinations converted to unit price

Total priceSizeUnit priceReads as
3.9912 oz0.33per ounce
5.4920 oz0.27per ounce
2.50500 g0.005per gram
4.002 liters2.00per liter
6.99200 sheets0.035per sheet
12.0024 count0.50per item

Always match the units before you compare

This is the step that saves you from a wrong answer. You can only compare two unit prices if they are measured in the same unit. Comparing price per ounce against price per gram is meaningless because an ounce and a gram are different sizes.

If one product is labeled in ounces and the other in grams, convert one so both use the same unit first. There are about 28.35 grams in an ounce, so a quick conversion keeps the comparison fair. The same rule applies to liters versus milliliters, or pounds versus ounces. Getting comfortable with these swaps is a lot like learning how to calculate percentage: once the units line up, the arithmetic is easy.

Quick unit-matching guide

  • 1 ounce = about 28.35 grams
  • 1 pound = 16 ounces
  • 1 liter = 1000 milliliters
  • 1 gallon = 128 fluid ounces

Doing the unit price math in your head

You rarely need an exact figure in the aisle. A rounded estimate is usually enough to tell two options apart, and it takes only a few seconds once you get used to it. The trick is to simplify the numbers before you divide.

Round the price and the size to friendlier numbers, divide, then adjust. For a 3.99 bottle of 12 oz, treat it as roughly 4.00 divided by 12, which is about 0.33 per ounce. For 5.49 at 20 oz, think 5.50 divided by 20, or about 0.27 per ounce. The rounded answers still point to the same winner, so you can decide without a calculator. When two options land close together, that is your cue to switch to exact math or reach for the tool below.

  • Round the price up to the nearest quarter or dollar to make dividing easier.
  • Round the size to a clean number like 10, 12, or 20 so the division is quick.
  • Compare the ballpark figures. If one is clearly lower, you have your answer.
  • Only get exact when the two estimates are nearly tied, since a few cents can flip the result.

Common mistakes to avoid

Unit price math is simple, but a few habits lead to overpaying. Watch out for these.

  • Comparing sticker prices only. The cheaper tag often hides a smaller size. Always divide by the amount inside.
  • Mismatched units. Never compare price per ounce to price per gram. Convert so both use the same unit first.
  • Trusting shelf labels blindly. Store unit-price labels sometimes use different units for similar products (per 100 sheets versus per sheet). Recompute if the units differ.
  • Ignoring what you will actually use. The bulk pack may have the lowest unit price, but it is not a saving if the product expires before you finish it.
  • Forgetting coupons and sales. A discount changes the total price, so recalculate the unit price using the price you truly pay.

Good to know: where unit price helps most

Unit pricing is not just for groceries. It is the same core idea behind price per square foot when comparing homes or flooring, and it underlies smart decisions on everything from printer ink to pet food. Any time you buy the same thing in different sizes, the unit price tells you the real cost. Once it becomes a habit, you will spot bad deals automatically without doing much math at all.

Retailers know this, which is why "bigger" is not always "cheaper per unit." Warehouse multipacks occasionally cost more per ounce than a mid-size package on sale. The only way to be sure is to run the numbers, and that takes just a few seconds.

๐Ÿท๏ธ Try the free tool Unit Price Calculator Free unit price calculator: enter the price and size of up to three items, see the price per unit for each, and instantly find the cheapest per unit deal.

Bottom line: unit price is total price divided by size, and the lower unit price wins as long as the units match. Do that one division, compare the results, and you will consistently pick the better value. Keep the formula in your back pocket, or let the calculator above handle it whenever you want a quick, reliable answer.

Frequently asked questions

Tools used in this guide

Keep reading