1. Home
  2. Blog
  3. E-Commerce

E-Commerce

What Is Price Optimization and Dynamic Pricing? Elasticity, Margin Floor, Rules and Testing Guide

What is price optimization? Price elasticity, the profit-maximizing price, margin floors, dynamic pricing rules, A/B testing and payback, with worked examples.

Contents 16 sections
  1. What Is Price Optimization?
  2. What Is the Difference Between Cost-Plus, Competitive and Value-Based Pricing?
  3. How Is Price Elasticity Calculated?
  4. How Do You Find the Profit-Maximizing Price?
  5. How Do You Set a Margin Floor and Pricing Rules?
  6. How Do You Calculate Net Price After Marketplace Commission?
  7. How Does Rule-Based Dynamic Pricing Work?
  8. How Do You Run a Price A/B Test?
  9. Does a Campaign Discount Really Add Profit?
  10. How Are Price Changes Approved and Monitored?
  11. What Is the Price Trust and Customer Perception Risk?
  12. How Is the Payback of Price Optimization Calculated?
  13. How Do You Set Up Price Optimization in Six Steps?
  14. What Mistakes Are Common in Price Optimization?
  15. Price and E-Commerce Processes with İnovabil
  16. Frequently Asked Questions

In most businesses, price is set by adding a familiar percentage to cost or by glancing at a competitor, and then it stays put for months. Yet price is the fastest lever on profit. Price optimization is the discipline of setting prices with data instead of instinct, and dynamic pricing is the rule-based updating of those prices as stock, demand and competitor moves change.

This guide covers pricing approaches, how price elasticity is calculated, how to find the profit-maximizing price, margin floors and rules, net price after marketplace commission, rule-based dynamic pricing, price testing, campaign risk and price trust. All figures are illustrative; they are not real prices, commissions or industry averages. Amounts exclude VAT.

Key takeawayA good price is not the highest or the lowest one; it is the price that maximizes unit profit × units sold. To find it you need the true cost, how sensitive demand is to price (elasticity) and firm lower and upper limits. Dynamic pricing works inside those limits; a rule left without limits erodes both profit and trust.

What Is Price Optimization?

Price optimization means using cost, demand, competition and target margin data together to find the price range that maximizes profit for a product or product group, and then staying inside that range. It is not a one-off calculation; it is a loop that is re-measured as demand, cost and competitor behavior change.

The foundation of any price is correct cost. We explained how to build product cost with scrap, labor and overhead in our product cost guide; this article builds on top of that cost.

We recommend reading: Our e-commerce development service

What Is the Difference Between Cost-Plus, Competitive and Value-Based Pricing?

The three approaches answer one question from different sources: is the price set by cost, by competitors, or by the value the customer is willing to pay for? In practice, businesses combine all three.

ApproachWhat sets the price?StrengthWeakness
Cost-plusCost + fixed percentage (₺60 × 1.40 = ₺84)Simple; prevents selling at a lossIgnores perceived value and demand
CompetitiveEqual to, slightly below or above rivalsStays aligned with the marketYou do not know rivals' costs; invites price wars
Value-basedWhat the customer values in the benefit deliveredHighest-margin approachValue is hard to measure; needs testing
Data-driven optimizationDemand elasticity and profit calculationTargets profit directlyNeeds data and discipline

The percentage in cost-plus is not margin: adding 40% to cost (markup) makes profit 28.6% of the price (₺24 ÷ ₺84). Margin is profit as a share of the price. Mixing the two up is a common arithmetic mistake.

How Is Price Elasticity Calculated?

Price elasticity shows how many percent demand changes when price changes by one percent: E = % change in demand ÷ % change in price. The value is usually negative; if its absolute value is above 1, demand is price-sensitive (elastic), if below 1 it is insensitive.

Example: the price rises from ₺100 to ₺110 (+10%) and monthly sales fall from 1,000 to 850 units (−15%). E = −15 ÷ 10 = −1.5. Demand is elastic: the price rise cuts sales faster than the price rises. Because unit profit also rises, whether that is harmful depends on the calculation in the next section.

Elasticity differs by product and period: it is low for must-have items and high for easily substituted ones. Estimate it per product group from your own sales history or from tests. To separate season and campaign effects when reading history, the approaches in our demand forecasting guide help.

