💹 Finance Calculators

Margin Calculator

Calculate gross profit margin, markup and selling price from any two values. Four calculation modes, additional cost tracking, bulk product table, break-even calculator, and industry benchmark comparisons.

4 calculation modes Gross + net margin Break-even calculator Bulk product table
AdSense — 728×90 Leaderboard

Margin Calculator

Product cost & price
$
$
Additional costs (optional)
$
%
$
Settings
Gross profit margin
40.00%
Enter values and click Calculate
$0
Gross Profit
0%
Markup
$0
Net Profit (after add. costs)
0%
Net Margin
0%
ROI
$0
Additional Costs
0%Margin: 40%100%
Industry benchmarks (typical gross margin)
AdSense — 728×90 Leaderboard
💰
Need to calculate your annual income or salary?
The Annual Income Calculator handles gross and net income with allowances, bonuses, UAE gratuity, and tax estimates for 6 countries.
Annual Income Calculator →
⭐ Ratings

Rate this tool

4.9
★★★★★
Based on 27,845 ratings
5
25,617
4
1,392
3
557
2
279
1
0
Did this margin calculator help your pricing decisions?
Thank you for the feedback!
Features

Four calculation modes, additional costs, bulk product table and break-even calculator

Most margin calculators do one thing: divide profit by revenue. This calculator handles four real pricing scenarios, tracks additional costs like platform fees and shipping to show true net margin, lets you compare margins on a full product catalogue at once, and includes a break-even point calculator to determine how many units you need to sell to cover your fixed costs.

Four calculation modes
Margin mode (cost + price), Markup mode (cost + markup%), Find Price mode (cost + target margin), and Bulk mode for full product catalogues. Switch between all four with one click.
Gross and net margin
Add shipping, platform fees (% of price, like Shopify or Amazon FBA), and other per-unit costs. Results show both gross margin (before extra costs) and net margin (after everything) side by side.
Break-even calculator
Enter fixed costs, selling price and variable cost per unit to find the exact break-even unit count and revenue. Shows contribution margin, contribution ratio and margin of safety.
Bulk product table
Enter unlimited products in a table. Margin, markup and profit calculate instantly for each row. A summary shows average margin and total profit across the full catalogue.
Industry benchmark panel
Your margin is compared against typical benchmarks for 8 industries: grocery retail, restaurants, e-commerce, manufacturing, SaaS, consulting, jewellery and clothing. Know how you measure up.
VAT / tax-inclusive pricing
Toggle VAT / sales tax inclusion and enter your rate (e.g. 5% UAE VAT, 20% UK VAT). The calculator strips tax from the selling price before computing margin, showing the true ex-tax margin.
How to use

How to calculate profit margin

1
Enter cost and selling price (Margin tab)
In the Margin tab, enter what you pay for the product (cost/COGS) and what you sell it for (selling price). Click Calculate to see your gross profit margin, markup, ROI and profit in one click.
2
Add any additional per-unit costs
Expand the Additional Costs section to add shipping or fulfilment costs, platform or transaction fees (as a % of price, like Shopify's 2.9% or Amazon's 15%) and other variable costs. The result then shows both gross and net margin.
3
Use Find Price to reverse-engineer your selling price
Go to the Find Price tab. Enter your cost and the margin percentage you want to achieve. The calculator gives you the exact price you need to charge. Essential when building a price list for a new product range.
4
Audit your whole catalogue in Bulk mode
Switch to Bulk Products and add a row for each product. Enter cost and price for each. Margin, markup and profit auto-calculate. The summary shows your average margin and total profit so you can spot which products are dragging your profitability down.
Quick reference

Margin vs markup conversion table

Gross margin %Equivalent markup %Equivalent ROIHealth assessment
10%11.1%11.1%Low — typical for grocery/supermarkets
20%25.0%25.0%Moderate — typical for electronics retail
30%42.9%42.9%Good — solid for most product businesses
40%66.7%66.7%Strong — typical for fashion and e-commerce
50%100.0%100.0%Very strong — typical for branded goods
60%150.0%150.0%Excellent — typical for software and SaaS
70%233.3%233.3%Exceptional — luxury / high-IP products
80%400.0%400.0%Exceptional — software / information products
Comparison

