Price Comparison Calculator - Cheapest Price per Unit

Items to Compare

Compare price per item, piece, gram, ounce, or liter, or per hour, month, or year for subscriptions and rentals. See which is the better buy and what you save.

Add your first item

Add more items

Choose what you are comparing and the unit

Say how each price is stated (optional)

Prices, tax rates and yields are what you entered. Tax on a coupon depends on who pays for it and where you buy.

Formulas and sources

Each formula this calculator uses, where it comes from, and what it leaves out. "How it works" shows the same formula with your own numbers.

Unit price

Simple and Discount & Tax modes

Unit Price = Price ÷ Quantity
Unit Price
the price of one comparison unit
Price
the shelf price in Simple; the price after discount, tax and any membership in Discount & Tax
Quantity
the amount in the comparison unit

Two unit prices within one part in a billion count as a tie, and the first-listed item stays first.

Source: Standard formula; no single publisher. NIST defines unit pricing as the cost per unit of measure [1] and asks a store to unit price one commodity consistently [2].

Quantity in the comparison unit

Simple and Discount & Tax modes

Quantity = size × packs, in the comparison unit

Each unit converts by the Unit Converter’s exact factor, so 1 US gallon is exactly 128 US fluid ounces and 1 lb is 16 oz. A blank pack count, or one below 1, counts as 1. A multipack is priced as its total contents, as a multiunit package states them: 6 bars of 100 g is 600 g. N for a price counts N as the packs; a price each counts one; a shelf unit price counts the amount on its tag, and a blank amount is one of its unit.

Source: Uses the conversion method of NIST SP 811, Appendix B [3]. Pack totals are consistent with NIST Handbook 130, Section 10.4 [4].

Usable quantity

Discount & Tax mode, when an item has a usable yield, ranked by price per unit

Quantity = size × packs × usable yield, in the comparison unit

Yield is the share of the pack you can use after trimming or waste; blank or 100 means none is lost, and 0 or over 100 is refused. An apple that is 10% inedible has a 90% yield. Weight gained in cooking is not modeled.

Source: Based on the preparation-yield adjustment in USDA Economic Research Service’s fruit and vegetable price method [5].

Price and quantity of a deal

Simple and Discount & Tax modes, when an item is priced as a deal

Buy X, get Y free: Price = X × price each, Quantity = (X + Y) × size % off when you buy N: Price = N × price each × (1 − Percent ÷ 100), Quantity = N × size

A deal is priced as the purchase it asks for: buy 2, get 1 free at $3.49 is $6.98 for three. Blank counts read as buy 1, none free and 0% off. A coupon and tax, in Discount & Tax, then apply to that purchase.

Source: CalcTrail’s own; no publisher.

Price after discount and tax

Discount & Tax mode

Price = shelf price − discount + tax

A percent discount takes Price × Percent ÷ 100 off; an amount off larger than the price is refused, and that item is not ranked. Tax is then added to the discounted price: Price × (1 + Rate ÷ 100), at the item’s own rate or the default.

Source: Standard percentage formulas; no single publisher. NIST asks that a sale or coupon price carry its own unit price [1]. Adding tax after the discount is CalcTrail’s own assumption; the default rate of 8.25% is only a starting value.

Cost per use

Simple and Discount & Tax modes, when ranked by cost per use

Cost per Use = Price ÷ Uses
Cost per Use
what one use costs
Price
the price after any discount, tax and membership
Uses
what the whole pack gives, as the category counts it: servings, uses, sheets, days, doses, or the area paint covers

Uses are the number you enter in each item, named by what you compare: servings, uses (loads or washes), sheets, days, doses, or for paint and finishes sold by volume, the area a pack covers in one coat (sq ft or m²). Servings on a food label are rounded (to the nearest half from 2 to 5 servings). Yield does not enter it. NIST does not accept a serving as a unit of measure for unit prices, so this ranking sits beside the price per unit.

Source: CalcTrail’s own; no publisher. Servings on a label: 21 CFR 101.9 [6]; servings and unit prices: NIST SP 1181, Section 3 [1].

Price with a membership

Discount & Tax mode, when an item has a membership

Price = Price × (1 + Fee ÷ (12 × Monthly spend))

A store’s yearly membership fee is spread over what you spend there in a year, and the result is applied to the price after the discount and tax: a $65 fee over $40 a month adds 13.5% to its prices. An item with a fee and no monthly spend is not ranked until the spend is entered.