How Do You Find the Profit-Maximizing Price?

Profit = (price − cost) × units. As price rises, unit profit grows but units fall; their product peaks at some point. To see it, use a simple linear demand model (illustrative): units = 2,500 − 15 × price, cost ₺60. The model gives 1,000 units at ₺100 and an elasticity of −1.5.

Price optimization example: profit is 40,000 lira at a price of 100, 42,625 lira at 115, and 29,760 lira at 84 when matching a rival
Three prices on the same demand model: current, near optimum and rival matching.
PriceUnits (2,500 − 15p)Unit profitTotal profit
₺841,240₺24₺29,760
₺100 (current)1,000₺40₺40,000
₺110850₺50₺42,500
₺115775₺55₺42,625
₺120700₺60₺42,000
₺130550₺70₺38,500

In this model the peak is at price = (2,500 ÷ 15 + 60) ÷ 2 ≈ ₺113.33 (profit ≈ ₺42,667); ₺115 is very close. Moving from ₺100 to ₺115 cuts units from 1,000 to 775 (−22.5%) and revenue from ₺100,000 to ₺89,125 (−10.9%), yet profit rises from ₺40,000 to ₺42,625: +₺2,625, about +6.6%. Profit rising while revenue falls is the most instructive result of price optimization.

At the peak a further relationship holds: optimal margin ratio ≈ 1 ÷ |E|. At ₺113.33, elasticity is −15 × 113.33 ÷ 800 ≈ −2.125 and margin is (113.33 − 60) ÷ 113.33 ≈ 47.1% ≈ 1 ÷ 2.125. Linear demand is only a teaching model and cannot be trusted outside the price range you have observed; test in small steps (₺105, ₺110, ₺115).

How Do You Set a Margin Floor and Pricing Rules?

Even though the calculation points to the peak, price is never allowed to move freely; three limits are defined: floor, ceiling and speed of change.

  • Floor (margin floor): Price ≥ cost ÷ (1 − minimum margin). With a 35% minimum margin, ₺60 ÷ 0.65 = ₺92.31. No rule may go below this price.
  • Ceiling: For example, the current list price +20%, that is ₺120. It stops a faulty rule from sending the price skyward.
  • Speed of change: A cap such as at most ±5% per day, so a customer does not see two different prices on the same day.
  • Rounding: Prices ending in .90, such as ₺114.90 instead of ₺115, are common. In our model the profit gap between ₺114.90 and ₺115 is only ₺4.85 (₺42,629.85 versus ₺42,625); the real effect is perception rather than arithmetic and varies by product. Apply it with caution and test it.

For businesses with dealer and tiered pricing, these limits are considered together with list layers; our B2B price list guide covers list structure and discount chains in detail, so we do not repeat it here.

How Do You Calculate Net Price After Marketplace Commission?

The selling price is not profit; what remains after commission, shipping and cost is the real measure. Net profit = price × (1 − commission) − shipping − cost.

Scenario (cost ₺60, shipping ₺12)CalculationNet profitMargin
Own site, ₺115, no commission115 − 12 − 60₺43.0037.4%
Marketplace, ₺115, 15% commission115 × 0.85 − 12 − 60₺25.7522.4%
Marketplace, ₺100, 15% commission100 × 0.85 − 12 − 60₺13.0013.0%
Marketplace, target net ₺40(60 + 12 + 40) ÷ 0.85₺40.00price ≈ ₺131.76

The commission rate is illustrative; take the real rate from the marketplace's seller agreement. The same product can be ₺115 on your own site and ₺131.76 on a marketplace; how a channel price is worked backward from a target payout is detailed in our marketplace integration guide.

How Does Rule-Based Dynamic Pricing Work?

Dynamic pricing means prices are updated automatically according to predefined rules. In a rule-based system every rule has a trigger, an action and a limit; a rule without a limit should be treated as unwritten.

TriggerActionLimit
Stock cover > 90 days5% discount, once a weekMargin floor ₺92.31
Stock < 7 days3% increaseCeiling ₺120
Rival's lowest priceMatch only above the floorAt most ±5% per day
High add-to-cart rateSmall increase, every 48 hoursApproval threshold
Peak hoursNot recommended, or very narrow (e.g. +2%)At most one change per day

