In B2B sales, I’ve seen more deals break down because someone misunderstood the difference between margin and markup than almost anything else. A discount that looked harmless suddenly wiped out profit. A quote that seemed competitive turned out unprofitable.
This calculator helps you see the real numbers instantly — the way professional sales teams do it.
At a Glance
- Convert margin ↔ markup instantly
- Auto-calculate selling price and profit
- Use as a gross margin calculator and profit margin calculator for various business scenarios
- Ideal for B2B sales, procurement, pricing teams
- Includes optional cost fields (freight, FX, commission)
- Mobile-friendly and fast
Margin & Markup Calculator
Margin & Markup Calculator
Results
This calculator is for educational use only. Always confirm final pricing and margins with your finance or controlling team.
What This Margin & Markup Calculator Does
This calculator helps you work out the correct selling price and profit levels instantly. It can also be used to calculate gross margin, gross profit, and profit margin for business analysis. It is designed specifically for B2B environments, where margins depend not only on product cost, but also freight, FX impact, commissions, and customer-specific terms.
Use it to:
- Convert margin to markup
- Convert markup to margin
- Calculate selling price automatically
- Add optional cost components
- Understand how discounts affect profitability
- Support effective pricing strategies and financial analysis
Whether you’re preparing a quote or checking profitability before negotiation, this tool gives you a clear and accurate result.
How to Use the Margin & Markup Calculator
Step 1: Enter Your Cost Price
Start with the total cost of goods sold (COGS). COGS includes production costs, manufacturing costs, and direct costs such as labor and materials. If applicable, include material cost, production cost, or purchase price. Several factors—such as bulk purchasing, vendor prices, and other variables—can influence the total cost, so it’s important to account for these when calculating COGS.
Step 2: Choose Margin or Markup
You can work in either direction:
- Enter the desired margin %, or
- Enter the markup %
You can also enter your desired profit margin or desired profit to calculate the necessary selling price.
The tool will calculate the equivalent value for the other.
Step 3: Add Optional Costs (If Relevant)
For advanced pricing, include:
- Freight or logistics
- FX rate adjustments
- Sales commissions
- Handling fees
- Operating costs (such as rent, wages, and utilities)
- Operating expenses (including marketing and administrative costs)
- Administrative costs
- Indirect costs (costs not directly tied to production, like office supplies or management salaries)
- Other expenses (such as taxes or insurance)
- Business expenses (all costs incurred in running the business, both direct and indirect)
These inputs provide a more realistic selling price by factoring in a comprehensive range of costs for better profitability analysis.
Step 4: See Your Final Selling Price
The calculator instantly shows:
- Selling price
- Profit
- Final margin
- Final markup
- Gross margin percentage
- Margin percentage
- Gross profit margin
Step 5: Adjust and Compare Scenarios
Play with discounts or different margin levels to see impact on profitability. You can also test how to maintain the same margin or achieve a high margin when costs or prices change, supporting the goal of maintaining profitability.
This is especially useful before customer meetings.
Margin vs. Markup: What’s the Difference?
Margin and markup are often used interchangeably in B2B sales — but they are not the same. Many people confuse margin with markup, which can lead to pricing errors and inaccurate profitability analysis.
Understanding the difference between markup vs margin is essential for accurate pricing. Margin calculation and the margin calculation formula involve subtracting costs from revenue, dividing by revenue, and multiplying by 100 to determine percentage profit, while markup calculations focus on the percentage added to cost. Knowing how to use both markup and margin helps you set prices, analyze business performance, and avoid common mistakes.
Margin
Margin shows how much of the selling price is profit. Margin represents the profit expressed as a percentage of the selling price, reflecting the portion of revenue remaining after subtracting costs like labor and materials. Margin relates to other financial metrics such as cost, revenue, and markup, helping you understand profitability and make informed pricing decisions. Gross margin is a commonly used margin metric in business analysis, measuring profitability before accounting for operating expenses.
Formula:Margin % = (Profit ÷ Selling Price) × 100
Markup
Markup shows how much profit you add on top of your cost.
Formula:Markup % = (Profit ÷ Cost) × 100
To calculate markup percentage, divide your profit by the cost and multiply by 100. You can also express markup as a decimal or as a ratio, depending on your needs. Using a markup chart can help you quickly visualize the relationship between markup and margin, and easily convert between them for pricing decisions.
Why Sales Teams Miscommunicate
A 30% markup is not a 30% margin. In many cases, teams think they have healthy profit — but the real margin is significantly lower.
Miscommunication often occurs when teams fail to correctly convert margin to markup (or vice versa), leading to costly errors in pricing and profit calculations.
Not sure about the terminology? Here’s the Sales Terminology Glossary: A Beginner’s Guide for B2B Professionals (plain English).
How to Calculate Margin (With Formula & Example)
Margin Formula
Margin % = (Selling Price − Cost) ÷ Selling Price × 100
Example
- Cost: €100
- Selling price: €150
- Profit: €50
Margin = 50 ÷ 150 × 100 = 33.3%
How to Calculate Markup (With Formula & Example)
Markup Formula
Markup % = (Selling Price − Cost) ÷ Cost × 100
Example
- Cost: €100
- Selling price: €150
- Profit: €50
Markup = 50 ÷ 100 × 100 = 50%
Margin & Markup Examples (Real B2B Scenarios)
Example 1: Industrial Product With Freight Cost
- Product cost: €80
- Freight: €20
- Total cost: €100
- Selling price: €160
→ Margin = 37.5%
→ Markup = 60%
Example 2: Price Including Sales Commission
- Cost: €120
- Commission: 5%
- Minimum target margin: 25%
→ Required selling price increases to maintain profit.
Example 3: FX Rate Impact (EUR → USD)
If USD weakens vs. EUR, pricing must adjust.
A 3–5% FX buffer is common in international B2B sales.
Common Mistakes in B2B Pricing
- Confusing margin with markup
- Misunderstanding what margin represents—margin represents the profit as a percentage of the selling price, showing the portion of revenue left after costs like labor and materials; confusing this can lead to pricing errors
- Applying discounts without recalculating profitability
- Forgetting to include freight or duties
- Not accounting for FX volatility
- Offering customer-specific terms without checking impact
- Using static pricing in volatile markets
- Assuming higher volume justifies lower margin without analysis
A small error in pricing can result in major profit loss across a full customer portfolio.
FAQ — Margin & Markup Calculator
Margin is based on selling price; markup is based on cost.
Margin is more accurate for profitability.
Markup is simpler for cost-plus pricing.
Depends on industry. Many sectors operate between 20–40%.
A 10% discount can reduce your margin far more than 10%.
Always recalculate before offering discounts.
Markup is useful for quick calculations or small product lines.
About This Tool
This calculator was created by YourSalesTutor to help sales professionals quote accurately and protect profitability.
It uses industry-standard pricing formulas and works for all typical B2B scenarios. No warranties or liability are assumed for the use of this calculator.
