Skip to content

What Is Dynamic Pricing? Examples and How It Works in E-commerce

Dynamic pricing explained: how it works in e-commerce, the main types, real examples from Amazon and Walmart, pros and cons, and the data you need to start.

Published
Reading time
14 min
Electronic shelf labels on a retail shelf showing automatically updated prices, illustrating dynamic pricing in e-commerce and retail.
On this page
  1. What Is Dynamic Pricing?
  2. How Does Dynamic Pricing Work?
  3. Types of Dynamic Pricing Strategies
  4. Dynamic Pricing Examples in E-commerce
  5. Pros and Cons of Dynamic Pricing
  6. Is Dynamic Pricing Legal?
  7. What You Need to Start Dynamic Pricing
  8. Dynamic Pricing Tools: Repricers, Platforms and Data Services
  9. Feed Your Pricing Rules with ShopScraping
  10. FAQ

The idea is not new. Airlines and hotels have priced this way for decades. What changed is that it reached everyday retail. Online stores reprice thousands of products a day, Amazon sellers run automated repricers, and in 2026 digital shelf labels spread across US grocery chains, bringing fast price changes into physical stores, along with a wave of new laws.

This guide explains what dynamic pricing in e-commerce actually is, how it works step by step, the main strategy types, real examples, the pros and cons, the legal questions, and what you need to start. One theme runs through all of it: a pricing algorithm is only as good as the data it runs on.

What Is Dynamic Pricing?

Dynamic pricing is a pricing strategy in which prices change automatically, or semi-automatically, in response to market conditions: competitor prices, demand, stock levels or time. Instead of setting a price once and leaving it for months, a store updates it whenever the inputs change, using rules or an algorithm.

In plain terms, dynamic pricing means the price of a product is not fixed. It moves within limits you set, based on signals from the market. A store might lower a price when a competitor drops theirs, raise it when a competitor runs out of stock, or discount slow-moving items as the season ends.

Dynamic pricing is different from an ordinary sale. A sale is a one-off decision made by a person ("20% off this weekend"). Dynamic pricing is a system: the decision logic is defined in advance, and prices follow it continuously.

It is also different from personalized pricing, which is often confused with it:

Fixed pricing

Dynamic pricing

Personalized pricing

Who sees the price

Everyone

Everyone, at the same moment

Each shopper or segment sees its own price

What the price depends on

A one-time decision

Market signals: competitors, demand, stock, time

Data about the shopper: history, location, device, profile

How often it changes

Rarely, by hand

From weekly to several times a day

Per visit or per shopper

Typical example

A boutique's price list

An online electronics store matching competitors

Individual discounts or different prices for different users

The distinction matters, because shoppers and regulators treat them very differently. More on that in the legal section below.

Where it came from. Airlines were the first to vary prices by demand and booking time, followed by hotels, car rentals and ride-hailing, where it became known as surge pricing. Ticketing brought it to concerts and sports, often with a public backlash. E-commerce adopted the model once competitor prices became visible online and software could update a catalog in minutes.

How Does Dynamic Pricing Work?

Every dynamic pricing setup, from a small Shopify store with three rules to a retailer with a machine-learning model, follows the same four steps: collect the data, apply the pricing logic, update the price, then check the results against guardrails. The results feed back into the next round, so the four steps work as a loop.

Step 1: Collect the inputs

The system needs to know what is happening in the market and in your store:

  • Competitor prices and promo prices for the same products

  • Competitor stock status, so you do not match a price nobody can buy at

  • Your own demand signals: sales, traffic, conversion

  • Your inventory: how much is left and how fast it moves

  • Costs and margins, which set the floor

  • Time and season: day of week, holidays, Black Friday

Internal data is usually easy to get. Competitor data is the hard part, because competitors do not offer it through an API. It sits on public product pages and has to be collected on a schedule. We explain how a competitor price monitoring system is built, and why collection is only half the job.

The other half is matching. A competitor price is useless if it is attached to the wrong product: a 6-pack compared with a 12-pack, or last year's model compared with this year's. Product matching links each competitor listing to your SKU using identifiers such as GTIN or MPN, plus brand, model and attributes.

Step 2: Apply the pricing logic

The inputs go through logic that produces a new price. There are two main kinds.

Rule-based dynamic pricing. You write the rules yourself:

  • "Price 2% under the cheapest of our three main competitors, with a floor of cost plus 15%."

  • "Follow the median price across tracked stores, ignoring any store that is out of stock."

  • "If stock is above 90 days of sales, reduce the price by 5% each week, down to cost plus 8%."

Rules are transparent, easy to audit and enough for most online stores.

