Guides

How to Compare Two Options by Price Per Unit

Compare two products by price per unit using the calculator's option A and B inputs, absolute-difference savings formulas, an equations table, and worked FAQs.

Miryori Editorial Team3 min read
Open the calculator

A lower shelf price is not automatically the better buy — the package might hold less. Comparing unit prices puts both products on the same footing. The price-per-unit calculator lets you fill in a second product under option B, works out each unit price with the mode you selected, and reports which option is cheaper and by how much.

The comparison feature calculates two unit prices from the values entered under option A and option B, then subtracts the smaller from the larger. The result is the absolute difference between the unit prices, which tells you how much cheaper one option is per unit of weight, volume, or item. All five calculator modes support a second option.

What does the comparison feature calculate?

Each mode has a pair of unit-price equations, one for option A and one for option B, followed by a savings equation. The savings is always an absolute difference, so the reported figure is a positive amount regardless of which option happens to be cheaper:

Savings=∣Unit price of option B−Unit price of option A∣\text{Savings} = \left| \text{Unit price of option B} - \text{Unit price of option A} \right|

In the volume mode, for example, the calculator divides each total cost by volume multiplied by item count, then takes the absolute difference of the two results:

Volume savings=∣cost2volume2×items6−cost1volume1×items5∣\text{Volume savings} = \left| \frac{\text{cost}_2}{\text{volume}_2 \times \text{items}_6} - \frac{\text{cost}_1}{\text{volume}_1 \times \text{items}_5} \right|

The other two modes follow the same pattern with weight or a plain item count in place of volume.

Which equations produce the savings figures?

The table below maps each mode to the two unit-price expressions the calculator evaluates and to the savings equation that compares them:

Mode Option A unit price Option B unit price Savings
Weight cost_1 / (weight_1 × items_5) cost_2 / (weight_2 × items_6) weight_savings = absolute difference
Volume cost_1 / (volume_1 × items_5) cost_2 / (volume_2 × items_6) volume_savings = absolute difference
Items cost_1 / items_5 cost_2 / items_6 item_savings = absolute difference

Because the item counts default to 1, the weight and volume rows reduce to a simple cost-per-unit comparison for single items. For multipacks you supply the count yourself, and the comparison still runs on the resulting per-unit prices.

Worked example: comparing two prices per gallon

The source material gives two prices quoted per US gallon: milk at 3.50foronegallon,andgasolineat3.50 for one gallon, and gasoline at 3.25 per gallon. Enter the milk as option A and the gasoline as option B in the volume mode, with a volume of 1 and an item count of 1 for each. The unit prices are 3.50 / 1 = 3.50pergallonand3.25/1=3.50 per gallon and 3.25 / 1 = 3.25 per gallon. Applying the savings equation:

Volume savings=∣Option B price−Option A price∣=∣$3.25−$3.50∣=$0.25 per gallon\begin{align*} \text{Volume savings} &= \left| \text{Option B price} - \text{Option A price} \right| \\ &= \left| \$3.25 - \$3.50 \right| \\ &= \$0.25\ \text{per gallon} \end{align*}

Gasoline is the cheaper of the two by $0.25 per gallon. The same procedure works for any pair of packages: reduce each to a price per unit first, then compare those unit prices rather than the shelf totals.

Frequently Asked Questions

Can I compare two options in every calculator mode?

Yes. Each of the five modes has an option A and an option B set of inputs — two costs, and the matching weight, volume, or item counts — together with its own savings equation.

What does the reported savings amount mean?

It is the absolute difference between the two calculated unit prices, expressed per unit. A result of $0.25 per gallon means one option costs a quarter less for each gallon, not a quarter less for the entire purchase.

What happens if both options have the same unit price?

The absolute difference is zero, so the savings figure is zero. The two options are equally good value on a per-unit basis, even if their package sizes and totals differ.

References

  • Omni price-per-unit calculator reference entry: option A and option B inputs, savings equations, and comparison description.
  • Standard reference texts on practical arithmetic for absolute-difference and unit-price comparisons.
Calculator

Price Per Unit Calculator

Price Per Unit: price-per-unit calculator determines which item fetches you the best value for your money. Free, fast and private.

Open the calculator