Skip to main content

Margin, markup & price

Profit Margin Calculator: COGS, Revenue & Markup Solver

Calculate profit margins, markup, and selling prices from any two inputs. Compare gross vs net profit with operating expenses. Free 2026 business profitability calculator.

By Jeff Beem

Updated

01

Pick any two inputs

The calculator solves for the other two metrics from your selection.

Pick exactly two, order does not matter.

02

Values

$
$
03

Operating expenses (optional)

Leave at $0 to keep net equal to gross. Add overhead to see net profit and net margin below.

$

Shipping, marketing, rent, utilities, etc.

Gross marginStrong vs retail
50.00%
Gross profit
$50.00
Markup
100.00%
Net profit
$50.00
Net margin
50.00%
Markup vs margin
MetricValueFormula
Markup100.00%(R − C) / C
Margin50.00%(R − C) / R
Spread50.00%Markup > margin (same dollars)

Note: a 100.00% markup corresponds to a 50.00% margin. 100% markup (doubling cost) is a 50% margin.

Scale view (per unit revenue $100.00)
UnitsRevenueCostProfit
10$1,000.00$500.00$500.00
100$10,000.00$5,000.00$5,000.00
1,000$100,000.00$50,000.00$50,000.00
04

Charts

Revenue breakdown

Loading chart…

Margin vs markup

Loading chart…

100.0% markup50.0% margin

Margin Strategy 2026: Pricing for Profit

Master the art of pricing with strategic insights on margin optimization, common pricing mistakes, and volume scaling strategies.

Strategic Margin Insights

The Common Pricing Mistake

Most businesses add a percentage to cost instead of using the inverse formula.
Adding 30% to a $50 cost gives $65, but that's only a 23% margin, not 30%. Use the formula:
Selling Price=Cost1Margin/100\text{Selling Price} = \frac{\text{Cost}}{1 - \text{Margin}/100}
to hit your target. This mistake can cost thousands in lost profit over time.

Volume Scaling Strategy

Use the scale view to plan for growth.
If you make $20 profit per unit at 30% margin, selling 1,000 units generates $20,000 profit. But if operating expenses scale with volume, your net margin may drop. Always model different volume scenarios before committing to pricing.

Operating Expenses Impact

Don't ignore operating expenses when setting prices.
A 40% gross margin sounds great, but if operating expenses are 30% of revenue, your net margin is only 10%. Use the operating expenses toggle to see the real profitability of your pricing strategy.

Markup vs. Margin Confusion

100% markup = 50% margin.
Doubling your cost sounds like doubling profit, but it only yields a 50% margin, understand the difference when setting prices.

Profit Margin Calculator: Understanding COGS, Revenue & Markup

Calculate profit margins and markup percentages from any two inputs. Compare gross vs net profit with operating expenses and use scale view for volume planning.

What This Calculator Does

This profit margin calculator solves for cost, revenue, or margin percentage from any two of the three values. It shows both margin (profit as a percentage of revenue) and markup (profit as a percentage of cost) alongside dollar profit per unit. Toggle on operating expenses to compare gross vs. net margin, and use the scale view to project total revenue, cost, and profit at different sales volumes.
  • What You'll Get:
    Margin %, markup %, dollar profit per unit, and optional net margin after operating expenses. Scale view projects total revenue, cost, and profit at any sales volume.
  • Who It's For:
    Business owners setting prices, freelancers quoting projects, e-commerce sellers managing COGS, and anyone who needs to convert between margin and markup quickly.
  • Scope & Limits:
    Single-product margin analysis. Enter cost and revenue in the same currency. Operating expenses are entered as a percentage of revenue for net margin comparison.

How to Use This Calculator

Enter any two of the three core values. Cost (COGS), Revenue (Selling Price), or Margin percentage, and the calculator solves for the missing one. Toggle operating expenses to see net margin, and enter a sales volume to project total revenue, cost, and profit at scale.
  • Core Inputs (Any Two):
    Enter Cost and Revenue to find margin, or Cost and Margin to find the selling price, or Revenue and Margin to find cost. The calculator auto-detects which value is missing.
  • Margin & Markup Results:
    View profit margin (profit ÷ revenue × 100), markup (profit ÷ cost × 100), and dollar profit per unit side by side.
  • Operating Expenses:
    Toggle on and enter expenses as a percentage of revenue to see net margin after overhead costs like marketing, rent, and utilities.
  • Scale View:
    Enter a sales volume (number of units) to project total revenue, total cost, and total profit. Use this to model how margin translates to real dollar amounts at different scales.

Understanding Margin vs. Markup

The Fundamental Difference

Margin and markup are often confused but represent different calculations. Margin is profit as a percentage of revenue (selling price), while markup is profit as a percentage of cost. A 100% markup, doubling your cost, results in only a 50% margin.
  • Margin Formula:
    Margin=RevenueCostRevenue×100\text{Margin} = \frac{\text{Revenue} - \text{Cost}}{\text{Revenue}} \times 100
  • Markup Formula:
    Markup=RevenueCostCost×100\text{Markup} = \frac{\text{Revenue} - \text{Cost}}{\text{Cost}} \times 100
  • Key Insight:
    A 100% markup equals a 50% margin. A 200% markup equals a 66.7% margin.