LazyTools vs other margin calculators

Feature ⭐ LazyTools Omni Calculator Shopify CalculatorSoup
Gross margin calculation
Additional costs / net margin✔ Full
Bulk product table✔ Unlimited rows
Break-even calculator
Industry benchmarks✔ 8 industries
VAT / tax-inclusive pricingSeparate tool
Complete guide

Margin Calculator — Gross Profit Margin, Markup and Pricing Strategy Explained

Profit margin is the single most important number in your pricing strategy. It tells you what fraction of every sale you keep as profit after covering the cost of the product. Without knowing your margin, you cannot know whether your business is profitable, how much room you have to offer discounts, or whether a new product is worth selling at all. This calculator computes all the margin-related metrics you need: gross profit margin, net margin (after additional costs), markup percentage, ROI and break-even point.

What is gross profit margin?

Gross profit margin is the percentage of your selling price that is profit before accounting for operating expenses like rent, salaries and marketing. The formula is: Gross Profit Margin (%) = (Revenue - Cost) / Revenue x 100. For example, if you buy a product for $60 and sell it for $100, your gross profit is $40 and your gross profit margin is 40%. This 40% means that for every dollar of revenue, you keep 40 cents as gross profit. Gross margin does not account for the cost of running your business — only the direct cost of the product sold.

Margin vs markup — what is the difference?

Margin and markup are the same dollar profit viewed from different angles. Margin uses revenue as the base: a $40 profit on a $100 sale is a 40% margin. Markup uses cost as the base: a $40 profit on a $60 cost is a 66.7% markup. This distinction causes enormous confusion and real pricing mistakes. If a supplier says "50% markup" and you interpret it as "50% margin", you will underprice your products significantly. At a 50% markup, the selling price is cost x 1.5. At a 50% margin, the selling price is cost / 0.5 = cost x 2. For the same cost, a 50% margin requires charging twice the price of a 50% markup.

How to calculate gross margin percentage

To calculate gross margin percentage: (1) Find your cost of goods sold (COGS) — what you pay to manufacture or buy the product. (2) Find your revenue — the price you charge customers. (3) Subtract cost from revenue to find gross profit. (4) Divide gross profit by revenue and multiply by 100 to get the percentage. Example: cost = AED 150, selling price = AED 300. Gross profit = AED 150. Gross margin = 150/300 x 100 = 50%. This means you keep half of every sale. Note that gross margin is always less than 100% (you cannot have more profit than revenue) and always less than the equivalent markup percentage.

What is a good profit margin?

There is no universal answer — it depends entirely on the industry. Grocery retailers operate on 2-5% net margins and survive on volume. Software-as-a-service (SaaS) businesses regularly achieve 60-80% gross margins because marginal costs are near zero. For most product-based businesses, a gross margin above 30% is considered healthy, and a net margin above 10% after all operating costs is solid. The industry benchmark panel in this calculator compares your margin against 8 industry benchmarks. If your margin is below your industry average, focus on either reducing COGS or increasing your selling price.

How to calculate selling price from a target margin

To find the selling price that gives you a specific margin percentage, use the formula: Selling Price = Cost / (1 - Margin%). For a 40% target margin on a product costing $60: Selling Price = $60 / (1 - 0.40) = $60 / 0.60 = $100. This is the reverse margin formula and is extremely useful when building a price list for new products. Use the Find Price tab in this calculator to apply this formula instantly for any cost and target margin combination.

Break-even analysis for businesses

The break-even point is the number of units you must sell for your total revenue to equal your total costs — the point at which you make neither profit nor loss. The formula is: Break-Even Units = Fixed Costs / (Selling Price - Variable Cost per Unit). The denominator (Selling Price - Variable Cost) is called the contribution margin — how much each sale contributes toward covering fixed costs. If your fixed costs are $10,000 per month, your selling price is $100 and your variable cost is $60, your contribution margin is $40 and your break-even point is $10,000 / $40 = 250 units per month.

Frequently asked questions

