Profit Margin Calculator

Calculate gross profit margin, net profit margin, markup percentage, margin-to-markup conversions, and target selling prices instantly.

$

Direct unit cost or wholesale purchase cost before markup.

$

Gross selling price or revenue charged to the customer.

Quick Examples:
$

Overhead, shipping, ad spend & taxes deducted from Gross Profit to compute Net Profit Margin.

Scales total revenue, total cost, and gross profit across multiple units.

Gross Profit Margin
40.00%
Share of Selling Price²⁄₅ of Price
Gross Profit
$40.00
Selling Price / Rev:$100.00
Markup on Cost
66.67%
Price Multiplier:1.67× Cost (²⁄₃)
Net Profit Margin
25.00%
Net Profit:$25.00

Revenue Composition Breakdown ($100.00 Total Revenue)

Markup vs. Margin: 66.67% Markup = 40.00% Gross Margin
COGS: $60.00 (60.00%)
Expenses: $15.00 (15.00%)
Net Profit: $25.00 (25.00%)
Step 1: Calculate Gross Profit (Revenue minus Cost)$100.00 − $60.00 = $40.00
Step 2: Calculate Gross Profit Margin (% of Revenue)($40.00 ÷ $100.00) × 100 = 40%
Step 3: Calculate Markup Percentage (% of Cost)($40.00 ÷ $60.00) × 100 = 66.67%
Step 4: Deduct Operating Expenses & Taxes ($15.00) for Net Profit Margin(($40.00 − $15.00) ÷ $100.00) × 100 = $25.00 (25% Net Margin)

About the Profit Margin Calculator

Our free Profit Margin Calculator helps business owners, e-commerce sellers, retailers, and financial analysts accurately measure profitability and set profitable prices. Switch seamlessly between four specialized modes: a Gross & Net Profit Margin Calculator (from Cost and Revenue), a Selling Price Calculator (from Cost and Target Margin %), a Markup Calculator (from Cost and Markup %), and a bidirectional Margin to Markup Calculator. Every calculation displays instant monetary breakdowns, exact markup vs. margin comparisons, and step-by-step formulas.

How to Use This Calculator

  1. 1Select your calculation mode: Gross & Net Margin, Selling Price (Target Margin), Markup Calculator, or Margin ⇄ Markup Converter.
  2. 2Enter your Cost of Goods Sold (COGS) and either your Selling Price / Revenue, Target Profit Margin (%), or Target Markup (%).
  3. 3Optionally enter Operating Expenses & Taxes (overhead, marketing, shipping, and corporate tax) and Units Sold to compute total Net Profit and Net Profit Margin (%) alongside Gross Margin.
  4. 4Review the instant Gross Profit Margin (%), Gross Profit, Net Profit Margin (%), Markup (%), revenue composition bar, and step-by-step formula breakdown.

Formula & Calculation Methodology

1. Profit Margin Formula (Gross Margin Formula): Gross Profit = Revenue − Cost of Goods Sold (COGS) Gross Profit Margin (%) = ((Revenue − COGS) ÷ Revenue) × 100 2. Net Profit Margin Formula: Net Profit = Revenue − COGS − Operating Expenses − Taxes Net Profit Margin (%) = (Net Profit ÷ Revenue) × 100 3. Selling Price Calculator Formula (from Target Margin): Required Selling Price = Cost ÷ (1 − (Target Margin % ÷ 100)) 4. Markup Calculator Formula: Markup (%) = ((Selling Price − Cost) ÷ Cost) × 100 Selling Price from Markup = Cost × (1 + (Markup % ÷ 100)) 5. Margin vs. Markup Conversion Formulas: Margin to Markup (%) = (Margin % ÷ (100 − Margin %)) × 100 Markup to Margin (%) = (Markup % ÷ (100 + Markup %)) × 100

Worked Example: Calculating Gross Margin, Net Profit Margin, Markup & Target Selling Price

Scenario: An e-commerce brand sources a product for a unit Cost (COGS) of $60.00, sells it for $100.00, and incurs $15.00 per unit in fulfillment and advertising operating expenses.

Step 1: Calculate Gross Profit: $100.00 − $60.00
$40.00 Gross Profit
Step 2: Apply the Gross Margin Formula: ($40.00 ÷ $100.00) × 100
40.00% Gross Profit Margin
Step 3: Calculate Markup Percentage on Cost: ($40.00 ÷ $60.00) × 100
66.67% Markup (⅔ of Cost)
Step 4: Deduct Operating Expenses ($15.00) for Net Profit Margin: (($40.00 − $15.00) ÷ $100.00) × 100
$25.00 Net Profit (25.00% Net Margin)
Conclusion: At a $100.00 selling price and $60.00 cost, the product generates $40.00 in gross profit (40.00% gross margin and 66.67% markup) and $25.00 in net profit (25.00% net profit margin).

Assumptions & Practical Limitations

  • Gross Profit Margin is always expressed as a percentage of Selling Price (Revenue), whereas Markup is expressed as a percentage of Cost (COGS).
  • For any positive cost and positive profit, Gross Profit Margin (%) is strictly less than 100% and always numerically lower than Markup (%).
  • When using the Selling Price Calculator with a target gross margin, divide Cost by (1 − Margin) rather than multiplying Cost by (1 + Margin)—multiplying by (1 + Margin) calculates a markup, which yields a lower actual margin than intended.
  • Monetary amounts are rounded to 2 decimal places for currency display while preserving full floating-point precision during intermediate division steps.

Frequently Asked Questions

The standard profit margin formula is: Profit Margin (%) = ((Revenue − Cost) ÷ Revenue) × 100. For example, if you sell an item for $100 that costs $60 to produce, your gross profit is $40 and your gross profit margin is ($40 ÷ $100) × 100 = 40%.