Why is unlimited rival matching dangerous? If the rival drops to ₺85 and your rule says "₺1 below the rival", your price becomes ₺84. In our model units rise to 1,240 but profit falls to 24 × 1,240 = ₺29,760; against the current ₺40,000 that is −₺10,240 (−25.6%). If the rule stops at the ₺92.31 floor, units are about 1,115 and profit ₺36,037: the floor cuts the loss by ₺6,277 but does not erase it. Watch rivals only on critical products; the ABC class can set the priority, since our ABC analysis guide shows which items carry the share of revenue.

How Do You Run a Price A/B Test?

The most reliable way to estimate elasticity is a test: show half the traffic the current price and half the new price, and compare profit per visitor. Two rules matter: both arms must run in the same period, and the test should last at least two full weeks, because days of the week behave differently.

A rough rule for sample size: each arm needs about n ≈ 16 × p × (1 − p) ÷ d² visitors, where p is the baseline conversion rate and d the difference you want to detect. For p = 2% and d = 0.5 points (2.0% → 2.5%), n ≈ 16 × 0.0196 ÷ 0.000025 ≈ 12,544 visitors; at 1,000 visitors per arm per day that is about 12.5 days, so two weeks. This rule only gives a sense of scale; get statistical support for exact significance.

ArmVisitorsOrdersConversionUnit profitProfit per visitor
Control, ₺10012,5002502.0%₺40₺0.80
Test, ₺11012,5002251.8%₺50₺0.90

Total profit goes from ₺10,000 to ₺11,250 (+12.5%), but note: the order gap is 25, while random fluctuation is about √(250 + 225) ≈ 21.8. The gap is only about 1.1 times that fluctuation; since a common rough yardstick is 2 times, the result is not yet conclusive. The right decision is not to roll the price out at once but to extend the test or retry the step.

Does a Campaign Discount Really Add Profit?

A discount raises sales but lowers unit profit; profit is protected only if units rise enough. Break-even uplift = discount ÷ (margin − discount), with margin and discount as shares of the price. With a 40% margin (₺40 ÷ ₺100) and a 20% discount, the required uplift is 0.20 ÷ (0.40 − 0.20) = 100%: 1,000 units must become 2,000 (₺20 × 2,000 = ₺40,000).

Then comes cannibalization. If the campaign brings 1,800 units, product A's profit is ₺20 × 1,800 = ₺36,000 (−₺4,000). If at the same time substitute product B (unit profit ₺30) loses 150 units, another −₺4,500 is added, for a total of −₺8,500. The campaign raised sales and lowered profit. For quote and discount approval flows, see our quote management software guide.

How Are Price Changes Approved and Monitored?

Automatic pricing does not mean unsupervised pricing. A practical setup:

  • Approval threshold: A change above ±5% in one step, or one nearing the margin floor, goes to approval.
  • Record: Every change is stored with old price, new price, triggering rule and timestamp.
  • Kill switch: A way to freeze all rules at once and return to the last approved price if data is faulty or a rival price is off.
  • Monitoring indicators: Daily average margin, conversion, rule trigger count, number of products at the floor. An alarm fires if margin drops below 35%.

Custom business rules, such as pricing by product configuration, must be written into the system; for such structures see our product configurator guide.

What Is the Price Trust and Customer Perception Risk?

Price is not only a number; it is a signal of trust. Prices that change often for the same customer, offering the same product to different customers at different prices based on personal traits, or showing a fake "old price" put both reputation and compliance at risk. As a rule, change prices consistently by product and time, with reasons you can defend, and do not discriminate by person.

Obligations on consumer price display, discount claims and unfair commercial practices are regulated by law; consult your legal advisor for details.

How Is the Payback of Price Optimization Calculated?

Payback = investment ÷ monthly net benefit. Illustrative assumptions: monthly gross profit ₺2,000,000; tested price improvements bring only a 2% profit increase across the portfolio (the +6.6% in the example applied only to the tested product); running and monitoring cost ₺10,000 a month; setup 40 person-days × ₺9,000 = ₺360,000.

Monthly benefit is ₺2,000,000 × 2% = ₺40,000; net ₺40,000 − ₺10,000 = ₺30,000; payback ₺360,000 ÷ ₺30,000 = 12 months. If the gain drops to only 1%, net is ₺20,000 − ₺10,000 = ₺10,000 and payback stretches to 36 months. The decision depends on a realistic estimate of the gain, which is why you should pilot on a small product group first.