Source: CalcTrail’s own; no publisher.

The cheapest way to buy an amount

Simple and Discount & Tax modes, when you enter how much you need

Cost = Σ packs × price per pack, with Σ packs × size ≥ the amount you need

Packs are whole, so the amount is rounded up and what is left over is shown. Every mix of the listed items is searched, cheapest per unit first, and each item alone is listed too. On a very long list the search may stop at its limit, and then the panel says the mix is the cheapest found. Ranked per use, the amount and the sizes are in uses.

Source: CalcTrail’s own; no publisher.

An energy plan at your usage

Simple and Discount & Tax modes, in Electricity and gas, when you enter how much you use

Cost a month = rate × usage a month + fixed charge a month

A fixed charge a day counts 30.4375 days a month, and a year is 12 months. The plans rank by the all-in price per unit: the cost over the usage. Two plans cost the same at (fixed charge B − fixed charge A) ÷ (rate A − rate B) a month; the one with the lower fixed charge is cheaper below that usage. In Discount & Tax the fixed charge takes the same discount and tax as the rate. Without a usage the plans rank by their rates alone.

Source: CalcTrail’s own; no publisher.

Off-peak share

Simple and Discount & Tax modes, when a plan has an off-peak rate

Rate = peak rate × (1 − share) + off-peak rate × share

The share is the part of your use at the plan’s off-peak times, such as overnight charging, from 0% to 100%. Blank counts as 0%, so the off-peak rate does not count until a share is entered. One share is used for every plan.

Source: CalcTrail’s own; no publisher.

Area with coats and waste

Simple and Discount & Tax modes, in Building and DIY, when you enter the amount with coats or waste

Area = area × coats × (1 + waste ÷ 100)

The amount bought for, before the cheapest way to buy it is found. Coats count when paint or a finish is ranked by what a pack covers; waste is an allowance for cuts, breakage and offcuts, in any Building and DIY comparison. Blank coats count as 1 and blank waste as none.

Source: CalcTrail’s own; no publisher.

Intro prices and one-time fees

Simple and Discount & Tax modes, when a comparison in time has an intro price or a one-time fee, and you enter how long you need it

Cost = fee + intro price × intro payments + price × the other payments

For each item, over the payments that cover how long you need it: the one-time fee once, the intro price for its first payments (blank counts 1), then the regular price. The cheapest way may start on one plan’s intro price and move to another. The price per unit stays the regular price, and in Discount & Tax the intro price takes the same share of discount, tax and membership as the regular one.

Source: CalcTrail’s own; no publisher.

Price to match

Simple and Discount & Tax modes, when ranked by price per unit

Price to match = best unit price × quantity, before any tax, discount and deal

For each item that is not the best: the price its Price field would need, in the way it is stated (a pack, each, or per its tag’s amount), to tie the best. The membership, tax, the discount and the deal are taken back off in the reverse of the order they are applied, and the price is rounded down (to the cent, or below $1 to the digits a unit price shows) so it never loses. In Electricity and gas it is the unit rate that gives the same cost a month as the best plan at your usage, with the plan’s own fixed charge kept.

Source: CalcTrail’s own; no publisher.

Price to match, per use

Simple and Discount & Tax modes, when ranked by cost per use

Price to match = best cost per use × uses, before any tax and discount

A membership, tax, the discount and a deal are taken back off the same way, and the price is rounded down.

Source: CalcTrail’s own; no publisher.

Saving per purchase, per month and per year

Simple and Discount & Tax modes

Saving per purchase = (next best − best) × the amount in one purchase of the best.

It compares the best item with the second-best only, on one purchase of the best. In Discount & Tax, Per month is the saving per purchase × Monthly Purchases, and Per year is Per month × 12. Monthly Purchases starts at 4, and the card says the count it used. There is no Per month or Per year for plans measured in time, where each payment is already a period. In Electricity and gas the saving is shown a month and a year at your usage instead.

Source: CalcTrail’s own; no publisher.

How a unit price is shown

Every mode

From $1 up a unit price shows the currency’s two decimals; below $1 it shows three significant digits, such as $0.00382, so close prices stay apart. NIST Handbook 130’s model regulation has store labels round to the cent or the tenth of a cent; this calculator does not. For weight and volume the best value is also shown in the units shelf tags use: per ounce and pound and per 100 g and kg, or per fluid ounce and gallon and per 100 ml and liter. US dollars list the US units first; other currencies list the metric ones first.

