CALCORA
Margin Calculator
Calculate gross margin, markup and profit from cost and selling price.
Margin is profit divided by selling price. Markup is profit divided by cost; they are different percentages.
Related calculators
ROI · Commission · Percentage
Worked example: margin versus markup
Suppose a product costs PKR 600 and sells for PKR 1,000 before expenses. Gross profit is PKR 400. Gross margin is 400 ÷ 1,000 × 100 = 40%, while markup is 400 ÷ 600 × 100 ≈ 66.67%. Both calculations use the same profit amount but different bases, so they answer different pricing questions.
What this result excludes
A gross margin calculation based only on cost and selling price does not automatically subtract rent, salaries, delivery, payment processing, returns, taxes or other operating costs. If those costs matter, distinguish gross profit from operating or net profit and include each cost in the appropriate financial model. For a sale price of zero, margin percentage is undefined; if selling price is below cost, the result is a loss rather than a positive margin.
Using margin to set a selling price
To target a margin rate, divide the cost by one minus the target margin expressed as a decimal. For example, a PKR 600 cost with a target gross margin of 40% implies a price of 600 ÷ 0.60 = PKR 1,000 before other expenses. Do not use cost × (1 + margin) for this calculation; that applies a markup to cost instead.
Break-even and target-profit context
Gross margin can help estimate how much of each sale remains after direct cost, but it is not by itself a break-even calculation. If fixed operating costs are PKR 100,000 and the contribution margin rate is 40%, a simplified break-even sales estimate is 100,000 ÷ 0.40 = PKR 250,000, assuming the rate remains stable and variable costs are already reflected. This is a different model from gross margin on one item.
Compare like with like
When comparing products, use the same cost definition and price basis. A margin before sales tax is not directly comparable to a margin calculated on a tax-inclusive selling price if the tax is collected on behalf of a government. State whether costs and prices include taxes, discounts and shipping so the percentage remains interpretable.
Gross margin versus markup
Gross margin expresses profit as a share of the selling price, while markup expresses profit as a share of cost. If an item costs $60 and sells for $100, gross profit is $40, gross margin is 40%, and markup is 66.7%. These percentages answer different questions and should not be used interchangeably when setting prices or comparing products. For a target margin, calculate the selling price from cost divided by one minus the target margin; adding the margin percentage to cost calculates a markup instead.