Unit Price Calculator
Compare offers using the same quantity, even when package sizes or units differ. Enter the price for the entire offer, its item count and size, and any discount or extra charge. The lowest comparable price is highlighted.
Your offers
See the method ↓Numbers, grouped thousands, and fractions work: 1.5, 1,200, 1/2, or 1 1/2. Enter measurements in the units shown.
Loading calculator… If this message remains, reload the page.
Unit price formula and quick example
Comparable unit price = net price ÷ total comparable quantity. Net price includes the entered discount and added charges; total quantity includes every item in the package or multipack after conversion to the same unit.
A 24 oz package for $6.49 costs $0.2704 per ounce. A 32 oz package for $7.99 costs $0.2497 per ounce, so the larger package costs about 7.7% less per ounce.
Compare like with like. Price per item is comparable only when the items are equivalent; it should not be compared directly with price per ounce, gram, litre, area, or another measurement basis.
Related tools: discount pricing, margin and markup, and price per square foot.
HOW THE CALCULATION WORKS
Compare the same quantity before comparing the price
- Total contents = size of each item × items in the entire offer, converted to a common base unit.
- Net price for the entire offer = entered offer price × (1 − discount percent ÷ 100) + extra charge. The extra charge is not discounted.
- Comparable unit price = net offer price ÷ total contents × your selected comparison amount.
- Lowest price and exact ties are determined before display rounding. Savings = highest comparable price − lowest comparable price, for the same comparison amount. Percentage savings = savings ÷ highest comparable price × 100; undefined if every price is zero.
Worked example
Offer A: one 500-gram pack at $4.50. Offer B: one 1-kilogram pack at $8.00. With no discounts or extra charges, A costs $9 per kilogram and B costs $8 per kilogram. B is cheaper by $1 per kilogram, or 11.111…% relative to A.
Defaults and assumptions
- Start with two blank offers. Measurement type: weight; size unit: grams; items in each offer: 1. Comparison basis: 1 kilogram.
- Discount and extra charge default to 0; clearing either also means 0. Offer prices and sizes are required; a zero price is allowed.
- One currency label applies to all offers, initially USD. All prices must be supplied in that currency; no exchange conversion occurs.
Limitations
- Compare like products with the same measurement type. No weight-to-volume conversion is attempted. A weight ounce and a fluid ounce are different; US and Imperial fluid units are labeled separately. US cup means exactly 8 US fluid ounces, not a nutrition-label or metric cup.
- The price field describes the entire offer, not one item within a multipack. Extra charge is for that one offer; enter tax, shipping, or other charges yourself where relevant. Discounts apply only to the offer price.
- This compares quantity and cost, not product quality, edible yield, concentration, spoilage, supplier terms, or legal shelf-label compliance.
- Supports 2–20 offers. Sizes/prices up to 1 trillion, item counts up to 1 million. Number text is limited to 80 characters; exact fraction text can use up to 512. Extreme arithmetic may be rejected if it cannot be represented as a finite numeric result. Very small displayed prices use a less-than label; ranking still uses exact fractions.
Precision and rounding
Decimal and fraction entries, grouped thousands, unit conversions, net prices, comparisons, and tie decisions use exact rational arithmetic (fractions). Unit changes show up to 12 significant digits and retain the exact converted value internally until that field is edited. Unit prices display up to 6 decimal places; offer totals display 2. Rounded prices may look tied even when exact prices differ. Downloaded records include exact unit prices and both displayed and exact converted inputs.
Sources
Use the assumptions, worked example and sources to interpret your result. Estimates do not replace professional advice.
How to use this calculator
- Choose one measurement type and the amount you want to compare, such as 100 grams or 1 litre.
- Add 2–20 offers. Enter the size of each item, the number of items included, and the price for the entire offer.
- Add optional discounts and extra charges. Calculate to compare exact-ranked unit prices, ties, and savings.
Common questions
Is the larger package always cheaper?
No. Comparing a common quantity can reveal a cheaper small pack. This tool compares total contents and the effective offer price.
Does the price apply to each item or the whole multipack?
Enter the price for the entire offer. For a six-pack of 330 mL cans, enter 330 mL as each item’s size, 6 items, and the six-pack’s total price.
Can I compare fluid ounces with weight ounces?
No. Choose volume for fluid ounces and weight for ounces by mass. US and Imperial volume units are separately labeled.
Why can two displayed prices look equal but only one wins?
Unit prices are displayed with limited decimal places. Rankings use exact values before rounding, and only exact ties share the lowest-price highlight.
Report a problem or suggest a calculator
Found a confusing result, a missing option, or an idea for a new calculator? Send it privately to the site owner.
Opening the form loads Cloudflare Turnstile, a spam check that processes connection and device information. Privacy details.
Related tools
Percentage Change Calculator
Compare an original value and a new value with explicit zero handling.
Open calculator →Discount Calculator
Compare a discounted price with cost and margin.
Open calculator →Margin & Markup Calculator
Understand two different ways to describe the difference between cost and price.
Open calculator →