Margin Calculator

Calculate profit margin, cost margin, and markup percentages instantly with our free margin calculator. Enter your revenue and cost to see your margin breakdown.

SC
Written by Sarah Chen, CFP
Certified Financial Planner
JW
Fact-checked by Dr. James Wilson, PhD
Options Strategy Researcher
Profit & LossFact-Checked

Input Values

$

The total revenue or selling price of your product or service.

$

The total cost to produce or acquire the product or service.

Number of units sold (for total profit calculation).

$

Monthly or period fixed costs such as rent, salaries, and utilities.

Results

Profit Margin (%)
40.00%
Gross Profit
$40.00
Markup (%)66.67%
Total Revenue$100.00
Total Cost$60.00
Net Profit (After Fixed Costs)$40.00
Results update automatically as you change input values.

What Is Margin?

Margin is the percentage of revenue that remains after subtracting the cost of goods sold. It is one of the most important metrics in business because it tells you how much of every dollar in sales you actually keep as profit. A 40% margin means you keep $0.40 for every $1.00 in revenue, with the remaining $0.60 going toward costs.

The margin calculator above helps business owners, accountants, and financial analysts quickly determine their profit margin, markup percentage, and total profit. Whether you are pricing a single product or analyzing your entire business, understanding margin is critical for sustainable profitability.

i
Margin vs. Markup: Key Difference

Margin is based on selling price (profit / revenue), while markup is based on cost (profit / cost). A 50% markup is only a 33.3% margin. Confusing these two is one of the most common pricing mistakes in business.

How to Calculate Margin

Calculating margin is straightforward once you know the formula. You need just two inputs: your selling price (revenue) and your cost. The difference between these is your gross profit, and dividing that by revenue gives you the margin percentage.

Profit Margin Formula
Margin (%) = ((Revenue - Cost) / Revenue) × 100
Where:
Revenue = The selling price or total sales income
Cost = The cost of goods sold (COGS) or acquisition cost
Markup Formula
Markup (%) = ((Revenue - Cost) / Cost) × 100
Where:
Revenue = The selling price
Cost = The cost of the product or service
Selling Price from Target Margin
Selling Price = Cost / (1 - Target Margin / 100)
Where:
Cost = Your product or service cost
Target Margin = Your desired profit margin percentage
Margin Calculation Example
Given
Revenue
$100
Cost
$60
Units
1
Calculation Steps
  1. 1Gross Profit = $100 - $60 = $40
  2. 2Profit Margin = ($40 / $100) × 100 = 40%
  3. 3Markup = ($40 / $60) × 100 = 66.67%
  4. 4For every $1 in revenue, you keep $0.40 as profit
Result
A product sold for $100 with a $60 cost has a 40% profit margin and a 66.67% markup.

Margin vs. Markup Conversion Table

One of the biggest mistakes business owners make is confusing margin with markup. The table below shows how common margin percentages translate to markup percentages and vice versa. Use this as a quick reference when pricing your products.

Margin to Markup Conversion
Margin (%)Markup (%)Revenue per $1 CostProfit per $1 Revenue
10%11.1%$1.11$0.10
20%25.0%$1.25$0.20
25%33.3%$1.33$0.25
30%42.9%$1.43$0.30
33.3%50.0%$1.50$0.33
40%66.7%$1.67$0.40
50%100.0%$2.00$0.50
60%150.0%$2.50$0.60
75%300.0%$4.00$0.75

Types of Margin in Business

  • Gross Margin: Revenue minus COGS, divided by revenue. Measures production efficiency.
  • Operating Margin: Revenue minus COGS and operating expenses, divided by revenue. Shows operational efficiency.
  • Net Profit Margin: Revenue minus all expenses (including taxes and interest), divided by revenue. The bottom-line profitability metric.
  • Contribution Margin: Revenue minus variable costs, divided by revenue. Used for break-even analysis.
  • EBITDA Margin: Earnings before interest, taxes, depreciation, and amortization, divided by revenue.

Good Margin Benchmarks by Industry

Healthy profit margins vary significantly by industry. What is considered a strong margin in grocery retail would be considered poor in software. Understanding industry benchmarks helps you evaluate your business performance relative to peers.

Average Gross Margin by Industry (US Data)
IndustryAvg Gross MarginAvg Net MarginNotes
Software/SaaS70-85%15-25%High gross margins, significant R&D costs
Restaurants60-70%3-9%High food cost but labor and rent reduce net
Retail (General)25-50%2-5%Varies widely by product category
Grocery25-30%1-3%Very thin margins, volume-dependent
Manufacturing25-40%5-10%Capital intensive with variable material costs
Professional Services50-70%10-20%Low COGS, primarily labor costs
E-commerce40-60%5-10%Shipping and returns can reduce margins

How to Improve Your Profit Margin

Strategies to Increase Margin

1
Reduce Cost of Goods Sold
Negotiate better rates with suppliers, buy in bulk, or find alternative materials. Even a 5% reduction in COGS can significantly boost your margin.
2
Increase Prices Strategically
Test price increases on your least price-sensitive products first. A 10% price increase with the same costs can dramatically improve margin.
3
Eliminate Low-Margin Products
Review your product mix and consider dropping or repricing items with margins below your target. Focus resources on your highest-margin offerings.
4
Reduce Operating Expenses
Automate repetitive tasks, renegotiate leases, optimize staffing levels, and reduce waste to lower your overhead and improve net margin.
5
Increase Average Order Value
Bundle products, offer upsells and cross-sells, or introduce premium tiers. Higher revenue per transaction improves margin when fixed costs are spread over more revenue.

Using Margin for Stock and Options Trading

In the world of investing and options trading, margin has a different meaning. Trading margin refers to borrowed funds from a broker to purchase securities. A margin account allows you to buy stocks with leverage, amplifying both gains and losses. For options traders, margin requirements determine how much capital you must maintain in your account to hold certain positions.

Under Regulation T in the United States, the initial margin requirement for stock purchases is 50%, meaning you can borrow up to half the purchase price. Maintenance margin is typically 25%, though most brokers require 30-40%. If your account equity falls below the maintenance margin, you will receive a margin call requiring you to deposit additional funds or liquidate positions.

Frequently Asked Questions

A good profit margin varies by industry, but generally a net profit margin of 10-20% is considered healthy for most small businesses. Gross margins should be at least 50% for service businesses and 25-50% for product businesses. The SBA reports that the average small business net profit margin in the US is around 7-10%. Focus on improving margin incrementally rather than comparing to unrelated industries.

Sources & References

  • U.S. Securities and Exchange Commission (SEC) - Investor Education
  • Options Clearing Corporation (OCC) - Options Education
  • Chicago Board Options Exchange (CBOE) - Options Strategies
  • Hull, J.C. "Options, Futures, and Other Derivatives" (11th Edition, 2021)

Embed This Calculator on Your Website

Free to use with attribution

Copy the code below to add this calculator to your website, blog, or article. A link back to CoveredCallCalculator.net is included automatically.

<iframe src="https://coveredcallcalculator.net/embed/margin-calculator" width="100%" height="500" frameborder="0" title="Margin Calculator" style="border:1px solid #e2e8f0;border-radius:12px;max-width:600px;"></iframe>
<p style="font-size:12px;color:#64748b;margin-top:8px;">Calculator by <a href="https://coveredcallcalculator.net" target="_blank" rel="noopener">CoveredCallCalculator.net</a></p>