Eggs, soda, and snacks are often sold in packs holding several identical items. Comparing a dozen against an eighteen-count box, or cans against bottles, needs a version of the unit price formula that accounts for both the number of items and the size of each one.
For a package holding several items, the unit price is the total price divided by the number of items: unit price equals total price over item count. When each item also has a fixed volume or weight, divide by the volume or weight per item times the number of items. That yields a per-item or per-ounce figure you can compare across packs.
What is the formula for multi-item packages?
A package with several identical items has a straightforward per-item unit price:
When you want a price per unit of volume or weight instead, bring in the size of each item:
Here the denominator is the combined volume (or weight) of everything in the pack. The weight version replaces "volume per item" with "weight per item." The sourced examples below use both forms.
| Item pack | Total price | Number of items | Size per item | Derived unit price |
|---|---|---|---|---|
| Dozen eggs | $2.99 | 12 | one egg | $2.99 / 12 eggs |
| 18-egg package | $3.50 | 18 | one egg | $3.50 / 18 eggs |
| Soda 12-pack | $6 | 12 cans | 12 fl oz | $0.0416/fl oz |
| Soda 6-pack | $2.50 | 6 cans | 7.5 fl oz | see per-ounce formula |
Worked example: a dozen eggs versus eighteen
Take a dozen eggs priced at 3.50, compared in Items mode.
0.2492 per egg**. 0.1944 per egg**.
The 18-egg package is cheaper by about $0.05 per egg, despite its higher total price — exactly the result the calculator reports.
Worked example: the price of one ounce of soda
A 12-pack of soda costs $6, and each can holds 12 fl oz. Using the volume-aware formula:
6 / 144 fl oz = $0.0416 per fl oz.
One fluid ounce of that soda costs a little more than four cents. This is the form to use when comparing packs whose cans or bottles differ in size.
When should I use Items mode versus Items with volume?
Use plain Items mode when each item is counted once and size does not matter, as with eggs. Use Items with weight or Items with volume when the items have a stated weight or volume, such as cans of 7.5 fluid oz or bottles of 2 liters. The extra field lets the calculator reduce the whole pack to a per-ounce or per-liter price that can be set against any other pack.
Frequently Asked Questions
How do I get the unit price of a 12-pack of soda costing $6?
Divide 6 / 144 fl oz = $0.0416 per fl oz, or a little over four cents per ounce.
Why is the 18-egg pack cheaper per egg?
Because 0.194 per egg, while 0.249. The larger pack costs more in total but less for each egg.
Can I compare a 6-pack of cans to a 2-liter bottle here?
Yes, using Items with volume mode: enter the item count, the volume per item, and the cost for each option to get a comparable per-volume figure.
References
- The unit price calculator's sourced egg and soda examples.
- Standard fluid-ounce and volume conversion reference tables.
- General reference texts on practical retail arithmetic.