Discount and Margin Calculator: Know Your Lowest Safe Price Before Any Offer
A discount attracts customers, but it can eat the whole profit without you noticing. A seller announces 30 percent off and then discovers they are selling at cost or below. The discount and margin calculator on this site answers the question before you announce: what is the lowest safe price, and what is the biggest discount I can afford? Then it makes the offer poster. This article explains the problem and how to use the tool as its page and code work, without adding anything it does not do.

The problem: a discount with no calculation
Many small shop owners decide on a discount by feel: fifty percent looks like a strong offer. But a discount is calculated from the selling price, while profit is calculated after cost and fees, and those are different numbers. A discount can look reasonable on paper and still cut the profit to zero.
Analysis: a discount is a pricing decision, not only a marketing one, and it should not be made before you know where the profit ends. A designer who makes offer campaigns also benefits from understanding that limit.
What the tool does
According to the tool page, you enter the cost price, selling price and discount, and it shows the profit left per unit, the profit margin, the lowest safe price, the break-even price and the maximum discount you can give without a loss. Then you download an offer poster in Arabic or English, ready to publish.
The steps in the tool
- Enter the cost price, selling price and discount.
- Set the lowest margin you accept to learn the lowest safe price and maximum discount.
- Add fees, fixed costs and units if you want total profit and break-even units.
- Enter the shop and product names, pick a style and download the offer poster as PNG.
How the numbers are calculated
According to the tool's code, the price after discount is the selling price minus the discount. Fees, an optional percentage you type for payment or platform fees, are then deducted. Profit per unit is what is left after fees minus the cost. The profit margin is profit divided by the price after discount, while markup on cost is profit divided by cost, and the tool shows both.
The lowest safe price is the lowest price that gives the minimum margin you accept after fees; the tool's default minimum margin is 10 percent and you can change it. The break-even price is cost plus fees with no profit. The maximum safe discount is the discount that brings the selling price down to the lowest safe price, and the break-even discount is the one that brings it down to the break-even price.
A worked example
These are made-up numbers for illustration only. A product costs 60 and sells for 100 with a 20 percent discount, no fees and a 10 percent minimum margin. The price after discount is 80, profit per unit is 20, the margin is 25 percent and markup on cost is about 33.3 percent. Break-even price is 60. The lowest safe price is about 66.67, so the maximum safe discount is about 33.3 percent and the break-even discount is 40 percent.
If you announced this product at 35 percent off, the price would fall below the lowest safe price and a message would tell you the margin is below the limit you set. At 45 percent off you would sell below cost and a loss message would appear.
The effect of fees on the example
Suppose in the same example you pay 5 percent fees on every sale. The break-even price rises to about 63.16 instead of 60, the lowest safe price rises to about 70.18 instead of 66.67, and the maximum safe discount falls to about 29.8 percent instead of 33.3. A small fee changes the maximum discount, which is why the tool has a fees field and why you should not leave it empty if you sell through a platform.
Fixed costs and units
If you enter the expected units to sell, the tool shows total profit, which is profit per unit times units. If you enter fixed costs it shows break-even units, the number of units needed to cover them, rounded up. Break-even units do not appear if profit per unit is zero or less.
The status message
Under the numbers the tool shows one of three messages: healthy if the margin is above your minimum, a warning if it falls below it asking you to keep the price at or above the lowest safe price, and a loss message if after the discount you sell below cost. Your numbers are saved in your browser between visits.
The offer poster
The tool makes a 1080 by 1350 pixel PNG poster in three styles: green, dark and orange. It shows the shop name, product name, discount percentage, the old price crossed out, the new price and the amount you save, plus an optional extra line such as the offer ends Friday. The page stresses that the poster shows public numbers only, so cost and profit never appear on it.
Privacy and limits
The page says all calculation happens in your browser and nothing is sent to any server. The tool does not know your real costs, so results are only as good as the numbers you enter. If you forget costs such as shipping, packaging or platform fees, the margin will look better than reality, so include them in the cost or fees.
How to use it before any offer
- Work out your real cost per unit, including packaging.
- Enter fees if you sell through a platform or payment gateway.
- Set the lowest margin you accept, then look at the maximum safe discount.
- Keep the discount you announce below it with a safety margin.
- Download the poster and publish it after reviewing the public numbers on it.
For the Arabic-market designer
If you design offers for client shops, ask the client for the biggest discount they can afford before you design the poster, because big numbers on a poster are a commitment to customers. Try the tool here: https://mkelwayzy.vercel.app/en/margin-calculator/ and in Arabic: https://mkelwayzy.vercel.app/margin-calculator/
FAQ
How do I calculate profit margin after a discount?
Subtract the cost from the price after discount to get profit, divide by the price after discount and multiply by 100, per the page.
What is the difference between margin and markup?
Margin is calculated from the selling price, markup from the cost price. The tool shows both.
What is the lowest safe price?
The lowest selling price that gives the minimum margin you accept after fees.
Does the poster reveal my cost?
No. It shows the old and new price and the discount percentage only.