Algorithmic or AI dynamic pricing. A model estimates how demand responds to price (price elasticity) and recommends the price that maximizes revenue or margin. This is usually called price optimization. It can find gains that rules miss, but it needs a lot of sales history, careful testing and people who understand what the model does.

In practice, most retailers start with rules and add models later, for selected categories.

Step 3: Update the price

The new price is pushed to where shoppers see it: the online store, marketplace listings, product feeds for Google Shopping, and in physical stores, digital shelf labels. This step is usually called repricing, and the software that does it is a repricer.

How often prices change depends on the category. Stable categories may update weekly. Electronics and marketplaces may update several times a day. The rule of thumb: your competitor data must be at least as fresh as your repricing runs. Rules that run every hour on data collected last week will confidently set the wrong prices.

Step 4: Apply guardrails and review the results

Automation needs limits:

  • Margin floor: never sell below cost plus a minimum margin.

  • Maximum change: no more than, say, 10% per update, so one bad data point cannot crash a price.

  • Price ceiling: avoid raising prices so far that shoppers notice and lose trust.

  • Stale data check: skip any competitor price older than your refresh window.

  • Brand rules: for products with a minimum advertised price, stay at or above MAP.

Then review the results weekly against sales and margin, and adjust the rules. Dynamic pricing is a loop, not a setting you turn on once.

Types of Dynamic Pricing Strategies

Most dynamic pricing strategies fall into five types. They differ in which signal drives the price. Many stores combine two or three.

Competitor-based pricing

Prices follow what competitors charge for the same product: below, at or above the market, depending on the position you choose. This is the most common model in e-commerce, because shoppers can compare identical products across stores in seconds. Choosing that position per category, and deciding which products to price aggressively, is a strategy question we cover in detail in our guide to competitor-based pricing.

Data needed: matched competitor prices, promo prices, stock status, timestamps.

Demand-based pricing

Prices rise when demand is high and fall when it is low. Signals include sales velocity, traffic, search interest and conversion rate. A store selling fans might raise prices slightly during a heatwave and discount them in autumn.

Demand-based pricing works best on products that are not easy to compare, because on identical products competitors set the ceiling.

Data needed: your own sales and traffic data, plus competitor prices to see how much room you have.

Time-based pricing

Prices change with the calendar or the clock: seasons, holidays, launch windows, end-of-season clearance, or even time of day. Black Friday and Cyber Monday are the obvious e-commerce cases. Time-based pricing is the simplest type to run, because the schedule is known in advance.

Data needed: a calendar, past sales by period, and competitor promotion history to see when rivals start their campaigns.

Inventory-based pricing

Prices respond to stock levels, yours and your competitors'. Overstocked items get discounted to free up cash and space. Items that are running low can hold or raise their price. When a major competitor runs out of a popular product, shoppers look elsewhere, and that is a moment to hold your price rather than discount. To see those moments, you need to track competitor stock, not only competitor prices.

Data needed: your inventory and sell-through, competitor availability by product and variant.

Segment and personalized pricing

Prices differ by customer group or individual shopper: new versus returning customers, members versus guests, or prices based on location, device or browsing history. At the segment level (student discounts, loyalty prices) this is common and accepted. At the individual level, based on personal data, it becomes what economists call price discrimination and critics call surveillance pricing. It is the type of dynamic pricing that draws the most criticism and regulation.

Data needed: customer data, which brings privacy obligations of its own.

Dynamic Pricing Examples in E-commerce

Amazon

Amazon is the best-known example of dynamic pricing in e-commerce. Prices on the marketplace change often, and many third-party sellers reprice automatically to compete for the Buy Box, the default offer a shopper sees on a product page. Amazon offers sellers its own repricing tool, Automate Pricing, in Seller Central, and a whole industry of third-party repricers exists around it.

Amazon's own pricing has also drawn scrutiny. The US Federal Trade Commission's 2023 antitrust complaint alleged that Amazon used an algorithm, codenamed Project Nessie, to raise prices in ways it expected other stores to follow. Amazon disputes the allegations. Whatever the outcome, the case shows that regulators now look closely at how pricing algorithms behave.

For sellers, the lesson is practical: on a marketplace, the competition is not one store but every seller on the listing. Pricing well there requires marketplace offer and seller data, not just the headline price.

Walmart Dynamic Pricing and Digital Shelf Labels

In 2026 the dynamic pricing debate moved from websites to store shelves. Walmart has been replacing paper price tags with digital shelf labels and, as CNBC reported in March 2026, expects to have them in every US store by the end of 2026. Kroger has added them to a growing share of its stores, and Whole Foods has been testing them.

