Navigation
Calculators Pricing Blog About Contact
Get Started
Get Started Login
📊

Margin Calculator

Calculate profit margin, gross margin, and markup percentage from cost and selling price.

Profit Margin measures what percentage of revenue is profit. Formula: Margin = (Revenue − Cost) / Revenue × 100
The amount you pay for the item
The price you sell the item for

What Is Profit Margin?

Profit margin is one of the most important financial metrics for any business. It tells you what percentage of your revenue actually becomes profit after accounting for costs. In simple terms, profit margin answers the question: for every dollar you earn, how many cents do you keep as profit?

Whether you run a small online store, a restaurant, or a multinational corporation, understanding your profit margin is essential for making smart pricing decisions, evaluating business performance, and planning for growth. A healthy profit margin means your business is generating enough revenue to cover costs and still produce a return. A thin or negative margin signals trouble — you may need to raise prices, cut costs, or rethink your business model entirely.

Profit margin is typically expressed as a percentage. For example, a 25% profit margin means that for every $1 in revenue, $0.25 is profit and $0.75 goes to covering costs. Investors, lenders, and business owners all use profit margin to gauge how efficiently a company turns revenue into profit.

Quick example: If you buy a product for $60 and sell it for $100, your profit is $40. Your profit margin is 40% — because $40 out of every $100 in revenue is profit. Your markup, on the other hand, is 66.67% — because $40 is 66.67% of your $60 cost.

Profit Margin Formula

The basic profit margin formula is straightforward. It calculates the percentage of revenue that remains as profit after subtracting costs:

Profit Margin (%) = ((Revenue − Cost) / Revenue) × 100
Standard profit margin calculation

Let's break this down with an example. Suppose you sell handmade candles. You spend $12 making each candle (materials, labor, packaging) and sell each one for $30:

  • Profit = $30 − $12 = $18
  • Profit Margin = ($18 / $30) × 100 = 60%

This means 60% of every dollar you earn from candle sales is profit. The remaining 40% goes toward covering the cost of producing the candle.

The markup formula is closely related but uses cost as the denominator instead of revenue:

Markup (%) = ((Revenue − Cost) / Cost) × 100
Markup calculation — based on cost, not revenue

Using the same candle example:

  • Markup = ($18 / $12) × 100 = 150%

So while the profit margin is 60%, the markup is 150%. This distinction is critical for pricing strategies and is one of the most common sources of confusion in business finance.

Margin vs. Markup: Key Differences

Margin and markup are two different ways of expressing the same profit in percentage terms. They use the same numbers but different denominators, which leads to very different percentages. Confusing the two is one of the most costly mistakes a business can make when setting prices.

Margin is the percentage of the selling price (revenue) that is profit. It answers: "What portion of my revenue is profit?"

Markup is the percentage of the cost that is added on top to arrive at the selling price. It answers: "How much did I add to my cost?"

Here is a comparison table to illustrate the relationship:

Cost Revenue Profit Margin Markup
$50$100$5050%100%
$60$100$4040%66.67%
$75$100$2525%33.33%
$80$100$2020%25%

Common mistake: If your target profit margin is 30%, you cannot simply add 30% to your cost. A 30% markup on a $70 item gives you $91 (margin = 23.1%). To achieve a 30% margin, you need to divide your cost by (1 − 0.30) = 0.70, giving a selling price of $100.

The conversion formulas between margin and markup are:

  • Margin to Markup: Markup = Margin / (1 − Margin)
  • Markup to Margin: Margin = Markup / (1 + Markup)

Types of Profit Margins (Gross, Operating, Net)

When people talk about "profit margin," they could be referring to one of several different types. Each measures profitability at a different stage of the business's income statement, and each provides unique insights into business health.

Gross Profit Margin

Gross profit margin measures the percentage of revenue remaining after deducting only the cost of goods sold (COGS) — the direct costs of producing or purchasing the products you sell. This includes raw materials, direct labor, and manufacturing overhead, but excludes operating expenses like rent, marketing, and administrative costs.

