# Dynamic pricing: definition, how the rules work and where software uses it

Source: https://leverprice.com/glossary/dynamic-pricing
Updated: 2026-11-17

> Dynamic pricing means a price that changes over time with demand, spare capacity, inventory or timing, while everyone buying at the same moment pays the same. Airlines and ride-hailing made it familiar; in software the clearest case is cloud capacity such as AWS Spot Instances. When the price depends on who is buying, it becomes personalized pricing.

Dynamic pricing means the price follows conditions such as demand, spare capacity or the calendar, and anyone buying at that moment pays the same. Amazon EC2 Spot Instances are the clearest software case: Amazon sets the Spot price, which adjusts gradually with long-term supply and demand for spare capacity, and AWS puts the discount at up to 90% off On-Demand ([AWS](https://aws.amazon.com/ec2/spot/pricing/)).

## How it works

A dynamic price is a rule or a model that turns signals into a price inside limits you set. Software signals include sales velocity, remaining capacity (GPU hours, seats in a cohort), time (launch week, the end of a promotion) and the cost of serving each unit.

Example: a course platform prices a live cohort with a demand rule. The target is 20 sales a day, the floor is $300 and the ceiling is $600.

```text
next price = clamp(price × (1 + k × (sales ÷ target - 1)), floor, ceiling)

price = $400, k = 0.10, target = 20 sales a day
30 sales today: clamp(400 × (1 + 0.10 × 0.5), 300, 600) = $420
10 sales today: clamp(400 × (1 - 0.10 × 0.5), 300, 600) = $380
```

The floor and the ceiling do more work than k. A bot surge or a mention on a busy forum can triple sales for a day, and a rule without limits would chase it.

## Why it matters for pricing

Subscriptions blunt dynamic pricing. A customer who signs up at $29 keeps paying $29, so a rule only touches new checkouts, and a prospect who comes back to compare may find a different number than the one they remember.

Data decides which rules apply. New York's law defines personalized algorithmic pricing as dynamic pricing set by an algorithm that uses personal data, and requires a disclosure next to such prices ([N.Y. Gen. Bus. Law § 349-a](https://www.nysenate.gov/legislation/laws/GBS/349-A)). A rule driven only by demand or capacity is outside that definition. This is not legal advice.

A price test also changes prices, which makes it easy to confuse with dynamic pricing. Leverprice, for example, moves traffic between the prices in your range every few minutes while it learns, keeps each visitor on the price they first saw and ends with one winner you lock in for everyone ([how it works](https://leverprice.com/price-testing)). Its country prices stay put until you edit them, the standard price changes or exchange rates drift more than 10%.

## Common mistakes

- Changing the price between a visitor's first look and checkout, which reads as bait and switch.
- Running a rule without a floor and a ceiling.
- Reading a traffic spike as willingness to pay. A launch-day crowd is not your steady demand.
- Adding signals such as device or browsing history and turning the rule into personalized pricing without noticing.

## Related terms

[Personalized pricing](https://leverprice.com/glossary/personalized-pricing) varies the price by buyer instead of by moment, and [price discrimination](https://leverprice.com/glossary/price-discrimination) is the umbrella term for charging different prices. A [multi-armed bandit](https://leverprice.com/glossary/multi-armed-bandit) also moves traffic while it learns, and [price elasticity](https://leverprice.com/glossary/price-elasticity) is what a demand rule is guessing at.

## Frequently asked questions

### Is dynamic pricing legal?

Generally yes, when everyone sees the same price at the same moment. Rules tighten when personal data sets the price: New York requires a disclosure for algorithmic prices based on personal data.

### Do SaaS companies use dynamic pricing?

Mostly at the edges: usage-priced infrastructure such as spot compute, and launches or cohorts with a limited number of places. Subscription prices stay fixed once a customer signs up, which limits what a rule can do.

### How is dynamic pricing different from a price test?

Dynamic pricing keeps moving the price for everyone. A price test shows fixed prices to comparable visitors at the same time, measures [revenue per visitor](https://leverprice.com/glossary/revenue-per-visitor) for each, and stops once one price wins.
