Solvezi.com
Home
Tools
Blog
About
Contact
  1. Home
  2. Finance
  3. Margin Calculator

Margin Calculator

Calculate gross profit margin, revenue, cost, and markup percentage for your business pricing.

Related Tools

More in Finance

Salary CalculatorVAT CalculatorDiscount CalculatorSales Tax CalculatorProfit & Loss CalculatorMarkup CalculatorCAGR CalculatorFixed Deposit CalculatorRecurring Deposit CalculatorPPF CalculatorMutual Fund SIP CalculatorRetirement CalculatorCurrency ConverterGST CalculatorSIP CalculatorEMI CalculatorIncome Tax CalculatorROI CalculatorCompound Interest CalculatorSimple Interest Calculator
Explore Other Categories

Share

https://www.solvezi.com/finance-tools/margin-calculator

Solvezi.com

Solve Easy
Privacy PolicyTerms
© 2026 Solvezi.com. All rights reserved.

The price you paid to purchase the product

The price you sell the product for

Example: CP = $100, SP = $125
→ Margin = 20% (Profit = $25)

Calculate profit margin and selling price • Understand your profitability

Margin Calculator Guide: How to Calculate Profit Margin

Learn how to calculate profit margin, gross margin, and markup with our margin calculator. Understand the profit margin formula, margin vs markup, and pricing strategies for retail, e-commerce, manufacturing, and service businesses.

How to Calculate Profit Margin: Step-by-Step

1

Determine Cost Price

Total cost to acquire or produce the product

2

Determine Selling Price

Price at which you sell the product

3

Calculate Profit

Profit = Selling Price - Cost Price

4

Compute Margin

Margin = Profit / Selling Price × 100%

5

Calculate Markup

Markup = Profit / Cost Price × 100%

6

Interpret Results

Compare to industry standards and goals

What is Profit Margin?

Profit margin measures how much profit you keep from each dollar of revenue. It's calculated as:
Margin = (Selling Price - Cost Price) / Selling Price × 100%

Key Question:

"After paying for product costs, how much profit do I keep from each sale?"

Simple Example
Cost
$80
Profit
$20
Selling
$100
Margin = 20%

You keep $0.20 per $1 of revenue

Profit Margin Formula & Key Margin Formulas

Profit Margin

Margin = (SP - CP) / SP × 100%

Profit as % of selling price

$100 SP, $80 CP → 20% margin

Markup on Cost

Markup = (SP - CP) / CP × 100%

Profit as % of cost price

$100 SP, $80 CP → 25% markup

Selling Price from Margin

SP = CP / (1 - Margin%)

Find target selling price

$80 CP, want 20% margin → $100 SP

Profit Amount

Profit = SP - CP

Absolute profit per unit

$100 - $80 = $20 profit

Margin vs Markup: What's the Difference?

CostSellingMarginMarkupInsight
$80$10020%25%Margin always lower
$50$10050%100%Double the cost
$75$10025%33.33%Common retail ratios
$60$10040%66.67%Premium pricing

Key Insight: Margin is always lower than markup for the same numbers. A 25% markup equals 20% margin. Know which one you're using!

Typical Profit Margins by Industry

IndustryTypical MarginTypical MarkupNote
Grocery Stores2-5%2-5%High volume, low margin
Restaurants5-15%25-50%Food cost sensitive
Retail Apparel10-20%50-100%Seasonal sales
Manufacturing15-25%20-35%Scale dependent
Software/SaaS70-85%N/AHigh margins
Professional Services20-40%25-50%Labor-based
Electronics10-15%20-30%Competitive market
Pharmaceuticals15-25%HighR&D costs

Margin & Markup Conversion Reference

Markup
10%
Margin
9.09%
Mgn = Mku/(1+Mku)
Markup
20%
Margin
16.67%
Mku = Mgn/(1-Mgn)
Markup
25%
Margin
20.00%
Both relate mathematically
Markup
33.33%
Margin
25.00%
Common retail relationship
Markup
50%
Margin
33.33%
Price is 1.5x cost
Markup
100%
Margin
50.00%
Price is double cost

Real-World Applications

Retail Pricing

  • Product pricing strategy
  • Discount calculations
  • Seasonal markdowns

Set competitive prices while maintaining profit

Manufacturing

  • Production cost analysis
  • Batch profitability
  • Pricing new products

Optimize production and pricing

E-commerce

  • Amazon FBA margins
  • Dropshipping profits
  • Marketplace fees

Calculate true net margins after fees

Wholesale/B2B

  • Volume discount pricing
  • Bulk order margins
  • Reseller pricing

Maintain margins across distribution

Restaurant Management

  • Menu pricing
  • Food cost percentage
  • Rent and labor inclusion

Price items for profitability

Freelancing/Services

  • Hourly rate calculation
  • Project pricing
  • Overhead allocation

Ensure profitable client work

Common Margin Calculation Mistakes

Confusing margin with markup

Margin is % of selling price; markup is % of cost price

Margin ≤ Markup for the same numbers

Forgetting all costs (hidden costs)

Include shipping, fees, overhead, labor in cost price

Calculate true net margin after all expenses

