Book a free call

AI Pricing Engines: How Software Sets the Right Price

An AI pricing engine reads demand, costs and competitor prices, then sets a price for each product or customer. Here is how it works and where it fits.

Hertiv engineering teamReviewed by a senior engineer
8 min read
AI Pricing Engines: How Software Sets the Right Price
On this page

Short answer

An AI pricing engine is software that computes prices from live data: demand, stock, costs, competitor prices and customer behaviour. It replaces fixed price lists and manual repricing with rules plus machine-learning models that test and adjust prices as conditions change. A human still sets the guardrails, such as floor prices and margin limits, that the engine must stay inside.

What is an AI pricing engine?

An AI pricing engine is software that computes a price for each product, order or customer from live data instead of a fixed price list. It takes in signals such as demand, stock, costs, competitor prices and customer behaviour, then returns a price that fits the rules and targets the business set.

The engine sits between the systems that hold data and the systems that charge customers. A store, marketplace or sales team asks for a price, and the engine answers in milliseconds or in a nightly batch, depending on how fast the price needs to change.

What makes it an AI engine rather than a spreadsheet is that it learns. It watches which prices led to sales and which did not, then adjusts its model. A spreadsheet applies the same formula every time, while a pricing engine updates the formula as new data arrives.

The engine does not replace pricing judgement. People still decide the strategy: which products compete on price, which protect margin, and how far a price may move. The engine carries out that strategy at a scale and speed no team could match by hand.

How does a pricing engine decide a price?

A pricing engine decides a price in three steps: gather signals, score options, and apply rules. The signals describe the product and the market, the model scores what each candidate price is likely to earn, and the rules cut out any price the business will not accept.

Signal What it tells the engine Example
Demand How many people want the product now Searches and sales in the last hour
Stock How much is left to sell 12 units left, restock in 5 days
Costs The lowest price that still earns money Unit cost plus delivery and fees
Competitor price What rivals charge for the same item A rival lists it at 45 pounds
Customer Who is buying and what they paid before A repeat buyer, business account

The model turns those signals into a price. A simple engine applies a rule, such as matching the lowest competitor price above cost. A learning engine estimates demand at several prices and picks the one with the best expected margin, then checks it against the rules. Teams comparing ready-made tools can start from the best predictive pricing software shortlist.

Every decision is logged with the signals that produced it. That log is what lets a team answer why a price changed, which matters when a customer complains or a manager asks. Engines that cannot explain a price are hard to trust, so logging is part of the design, not an extra.

What kinds of pricing engines are there?

Pricing engines fall into four broad kinds, and most real systems mix them. Rule-based engines apply fixed logic such as cost-plus or match-the-competitor. They are easy to explain and easy to audit, which is why regulated products often start there.

Demand-forecast engines use machine learning to predict how many units will sell at each price, then choose the price with the best expected margin. They need clean sales history and work best where demand changes with price in a stable way.

Optimisation engines go further and balance several goals at once, such as margin, volume and stock clearance. They are common in airlines and retail, where thousands of prices interact and a human cannot weigh every trade-off.

Experiment engines treat pricing as a test. They try different prices on small groups, measure the result, and keep the winner. They are slower to reach a final price but they measure what actually happened instead of trusting a forecast.

The kind you need depends on how much data you have and how fast prices must move. A shop with a few hundred products and weekly price changes may only need rules. A marketplace with millions of listings and hourly changes needs learning and optimisation.

Where do pricing engines sit in the stack?

A pricing engine usually sits as a service between the product catalogue and the checkout. The catalogue sends product and stock data in, and the checkout or sales tool asks for a price out. That separation means one engine can serve a website, an app and a sales team at the same time.

Engines run in two modes. Real-time engines answer price requests in milliseconds, which suits ecommerce checkouts and marketplaces. Batch engines recompute prices overnight, which suits catalogue products and B2B quotes where prices change daily rather than hourly.

The engine needs clean data feeds to work. Product costs, stock levels and competitor prices must arrive on time and in a stable format. Teams often find that half the work is fixing these feeds, not building the model. A pricing engine fed stale stock data will set prices for products that no longer exist.

Most engines expose their prices through an API, so the store, the sales tool and the finance system all see the same number. That single source of truth is one of the main reasons teams build an engine instead of letting each channel set its own prices. Building one in-house is a machine learning development effort with a data pipeline attached, not a model alone.

How do teams keep prices inside safe limits?

Teams keep prices safe with guardrails: hard limits the engine cannot cross. The most common are a floor price below which a product must not be sold, a ceiling above which a price looks wrong to customers, and a margin rule that stops a discount from wiping out profit.

Guardrails also cover change. A limit on how far a price may move in one day stops a bad data feed from halving prices overnight. A limit on how often a price changes stops customers from seeing a different price every time they refresh the page.

