Max IT solutionsShopify App Store

Shopify Unit Pricing: Show Price per Kg, Liter or Meter

Updated , first published · 4 min read

Shopify unit pricing shows the price per kilogram, liter, meter or other base unit next to a product’s price, so customers can compare pack sizes. You set it per product or variant in the Pricing section: enter the total amount the product contains and the base unit to show, and Shopify calculates the unit price and keeps it updated when the price changes. Online Store 2.0 themes display it automatically on product, collection, cart and checkout pages.

The steps and rules come from Shopify’s Help Center page on unit pricing, read on October 23, 2026.

When you need unit prices

Shopify’s page notes that displaying the price per unit is a legal requirement in some regions, and that it’s your job to check whether your business is covered. Shopify doesn’t prompt for it. Unit pricing is optional for every product, even in categories that usually carry one. If you sell goods by weight, volume or length, such as food, drinks, cosmetics, cleaning products or fabric, check the rules in each country you sell to.

Beyond the law, unit prices help shoppers compare your own pack sizes. A 250 g bag and a 1 kg bag next to each other are easier to choose between when both show a price per kg.

Add a unit price

  1. Go to Products and open the product.
  2. If it has variants, click the variant in Variants; each product or variant can have one unit price.
  3. In Pricing, click Unit price.
  4. In Total amount, enter how much the product contains and pick the unit, for example 600 g.
  5. Optional: in Base measure, change the unit the price is shown per, for example 1 kg instead of the default.
  6. Click Done, then Save.

The base units on offer depend on the total unit you picked: a length in centimeters can be shown per centimeter or meter, not per liter. Some units, such as tons, centigrams and stones, aren’t available. To edit later, open Unit price again; to remove it, click Clear.

The unit system matters too. The units offered come from the Unit system in Settings > General, metric or imperial. To use both in one store, change the store’s default unit system before adding unit prices in the other system. Unit prices also show the same unit in every market: you can’t show $1.50 per 12 ft in the US and €1.30 per 4 yd in the EU for the same product.

How Shopify calculates it

The unit price is the product price divided by the total amount, multiplied by the base measure. Shopify’s example, a $30 product weighing 600 g:

Base measure Calculation Shown as
1 kg $30 ÷ 600 g = $0.05 per g, × 1,000 g $50.00/kg
500 g $0.05 per g × 500 g $25.00/500g

Because the unit price follows the Price field, a sale or a price change updates it on its own. The total and base measures stay as you set them, so the only time to revisit them is when the pack size changes.

Bulk updates and display

On a desktop, two routes update many products at once:

  • Bulk editor: add the Unit price column, then click each cell to set the total and base measures and their units.
  • Product CSV: fill in Unit price total measure, Unit price total measure unit, Unit price base measure and Unit price base measure unit, then import the file.

For display, all Online Store 2.0 themes already support unit prices; nothing needs switching on, and unit prices show to all markets once added. Preview a product anyway, because Shopify notes some themes show units unexpectedly, such as $3.50/M3 instead of $3.50/m3. With a vintage theme that can’t be updated, the unit price needs a theme code change.

Order confirmation notifications show unit prices by default. If yours don’t, Shopify says this can happen when the template was customized, because customizations override updates to the default; update the template. Setting the product prices themselves is covered in how to price products on Shopify, and reduction rules for EU customers in EU price reduction rules. The pricing and sales hub has the rest.

FAQ

How do I show price per kg on Shopify? Open the product, click Unit price in the Pricing section, enter the product’s total weight in Total amount and set Base measure to 1 kg. Shopify calculates and displays the price per kg.

Is unit pricing required on Shopify? Shopify doesn’t require it for any product, but notes that some regions require unit prices by law. Check the rules where you sell.

Does the unit price update when I change the price? The unit price follows the Price field automatically, using the total and base measures you set.

Can I add unit prices to many products at once? Use the bulk editor with the Unit price column, or import a product CSV with the four unit price columns. Both work only on a desktop.