# Discount calculator: price after discount and % off between prices

> A free discount calculator for the price after a % discount, the % off between two prices, stacked discounts and the real discount in buy-X-get-Y offers.

This discount calculator works out four things: the price after a percentage discount, the discount between two prices, the price after one discount on top of another, and the real discount in "buy X, get Y" offers. Pick one, type your numbers, and see the result and the working as you type.

## How do I work out the price after a discount?

Multiply the price by the discount rate and divide by a hundred to get the discount amount, then take it off the price.

```text
Discount amount       = price × discount ÷ 100
Price after discount  = price − discount amount

Example: price 80, 25% off
Discount amount       = 80 × 25 ÷ 100 = 20
Price after discount  = 80 − 20       = 60
```

The calculator also tells you the share of the original price the customer pays, three quarters in the example.

## How do I work out the discount between two prices?

Take the new price off the old one, divide the difference by the old price, and multiply by a hundred.

```text
Discount = (old price − new price) ÷ old price × 100

Example: from 29.99 to 19.99
Discount = 10.00 ÷ 29.99 × 100 = 33.34%

From 80 to 60: discount  20 ÷ 80 × 100 = 25%
From 60 to 80: increase  20 ÷ 60 × 100 = 33.33%
```

The rate is always divided by the old price, so going back to the original price is not the same rate as the discount: the increase is divided by the smaller price, so it looks bigger.

## Is one discount after another the sum of the two?

No. The second discount is taken off the price the first one left, so the real discount is less than the two rates added together.

```text
Real discount = 100 × (1 − (1 − first ÷ 100) × (1 − second ÷ 100))

Example: price 100, 20% off, then 10% off
After the first   = 100 − 20 = 80
After the second  = 80 − 8   = 72
Real discount     = 28%, not 30%
```

The calculator takes up to three discounts in a row, shows the price after each step, and rounds it the way a till prints it.

## What is the real discount in a "buy X, get Y" offer?

Divide the value of what the customer takes free or discounted by the value of all the items at full price.

```text
Real discount        = extra items × their discount ÷ all items
Real price per item  = what the customer pays ÷ all items

Buy 2, get 1 free, at 10 an item:
pays 20 for 3 items worth 30, so 33.33% off and 6.67 an item

Buy 1, get the second at half price:
pays 15 for 2 items worth 20, so 25% off, not 50%
```

## How do I use the calculator?

Pick the kind of calculation, then type the numbers it asks for.

1. Pick "Price after a % discount", "Discount between two prices", "Discount on top of discount" or "Buy X, get Y".
2. Type the prices and rates. In "Buy X, get Y", leave the discount on the extra items empty when they are free.
3. Pick the rounding: two decimals for most currencies, or three if your currency is written with three.
4. Press "Copy the result" for text with the numbers and the working.

## What does Mujib do with offers and discounts?

The Mujib agent does not apply a discount rate to a price by itself, and does not mention an offer that is not in your knowledge. So write the price after the discount in your knowledge as it is, with the offer's start and end dates and its condition, and the agent reads it to your customers as you wrote it. When it finds no discount in your knowledge, it says it has no information about discounts. For subscription plans, you add the offer under **Offers & discounts** with its start and end dates, and Mujib works out the discounted price that the agent quotes as it is, as [Subscriptions](https://docs.mujib.ai/en/features/subscriptions/) explains. The details are in [writing a knowledge base](https://docs.mujib.ai/en/articles/knowledge-base-writing/) and [AI agent limits](https://docs.mujib.ai/en/agent/what-it-does-not-do/).

## Frequently asked questions

### How do I work out a percentage discount quickly?

Multiply the price by the discount rate and divide by a hundred to get the discount amount, then take it off the price. Or multiply the price straight away by what is left of a hundred per cent after the discount.

### Why do two discounts not add up?

Because the second discount is taken off the price after the first, which is lower than the original price, so it is worth less than adding the two rates suggests.

### Is "second item at half price" a half-price discount?

No. The customer pays for one and a half items and takes two, so the real discount on both together is a quarter of the price.

### Is a new price above the old one a negative discount?

It is an increase, and the calculator shows its amount and its rate of the old price. The increase from a discounted price back to the original is a bigger rate than the discount itself, because it is divided by a smaller price.

### Are the prices I type saved?

No. The calculator runs in your browser, so the prices are never sent to any server, and they are gone when you close the page.

---

Source: https://docs.mujib.ai/en/tools/discount-calculator/ · Last updated: 2026-11-05