Digital labels make it possible to change a price in seconds instead of reprinting paper tags. That raised the question shoppers care about: will grocery prices now surge with demand? In June 2026, Walmart's US chief operating officer told Modern Retail that the labels are a labor and price-accuracy tool, not a surge pricing tool, and that Walmart doesn't typically vary a product's price by time or location. The company has also said that the price is the same for everyone in any given store.

Lawmakers moved anyway. Maryland became the first state to restrict personalized pricing in grocery: its Protection From Predatory Pricing Act, in force since October 1, 2026, bars large food retailers from using shoppers’ personal data to charge them higher prices, while still allowing electronic labels. Connecticut followed with a broader ban on surveillance pricing that covers all retailers. New Jersey’s Fair Price Protection Act, signed in July 2026, bans grocery prices based on personal data and adds a one-year moratorium on new electronic shelf labels, starting in February 2027. This is the clearest sign that public tolerance for dynamic pricing depends on the category: shoppers accept it for flights and electronics far more readily than for milk and bread.

PlayStation Store

The price tracker PSPrices reported that Sony has been testing different prices for different users on the PlayStation Store since November 2025. By March 2026 the test had reportedly grown from about 50 games in 30 regions to more than 190 games in over 70 regions. In one case from a February sale, regular users saw a 25% discount on Helldivers 2 while users in the test group saw 56%. Sony did not confirm the experiment in the coverage.

This is a useful example because it sits exactly on the line between dynamic and personalized pricing. The prices were lower, not higher, for the test group, yet the reaction was negative. Shoppers care about fairness as much as about the price itself.

A mid-size online store: pet supplies

Here is an illustrative scenario of how rule-based dynamic pricing works for a typical online store.

Situation. An online pet supplies store sells 3,500 products. About 400 are branded dry food and litter, which shoppers buy repeatedly and compare across stores. The rest are toys, beds and accessories, many of them unique to the store.

Data. Daily prices, promo prices and stock status for the 400 comparable products at three competitors, plus the store's own sales and inventory.

Rules.

  • On the 400 comparable products: match the lowest in-stock competitor price, never below a 12% margin, maximum change of 8% per day.

  • If a competitor is out of stock, hold the current price for 3 days instead of matching the next cheapest store.

  • On toys and accessories: no competitor matching. Discount 10% on items with more than 120 days of stock, and run time-based promotions before holidays.

Result. Prices on the products shoppers compare stay competitive automatically. Prices on the rest are left alone, and that is where the store's margin comes from. The team reviews the rules weekly instead of checking competitor sites by hand.

Pros and Cons of Dynamic Pricing

Benefits of dynamic pricing

Risks and downsides

Stays competitive on products shoppers compare, without manual checks

Price wars: two repricers undercutting each other can drive prices to the floor within hours

Captures margin where you have room: unique items, competitor stockouts

Bad data leads to bad prices: a wrong match or a stale competitor price is repeated at scale

Clears excess inventory faster

Shopper trust suffers if prices change visibly and often, especially on everyday products

Responds to demand peaks and seasonal shifts

Regulatory risk, especially for personalized pricing and grocery

Frees pricing teams from routine checks

Needs ongoing work: rules, guardrails, data quality and review

The pattern behind the cons is the same: dynamic pricing amplifies whatever goes into it. Good data and sensible limits make it a margin tool. Poor data and no limits turn it into an automated way to lose money.

In most countries, dynamic pricing as such is legal. Stores are generally free to change their prices as often as they like, as long as every shopper sees the same price at the same moment and the usual consumer rules apply: no misleading reference prices, no fake discounts, clear prices at checkout.

The legal risk sits in three places:

  • Personalized pricing based on personal data. In the EU, consumer law requires sellers to tell shoppers when a price has been personalized by automated decision-making, and data protection rules apply. In the US, several states moved against surveillance pricing in 2026, as described in the Walmart example above.

  • Specific sectors. Grocery has become a focus of new state laws in the US. Ticketing has faced regulatory and political pressure in several countries.

  • Algorithmic collusion. If competitors use the same pricing software or share data in a way that coordinates prices, competition authorities may treat it like a cartel, even without a human agreement.

Laws in this area are changing quickly, so check the current rules for your markets. This section is general information, not legal advice. The same goes for collecting the competitor data itself: see our overview of whether it is legal to collect competitor prices.

What You Need to Start Dynamic Pricing

You do not need an AI platform to begin. A small, well-defined setup works better than a big one built on shaky data.

  1. Choose the scope. Start with products shoppers actually compare: branded items available in other stores. Leave unique products out at first.

  2. Pick 3–5 competitors. The ones that appear next to you in search and marketplace results, not just the biggest names.

  3. Get reliable competitor data. Price, promo price, stock status, a timestamp and identifiers for every matched product.

  4. Match the refresh rate to your rules. Daily data for daily repricing; more often in fast categories and during peak season.

  5. Write 2–3 rules with guardrails. A margin floor and a maximum change per update in every rule.

  6. Review weekly. Compare price changes with sales and margin, and adjust.