Gross Margin (%) = ((Revenue − COGS) / Revenue) × 100
Measures production efficiency

A high gross margin means you have plenty of revenue left over to cover operating expenses and still generate a net profit. Gross margin is particularly useful for evaluating how efficiently a company produces its goods or manages its supply chain.

Operating Profit Margin

Operating profit margin takes gross profit and further subtracts operating expenses — costs like rent, utilities, salaries, marketing, and depreciation. It shows how much profit remains from core business operations before interest and taxes.

Operating Margin (%) = (Operating Income / Revenue) × 100
Operating Income = Revenue − COGS − Operating Expenses

Operating margin is a strong indicator of management efficiency. It tells you how well the company controls its costs across the entire operation, not just production.

Net Profit Margin

Net profit margin is the bottom line. It accounts for all expenses — COGS, operating expenses, interest, taxes, and any other costs. It shows the percentage of revenue that ultimately becomes profit for the business owners or shareholders.

Net Margin (%) = (Net Income / Revenue) × 100
Net Income = Revenue − All Expenses (COGS + Operating + Interest + Taxes)

Net margin is what most people mean when they talk about a company's overall profitability. A company can have a high gross margin but a low net margin if operating expenses, interest payments, or taxes are significant.

What Is a Good Profit Margin?

There is no single answer to what constitutes a "good" profit margin — it depends heavily on your industry, business model, and stage of growth. However, some general benchmarks can help you evaluate your performance.

As a broad rule of thumb:

  • 5% net margin is considered low but acceptable in high-volume industries like grocery or retail.
  • 10% net margin is considered average and healthy for many industries.
  • 20%+ net margin is considered excellent and suggests a strong competitive advantage or premium pricing power.

Context matters: A grocery store with a 2% net margin might be performing very well for its industry, while a software company with the same margin would be considered underperforming. Always compare your margin to industry averages.

Gross margins tend to be significantly higher than net margins. For example, a manufacturing company might have a 45% gross margin but only a 12% net margin after accounting for all operating expenses, interest, and taxes. The gap between gross and net margin tells you how much of your gross profit is consumed by overhead and other costs.

Startups and high-growth companies sometimes operate with negative margins intentionally — they invest heavily in growth, customer acquisition, and infrastructure, accepting short-term losses in exchange for long-term market position. This strategy can work if the company has a clear path to profitability, but it requires careful management and sufficient funding.

How to Improve Your Profit Margin

Improving your profit margin comes down to two fundamental strategies: increasing revenue or reducing costs — or ideally, both. Here are specific, actionable approaches:

1. Raise Your Prices Strategically

Price increases are the most direct way to improve margin. Even a small price increase can have a dramatic effect on profitability. If your margin is 10% and you raise prices by 5%, your profit increases by 50% (assuming volume stays constant). Research your market to identify what customers are willing to pay, and consider value-based pricing — setting prices based on the value delivered rather than cost-plus formulas.

2. Reduce Cost of Goods Sold

Negotiate better rates with suppliers, buy materials in bulk for volume discounts, or find alternative suppliers who offer better pricing. Even small reductions in COGS can significantly boost gross margin, especially for high-volume businesses.

3. Improve Operational Efficiency

Streamline workflows, automate repetitive tasks, and eliminate waste. Lean manufacturing principles, process optimization, and technology investments can all help reduce operating costs without sacrificing quality.

4. Focus on High-Margin Products or Services

Not all products contribute equally to your bottom line. Analyze your product mix and focus marketing and sales efforts on your highest-margin offerings. Consider phasing out low-margin products that consume resources without generating meaningful profit.

5. Reduce Overhead Costs

Review your fixed costs regularly — rent, insurance, subscriptions, software licenses, and staffing. Remote work options, shared office spaces, and renegotiated contracts can reduce overhead significantly. Every dollar saved in overhead goes directly to your bottom line.

