Price optimization: how AI sets prices from cost, demand and quote history

Price optimization is the work of choosing the price for each product, customer and order that best serves a goal, such as gross profit, given what the item costs and how buyers respond to price. Price optimization software does it with statistics on your own invoices and quotes, and AI handles the parts that used to need an analyst: rebuilding what each sale really earned, finding similar customers and orders, and explaining each recommendation. This guide covers how pricing optimization works for a manufacturer, a distributor or a food producer, the data it needs, how to start with one product family, and the legal and practical limits.

Leafy vegetables pass under water sprays on a stainless steel washing line in a food plant

What price optimization means

Every pricing method answers the same question from a different starting point. Cost-plus pricing starts from what an item costs you. Competitor-based pricing starts from what others charge, which pricing intelligence covers. Price optimization starts from how your own buyers have responded to price in the past, and uses cost and the market as limits: a floor no price may go under, and a level above which you stop winning orders.

For a business that sells physical goods, prices are set in a few places at once: the list price and the price list, customer-specific prices and contracts, and the discount a rep gives on each quote. Price optimization can cover all three, starting with whichever one your data describes best.

Small price changes have a large effect on profit. In a 2003 analysis of the average income statement of an S&P 1500 company, McKinsey found that “a price rise of 1 percent, if volumes remained stable, would generate an 8 percent increase in operating profits.” The same article estimated that volume would have to rise 18.7% to make up for a 5% price cut. A smaller company’s numbers can differ, and the mechanism is the same: a price change goes straight to profit, while a volume change brings its costs with it.

How prices are set by hand

A manual process often looks like this. List prices go up once a year by a flat percentage. Sales reps discount from list within limits someone set years ago, and large customers have special prices kept in a spreadsheet or as overrides in the ERP. Quotes go out by email, and when one is lost, nobody records the reason or the price that won.

The price on the list is also rarely the price you keep. McKinsey’s pocket price waterfall follows a sale from list price down to the pocket price, which is what remains after every discount and allowance. In the article’s example, a lighting supplier that sold through distributors gave on-invoice discounts that left its average invoice price 32.8% below list. Off-invoice items, including prompt-payment discounts, the cost of carrying receivables, co-operative advertising allowances, volume rebates and freight, took another 16.3 percentage points, so the average pocket price came to about half of list. Some bulbs sold at a pocket price under 30% of list and others at 90% or more.

Averages hide a spread that wide. Seeing it means rebuilding every transaction from list price to pocket price, which is the first job for software in price optimization.

What AI changes

A pocket price for every invoice line

Price optimization starts by working out what each sale actually earned. Software reads invoice lines, credit notes, rebate agreements and freight bills, and allocates each discount and allowance to the line it belongs to. Rebate terms and freight charges often sit in PDFs and emails, which language models can read into structured data for someone to check. The result is a pocket price and a pocket margin for every line, and the rest of the analysis is built on those two numbers.

Here is one invoice line for a distributor, with made-up numbers:

StepPer unit
List price$100.00
On-invoice discount of 12%−$12.00
Invoice price$88.00
Prompt-payment discount of 2%−$1.76
Year-end volume rebate−$3.00
Freight paid for the customer−$4.50
Pocket price$78.74

With a unit cost of $65.00, the invoice shows a margin of 26.1%, and the pocket margin is 17.4%. A margin report built from invoices alone would overstate this customer by almost nine points.

Similar customers and orders

Next, the software groups the transactions that should be priced alike, using attributes such as customer size and type, region, channel, order size and product family. Within each group, the spread of pocket prices shows where the same item sells at very different prices to similar customers. That spread is a good first place to look, because it can be narrowed without changing the list price at all.

How buyers respond to price

Then it estimates how volume responds to price. Economists call this price elasticity, which OpenStax defines as “the percentage change in the quantity demanded of a good or service divided by the percentage change in the price.” For catalogue items that sell every week, elasticity can be estimated from past changes in price and volume, once promotions, seasons and stockouts are accounted for.

For quoted work, the useful measure is the win rate. With a history of quotes and their outcomes, a model estimates the chance of winning at each price for a given kind of customer, product and order size, and multiplies it by the margin at that price. In a made-up example, a quote with $80 of cost has a 60% chance of winning at $96 and a 45% chance at $100. The expected margin is $9.60 at $96 and $9.00 at $100, so for that kind of customer the lower price earns more on average.

Price guidance people can act on

The output is guidance at the point of sale: a floor, a target and a stretch price for each item and customer group, shown in the ERP or quoting screen with the reason behind it. A rep who goes below the floor needs an approval, and the pricing manager sees which exceptions are granted most often. Guardrails keep the guidance within limits you set: no price below cost plus a minimum markup, no increase above a set percentage per quarter for any one customer, and contract prices left alone until the contract allows a change. Human in the loop covers designing that approval step.

Slow stock and perishable goods

Price optimization also decides when to cut a price. A food producer with short shelf lives, or a distributor holding stock that has stopped moving, can set markdowns from the quantity on hand, the days left to sell it and how buyers responded to past discounts. Inventory optimization covers the stock side, and SKU rationalization covers dropping the items that no price can rescue.

Three ways to set a price

MethodStarts fromStrengthWeak point
Cost-plus pricingYour unit cost and a markupFast, and straightforward to explainIgnores what buyers would pay
Competitor-based pricingWhat others charge for the same itemKeeps you in line with the marketNeeds matched products, and follows competitors’ mistakes
Price optimizationHow your buyers respond to price, within cost and market limitsSets different prices where buyers respond differentlyNeeds enough clean history, and people who trust the guidance