The data each field should carry:

Field

Why dynamic pricing needs it

Current price

The main input for competitor-based rules

Regular price and sale price

Tells a temporary promotion from a permanent price change

Promo labels

Shows how a competitor is discounting, not just how much

Stock status by variant

Prevents matching prices that shoppers cannot buy at

GTIN, EAN, MPN, brand, model

Makes product matching accurate

Product URL

Lets you check a suspicious price by hand

Collection timestamp

Lets rules skip stale data

Getting competitor price data on a schedule is where most teams get stuck. Competitor sites render prices with JavaScript, use anti-bot protection, show different prices by region and change their layouts without notice. Reliable price and promo price extraction is a job in itself, and the output has to arrive in a format your repricer or spreadsheet can read, such as CSV, Excel, Google Sheets or JSON.

Dynamic Pricing Tools: Repricers, Platforms and Data Services

Dynamic pricing software comes in three broad types:

  • Repricing apps. Self-serve tools for online stores and marketplace sellers. They track competitors, apply rules and update prices through store integrations. Good for small and mid-size stores that want everything in one place.

  • Pricing platforms. Enterprise systems with AI price optimization, demand forecasting and ERP integrations. Good for large retailers with pricing teams, usually on annual contracts.

  • Price data services. They collect competitor data and deliver it to your own systems. Your team keeps the pricing logic in a spreadsheet, BI tool or the repricer it already uses. Good for teams that want control over rules and data.

We compare specific vendors in our review of 12 price monitoring and dynamic pricing tools. If you are still deciding which type fits, start with how to choose the right type of tool. And if you are considering writing your own scrapers, read whether to build your own pipeline or buy the data first.

Feed Your Pricing Rules with ShopScraping

ShopScraping is the data layer for dynamic pricing. We collect competitor product data from public websites and marketplaces and deliver it as clean, structured tables on a schedule:

  • Current prices, regular and sale prices, and promo labels

  • Stock status by variant

  • Identifiers, brands and attributes for product matching

  • Product URLs and collection timestamps

  • Daily, weekly or monthly updates, exported to CSV, Excel, Google Sheets or JSON

What we do not do: we do not change your prices, recommend prices or run a dashboard. The data goes into the repricer, spreadsheet or BI tool your team already uses, with your own rules.

See plans from $20/mo, run a free demo on any URL, or start collecting competitor data.

FAQ

What is an example of dynamic pricing?

A common e-commerce example is an online store that automatically sets its price 1% below its main competitor's price, but never below a minimum margin. Outside e-commerce, airline tickets, hotel rooms, ride-hailing surge pricing and concert tickets are well-known examples.

Does Amazon use dynamic pricing?

Yes. Prices on Amazon change frequently, and many third-party sellers use automated repricers, including Amazon's own Automate Pricing tool, to compete for the Buy Box. Amazon's own pricing algorithms have also been examined by the US Federal Trade Commission.

Does Walmart use dynamic pricing?

Walmart is putting digital shelf labels in all its US stores by the end of 2026, which makes fast price changes technically possible. The company says it uses them to save labor and keep shelf prices accurate, not for surge pricing, and that the price is the same for everyone in a given store.

What stores use dynamic pricing?

Most large online retailers and marketplace sellers use some form of it, especially in electronics, home goods and other categories where shoppers compare identical products. In physical retail, digital shelf labels at chains such as Walmart and Kroger make faster price changes possible, though Walmart says it does not use them for surge pricing.

What is the difference between dynamic pricing and price discrimination?

Dynamic pricing changes the price for everyone based on market conditions such as demand, competitor prices or stock. Price discrimination, also called personalized or surveillance pricing, charges different shoppers different prices for the same product at the same time, often based on personal data. The second is far more controversial and more heavily regulated.

Is dynamic pricing good for small online stores?

It can be, if you start small. A few rules on the products shoppers compare most, reliable competitor data and a margin floor are enough to stay competitive without checking prices by hand. Complex AI pricing usually only pays off for large catalogs with long sales history.

How often should prices change with dynamic pricing?

As often as your market moves, and no more often than your data is refreshed. Daily is a good default for competitive products. Fast categories and marketplaces may need several updates a day, while stable categories are fine with weekly changes.

What data do you need for dynamic pricing?

At minimum: matched competitor prices and promo prices, competitor stock status, timestamps, and your own costs, margins and inventory. Demand-based models also need your sales and traffic history.

Turn any website into a product data table

Every product page is a data source.