Profit Margin Calculator

Calculate gross profit margin, net margin percentage, and markup from cost and revenue. Free online profit calculator with revenue target equations.

Free, no sign-upRuns in your browserUpdated November 2026
Advertising, shipping, labor, and software overhead
Gross Profit Margin
40.0%
Gross Profit: $40.00 Equivalent Markup: 66.7%
Net Profit ($)
$25.00
Net Profit Margin
25.0%
Profit Multiple
1.67x
Break-Even Price
$75.00
Margin vs. Markup Pricing Matrix
Target MarginRequired PriceRequired Markup

How to use the Profit Margin Calculator

  1. Enter your Cost of Goods Sold (COGS) or unit production cost.
  2. Enter your retail Selling Price / Revenue.
  3. Optionally include overhead and Operating Expenses (ad spend, shipping, labor) to calculate net profit.
  4. Instantly compare your Gross Margin %, Markup %, Net Profit %, and examine the target margin pricing matrix.

The Vital Difference Between Profit Margin and Markup

One of the most catastrophic accounting blunders committed by new business owners, retail merchants, and e-commerce sellers is conflating profit margin with markup. While both terms describe the dollar spread between wholesale cost and retail selling price, they use completely different denominators:

Gross Profit Margin (%) = (Profit / Revenue) × 100
Markup (%) = (Profit / Cost) × 100

Consider an item that costs $50 to manufacture and sells for $100:

  • Profit: $100 - $50 = $50.00
  • Markup: ($50 Profit ÷ $50 Cost) = 100% Markup
  • Profit Margin: ($50 Profit ÷ $100 Revenue) = 50% Margin

If a business owner wanting a 50% profit margin mistakenly applies a "50% markup" to a $50 product, they will price it at $75, earning only a 33.3% margin. Over thousands of sales, this pricing error erodes profitability and leads to cash flow deficits.

Gross Profit vs. Net Profit Margin

  • Gross Profit Margin: Measures manufacturing and direct unit efficiency. It subtracts only the direct Cost of Goods Sold (raw materials, factory labor, packaging) from top-line revenue.
  • Net Profit Margin: The true bottom line. It subtracts all operating overhead, marketing acquisition costs, administrative payroll, office rent, software subscriptions, loan interest, and corporate income taxes.
Net Profit Margin (%) = [(Revenue - COGS - Operating Expenses - Taxes) / Revenue] × 100

Worked Example: E-Commerce Product Launch

Suppose an online retailer sources custom leather wallets for $25.00 each, sells them for $75.00, and spends $20.00 per unit on Facebook advertising and shipping packaging:

Financial MetricDollar ValueCalculationPercentage of Revenue
Retail Selling Price$75.00Top-line Revenue100.0%
Cost of Goods Sold (COGS)$25.00Wholesale manufacturing33.3%
Gross Profit$50.00$75.00 - $25.0066.7% Gross Margin
Operating / Ad Expenses$20.00CAC & Logistics26.7%
Net Profit$30.00$50.00 - $20.0040.0% Net Margin
Markup on Cost-($50 ÷ $25) × 100200.0% Markup

Frequently asked questions

What is the formula for calculating profit margin?
Profit Margin = ((Revenue - Cost) / Revenue) * 100. It represents the percentage of each sales dollar that the business keeps as earnings.
How does margin differ from markup?
Margin is calculated as profit divided by selling price (revenue). Markup is calculated as profit divided by cost of goods.
What is a good gross profit margin for a small business?
While margins vary across industries, a 40% to 50% gross margin is healthy for retail and manufacturing, while SaaS software companies frequently achieve 70% to 85% gross margins.
What is a healthy net profit margin?
Across the S&P 500, average net profit margins range between 10% and 15%. Anything above 20% is considered outstanding.
How do I calculate price based on a desired profit margin?
Target Price = Cost / (1 - Desired Margin as Decimal). For example, to earn a 40% margin on a $60 cost: $60 / (1 - 0.40) = $100.
Can profit margin ever exceed 100%?
No. Because profit cannot exceed total revenue (unless cost is negative), profit margin cannot exceed 100%. Markup, however, can be 200%, 500%, or higher.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.