Zephron logozephron.aiE-commerce, accelerated

All guides / Stock Counter

How to show “Only X left in stock” on Shopify product pages

Published November 26, 2026 · Stock Counter by Jedi Apps

Also in: Español · Français · Deutsch · Português (Brasil)

Short answer

Dawn, one of Shopify's free themes, has an Inventory status block that shows "Low stock: 3 left" once the selected variant's stock drops to a threshold you set. It has one threshold, says "In stock" above it, and only works for variants whose inventory Shopify tracks. An app such as Stock Counter shows a message you write with the variant's or the product's count, and on its $2.99 Premium plan shows it only within a quantity range, with different messages for different ranges.

Why show how many are left

A real stock count helps a shopper decide. "Low stock: 3 left" tells someone who is on the fence that waiting may cost them the size they want, and it explains why an item sold out the next day.

Show the real number, though. A count that isn't true is a fake scarcity claim: the FTC's 2022 report on dark patterns lists false low-stock messages among the tricks it warns about, and shoppers who notice stop trusting the rest of your store.

Your options

Option What it does The catch
Your theme's inventory block Dawn's Inventory status block shows "Low stock: 3 left" at or below a threshold One threshold and one message; above it, it says "In stock"; tracked inventory only
Theme code A Liquid snippet in the product template shows the count Needs code; Shopify's own tutorial covers vintage themes only, and a theme update can undo it
An app such as Stock Counter A block with your own message and count, updated when the shopper picks a variant Needs an app and an Online Store 2.0 theme; showing it only when stock is low is on Premium

How to show the stock count with Dawn

  1. In your Shopify admin, go to Online Store > Themes and choose Customize.
  2. Open a product page, and add the Inventory status block to the product information section, or select it if it's already there.
  3. Set Low inventory threshold, from 0 to 100 (the default is 10), and keep Inventory count ticked to show the number.
  4. Save.

The block then shows, for the variant the shopper selected:

  • Above the threshold: "In stock", or "25 in stock" with the count on.
  • At or below it: "Low stock", or "Low stock: 3 left".
  • At zero: "Out of stock", or "In stock" if the variant keeps selling when out of stock.
  • Nothing for a variant whose inventory Shopify doesn't track.

That covers most stores. What it can't do is stay quiet above the threshold, or show a different message for 1 to 3 left than for 4 to 10. Its wording can only be changed for the whole store, under Edit default theme content. Other themes may have a similar block with other options, so check your theme's product page blocks first.

How to show a stock counter with Stock Counter

Stock Counter adds a Stock Counter block to your product page with a message you write, and changes the count when the shopper picks another variant.

  1. Install Stock Counter. On its Home, choose Enable now, then Add widget now, which opens your theme editor with the block on your product page. Save the theme. The block needs an Online Store 2.0 theme.
  2. Open the widget and write its message, or start from one of the suggested messages, such as "🔥 Selling Fast! INVENTORY_QUANTITY pieces left!". INVENTORY_QUANTITY is replaced with the count, and you can style the text and the number.
  3. Choose whether the count is the selected variant's or the whole product's, and turn on Replace INVENTORY_QUANTITY with 0 when negative if some products keep selling when they're out of stock.
  4. On Premium, add display rules: show the widget only when the quantity is within a range, such as 1 to 10, only for products with or without certain tags, only for products you pick, or only for products whose inventory Shopify doesn't track. The advanced design options add a progress bar, an animation and the alignment.
  5. Save, and look at a product page.

On the Free plan, the widget shows on every product page, whatever the stock. Write a message that's true at any count, such as "INVENTORY_QUANTITY in stock", and keep in mind that a product whose inventory Shopify doesn't track has no real count to show. With Premium's quantity range you can keep "Only INVENTORY_QUANTITY left!" for low stock and add more widgets for other ranges: shoppers see the first widget in your list whose rules match.

Tips for a counter that helps

  • Count the variant for products with sizes or colors, so the number matches what the shopper picked. A total across all sizes says nothing about the one they want.
  • Pick a range that's low for that product. A best seller you restock every week might only need a counter from 1 to 5.
  • Let the theme handle sold out. With a range that starts at 1, the counter disappears at zero and your theme's sold-out button says the rest.

Questions merchants ask

Does Shopify show how many items are left in stock?
Not by default, but Dawn, one of Shopify's free themes, has an Inventory status block that shows Low stock: X left once a variant's stock drops to the threshold you set. Above the threshold it says In stock, and it only works for variants whose inventory Shopify tracks. Other themes may have a similar block.
How do I show “Only X left” only when stock is low?
Dawn's Inventory status block still says In stock above its threshold. To show nothing until stock is low, edit the theme code or use an app: in Stock Counter, the quantity range rule on the Premium plan shows the widget only between the numbers you set, such as 1 and 10.
Does the count change when the shopper picks another size or color?
Yes. Dawn's block and Stock Counter both show the selected variant's stock and update when the shopper picks another variant. Stock Counter can also show the product's total across all its variants.
Can I show a different message for different stock levels?
Not with Dawn's block, which has one threshold. In Stock Counter you can create several widgets, each with its own message and quantity range on the Premium plan, such as Only 2 left for 1 to 3 and Selling fast for 4 to 10. Shoppers see the first widget in your list whose rules match.
Does Stock Counter work with my theme?
It works with Online Store 2.0 themes, which support app blocks: you add the Stock Counter block to your product page in the theme editor. It doesn't support vintage themes.
How much does Stock Counter cost?
The Free plan includes unlimited widgets and impressions. Premium, at $2.99 a month with a 3-day free trial, adds the display rules, such as the quantity range, product tags and selected products, and the advanced design options: progress bar, animation and alignment.

Plans and features as listed on the Shopify App Store on November 26, 2026.