6. Increase Customer Retention

Acquiring a new customer costs 5 to 7 times more than retaining an existing one. By improving customer satisfaction, offering loyalty programs, and providing exceptional service, you reduce acquisition costs and increase lifetime value — both of which improve margins.

Average Profit Margins by Industry

Profit margins vary dramatically across industries. Understanding where your industry falls helps you set realistic targets and benchmark your performance against competitors.

Industry Gross Margin Net Margin
Software / SaaS70–85%15–30%
Financial Services60–80%15–25%
Healthcare / Pharma60–75%10–20%
Real Estate40–60%15–25%
Manufacturing25–45%5–12%
Retail (General)25–35%2–5%
E-commerce40–60%5–15%
Restaurants / Food Service55–65%3–9%
Construction15–25%2–6%
Grocery25–30%1–3%

Key insight: Industries with high gross margins but low net margins (like restaurants) tend to have significant operating costs — labor, rent, utilities, and food waste. Industries with both high gross and net margins (like software) benefit from low marginal costs — once the product is built, each additional sale costs very little.

When evaluating your business, compare your margins to others in the same industry. Being above the industry average suggests competitive advantages such as stronger brand recognition, better cost management, or superior pricing strategy. Being below average may indicate opportunities for improvement in pricing, operations, or cost control.

It is also important to track your margins over time. A declining margin trend — even if you are still above average — can signal rising costs, increased competition, or pricing pressure that needs to be addressed before it erodes profitability further. Regularly reviewing your financial statements and running margin calculations helps you stay ahead of potential issues and make data-driven decisions for your business.

Frequently Asked Questions

Profit margin is the percentage of revenue that remains as profit after subtracting costs. It is calculated by dividing profit (revenue minus cost) by revenue, then multiplying by 100. For example, if you sell a product for $100 and it costs you $60, your profit margin is 40%.
Margin and markup both measure profit but use different bases. Margin is profit divided by revenue (selling price), while markup is profit divided by cost. For example, buying at $50 and selling at $100 gives a 50% margin but a 100% markup. Margin is always lower than markup for the same transaction.
Use the formula: Profit Margin = ((Revenue - Cost) / Revenue) x 100. For example, if your revenue is $200 and your cost is $120, profit is $80. Margin = ($80 / $200) x 100 = 40%. You can also use our calculator above to compute it instantly.
A good net profit margin for a small business is typically between 7% and 10%. However, this varies widely by industry. Service-based businesses often achieve 15-20% or higher, while retail and food businesses may operate on margins as low as 2-5%. Compare your margin to your specific industry average.
To convert margin to markup, use the formula: Markup = Margin / (1 - Margin). For example, a 30% margin (0.30) converts to: 0.30 / (1 - 0.30) = 0.30 / 0.70 = 0.4286, or about 42.86% markup. To convert markup to margin: Margin = Markup / (1 + Markup).
Gross margin only subtracts the direct cost of goods sold (COGS) from revenue, showing production profitability. Net margin subtracts all expenses — COGS, operating costs, interest, and taxes — showing overall profitability. Gross margin is always higher than net margin because it excludes many expenses.
Common reasons for declining profit margins include rising supplier costs, increased competition forcing lower prices, higher operating expenses (rent, labor, utilities), inefficient operations, or a shift in product mix toward lower-margin items. Regularly review your costs, pricing strategy, and product mix to identify and address the root cause.

Embed this Calculator

Copy the code below and paste it into your website's HTML. Your visitors can use this calculator for free.

px × px
<iframe src="https://calculatorteam.com/embed/margin-calculator" width="100%" height="600" style="border:none;border-radius:12px;" loading="lazy" title="Margin Calculator"></iframe>

Report an Issue

Let us know what's wrong with this calculator. We'll review and fix it as soon as possible.