Use this free margin calculator to determine profit margin, markup, selling price, cost price, or profit. Simply enter any two values—for example, the cost price and the selling price, or the cost price and your desired margin—and the calculator will compute the remaining values. This tool is useful for setting product prices, checking profitability, and planning discounts. No registration is required.
Fixed costs are things like rent and salaries. They are used to find your break-even point.
Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A 50% markup is only a 33.3% margin.
Choose what you want to find, then enter the values you know:
Calculate the margin: enter the cost price and the selling price.
Calculate the selling price: enter the cost price and your target margin (or profit percentage).
Calculate the cost price: enter the selling price and the margin.
Calculate the profit: enter the cost price and the margin, or the cost price and the selling price.
Click Calculate to view the margin, markup, profit, and selling price in relation to one another.
Gross profit in dollars
Profit margin as a percentage of the selling price
Markup percentage relative to the cost price
Selling price and cost price
Comparison between margin and markup percentage
The profit margin is the portion of the selling price that you retain as profit. It indicates how much of every euro (or dollar) in sales revenue remains after the costs of the product have been covered.
Profit = Selling Price − Costs
Margin (%) = (Selling Price − Costs) ÷ Selling Price × 100
A margin of 40% means that for every 100 dollars in sales revenue, 40 dollars is profit, while 60 dollars covers the costs.
A markup is the amount added to the cost price to arrive at the selling price. It is based on the cost price, not on the selling price.
Markup (%) = (Selling price − Cost price) ÷ Cost price × 100
These two are often confused, but they are not the same. For any given sale, the markup is always higher than the margin, because it is based on a smaller figure (the cost price).
Selling price
Cost
Profit ÷ Selling price
Profit ÷ Cost
“How much of the price is profit?”
“How much did I add to the cost?”
100%
Can be over 100%
Cost price $60, selling price $100:
Profit: $40
Margin: 40% ($40 ÷ $100)
Markup percentage: 66.67% ($40 ÷ $60)
20%
33.3%
50%
Equals markup
25%
42.9%
66.7%
100%
Formulas:
Margin = Markup ÷ (1 + Markup)
Markup = Margin ÷ (1 − Margin)
If you want a 30% margin but apply a 30% markup, you will fall short.
Cost price $60 with a 30% markup: selling price = $60 × 1.30 = $78. Margin = $18 ÷ $78 = 23.1%, not 30%.
Cost price $60 with a 30% margin: selling price = $60 ÷ (1 − 0.30) = $85.71. Margin = 30%.
The difference of $7.71 per sale adds up quickly. If you are aiming for a specific margin, use the margin formula.
Selling price − Cost
(Price − Cost) ÷ Price
(Price − Cost) ÷ Cost
Cost ÷ (1 − Margin)
Cost × (1 + Markup)
Price × (1 − Margin)
A product costs $60 and is sold for $100.
Your item costs $60 and you want a margin of 30%.
A store purchases an item for $50 and applies a 20% markup.
To achieve a 20% margin on the same item, the price would be $50 ÷ 0.80 = $62.50.
A product costs $40. You want to retain a 35% margin after deducting payment processing fees, where these fees amount to 3% of each sale.
If you do not take costs into account, you would set a price of $61.54, and your actual margin would drop to approximately 32%.
Cost price $60, selling price $100, margin 40%. You offer a 10% discount.
A 10% price reduction lowers the profit per sale by 25%. To achieve the same total profit, you would need to sell approximately 33% more units. Discounts are more costly than they appear at first glance.
A company has a revenue of $250,000.
$250,000
100%
$150,000
60%
$100,000
40% (gross margin)
$70,000
28%
$30,000
12% (operating margin)
$12,000
4.8%
$18,000
7.2% (net margin)
The three margins show where the money goes. Use our profit margin calculator for a more in-depth analysis.
This calculator calculates the gross margin for a single product. Use the other margin metrics to get a complete picture of your business.
There is no single, definitive answer, as margins vary significantly by sector. Some businesses, such as supermarkets, operate with tight margins and generate their profit through sales volume. Others, like software companies, may command high margins. Compare your margin against those of similar businesses in your sector and track how your own margin evolves over time. A margin considered ‘good’ for one company might be too low for another.
A gross margin considers only the cost price of the product. Before concluding that a price is “profitable,” you must take the following into account:
The calculator displays the margin based on the figures you enter; therefore, be sure to include all the costs you want to have factored in.
Some people who search for “margin calculator” are looking for a tool for margin trading. That is a different concept:
Trading on margin carries high risks, including the possibility of losing more than your initial investment. This calculator is not intended for trading purposes. Please consult your broker’s margin requirements for such calculations.
Subtract the cost price from the selling price, divide the result by the selling price, and multiply by 100. For a sale of $100 with a cost price of $60, the margin is 40%.
Margin is profit expressed as a percentage of the selling price. Markup is profit expressed as a percentage of the cost price. For any given sale, the markup is always higher than the margin.
Divide the cost price by (1 − margin). With a cost price of $60 and a margin of 30%, the price is $60 ÷ 0.70 = $85.71.
Multiply the cost price by (1 + markup percentage). With a cost price of $60 and a markup of 30%, the price is $78.
Margin = markup ÷ (1 + markup). A markup of 50% corresponds to a margin of 33.3%.
Markup = Margin ÷ (1 − Margin). A margin of 20% corresponds to a markup of 25%.
No. The margin is based on the selling price and therefore cannot exceed 100%. A markup, however, can be more than 100%.
This depends on your sector, business model, and costs. Compare yourself to similar companies and track your own progress over time.
The gross margin takes into account only the cost of the goods sold. The net margin subtracts all other expenses, interest, and taxes from that figure.
They reduce the profit per sale. A 10% discount on a product with a 40% margin brings the margin down to approximately 33%; to achieve the same total profit, you would then need to sell about a third more units.
This includes the costs you enter. Add fees, shipping costs, and any other expenses to the cost field if you want them to be taken into account.
Yes. It is free, requires no registration, and has no restrictions.
It uses standard formulas for margin and markup and is accurate based on the figures you enter. Please consult a qualified professional regarding tax or accounting decisions.
A few of the most-used tools in each hub.
This calculator is intended solely for educational purposes and estimation; it does not constitute accounting, tax, or financial advice. The results depend on the data you enter and may not account for all business expenses. Please consult a qualified professional before making decisions regarding pricing, accounting, or taxes.