Some products need a human decision. High-value orders, regulated products and prices for key accounts often go to a person for approval. The engine proposes the price and the person confirms it. That keeps speed where it is safe and judgement where it matters.

Guardrails are tested like any other control. Teams run the engine on past data and check that no price would have broken a limit, then watch the first live weeks closely. A guardrail that never triggers is either set too wide or never checked.

How do you test a pricing engine before it goes live?

You test a pricing engine in three stages: backtest, shadow mode, and a small live rollout. Each stage answers a different question, and skipping one usually means the problem shows up in front of customers instead.

A backtest runs the engine on past data and compares its prices with the prices actually charged. It shows whether the engine would have earned more or less, and whether any price would have broken a guardrail. Backtests are cheap but they cannot show how customers would have reacted to a new price.

In shadow mode the engine computes live prices but the old system still charges customers. The team compares the two prices and investigates the largest gaps. Shadow mode catches data problems, such as a feed that reports the wrong cost, before any money moves. Ecommerce teams can see the same pattern in AI dynamic pricing for ecommerce.

The live rollout starts small: a few products, a few regions, or a small share of traffic. The team watches revenue, margin and complaints for a fixed period, then expands. A rollout with a clear stop rule is safer than one that expands because the first week looked good.

Example (hypothetical): a retailer reprices 2,000 products

Example (hypothetical): a retailer sells 2,000 products and reprices them by hand once a week. Each product takes about 15 minutes to check and reprice, so the weekly task takes 500 hours of staff time. That is more than three full-time roles spent only on pricing.

The retailer adds a pricing engine with a simple rule: reprice any product whose competitor price changed or whose stock fell below 20 units. Each week the engine reprices about 400 products on its own and flags 40 for a human to review. The review takes 40 products at 15 minutes each, which is 10 hours.

The weekly pricing work falls from 500 hours to 10 hours, saving 490 hours a week. The saved time goes to the products the engine flagged, such as a line where a rival dropped its price below cost. The engine did not remove people from pricing; it moved them to the cases that need judgement.

What are the common mistakes?

The most common pricing-engine mistakes are feeding it bad data, setting guardrails too wide, and trusting the model without checking it.

  • Letting stale data in. Competitor prices and stock levels change daily; an engine fed last week's data sets last week's prices.
  • No floor price. A cost error or a rival's loss-leader price can push your price below cost if nothing stops it.
  • Changing too many prices at once. A full-catalogue launch makes it hard to tell which change caused a revenue drop.
  • No owner. Prices drift when nobody reviews the engine's decisions, the guardrails and the data feeds.
  • Measuring revenue only. A price that lifts revenue while cutting margin is a loss dressed as a win.

A pricing engine earns trust slowly and loses it fast. Start narrow, keep a human in the loop for the first months, and review the log every week until the decisions look boring. For teams weighing the move, predictive analytics covers the forecasting work that sits underneath most pricing models.

Key takeaways

  • A pricing engine computes prices from live signals: demand, stock, costs, competitors and customer behaviour
  • Rule-based, demand-forecast, optimisation and experiment engines suit different data volumes and speeds
  • Guardrails such as floor prices, ceilings and daily move limits keep the engine inside safe bounds
  • Test in three stages: backtest on past data, shadow mode on live data, then a small live rollout
  • The engine moves people from routine repricing to the flagged cases that need judgement

Frequently asked questions

What is the difference between a pricing engine and dynamic pricing?

Dynamic pricing is the practice of changing prices as conditions change. A pricing engine is the software that does it. A team can do dynamic pricing by hand with a spreadsheet, but an engine does it at a scale and speed that manual work cannot match.

Do pricing engines need machine learning?

Not always. A rule-based engine that applies cost-plus or match-the-competitor logic needs no machine learning and is easier to explain. Learning helps when demand responds to price in ways a fixed rule cannot capture, and when the catalogue is large enough to learn from.

How much data does a pricing engine need?

It needs clean sales history, current costs and stock, and competitor prices for the products it reprices. A rule-based engine can start with a small catalogue. A learning engine needs enough past sales at different prices to estimate how demand moves, which usually means months of history.

Can a pricing engine change prices too often?

Yes, and that is a real risk. Customers lose trust when a price changes every time they refresh a page. Most teams limit how often a price may change and how far it may move in one day, and they keep stable prices for products where trust matters more than the last unit of margin.

What does a pricing engine cost to run?

Costs depend on catalogue size, how often prices are recomputed, and whether the engine is built in-house or bought. The main costs are usually data feeds and the team that maintains the rules, not the model itself. Vendors price their tools differently, so check the vendor site for current plans.

Who should own a pricing engine?

One named owner, usually in pricing, product or finance, with support from data engineering. The owner reviews the decision log, the guardrails and the data feeds every week. Without an owner, the engine drifts and nobody notices until a price goes wrong.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning pricing software that adapts to demand? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Predictive Analytics service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call