Using margin when markup is needed (and vice versa)

Use margin for profitability, markup for pricing from cost

Our calculator shows both to avoid confusion

Setting prices without competitor research

Consider market position and price sensitivity

Balance margin goals with market reality

Profit Margin Calculator FAQ

Q
How to calculate profit margin?

To calculate profit margin, use the formula: Profit Margin = (Selling Price - Cost Price) / Selling Price × 100%. Example: If you buy for $80 and sell for $100, profit margin = ($100 - $80) / $100 × 100% = 20%. This profit margin formula shows how much profit you keep from each dollar of revenue.

Q
How to calculate gross margin?

To calculate gross margin, use: Gross Margin = (Revenue - Cost of Goods Sold) / Revenue × 100%. Example: Revenue $100,000 and COGS $60,000 → Gross Margin = ($100,000 - $60,000) / $100,000 × 100% = 40%. Gross margin measures product-level profitability before operating expenses.

Q
How to calculate margin?

To calculate margin: (1) Find profit = Selling Price - Cost Price, (2) Divide profit by selling price, (3) Multiply by 100. Margin formula: Margin = (SP - CP) / SP × 100%. Example: Cost $80, Selling $100 → Margin = ($100 - $80) / $100 × 100% = 20%. Margin is always expressed as a percentage of selling price.

Q
What is the profit margin formula?

The profit margin formula is: Profit Margin = (Selling Price - Cost Price) / Selling Price × 100%. For net profit margin: Net Margin = Net Profit / Revenue × 100%. For gross profit margin: Gross Margin = (Revenue - COGS) / Revenue × 100%. All margin formulas express profit as a percentage of revenue.

Q
What is the difference between margin and markup?

Margin is profit as percentage of selling price: Margin = (SP - CP) / SP. Markup is profit as percentage of cost price: Markup = (SP - CP) / CP. For same numbers: Cost $80, Selling $100 → Margin = 20%, Markup = 25%. Margin is used for profitability analysis; markup for pricing from cost.

Q
How do I calculate selling price from cost and desired margin?

Selling Price = Cost Price / (1 - Desired Margin%). Example: Cost $80, want 20% margin → SP = $80 / (1 - 0.20) = $80 / 0.80 = $100. This margin calculation ensures you achieve exactly 20% profit margin on selling price.

Q
What is a good profit margin?

Good profit margins vary by industry: Grocery/Retail: 2-5% (volume business), Restaurants: 5-15%, Manufacturing: 15-25%, Software/SaaS: 70-85%, Professional Services: 20-40%. Compare to industry averages. Higher margin isn't always better — consider market position and competition.

Q
What's the difference between gross margin and net margin?

Gross margin = (Revenue - Cost of Goods Sold) / Revenue. Net margin includes all operating expenses (rent, salaries, marketing, taxes). Gross margin shows product profitability; net margin shows overall business profitability. Our margin calculator focuses on gross margin at unit level.

Q
How do discounts affect my profit margin?

Discounts directly reduce selling price, squeezing margin. Example: 20% margin product discounted 10% → new margin ≈ 11% (nearly halved). Calculate: New SP = Original SP × (1 - Discount%). New Margin = (New SP - Cost) / New SP. Always know margin impact before discounting.

Q
What is contribution margin and how is it different?

Contribution margin = Revenue - Variable Costs (per unit). It shows how much each sale contributes to fixed costs and profit. Contribution margin ratio = (SP - Variable Cost) / SP. Essential for break-even analysis. Our margin calculator focuses on overall margin including all costs.

Q
What is the minimum margin I should maintain?

Calculate break-even margin = Total Fixed Costs / Total Revenue. Your average margin must exceed this for profitability. For individual products, ensure margin covers variable costs plus fair share of fixed costs. Many businesses target 20-30% gross margin for sustainability.

Q
How do I calculate margin for services vs products?

For services, cost price includes labor hours × hourly rate + materials. For products, cost includes purchase + shipping + storage + handling. Service margins are typically higher (50-80%) due to lower variable costs. Both use the same margin formula: Margin = (Price - Cost) / Price × 100%.

History of Profit Margin Concepts

Adam Smith

1723-1790

Profit theory in economics

The Wealth of Nations (1776)

Peter Drucker

1909-2005

Management by objectives

Father of modern management

Michael Porter

1947-present

Competitive strategy frameworks

Harvard Business School professor

Did You Know? The concept of profit margin dates back to ancient merchants who needed to cover costs and earn a living. Modern margin analysis became systematic during the Industrial Revolution.

Smart Pricing & Margin Tips

Calculate margins on EVERY product, not just averages

Include ALL costs (shipping, fees, returns, payment processing)

Know your break-even margin before setting prices

Review margins quarterly — costs change over time

Use margin, not markup, when analyzing profitability

Test price elasticity — higher prices can mean higher total profit

Margin calculator and complete guide. How to calculate profit margin with the profit margin formula. Calculate gross margin, net margin, and markup. Understand margin vs markup, find selling price from cost and desired margin, compare industry standards, and optimize pricing strategies for retail, manufacturing, e-commerce, and service businesses.