Home

Unit Price Calculator

Compare package prices in matching units. Find the cheapest combination of two offers for the quantity you need, with checkout cost and extra quantity.

Enter your numbers

Live calculation
Try an example:

Choose the option that matches your calculation.

Choose the option that matches your calculation.

Offer A

USD price for the entire offer, including all packs below. Up to two decimals. Example: $18.

Quantity in one pack. Use whole numbers for items; choose the unit for weight or liquid. Example: 12.

Offer B

USD price for the entire offer, including all packs below. Up to two decimals. Example: $27.

Quantity in one pack. Use whole numbers for items; choose the unit for weight or liquid. Example: 20.

Also included in this result: Packs included in offer A: 1 · Packs included in offer B: 1.

Additional settings (2)

For a 2-pack deal enter 2. Offer A price above covers BOTH packs. Example: 1.

For a 2-pack deal enter 2. Offer B price above covers BOTH packs. Example: 1.

Results update as you type. Example values are editable.

Lowest unit price

Offer B

Compare the same quantity, not just the package sticker price.

Offer A per unit1.5 USD / item
Offer B per unit1.35 USD / item

Compare equivalent products. Price does not establish quality or suitability.

Offer A

Alternative

1.5 USD / item

12 items per offer for $18.00

Offer B

✓ Lowest unit price

1.35 USD / item

20 items per offer for $27.00

See calculations with your numbers
  1. Offer A: 12 items per pack, converted to 12 items per pack.
  2. Offer A quantity = 1 pack × 12 items = 12 items per offer.
  3. Offer A unit price = $18.00 ÷ 12 items ≈ 1.5 USD / item.
  4. Offer B: 20 items per pack, converted to 20 items per pack.
  5. Offer B quantity = 1 pack × 20 items = 20 items per offer.
  6. Offer B unit price = $27.00 ÷ 20 items ≈ 1.35 USD / item.
  7. Offer B has the lowest unit price.
  8. Quantities and unit prices in these steps may be rounded for display. Offer counts and comparisons use exact scaled quantities. Prices cover complete offers; included packs cannot be split.
Price per item
A
1.5 USD
B
1.35 USD

Bars start at zero. Numerical values remain available without color.

Quantities and comparison table
Both offers compared in item
MeasureOffer AOffer B
Quantity per offer12 items20 items
Unit price1.5 USD / item1.35 USD / item
Comparison text / manual copy

Inputs stay on this page. Reloading clears unsaved changes.

How it is calculated
Unit price = total offer price ÷ (packs included × quantity per pack), using compatible units. Buy enough finds the lowest-cost combination of whole offers A and B that covers your required quantity. Equal-cost choices prefer less extra quantity, then fewer offers. Prices use exact cents and quantities use scaled integers. Displayed unit prices are approximate. Products must be interchangeable; stock limits, changing prices and shelf life are excluded.

Unit Price — purchase comparison

CalcsDecoded.com

Lowest price per unit

Offer B

Equivalent products compared in the same unit.

Offer A
1.5 USD / item
Offer B
1.35 USD / item
Price per item — USD
Offer A
1.5 USD
Offer B
1.35 USD

Bars start at zero. Values use the same USD scale.

Offer details and purchase quantities
MeasureOffer AOffer B
Total price per offer$18.00$27.00
Packs included per offer11
Quantity per offer12 items20 items
Price per unit (approx.)1.5 USD / item1.35 USD / item

Calculation

Offer A: 12 items per pack, converted to 12 items per pack.

Offer A quantity = 1 pack × 12 items = 12 items per offer.

Offer A unit price = $18.00 ÷ 12 items ≈ 1.5 USD / item.

Offer B: 20 items per pack, converted to 20 items per pack.

Offer B quantity = 1 pack × 20 items = 20 items per offer.

Offer B unit price = $27.00 ÷ 20 items ≈ 1.35 USD / item.

Offer B has the lowest unit price.

Quantities and unit prices in these steps may be rounded for display. Offer counts and comparisons use exact scaled quantities. Prices cover complete offers; included packs cannot be split.

Your entered USD prices for complete offers. Buy enough finds the cheapest combination of interchangeable offers A and B. Equal-cost choices prefer less extra quantity, then fewer offers. Stock limits, changing prices, product quality and shelf life are excluded. Unit prices are rounded for display; package rounding uses exact scaled quantities.

Examples and assumptions

Compare equivalent products in matching units. Find the cheapest combination of two package offers for the quantity you need. See what to buy, the checkout total, extra quantity and savings, with calculation steps using your prices.

Cheaper unit, higher checkout

Offer A has the lower checkout cost: $36.00 versus $54.00.

A costs $1.50 per item; B costs $1.35. Both need two offers for 22 items. A leaves 2 extra; B leaves 18.

Mix two offers to save

Offer A + Offer B costs $12.00 for exactly 16 items, saving $2.00 versus buying only B.

Three A offers cost $15 for 18 items. Two B offers cost $14 for 20 items. One of each costs $12 with no extra items.

Pounds versus ounces

Both offers cost 4 USD per lb.

1 lb = 16 oz. $3 ÷ 12 × 16 = $4 per pound.

Before you use the result

  • USD prices cover all packs in each offer. Include discounts, taxes and delivery consistently yourself. No live prices are fetched.
  • Weight oz and US liquid fl oz are different. Compare weight, liquid volume or item count separately. Changing a unit reinterprets the entered number.
  • Buy enough compares all whole-offer combinations covering your required quantity. Offers must be interchangeable and available at fixed entered prices with no stock limit. Stock limits, shelf life, quality, suitability and quantity-dependent discounts are not evaluated. Equal-cost choices prefer less extra quantity, then fewer offers.
  • Prices allow two decimals; quantities six. Counts and pack counts are whole numbers. Pack count: 1–10,000; prices and quantities: at most 1,000,000. Displayed unit prices are rounded, but ranking uses exact scaled integers.
Calculation checks and references

Reference cases cover compatible unit conversions, multipacks, numeric calculation steps, exact-cent checkout totals, mixed baskets, checkout versus unit-price winners, ties, free offers, exact boundaries, very large offer counts and invalid inputs.

Reference cases checked: . Checks are automated reference calculations; an independent professional review is not claimed.

References explain definitions, rules or context; they do not endorse CalcsDecoded.com. See our calculation methodology for the testing and updating standard.

Frequently asked questions

Can I check the calculation with my own numbers?

Open See calculations with your numbers. The steps show matching units, quantity per offer, unit price and, in Buy enough mode, whole offers, checkout totals and extra quantity. The same steps appear in copied comparisons and PDF reports.

Why is the lowest unit price not always the lowest checkout cost?

Whole offers can leave extra quantity. Buy enough compares whole-offer combinations, including a mixture of A and B, to cover the required quantity at the lowest checkout cost.

What price do I enter for a multipack?

Enter the total price for all included packs, then the quantity in ONE pack. Packs included defaults to one in Additional settings.

Can I compare pounds with ounces?

Yes. Select Weight. Results use Offer A’s unit. Liquid US fl oz is volume, not weight.

Does it find a mixture of both offers?

Yes. Select Buy enough for my needs and enter the required quantity. The best basket can use A, B or both. Equal-cost baskets prefer less extra quantity, then fewer offers. Products must be interchangeable; stock limits, changing prices and shelf life are excluded.