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.
Reviewed by the thecalcu.com team · Last updated July 19, 2026
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.
Why Use a Margin Calculator?
Setting prices without knowing your margin is guesswork. Many business owners add what feels like a comfortable percentage to their cost, without realising they may be significantly underpricing. A retailer who "marks up 40%" is actually working at a 28.6% gross margin, and once operating costs are subtracted, may be near break-even or loss.
Common use cases: pricing a new product, evaluating whether a discount still leaves acceptable margin, comparing margins across SKUs or product lines, and preparing for investor or lender conversations that require gross margin data.
Who Should Use This Calculator?
Retailers and e-commerce sellers, calculate margin per product after all variable costs (product + shipping + platform fees) before setting a listing price.
Service providers and consultants, understand the margin on individual projects or service packages.
Product managers, evaluate the margin impact of pricing changes across SKUs.
Finance and accounting teams, quickly verify gross margin figures in pricing models or budget reviews.
Entrepreneurs and startup founders, price new products and validate the business model against industry margin benchmarks.
What Insights Does the Margin Calculator Give You?
Gross Margin (%), the primary output. What percentage of every rupee of revenue is profit after covering direct costs.
Markup (%), the same profit expressed as a percentage of cost. Useful when communicating with suppliers or when costs are the starting point for pricing.
Profit Amount, the absolute rupee profit per unit or transaction.
Revenue, the selling price, shown for reference.
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%
Frequently Asked Questions