Divide the total cost by the quantity: price per unit = total cost ÷ quantity. If a 12-pack of paper towels costs $9.60, the price per unit is $0.80 per roll. That single division answers the keyword, but the result only earns its keep when the quantity is expressed in the same unit you're comparing against — and when you know whether you're calculating a selling price or a cost price, because the two use the same arithmetic on different numbers.
Most people stop at the division. The trouble starts when one package is priced per ounce and another per pound, when a "unit" means a roll in one store and a square foot on one shelf tag, or when a business owner confuses the price a customer pays with the cost the business absorbs. This guide walks through the formula, the conversions, the retail shelf-tag rules, the business cost-per-unit version, and the edge cases that make a technically correct answer useless.
The Core Formula and the Two Numbers People Confuse
Price per unit equals total cost divided by quantity, full stop. That's the whole formula: P = C ÷ Q, where C is the total amount paid and Q is the number of units. A $24 case of 48 water bottles works out to $0.50 per bottle. A $15 bag of rice weighing 5 pounds works out to $3.00 per pound. The arithmetic never changes; only the labels on C and Q do.
The confusion sits in the word "cost." Shoppers use "cost" to mean the shelf price they hand over at checkout. Business owners use "cost" to mean what they spent to make or acquire the item — materials, labor, packaging, overhead. According to the small-batch pricing guidance published by Stocksmith, unit cost is "the total spend to make one item, including materials, labor, packaging, and overhead," and it forms "the absolute floor your unit price must clear before any profit enters the picture." Those are different quantities that happen to share a formula.
Keep the two straight by asking who's holding the receipt. If you paid $9.60 at the register for 12 rolls, you're calculating a purchase price per unit. If you spent $150 on materials, labor, and packaging to make 30 candles, you're calculating a production cost per unit — $5.00 per candle in that example. The math is identical; the decision each number supports is not.
One more distinction matters before any division happens. Price per unit is not the same as unit price in the retail-regulation sense, where a store displays a standardized price per base measure (per 100 grams, per liter, per count) on the shelf tag. That displayed figure is usually calculated by the retailer's system, and the method can differ from your hand calculation. Shopify's own help documentation describes how its platform derives the displayed unit price: product price divided by total units, then multiplied by the base measurement. For a $30 product weighing 600 grams with a 1 kg base, Shopify shows $50.00/kg. Your calculator would reach the same $50 by converting 600 grams to 0.6 kg and dividing $30 by 0.6 — same answer, different path.
A Worked Example You Can Check in Your Head
Run the numbers on a real comparison and the formula proves itself fast. Two juice cartons sit side by side: a 32-fluid-ounce carton for $4.00 and a 64-fluid-ounce carton for $6.40. The smaller one looks cheaper on the shelf. Divide and the picture flips.
32 fl oz carton: $4.00 ÷ 32 = $0.125 per fluid ounce, or 12.5 cents 64 fl oz carton: $6.40 ÷ 64 = $0.10 per fluid ounce, or 10 cents
The larger carton costs 2.5 cents less per ounce, a 20% lower unit price. Buy two of the small cartons to match the large one's volume and you'd spend $8.00 for the same 64 ounces — $1.60 more than the single large carton. That $1.60 is the real savings, and it's computable directly from the two shelf prices.
Now stress-test it with a case where the bigger package loses. A 1 kg bag of flour at $1.00 versus a 1.5 kg bag at $1.35 — the example used by Omni Calculator's price-per-quantity tool. The small bag works out to $1.00 per kg. The large bag works out to $0.90 per kg, because $1.35 ÷ 1.5 = $0.90. The larger bag saves 10 cents per kilogram, and buying 1.5 kg at the small bag's rate would have cost $1.50, so the saving on this single purchase is 15 cents. Small margins, real money across a year of groceries.
Here's the check most people skip: verify the saving survives a realistic purchase pattern. If you only ever use 1 kg of flour before it goes stale, the 15-cent saving on the larger bag is a 35-cent waste when half the bag gets thrown out. Unit price tells you which package is cheaper per kilogram. It cannot tell you which package is cheaper for your household.
Converting Units Before You Divide
Dividing a price by a quantity in mismatched units produces a number that looks authoritative and means nothing. A $6.40 price divided by 64 gives 0.10 — but 0.10 of what? Per ounce, per pound, per item? The unit label is half the answer, and the conversion step is where most comparisons quietly break.
Convert everything to one common unit first, then divide. The standard conversions you'll need: 16 ounces to a pound, 1,000 grams to a kilogram, 1,000 milliliters to a liter, 128 fluid ounces to a US gallon. If one package is priced per pound and another per ounce, convert the pound price to ounces by dividing by 16 before comparing, or convert both to a per-100-gram basis if you're comparing across metric and imperial labels.
The National Institute of Standards and Technology's guide to retail pricing laws is the authority to check when a shelf tag's unit doesn't match what you expect. US unit-pricing rules vary by jurisdiction — NIST identifies mandatory provisions in states including Connecticut and New York, with voluntary provisions elsewhere. That means the unit printed on the tag in one state may be per ounce while a neighboring state's tag shows per pound or per 100 grams. Neither is wrong; they're governed by different rules.
For business calculations, the same conversion discipline applies to yield. If you buy 10 kg of raw chicken at $4.00 per kg and lose 25% to trim and cooking, your edible yield is 7.5 kg, and the cost per edible kilogram is $40 ÷ 7.5 = $5.33, not $4.00. The total cost stayed the same; the usable quantity shrank. Divide by the quantity you can actually sell or serve, not the quantity you bought.
Reading Retail Shelf Tags Without Getting Fooled
Retailers calculate and print unit prices to help you compare, but the printed figure follows the store's chosen base measure, and that base can hide as much as it reveals. A tag reading "$0.12 per fl oz" next to one reading "$1.92 per pt" describes the same price — 16 fluid ounces to a pint, so $0.12 × 16 = $1.92. If you compare the raw numbers without noticing the units, you'd conclude the pint is 16 times more expensive.
Shrinkflation makes this worse. CivicScience research published in April 2025 found that 56% of Americans surveyed said they'd noticed grocery packaging getting smaller without a matching price drop. When a box drops from 16 ounces to 14 ounces at the same $4.00, the unit price climbs from $0.25 to $0.286 per ounce — a 14.3% increase that never appears on the shelf price. Only the division exposes it. That's the practical case for running the calculation yourself even when a tag offers a unit price.
Watch for count-based units that conceal size changes. A "12-pack" of something where each item shrinks from 8 ounces to 7 ounces still reads as a 12-pack. The per-item price is unchanged; the per-ounce price rose 14.3%. Always check whether the count stayed constant while the individual size moved, and divide by total weight or volume, not by item count, when size varies between brands.
Here's a comparison table for a typical shelf decision, using prices you can verify against any store tag:
| Product | Total cost | Quantity | Unit price | Cheapest per unit? |
|---|---|---|---|---|
| Juice, small | $4.00 | 32 fl oz | $0.125/fl oz | No |
| Juice, large | $6.40 | 64 fl oz | $0.10/fl oz | Yes |
| Flour, small | $1.00 | 1 kg | $1.00/kg | No |
| Flour, large | $1.35 | 1.5 kg | $0.90/kg | Yes |
| Paper towels | $9.60 | 12 rolls | $0.80/roll | Depends on sheet count |
The paper towel row is the trap: per-roll pricing only compares fairly when the rolls contain the same number of sheets. Check the sheet count on the package, divide the roll price by sheets if the counts differ, and compare per sheet instead.
When You're the Seller: Cost per Unit Versus Price per Unit
Businesses run the same division but on the cost side, and the result sets a floor rather than a label. Shopify's product-pricing guidance lays out the cost-per-unit formula as (total variable costs + total fixed costs) ÷ number of units produced, calculated over the same time period used to tally the costs. A candle maker who spent $150 all-in to produce 30 candles has a cost per unit of $5.00. Any selling price below $5.00 loses money on every sale.
The selling price is a separate decision built on top of that floor. Cost per unit answers "what did each item cost me?" Price per unit answers "what does each item cost the buyer?" — and for a business, that's the number printed on the tag, which must clear the cost floor plus whatever margin the business needs. Omni Calculator's price-per-quantity tool frames the shopper's version as a way to find the deal with "the lowest margin," which is the opposite lens from the seller's: the buyer wants the smallest margin over cost, the seller needs a margin wide enough to survive.
Track both numbers on the same spreadsheet row so neither drifts. If material costs rise 20% — $150 to $180 for the same 30 candles — cost per unit climbs from $5.00 to $6.00, and a selling price of $5.50 that looked profitable last quarter now loses 50 cents per candle. Recalculate cost per unit whenever a supplier invoice changes, and recalculate price per unit whenever a package size or shelf price changes. The two calculations share a formula and a failure mode: stale inputs produce confidently wrong answers.
Four Failure Cases That Break the Calculation
The formula is simple enough that errors come from inputs, not arithmetic. Four failure patterns account for most of the bad unit-price conclusions.
First, dividing by the wrong quantity. A "family pack" priced at $12.00 with 24 items gives $0.50 per item — unless the pack contains 18 items and the label says 24, in which case you divided by a number you didn't verify. Count or weigh the actual contents when the stakes justify it, especially on bulk purchases where a miscount compounds.
Second, mixing discounted and undiscounted totals. If a $20 item is 25% off, the total cost you should divide is $15.00, not $20.00. Dividing the pre-discount price by the quantity gives the unit price before savings — useful for knowing the regular rate, useless for comparing what you'll actually pay. Apply the discount to the total first, then divide.
Third, ignoring the cost of getting the item. A $50 part ordered online with $8 shipping and $4 tax has a landed total of $62 before quantity enters the picture. Divide $62 by the quantity received, not $50. For business inventory, freight and duties belong in the total cost, which is exactly why cost-per-unit calculations for imported goods often land higher than the invoice price suggests.
Fourth, treating a unit price as a purchasing decision. The cheaper-per-ounce package wins on arithmetic and can still lose on your actual life: storage space, spoilage before use, a household of two versus a household of six, or a return policy that differs between sizes. Unit price ranks the options. It doesn't choose one.
Unit Price in Everyday Buying Decisions
Grocery shopping is where the calculation earns its keep, and a few habits make it fast. Compare the same base unit across brands by reading the fine print on the shelf tag, not the big price. When the tag's unit differs between two products — one per ounce, one per 100 grams — convert one to the other before trusting the comparison. And when a sale tag appears, recalculate rather than assume the sale wins; a 10% discount on a package with a 15% smaller size is a net price increase.
Bigger purchases follow the same logic with higher stakes. A $600 appliance with a 2-year expected life costs $300 per year of service; a $900 appliance expected to last 5 years costs $180 per year. That's price per unit of use, not per item, and it's the division most people skip when comparing durable goods. The same method prices printer ink per page (cartridge cost ÷ expected page yield), coffee per cup (bag cost ÷ cups brewed), and subscription services per month of actual use rather than per month billed.
Use the calculation as a filter, then apply judgment. A lower unit price on a 50-pound bag of rice beats every smaller package on arithmetic, and it's the wrong buy for a one-person household without pantry space. The division tells you which option is cheaper per unit. Whether that option is cheaper for you depends on how much of the unit you'll actually use before it expires, spoils, or goes out of style.
Building a Repeatable Calculation Habit
Turn the division into a habit and it takes seconds. Keep a calculator app or a simple spreadsheet with three columns: total cost, quantity, and unit price (a formula dividing the first by the second). Enter the shelf price and package size for anything you buy regularly — coffee, detergent, pet food, printer paper — and the sheet ranks your options the moment prices change. Recheck the sheet quarterly, since shrinkflation and price hikes move both inputs.
For business use, add a fourth column for the cost-per-unit floor and a fifth for the margin between cost and selling price. Shopify's pricing calculator approach and Stocksmith's small-batch guidance both point at the same discipline: know your cost per unit before you set a price, and revisit it whenever production inputs change. A business that recalculates cost per unit monthly catches a margin squeeze before it shows up in the bank account.
Standardize your units in the sheet. Pick one base per product category — per ounce for liquids, per pound for dry goods, per item for countable goods — and convert every entry to that base before comparing. A sheet that mixes ounces and grams produces a ranking that looks sorted and isn't. The conversion takes one formula per row; the wrong ranking costs real money.
Then let the sheet do the boring work. The value of calculating price per unit isn't any single division — it's the habit of reducing every package, every sale tag, and every supplier quote to the same denominator so the comparison is real. The formula is one line. The discipline of feeding it clean inputs is the skill.
FAQ
Is price per unit the same as unit price?
They're related but not identical. Price per unit is the result of your own division — total cost ÷ quantity — while "unit price" on a retail shelf tag is a standardized figure the store calculates using a base measure set by local pricing rules. NIST's guide to retail pricing laws notes mandatory unit-pricing provisions in states like Connecticut and New York and voluntary rules elsewhere, so the tag's base measure can differ from the one you'd choose. Use the tag as a starting point, then convert to your own base before comparing.
What if the quantity is zero or missing?
A zero quantity makes the division undefined — there's no per-unit price for a package containing nothing, and any calculator returning an error is behaving correctly. A missing quantity is more common: if the package doesn't state a weight, count the items or check the manufacturer's specification page before dividing. Dividing by an assumed quantity produces a unit price that's wrong by exactly the size of your assumption, and bulk packages are where that error costs the most.
Does a lower price per unit always mean a better deal?
No — it means a lower price for each unit you'd use if you used all of them. A 50-pound bag of flour at a lower per-pound rate than a 5-pound bag is the worse buy for a household that bakes twice a month, because spoilage and storage eat the saving. Unit price ranks options on cost efficiency per unit; it doesn't account for how much of the unit you'll actually consume before it expires, so apply the calculation as a filter and let your usage pattern make the final call.
How do I compare packages priced in different units, like per ounce versus per pound?
Convert both to the same unit before dividing or comparing. Multiply a per-pound price by 16 to express it per ounce, or divide a per-ounce price by 16 to express it per pound — 16 ounces to a pound is the constant. For metric-to-imperial comparisons, 1 kilogram equals 2.20462 pounds, so a $4.00/kg price works out to about $1.81 per pound. Do the conversion first, then compare the converted figures.
How does shrinkflation change the unit price?
Shrinkflation cuts the quantity while holding the shelf price, so the unit price rises even though the sticker doesn't. A box that drops from 16 ounces to 14 ounces at $4.00 moves from $0.25 to about $0.286 per ounce, a 14.3% increase. CivicScience research published in April 2025 found 56% of surveyed Americans had noticed packaging shrinking without a matching price drop. Recalculating unit price from the package's current net weight is the only reliable way to catch it.
Can I use the same formula to compare business suppliers?
Yes, with one adjustment: divide the landed total, not the invoice price. Add freight, duties, and taxes to the supplier's quoted cost, then divide by the usable quantity received — not the ordered quantity, since short shipments and damage reduce what you can actually use. A supplier quoting $2.00 per unit with $300 freight on 500 units actually delivers at $2.60 per unit, which can flip the ranking against a higher-quoted supplier who ships free.
Why does my calculated unit price differ from the store's shelf tag?
The base measure usually explains the gap. A store showing $50.00/kg for a 600-gram product priced at $30.00 is dividing by 0.6 kg, while your calculation may be dividing by 600 grams and getting $0.05 per gram — the same price expressed in different units. Check the tag's stated base (per ounce, per 100 grams, per kilogram), convert your result to match, and the figures should reconcile within rounding.