MyAICalc Logo
MyAICalc Free Online Calculators
Strategic Pricing Intelligence

Margin Calculator

Optimize your unit economics. Deconstruct the relationship between cost, price, and profit to reveal the true efficiency of your business model.

Dynamic Price Solver

Input

Provide **any two** values to solve the matrix. The calculator uses algebraic substitution to find the missing variables.

Business Economics

The Architecture of
Unit Profitability

Price is what the customer pays; Margin is what your business keeps. Mastering the relationship between your cost of goods sold (COGS) and your final retail price is the difference between a sustainable enterprise and a failing one.

Margin Logic

Margin is your profit as a percentage of the Revenue. If you sell an item for $100 and it costs $70, your margin is 30%. Most corporate financial reports focus on margin to show efficiency.

Markup Logic

Markup is your profit as a percentage of the Cost. In the same example ($70 cost, $100 price), the markup is 42.8%. Markup is the tool most used by retailers to set initial shelf prices.

The Pricing Trap

A common mistake is adding a 20% markup when you need a 20% margin. A 20% markup on a $100 cost results in a $120 price, which is only a 16.7% margin. This "Gap" can destroy your profitability if not understood.

The Margin Formula

To calculate margin based on revenue (R) and cost (C):

Margin = (Revenue - Cost) / Revenue * 100

The Markup Formula

To calculate markup based on cost (C) and revenue (R):

Markup = (Revenue - Cost) / Cost * 100

Standard Industry Benchmarks

While every business is unique, here are some typical gross margin targets:

  • SaaS (Software): 70% - 90% (Low variable costs)
  • Retail (Clothing): 40% - 60%
  • Restaurants: 60% - 70% (on food cost), but 10% - 15% net after labor/rent.
  • Manufacturing: 25% - 40%

Margin/Markup Conversion Table:

Target MarginRequired Markup
10%11.1%
20%25.0%
33.3%50.0%
50%100.0%
75%300.0%

Gross vs. Net Margin

Gross Margin only considers the cost of the product itself (COGS). Net Margin is what's left after you pay for rent, marketing, salaries, and taxes. A business with a 50% Gross Margin can still be unprofitable if its "Operating Expenses" are 60% of revenue.

Pricing Strategies

  1. Cost-Plus Pricing: You take your cost and add a fixed markup percentage. This is simple but doesn't account for what the market is willing to pay.
  2. Value-Based Pricing: You set the price based on the customer's perceived value. This often results in much higher margins.
  3. Competitive Pricing: You set your price based on what competitors are charging, forcing you to optimize your cost structure to maintain margin.

How the calculation works

Margin divides profit by the selling price. Markup divides the same profit by the cost.

Margin = (Price − Cost) ÷ Price Markup = (Price − Cost) ÷ Cost

A 40% margin is not a 40% markup. On a $100 price with $60 cost, margin is 40% and markup is 66.7%.

Worked example: $60 cost, $100 price

  1. Profit = $100 − $60 = $40.
  2. Margin = 40 ÷ 100 = 40%.
  3. Markup = 40 ÷ 60 = 66.67%.

Margin and markup on a $100 price

CostProfitMarginMarkup
$50$5050%100.0%
$60$4040%66.7%
$80$2020%25.0%

Frequently asked questions

What is the margin if an item costs $60 and sells for $100?▼
40%.
What is the markup on that item?▼
66.67%, because the $40 profit is divided by the $60 cost.
Which one do retailers usually mean by margin?▼
Profit divided by the selling price.