Margin Calculator
MathCalculate gross profit margin, markup percentage, and profit amount from cost and selling price. Free margin calculator for business, retail, and e-commerce.
Gross Margin
What is a Margin?
A Margin Calculator computes gross profit margin — the percentage of revenue retained as profit after accounting for the direct cost of goods or services. Enter a cost price and selling price, and the calculator instantly shows the gross margin percentage, markup percentage, profit amount, and total revenue.
Margin and markup are two ways to express the same profit relationship, but they use different reference points. Margin expresses profit as a fraction of revenue (the selling price). Markup expresses profit as a fraction of cost. This distinction matters because a 40% markup does not produce a 40% margin — it produces a 28.6% margin. Confusing the two leads to systematic underpricing, which is one of the most common pricing errors in small business.
Gross margin is the starting point for pricing decisions, profitability analysis, and business benchmarking. It does not include operating expenses (rent, salaries, software), taxes, or depreciation — those are accounted for in the net margin calculation. Use the Profit & Loss Calculator for a more complete income statement view.
How to use this Margin calculator
- Enter the Cost Price — the total direct cost to acquire or produce one unit (product cost, shipping, packaging, marketplace fees).
- Enter the Selling Price — the price you charge the customer.
- The Gross Margin, Markup, Profit Amount, and Revenue appear instantly.
- Adjust the sliders to explore different pricing scenarios.
- Use the results to set minimum prices that meet your margin target.
Formula & Methodology
Gross Margin:Gross Margin (%) = (Selling Price − Cost) ÷ Selling Price × 100Markup:Markup (%) = (Selling Price − Cost) ÷ Cost × 100Profit Amount:Profit = Selling Price − CostConverting between margin and markup:Markup = Margin ÷ (1 − Margin) Margin = Markup ÷ (1 + Markup)Example: - Cost Price: ₹500 - Selling Price: ₹800 - Profit: ₹300 - Gross Margin: 300 ÷ 800 × 100 = 37.5% - Markup: 300 ÷ 500 × 100 = 60%