Understanding this relationship is crucial for accurate pricing. Many businesses undershoot profit targets by confusing markup with margin.

Calculating Selling Price from Margin

The Inverse Pricing Formula

To find the selling price that achieves a target margin, use the inverse formula:
Selling Price=Cost1Margin/100\text{Selling Price} = \frac{\text{Cost}}{1 - \text{Margin}/100}

This ensures you hit your profit target rather than undershooting it by simply adding a percentage to cost.

  • Example 1:
    Cost = $50, Target Margin = 30%. Selling Price = $50 / (1 - 0.30) = $71.43
  • Example 2:
    Cost = $100, Target Margin = 40%. Selling Price = $100 / (1 - 0.40) = $166.67
  • Common Mistake:
    Adding 30% to cost ($65) only gives 23% margin, not 30%

Always use the inverse formula when setting prices based on target margins to avoid leaving money on the table.

Gross vs. Net Profit Margin

Understanding Margin Types

Gross margin represents profit after cost of goods sold but before operating expenses. Net margin accounts for all expenses. A business with 40% gross margin might have only 10% net margin after marketing, rent, and taxes.
  • Gross Margin:
    Profit after COGS / Revenue. Shows product profitability.
  • Net Margin:
    Profit after all expenses / Revenue. Shows true business profitability.
  • Operating Expenses:
    Marketing, rent, salaries, utilities, taxes reduce gross to net margin
  • Pricing Strategy:
    Always factor in operating costs when setting prices to achieve target net margins

Focus on net margin for long-term business sustainability, but monitor gross margin for product-level decisions.

Industry Margin Benchmarks (2026)

Sector-Specific Profit Margins

Profit margins vary significantly by industry. Understanding these benchmarks helps you assess whether your pricing strategy is competitive and sustainable.
  • Technology:
    Average 20% net margin (high gross margins, significant R&D costs)
  • Retail:
    Average 5% net margin (low margins, high volume model)
  • Manufacturing:
    Average 10% net margin (moderate margins, capital-intensive)
  • Services:
    Average 15% net margin (variable margins based on service type)
  • Finance:
    Average 25% net margin (high margins, regulatory costs)

Compare your margins against these benchmarks to assess your pricing strategy and identify opportunities for optimization.

FAQ

What is the difference between margin and markup?

Margin is profit as a percentage of revenue (selling price), while markup is profit as a percentage of cost. For example, a 100% markup (doubling the cost) results in only a 50% margin. Margin = (Revenue - Cost) / Revenue × 100, while Markup = (Revenue - Cost) / Cost × 100.

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

To find the selling price from cost and desired margin, use the formula: Selling Price = Cost / (1 - Margin/100). For example, if your cost is $50 and you want a 30% margin, your selling price should be $50 / (1 - 0.30) = $71.43.

What is a good profit margin for my business?

Profit margins vary by industry. In 2026, technology companies average around 20% net margin, retail averages 5%, manufacturing around 10%, services 15%, and finance 25%. Gross margins (before operating expenses) are typically higher. Use our calculator to compare your margin against industry benchmarks.

What is the difference between gross profit and net profit?

Gross profit is revenue minus cost of goods sold (COGS). Net profit is gross profit minus operating expenses like shipping, marketing, rent, utilities, and other overhead costs. Gross margin shows product profitability, while net margin shows true business profitability after all expenses.

How do I calculate gross profit?

Gross profit = Revenue - Cost of Goods Sold (COGS). Gross profit margin = (Gross Profit / Revenue) × 100. This represents profit before operating expenses like marketing, rent, and taxes. Net margin accounts for all expenses.

What is the relationship between markup and margin?

Markup and margin are inversely related. A 50% markup equals a 33.3% margin. A 100% markup equals a 50% margin. A 200% markup equals a 66.7% margin. The higher the markup, the lower the margin percentage, but both represent the same dollar profit.

How do operating expenses affect my profit margin?

Operating expenses reduce your gross profit to net profit. For example, if you have a 40% gross margin but 30% in operating expenses, your net margin is only 10%. Always factor in operating costs when setting prices to achieve target net margins.

What should I include in Cost of Goods Sold (COGS)?

COGS includes direct costs to produce or acquire the product: materials, labor, manufacturing overhead, and purchase price for resale items. It does not include operating expenses like marketing, rent, utilities, or administrative costs.

Sources & citations

References used for the calculation method and definitions. Links open in a new tab when available.

[1]
IRS Publication 334 – Tax Guide for Small Business

IRS publication for small businesses on income, deductible expenses, inventory, and figuring net profit, useful context for how revenue, cost of goods sold, and operating expenses flow into bottom-line margin.

Financial Estimation Note

General Projections: Results are mathematical estimates based on the rates and formulas currently loaded for this tool, including year-specific tax data where noted. They are intended for high-level planning only.

No Advice Provided: This site does not provide financial, tax, or legal advice. Using this tool does not create a client-advisor relationship with CalcRegistry.

Confirm Numbers: Financial laws change frequently. Please verify all results with a qualified professional (CPA, Financial Planner, or Lawyer) before making significant financial decisions.

© 2026 CalcRegistry Reference Last Formula Sync: May 2026Free Online Utility Tools