Find out what your sales history can support

Tell Derik which ERP holds your invoices and quotes, and where you think prices leak. He will tell you what your data can support today.

Start a conversation

What data price optimization needs

Volume matters. Items and customer groups with few sales give noisy estimates, so start with product families that sell every week, and keep one-off custom work on cost-plus pricing with a reviewed markup. If your ERP has no export or API, AI for ERP covers the ways to read it.

Price optimization software

Price optimization software comes in several forms, and the right one depends on how you sell. B2B pricing platforms group customers and products and send price guidance to quoting and ERP screens. Pricing modules in ERP and CPQ (configure, price, quote) systems apply price rules and approvals inside the tools reps already use. Repricing tools for online retail adjust prices against marketplaces and competitors as often as those prices change. A custom model built on your own data fits a business whose data or sales process does not match any package.

Ask any vendor to explain one recommendation from start to finish: which transactions it used, which customers it compared, and why the price moved. Ask how guardrails are set, where your sales data is processed and stored, and how the product is charged, for example per user, by revenue band or by quote, and check the vendor’s own pricing page. Private AI for business lists the data questions to put in writing.

How to start with one product family

  1. Choose a family that sells often, with enough customers and transactions to compare.
  2. Build the pocket price for each line from invoices, rebates and freight, and check the totals against the income statement.
  3. Look at the spread. List the customers who pay far below similar customers for the same items.
  4. Set floors and targets, then test them on last year: what would margin and volume have been?
  5. Show the guidance to reps for a quarter, with approvals below the floor, and compare win rates and margins with the quarter before. AI evals explains how to test on past results.

Margin analysis covers the reports that tell you which family to start with, and cost of AI explains how each part of a build is charged.

Risks, limits and the law

Estimates of price response are noisy. Promotions, seasons, stockouts and a competitor’s move can all look like a reaction to your price, and a model that misses them recommends the wrong change. Customers also notice inconsistent prices, so explainable guidance and a person who can override it matter more than a precise number.

Algorithmic pricing also draws regulators’ attention. In its 2025 discussion paper on algorithmic pricing and competition, Canada’s Competition Bureau says that “Using common pricing algorithms or pooling data among competitors may raise issues under the Competition Act,” because these practices “may facilitate coordinated behavior, such as price-fixing.” Building price optimization on your own sales data, with competitor prices taken only from public sources, avoids pooling data with competitors. Agreeing on prices with a competitor is an offence under section 45 of the Competition Act.

If you sell goods to customers in the United States who compete with each other, the US Robinson-Patman Act can also apply. The Federal Trade Commission explains that charging competing buyers different prices for the same commodity may violate the Act, and also that “Price discriminations are generally lawful, particularly if they reflect the different costs of dealing with different buyers or are the result of a seller’s attempts to meet a competitor’s offering.” Ask counsel before you set different prices for customers who compete with each other.

How ThriveAI helps

ThriveAI is an AI engineering company in Ottawa that builds private AI systems on a company’s own data, for businesses that make, move or sell physical goods. For pricing, that means reading invoices, rebates, freight and quotes from your ERP and documents, rebuilding the pocket price of every sale, and drafting price guidance and exceptions for a named person to approve. Every answer shows where it came from.

ThriveAI’s systems read your ERP as it is, including older versions installed on your own server, and every connection only reads data. They are designed to keep each client’s data on its own server in Canada. You choose a model on that server or a hosted model under a written zero data retention agreement, and a hosted model may process requests outside Canada. Derik Lawlis, the founder, leads every project and stays close to the build. About ThriveAI covers the company.

Questions people ask

What is price optimization?
Price optimization is choosing the price for each product, customer and order that best serves a goal, such as gross profit, given the cost of the item and how buyers respond to price. It uses your own invoice and quote history, with cost as a floor and market prices as a check.
What is price optimization software?
Software that analyzes transaction and quote history to recommend prices by product and customer group. It comes as B2B pricing platforms, pricing modules in ERP and quoting systems, repricing tools for online retail, and custom models built on a company's own data.
How does AI optimize prices?
It works out the pocket price of every sale after discounts, rebates and freight, groups similar customers and orders, estimates how volume or win rates respond to price, and recommends a floor, target and stretch price with the reason behind it. A person approves prices and exceptions.
Is price optimization the same as dynamic pricing?
No. Dynamic pricing changes prices often, sometimes many times a day, in response to demand or competitors, as in online retail. Price optimization sets the price structure, such as list prices, customer group prices and discount limits, and can be reviewed monthly or quarterly. A business can use both.
How much data does price optimization need?
Start with two to three years of invoice lines for product families that sell every week, plus quotes with won or lost outcomes. Items that sell rarely, and one-off custom work, are better priced on cost plus a reviewed markup until more history builds up.
Is AI pricing legal in Canada?
The legal risk in AI pricing is coordination with competitors. Agreeing on prices with a competitor is an offence under section 45 of the Competition Act, and the Competition Bureau says common pricing algorithms or pooled data among competitors may raise issues under the Act. Use your own data and public market prices, and ask counsel about any shared pricing service.

Contact

Start with the product family where price leaks

Tell Derik which product family worries you most and where its invoices and quotes are kept. He will tell you what that history can show about where its prices leak.

Prefer to talk? Book a meeting.

Your message goes to Derik Lawlis, the founder.