How Do You Set Up Price Optimization in Six Steps?

The six steps of price optimization: data, elasticity, rules and limits, test, launch and approval, monitoring
The six steps of a price optimization setup.
  1. Data: Bring correct cost, sales history, stock cover, channel commission and the rival prices to monitor into one place.
  2. Elasticity: Estimate elasticity per product group from sales history and small tests.
  3. Rules and limits: Write down the margin floor, ceiling, speed of change and triggers.
  4. Test: Run an A/B test on a pilot product group for two weeks with an adequate sample.
  5. Launch and approval: Open gradually; have the approval threshold and kill switch ready.
  6. Monitoring: Watch margin, conversion and rule triggers; re-measure elasticity every three months.

In a new e-commerce build, thinking about price rules from the start is cheaper than adding them later; we covered setup in our e-commerce website guide and the dealer channel in our B2B e-commerce article.

What Mistakes Are Common in Price Optimization?

  • Working with the wrong cost: If scrap, shipping and commission are left out, a "profitable" price becomes a sale at a loss.
  • Short tests: With too small a sample the result is chance.
  • Unlimited rival matching: A price war eats margin.
  • Forgetting campaign substitution: Cannibalization quietly lowers profit.
We recommend reading: What Is Customer Journey Mapping and Behavior Analytics? Events, Funnel, Drop-off and Cohort Guide
We recommend reading: What Is Dropshipping and How Do You Run It? Supplier Feeds, Unit Economics and Automation
We recommend reading: How to Improve Ecommerce Site Search: Zero Results, Turkish Characters, Scoring and Payback Guide
We recommend reading: How to Design an E-Commerce Promotion and Coupon Engine: Order, Margin Floor and Abuse Prevention Guide
We recommend reading: How to Analyze Product Profitability and Rationalize SKUs: Contribution Margin, Carrying Cost and Pruning Guide
We recommend reading: How to Price and Package a SaaS Product: Value Metric, Tiers, Discounts and Price Testing Guide
We recommend reading: How to Run an A/B Test: Hypothesis, Sample Size, Significance and Pitfalls Guide

Price and E-Commerce Processes with İnovabil

At İnovabil our focus is building software from scratch, tailored to the company: custom software, e-commerce, ERP, CRM, web, mobile and integration. We do not claim to have a price optimization product; we put your pricing rules (margin floor, channel commission, approval thresholds, record keeping) in writing during requirements analysis and design them to fit the system where your order, stock and cost data flow.

We built CRM, purchasing and mobile for Avcılar İnşaat; a purchasing system for İZBAN; wholesale order intake and management together with shipment planning for Karyak; and a prepaid cargo system for Kredili Kargo. Tell us briefly about your pricing process; we will work out together which data sits in which system and give you a written assessment.

We recommend reading: Our software development process: from analysis to launch, step by step

Frequently Asked Questions

What is price optimization?

It is using cost, demand elasticity, competition and target margin data together to find the price range that maximizes total profit, and staying inside it. It targets not the lowest or highest price but the product of unit profit and units sold.

How is price elasticity calculated?

By dividing the percent change in demand by the percent change in price. If price rises 10% and sales fall 15%, elasticity is −1.5. If the absolute value is above 1, demand is price-sensitive; calculate it separately by product group and period.

Is dynamic pricing suitable for every business?

No. It helps where stock or demand moves fast, the product count is high and rival prices change often; for businesses with few products and an expectation of fixed prices, the trust risk can outweigh the gain. Start with a pilot that has clear limits and few rules.

How long should a price test run?

At least two full weeks and enough visitors. In the example, detecting a 0.5-point gap at 2% conversion takes about 12,500 visitors per arm. A shorter test or a smaller sample leads you to mistake chance for a result.

Is it legal to change prices by customer?

That is a legal question and your legal advisor should answer the details. In practice, tie price to defensible reasons such as product, stock and time; discriminating by personal traits carries both trust and compliance risk.

Let's talk about your project

Tell us briefly about the software you have in mind; we'll listen and prepare a tailored roadmap and proposal.

Get a quote