# Unit Price Calculator

Compare supermarket product prices by normalizing them to a common unit (per 100g, per liter, per piece, etc.). Enter products as 'name, price, quantity, unit' per line. Ranks from cheapest to most expensive per unit and shows savings vs the most expensive option.

> Canonical page: https://elysiatools.com/en/tools/unit-price-calculator

- **Category:** Finance

- **Keywords:** unit price, price comparison, supermarket, grocery, best deal, per ounce, per gram, cost per unit, finance

## Overview

The Unit Price Calculator helps you find the best value for money by normalizing and comparing product prices across different sizes, quantities, and units. Simply input your items, prices, and package sizes to instantly rank them from cheapest to most expensive per unit and see exactly how much you can save.

## Inputs

- **Products (one per line: name, price, quantity, unit)** (textarea): e.g. Cereal A, 4.99, 500, g Cereal B, 3.49, 12, oz Cereal C, 6.99, 750, g
- **Comparison Unit** (select)
- **Decimal Places** (number)

## When to use

- When comparing grocery items sold in different package sizes, such as a 500g box versus a 750g box of cereal.
- When shopping online or in-store and needing to convert imperial units like ounces to metric units like grams for accurate pricing.
- When evaluating bulk purchases against individual packs to determine if buying in volume actually offers a lower cost per unit.

## How it works

- Enter your products in the text area, listing one item per line with its name, price, quantity, and unit separated by commas.
- Select your preferred comparison unit, such as per 100g, per liter, or per piece, or leave it on auto-detect.
- Set the desired number of decimal places for the calculation precision.
- Click calculate to generate a ranked list from the lowest to highest unit price, highlighting the cheapest option and potential savings.

## Use cases

- Comparing different brands of laundry detergent sold in varying bottle volumes.
- Evaluating whether a bulk pack of toilet paper rolls is cheaper per piece than a standard pack.
- Deciding between loose produce priced per gram and pre-packaged bags of vegetables.

## Frequently asked questions

### How do I format the product list?

Enter each product on a new line using the format: Name, Price, Quantity, Unit (for example: Cereal A, 4.99, 500, g).

### Can I compare products that use different units like ounces and grams?

Yes, the calculator automatically converts and normalizes different units to your selected comparison unit.

### What units are supported by the calculator?

You can use grams (g), kilograms (kg), ounces (oz), milliliters (ml), liters (l), and pieces (pcs).

### What does the 'Auto' comparison unit option do?

It automatically matches the unit of the first product in your list to standardize the comparison.

### How is the savings amount calculated?

It calculates the difference in unit price between each item and the most expensive option, showing how much you save by choosing the cheaper product.

## Related tools

- [Rent vs Buy Total Cost of Ownership Tutor — Mortgage, Tax, Insurance, Maintenance + NPV Break-Even and IRR](https://elysiatools.com/en/tools/rent-vs-buy-total-cost-of-ownership-mortgage-tax-insurance-maintenance-irr-tutor): Side-by-side monthly rent-vs-buy simulation: mortgage amortization, property tax, insurance, HOA and maintenance against rent plus renter insurance; the renter invests the down payment and monthly savings at an opportunity-cost rate. Outputs break-even year on net sale proceeds, per-year differential NPV, SALT-cap-aware after-tax cash flows, a differential IRR, and a ±20% tornado sensitivity chart.
- [Retirement Calculator](https://elysiatools.com/en/tools/retirement-calculator): Two-phase retirement model: an accumulation phase (current age to retirement, with monthly contributions and compound growth) and a withdrawal phase (retirement to life expectancy, nest egg grows at a conservative rate while inflation-adjusted withdrawals are taken out). Reports whether the nest egg lasts, real purchasing power, and any shortfall.
- [Savings Goal Calculator](https://elysiatools.com/en/tools/savings-calculator): Solve for the monthly contribution needed to reach a savings goal (with interest and compounding), or for the time required to reach the goal with a fixed monthly deposit. Optional inflation adjustment. Uses monthly compounding rollup.
- [Density Calculator (ρ = m/V)](https://elysiatools.com/en/tools/density-calculator): Compute density, mass, or volume from the other two, with specific gravity and a float/sink check
- [Free Fall Calculator (h = ½gt²)](https://elysiatools.com/en/tools/free-fall-calculator): Compute distance, time, or final velocity for free fall from rest, given any one plus gravity
- [Image Palette to Design Tokens](https://elysiatools.com/en/tools/image-to-design-tokens): Extract a dominant color palette from an image (k-means clustering), then export it as CSS variables, SCSS variables, a Tailwind config, or JSON design tokens — with named colors and an auto-generated shade scale for each
- [Potential Energy Calculator (PE = mgh)](https://elysiatools.com/en/tools/potential-energy-calculator): Compute gravitational potential energy, mass, or height from the other two, with impact velocity
- [Twitter / X Thread Splitter](https://elysiatools.com/en/tools/twitter-thread-splitter): Paste a long text and split it into a numbered X thread that respects the 280-character limit. Splits on word/sentence/paragraph boundaries, auto-adds 1/N numbering, weighs CJK and full-width characters correctly, counts URLs as 23 characters, and shows a live X-style preview card for each tweet with a character meter.

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Length Unit Samples](https://elysiatools.com/en/samples/length-unit): Practical length unit references you can copy when you want to compare common units directly with meters (m)
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