Source: CalcTrail’s own display rule; no publisher. Store labels: [2].

Sources

  1. National Institute of Standards and Technology. Unit Pricing Guide: A Best Practice Approach to Unit Pricing, Definitions, and Section 3. Special Publication 1181, June 2025.
  2. National Institute of Standards and Technology. Handbook 130, Uniform Laws and Regulations in the Areas of Legal Metrology and Fuel Quality, Section IV.C, Uniform Unit Pricing Regulation, Sections 2, 4 and 6. 2026 edition.
  3. National Institute of Standards and Technology. NIST Guide to the SI, Appendix B: Conversion Factors, B.2, B.3, B.5 and B.7.2, and footnotes 9, 18 and 24. Special Publication 811 (2008), web page updated August 18, 2025.
  4. National Institute of Standards and Technology. Handbook 130, Uniform Laws and Regulations in the Areas of Legal Metrology and Fuel Quality, Section IV.A, Uniform Packaging and Labeling Regulation, Sections 2.8 and 10.4. 2026 edition.
  5. US Department of Agriculture, Economic Research Service. Fruit and Vegetable Prices: Documentation, section "Estimating the Costs to Consume Fruits and Vegetables". Page updated December 9, 2025.
  6. US Food and Drug Administration. Code of Federal Regulations, Title 21, §101.9: Nutrition labeling of food, §101.9(d)(3)(i), servings per container, and §101.9(b)(8), how the number is rounded. eCFR, current as of October 1, 2026.

What this calculator does not cover

  • It compares price per amount, not quality, nutrition, brand, expiry, storage or how much you will use.
  • It does not look up prices or tax rates. It prices the deals in its Priced as list as the purchase each asks for; a deal that needs a store card, a coupon book or a minimum spend is not modeled.
  • Weight cannot be compared with volume: converting needs the density of the product.
  • For electricity and gas it takes a unit rate, a fixed charge and one off-peak rate a plan. Tiered or slab rates, bill credits, demand charges, more than two time bands, solar export payments and gas in cubic metres are not modeled, and it knows no supplier’s prices.
  • Data, energy and time units use the same exact factors, but NIST’s retail unit-pricing rules cover only weight, volume, count, area and length.
  • A subscription is priced as whole payments of one regular price after any intro price. Price rises, minimum terms and cancellation fees are not modeled; enter a contract as one purchase for its term.
  • A store membership is spread over the spending you enter at that store. It does not say whether joining is worth it, and one fee is not shared across several items.
  • Paint coverage is the figure you enter from the label for one coat; the calculator does not estimate it.

Sources checked on .

Help

Quick Start Guide

  1. Add your first item: Name it, then enter its price and quantity (e.g., $5.00 for 10 oz).
  2. Add more items: Click "Add Item" for every other price or package size you want to compare.
  3. Choose what you are comparing and the unit: Choose what you are comparing, such as groceries, paper goods or fuel, then how it is measured where there is a choice, and the unit to compare per. The calculator converts every item to that unit.
  4. Say how each price is stated (optional): Under Priced as, choose N for a price, Price each, Shelf unit price, Buy X, get Y free or % off when you buy N, so you can type the price as the tag reads. Pack or bundle is the default.
  5. Rank by cost per use (optional): Where a pack is used up a use at a time, set Rank By to cost per serving, load, sheet, day, dose or sq ft, and enter the uses in each pack.
  6. Enter how much you need (optional): Type the amount, or how long you need a plan for, to see the cheapest way to buy at least that much in whole packs or payments, and what is left over.
  7. View the verdict: See which item costs less per unit, how much more each other item costs per unit, and what one purchase of the best saves.
  8. Adjust for discounts, tax, or waste (optional): Switch to Discount & Tax mode when a coupon, sales tax, a store membership or waste should factor into the comparison.
  9. Export your results: Copy the comparison, or download it as JSON, CSV or PDF.

Frequently Asked Questions

To compare prices fairly, compare the price per unit, not the total price. Enter two items or more, each with its price and size, and the calculator works out the cost per unit for each, then highlights the lowest one as the best value. A cheaper sticker price can lose once you account for how much you get.

Related Calculators

Last updated