Percentage Calculator→Specialized Version
%

Margin Calculator

Calculate margins

32 is what % of 80
40%

Margin Calculator

Calculate profit margins from cost and selling price with precision. Understanding margins is essential for pricing strategies, profitability analysis, business planning, and comparing your performance against industry benchmarks. Whether you're a retailer, manufacturer, or service provider, profit margin calculations help ensure your business remains financially healthy.

Understanding Profit Margin

Profit margin expresses your profit as a percentage of the selling price (revenue). It answers the question: "For every dollar I earn, how much is actual profit?" This metric is crucial for investors, lenders, and business owners because it reveals operational efficiency and pricing power.

Types of Profit Margins

TypeFormulaWhat It Measures
Gross Margin((Revenue - COGS) / Revenue) × 100Production efficiency
Operating Margin(Operating Income / Revenue) × 100Operational efficiency
Net Margin(Net Profit / Revenue) × 100Overall profitability
Contribution Margin((Price - Variable Costs) / Price) × 100Per-unit profitability

Margin vs Markup: Critical Distinction

Many people confuse margin and markup—they're related but different calculations:

MetricBaseFormulaBusiness Use
MarginSelling PriceProfit ÷ Price × 100Financial reporting
MarkupCostProfit ÷ Cost × 100Pricing decisions

Margin and Markup Comparison

CostSelling PriceProfitMarginMarkup
$50$100$5050%100%
$60$100$4040%67%
$70$100$3030%43%
$75$100$2525%33%
$80$100$2020%25%
$90$100$1010%11%
Notice: 50% margin = 100% markup, but 50% markup = only 33% margin. This asymmetry catches many business owners off guard.

Industry Average Margins

IndustryGross MarginNet MarginNotes
Software/SaaS70-90%15-25%High margins, scalable
Retail (clothing)40-60%4-10%Inventory risk
Grocery25-35%2-3%High volume, thin margins
Restaurants60-70%3-9%Labor intensive
Manufacturing25-40%5-10%Capital intensive
Consulting50-80%15-30%Service-based
E-commerce40-60%5-12%Varies by category

Calculating Target Selling Price

To achieve a specific margin, use: Selling Price = Cost ÷ (1 - Target Margin %)

CostTarget MarginCalculationSelling Price
$5030%$50 ÷ 0.70$71.43
$5040%$50 ÷ 0.60$83.33
$5050%$50 ÷ 0.50$100.00
$10025%$100 ÷ 0.75$133.33

Implementation

``javascript function calculateMargin(cost, sellingPrice) { const profit = sellingPrice - cost; const margin = (profit / sellingPrice) * 100; const markup = (profit / cost) * 100;

return { cost: cost.toFixed(2), sellingPrice: sellingPrice.toFixed(2), profit: profit.toFixed(2), marginPercent: margin.toFixed(2) + '%', markupPercent: markup.toFixed(2) + '%' }; }

function priceForTargetMargin(cost, targetMarginPercent) { const sellingPrice = cost / (1 - targetMarginPercent / 100); return sellingPrice.toFixed(2); }

console.log(calculateMargin(60, 100)); // { cost: '60.00', sellingPrice: '100.00', profit: '40.00', // marginPercent: '40.00%', markupPercent: '66.67%' } ``

Improving Profit Margins

Increase margins by raising prices (if the market allows), reducing direct costs, negotiating better supplier terms, reducing waste, or shifting to higher-margin products. Even a 1-2% margin improvement can significantly impact profitability at scale.

Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit as a percentage of selling price: (Price - Cost) / Price. Markup is profit as a percentage of cost: (Price - Cost) / Cost. A 50% margin means you keep half the revenue. A 50% markup means you charge 1.5× your cost.

How do I convert markup to margin?

Margin = Markup / (1 + Markup). For 50% markup: 0.50 / 1.50 = 33.3% margin. For 100% markup: 1.00 / 2.00 = 50% margin.

What is a good profit margin?

It varies by industry. Software companies often have 70%+ margins. Grocery stores operate on 2-3%. A "good" margin beats your industry average and covers all operating expenses while leaving profit.

Related Tools

Explore other tools you might find useful:

More Percentage Calculator tools

You might also need