Shopify Unit Price Calculator

Work out the EU-style price per unit and get the exact CSV fields to set it on Shopify.

Describe the result you need. AI will set up the tool and ask for any missing details.

Configure with AI

Enter to submit · Shift + Enter for a new line

Sent to AI. Leave out passwords and private customer data.

Your numbers

$

Your result · updates as you type

Price per 100 g

$1.40

$6.99 ÷ 500 g × 100 g

Those four rows are Shopify's exact product CSV column headers for unit pricing. Paste the values into the matching columns, or enter them on the product page under Pricing > Charge a unit price.

Breakdown

Unit price total measure
500
Unit price total measure unit
g
Unit price base measure
100
Unit price base measure unit
g

The formula

unit price = price ÷ package size (in base units) × comparison amount

Example

Price
$6.99
Package size
500 g
Show price per
100 g

$1.40 per 100 g ($6.99 ÷ 500 g × 100 g).

Showing the price per unit is a legal requirement in some regions (the EU's Price Indication Directive is the best known), so check whether it applies to your business before deciding whether to add it.

Setting it on Shopify

On a single product: open it in admin, go to Pricing, turn on Charge a unit price, and enter the total measure and base measure the calculator shows.

For a bulk CSV import, Shopify's product CSV uses four exact column headers: Unit price total measure, Unit price total measure unit, Unit price base measure, Unit price base measure unit. This calculator's result rows give you the values to paste into each.

Questions people ask

What units does Shopify support?

A standard metric set for weight, volume and length (grams, kilograms, milliliters, liters, centimeters, meters and similar). Some units, like tons or stones, aren't supported; check your product's Pricing section for the exact list Shopify offers.

Can I compare grams to milliliters?

No, unit price only makes sense within the same kind of measurement: weight to weight, volume to volume, length to length. The calculator warns you if you pick two that don't match.

Do variants need their own unit price?

Yes, if different variants (like different pack sizes) have different unit prices, set it per variant, or per variant row in a CSV import.

Does the unit price show automatically on the storefront?

Most current Shopify themes display it automatically near the price once it's set; check yours, since older or heavily customized themes may need a small template edit.

Want this builtinto your store?

I'm Emmanuel, a Shopify and WooCommerce developer. If this tool pointed at something you'd rather have fixed for you (a faster store, cleaner product data, a migration, a custom feature), send me a note.

Emmanuel Asika

Emmanuel Asika

Shopify & WooCommerce developer, Dublin

I build and fix online stores: new builds, migrations, speed, SEO and the custom bits apps can't do.

hello@emmanuelasika.com

Last reviewed 30 September 2026.

Sources: Shopify Help: Displaying unit prices for products