Discount, Margin & Markup Calculator

$

Sticker price before the discount

Discount %

%

Or enter any percent 0–100

Margin vs markup

Enter any two — the third solves itself. Margin is profit÷price\text{profit} \div \text{price}; markup is profit÷cost\text{profit} \div \text{cost}.

Final price to the customer

What you paid to make or buy it

%

Profit as a share of price, 0–100

Sale price

You save
$20.00
Effective discount
20.00%
Margin %
30.00%
Markup
42.86%
Profit
$30.00

Discount, Margin & Markup Calculator — Sale Price & Profit

Twenty percent off $100 gives a sale price of $80. This free calculator turns an original price plus discount percent into the sale price, you-save amount and effective rate. Sellers can enter any two of selling price, cost and margin percent to calculate the third, with margin and markup shown side-by-side to distinguish the two.

Pick a preset from 5 to 50 percent or type any custom value, see the sale price update live, and test pricing scenarios in the margin section. Every calculation runs locally in your browser with no sign-up, and any scenario can be shared with a link.

The discount and margin formulas

sale=original×(1−rate)\text{sale} = \text{original} \times (1 - \text{rate})
savings=original−sale\text{savings} = \text{original} - \text{sale}
margin=profitprice\text{margin} = \frac{\text{profit}}{\text{price}}
markup=profitcost\text{markup} = \frac{\text{profit}}{\text{cost}}

Percent-off multiplies the original price by one minus the rate, so 20% off keeps 80% of the price. Margin and markup start from the same profit, price minus cost, but divide it by different amounts: margin by the selling price, markup by the cost. Because cost is lower than price on a profitable item, markup is always the larger percentage.

Enter rates as percentages; the formulas use them as decimals, so 20% becomes 0.20. A 0% discount leaves the price unchanged.

How it works

  1. Enter the original price and pick a preset or custom discount percent.
  2. Read the sale price, you-save amount and effective discount.
  3. Sellers: enter any two of price, cost and margin percent.
  4. Compare margin vs markup side-by-side — same profit, different denominator.
  5. Edit any field; the stalest margin field re-solves, with a badge marking it.

Margin is profit÷PRICE\text{profit} \div \text{PRICE}, markup is profit÷COST\text{profit} \div \text{COST}

On price $100 with cost $70, profit is $30 either way — but margin is 30.00% while markup is 42.86%. Mixing the denominators is the #1 pricing error this tool prevents.

What this calculator leaves out

Each calculation applies one discount rate to one price. Sales tax, multi-item carts and coupon stacking are outside the calculator, and percentages accept any value from 0 to 100. Use the sales tax calculator to add tax to the discounted price.

Example

A jacket marked $80 at 25% off sells for $60, saving $20. If the shop takes another 10% off at the register, enter $60 with 10% and you pay $54. Together the two discounts take 32.5% off the original $80, slightly less than the 35% you get by adding the percentages, because the second one applies to an already reduced price.

On the seller side, suppose an item costs you $45 and you want a 40% margin. Enter the cost and margin, and the calculator solves the price at $75, a profit of $30. The same $30 is a 66.67% markup on cost. Pricing with a 40% markup instead would give only $63, which is a common way to undercharge.

Frequently asked questions

How is percent-off computed?

Sale price equals the original price times one minus the rate, so 20% off $100 is $80 and you save $20. The effective discount echoes the percent you entered. When two discounts apply one after another, multiply what remains: 20% and then 10% off leaves 72% of the price, which is 28% off in total.

Margin vs markup — what's the difference?

Both divide the same profit: margin by selling price, markup by cost. A 30% margin on $100/$70 equals a 42.86% markup — the tool shows both together.

How does any-two-solves-third work?

Give any two of price, cost and margin and the third is derived algebraically. The least-recently-edited field is the one that solves, and a badge marks it. For example, a $45 cost with a 40% margin solves to a $75 price.

Why can't margin be 100%?

A 100% margin would mean the item cost nothing. With any positive cost, solving for price divides by one minus the margin, which is zero, so there is no finite answer. The tool shows an unsolvable hint instead of a number.

How accurate is this calculator?

The math is exact to the cent for the steps described above. Real checkouts may add sales tax, apply stacked promotions in a different order or round each line separately. Compare with your receipt if a few cents matter.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
currencyISO 4217 code, for example USD or EURyour saved or detected currency
solve_forwhat to calculate: selling_price, cost, margin; give the other 2 valuesdefault margin
original_priceOriginal priceamount without a currency symbol; allowed 0–10000000required
discount_pctDiscount %percent: 6.5 means 6.5%; allowed 0–100required
selling_priceSelling priceamount without a currency symbol; allowed 0–10000000give 2 of selling_price, cost, margin_pct
costCostamount without a currency symbol; allowed 0–10000000give 2 of selling_price, cost, margin_pct
margin_pctMargin %percent: 6.5 means 6.5%; allowed 0–100give 2 of selling_price, cost, margin_pct

Examples

  • ?original_price=89.99&discount_pct=25
  • ?currency=EUR&original_price=240&discount_pct=15&selling_price=204&margin_pct=35

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="discount"][data-result-block="discount-margin"]