Price Per Unit Calculator

Compare the real cost of any two products — per ounce, pound, or count. Stop guessing which size is actually cheaper.

⚖️ Compare Two Products

Product A

Product B

What Is Price Per Unit — And Why It Tricks You

Retailers have known for decades that the human brain is bad at comparing value when sizes are different. A 20 oz bottle of shampoo for $3.49 versus a 28 oz bottle for $4.79 — most shoppers just see "$3.49 is cheaper." It's not. The 28 oz bottle costs $0.171/oz versus $0.175/oz — you'd save money buying the bigger one.

This is why price-per-unit (also called unit price) is the single most useful number in grocery shopping. It strips away the packaging and tells you the real cost of what you're getting.

How to Calculate Price Per Unit (Formula)

The formula is simple:

Unit Price = Total Price ÷ Total Quantity
Example: $4.79 ÷ 28 oz = $0.171 per oz

The tricky part is when two products use different units — one listed per oz, another per lb. You need to convert to the same base before comparing. Our calculator handles this automatically.

Real Example: Peanut Butter at Walmart

ProductPriceSizePrice/ozPrice/lb
Jif 16 oz$3.2416 oz$0.203$3.24
Jif 40 oz$6.9840 oz$0.175$2.79
Great Value 64 oz ✓$9.4864 oz$0.148$2.37

The 64 oz store brand saves $0.055/oz over the small Jif — that's 27% cheaper per ounce. Over a year of buying peanut butter, that's real money.

When Bulk Is NOT Cheaper

Bigger isn't always better value. Here are three situations where the smaller size wins:

Unit Conversion Reference

FromTo ozTo lbTo ml
1 pound (lb)16 oz1 lb
1 liter (L)33.8 fl oz1000 ml
1 kilogram (kg)35.3 oz2.205 lb
1 gallon128 fl oz3785 ml

Track Unit Prices Across Hundreds of Products

Manually calculating unit prices works for a one-time purchase decision. But if you want to monitor price-per-unit trends over time, spot when a product suddenly gets cheaper, or compare dozens of brands at once — that requires a tracker.

When This Calculator Isn't Enough

The calculator above is great for comparing two products you're already holding. But what about finding the cheapest laundry detergent per ounce across 40 options before you even leave home? Or tracking whether the unit price on your go-to olive oil has crept up 15% over three months?

That's what unitpricetracker.com is built for. Here's how to use it effectively:

  • Before a shopping trip: Open the tracker, filter by category (cleaning, cooking oil, cereals), sort by $/oz ascending — your shopping list writes itself.
  • To catch stealth price hikes: Unit prices update automatically. If your usual brand's $/oz jumps, the tracker flags it before you pay more at the shelf.
  • To compare store brand vs. name brand at scale: Filter to any category, toggle "Great Value / Equate only" to see if the store brand is actually cheaper per unit — often it isn't on sale weeks.
  • For bulk buying decisions: Sort by unit price, then look at the size column. The product with the lowest $/oz in a large enough size that you'll finish it = your buy.

The tracker covers hundreds of products across grocery, cleaning, personal care, and pantry staples at Walmart — updated automatically so the data you see reflects current shelf prices, not last month's.

Open Unit Price Tracker →
🛡️ Editorial Standards & Sources

This is an independent, open-source calculator. It performs simple division (price ÷ size) — not a certified weights-and-measures device. For legally binding unit pricing, always check the shelf tag or ask store staff.

Unit pricing standard: Formula and terminology follow NIST Handbook 130, Section IV.C — Uniform Unit Pricing Regulation, the model standard used by US state weights-and-measures agencies.
Which states require shelf unit pricing: See NIST's Guide to U.S. Retail Pricing Laws and Regulations — about 10 states/jurisdictions mandate it, including New York under NY Agriculture & Markets Law § 214-H.
Source code: This page's calculator logic is plain client-side JavaScript, viewable via your browser's "View Source" — no hidden data collection or server-side processing.

Frequently Asked Questions

Price per unit is the cost of one standardized unit of a product — per ounce, per pound, per count. It strips away packaging tricks and lets you compare the true cost of two products regardless of size. A 32 oz bottle for $3.99 is cheaper per ounce than a 20 oz bottle for $2.79, but most shoppers miss this without calculating.
Divide the total price by the number of ounces. Example: $4.99 ÷ 28 oz = $0.178 per ounce. Then do the same for the competing product and compare. The calculator above does this automatically for any unit.
Yes, Walmart shelf tags display unit price in most US states. However the unit used can differ between similar products, making direct comparison confusing. A calculator that normalizes to the same base unit is more reliable.
Not always. Store brands in smaller sizes sometimes beat bulk name brands. Sale prices on regular sizes can undercut bulk pricing. Always run the numbers — this calculator makes it a 10-second check.
You can compare oz, lb, fl oz, L, ml, g, kg, and count. The calculator converts both products to oz or the smaller unit automatically before comparing.
The Unit Price Tracker at unitpricetracker.com tracks real-time price-per-unit data for hundreds of products across categories at Walmart, updated automatically.