The gross profit margin formula is: Gross Profit Margin (%) = ((Revenue - COGS) / Revenue) x 100. Where Revenue is the selling price and COGS (Cost of Goods Sold) is what you paid for the product. If you sell a product for $200 and it costs you $120 to buy or make, your gross profit is $80 and your gross profit margin is (80/200) x 100 = 40%. This means 40% of every sale is gross profit before deducting operating expenses like rent, marketing and salaries.
Gross margin deducts only the direct cost of goods sold from revenue. Net margin deducts all costs: COGS, operating expenses (rent, utilities, salaries), marketing costs, interest payments and taxes. Gross margin is useful for evaluating individual product profitability and pricing. Net margin shows the overall profitability of the business. A product with 50% gross margin may contribute to only 10% net margin after all the overheads of running the business are allocated. This calculator computes net margin per unit when you add additional per-unit costs such as shipping, platform fees and packaging.
Margin is always numerically lower than the equivalent markup because they use different denominators. Margin divides profit by revenue (a larger number). Markup divides profit by cost (a smaller number). The same dollar profit appears as a smaller percentage when divided by the larger revenue figure (margin) and a larger percentage when divided by the smaller cost figure (markup). For example, $40 profit on a $100 sale is a 40% margin but a 66.7% markup. As margin increases toward 100%, the equivalent markup increases toward infinity. A 90% margin equals a 900% markup.
ROI (Return on Investment) in product pricing is the same as markup: (Profit / Cost) x 100. It tells you how much return you get on each dollar invested in the product. If you spend $60 on a product and sell it for $100, your ROI is (40/60) x 100 = 66.7%. ROI and markup are the same number. The term ROI is more commonly used when evaluating marketing spend and capital investments, while markup is the standard term in retail and product pricing. Both measure profit as a percentage of cost invested.
VAT (Value Added Tax) is collected by you on behalf of the government and is not your income. If you sell a product for AED 105 including 5% UAE VAT, the actual revenue to your business is AED 100 (AED 5 goes to the government). Your margin should be calculated on the ex-VAT price (AED 100), not the VAT-inclusive price (AED 105). Using the VAT-inclusive price would overstate your margin. If your cost is AED 60 and you sell for AED 105 inc. VAT, your real margin is (100-60)/100 = 40%, not (105-60)/105 = 42.9%. Toggle "Price includes VAT" in this calculator to automatically strip VAT before computing margin.
For e-commerce businesses, a gross margin of 40-60% is generally considered healthy. However, after deducting platform fees (Amazon charges 8-20% of sales price, Shopify takes 2.9% + $0.30 per transaction), shipping costs ($3-15 per order), customer acquisition costs (typically $15-50+ per customer), returns (2-10% of sales) and packaging, the net margin often falls to 10-20%. Many e-commerce businesses with apparently healthy gross margins are unprofitable at the net level because of these deductions. Use the Additional Costs section of this calculator to factor in platform fees as a percentage and shipping as a flat cost per unit to see your true net margin.
Food cost percentage is the restaurant equivalent of COGS margin: it is the cost of ingredients divided by the selling price of the dish. If a dish costs $4 in ingredients and sells for $20, the food cost percentage is 4/20 = 20%, which equals an 80% gross margin. The industry standard for food cost percentage is 28-35%, meaning restaurants aim to keep ingredient costs to under a third of menu prices. However, food is only one cost: labour (30-35%), rent (5-10%) and other overheads mean restaurant net margins are typically only 3-5% despite 65-72% gross margins on food. Beverages have even higher margins, often 80%+ (wine and spirits at 500%+ markup).
In the Break-Even tab, enter three values: (1) Fixed costs per period — all costs that do not change with volume, such as rent, salaried staff, insurance and software subscriptions. (2) Selling price per unit — your average revenue per sale. (3) Variable cost per unit — your COGS plus any other cost that increases with each sale (e.g. packaging, shipping, commission). The calculator shows the break-even unit count (how many you must sell to cover fixed costs), the break-even revenue, the contribution margin per unit and the contribution ratio. You can also enter your expected monthly units sold to see your margin of safety — how far above break-even you are as a percentage.
Related tools

More free finance calculators