Margin Calculator
Calculate profit per sale, gross margin, markup, and the selling price needed to reach your target margin. Add extra costs and units sold for a clearer pricing estimate.
Enter your pricing details
This calculator treats other costs as per-unit costs and subtracts them from the selling price to estimate profit. For consistent comparisons, enter costs and selling price on the same tax basis.
Your margin estimate
Selling price breakdown
What is a profit margin?
Profit margin is the profit expressed as a percentage of the selling price. It shows what portion of revenue remains after subtracting the costs included in your calculation. For example, a product that costs ₹60 and sells for ₹100 earns ₹40 before any additional expenses not included in the cost.
Margin formula
Profit = Selling price − Total cost
Margin (%) = Profit ÷ Selling price × 100
Markup (%) = Profit ÷ Total cost × 100
Margin and markup describe the same profit using different bases. Margin divides profit by the selling price, while markup divides profit by cost. For a profitable sale, markup is therefore higher than margin.
How to calculate a target selling price
To find the price required for a target margin, use:
Target selling price = Total cost ÷ (1 − target margin ÷ 100)
For example, if the total cost is ₹60 and your target margin is 40%, the target selling price is ₹60 ÷ 0.60 = ₹100. A 40% markup would not produce a 40% margin.
How to use this calculator
- Choose your currency and enter the cost per unit.
- Enter the selling price and any additional per-unit costs.
- Enter a target margin to estimate the selling price needed to reach it.
- Enter the number of units sold to estimate revenue and total profit.
- Select Calculate margin to update the results.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by selling price. Markup is profit divided by cost. A ₹40 profit on a ₹100 selling price with ₹60 total cost equals a 40% margin and a 66.67% markup.
How do I calculate a 30% margin?
Divide the total cost by 0.70. If total cost is ₹70, a 30% target margin requires a selling price of ₹100 before any taxes or costs not included in the calculation.
Can margin be negative?
Yes. If total cost exceeds the selling price, the result is a loss and the margin is negative. The calculator shows that outcome instead of treating it as zero.
Does this include GST, marketplace fees, or tax?
No automatic tax calculation is included. Enter relevant costs in the other-cost field if you want them included in the per-unit estimate, and use a consistent tax basis for cost and selling price. Tax treatment depends on your situation.
What is a good profit margin?
There is no single ideal margin for every business. It depends on industry, operating expenses, competition, sales volume, and risk. Make sure your margin can help cover overheads and other costs that are not included here.
Disclaimer: This calculator is for general planning and educational use. It does not provide tax, accounting, or financial advice.