Gross Margin Calculator

Understand the spread between your pricing power and cost of goods sold in one clear gross margin percentage. Use it to benchmark profitability by product line, business unit, or entire company and spot where to improve pricing, cost structure, and unit economics.

By CalcMastery Editorial Team

Gross Margin Calculator

Calculate gross margin from Revenue and Cost of Goods Sold (COGS). See your gross profit, percentage, and a quick interpretation.

$

Total sales for the period after returns, allowances, and discounts.

$

Direct costs to produce goods/services sold (materials, direct labor, freight-in).

Enable to compare your gross margin to a benchmark percentage.

%

Target or peer gross margin to compare against.

Scenarios
Quick examples to see how business models affect gross margin.
Low-Margin RetailManufacturing (Typical)SaaS / SoftwareNegative Margin

Results

  • Gross Profit$
  • Gross Margin %
  • Category
  • Revenue$
  • COGS$
  • Benchmark Gross Margin %
  • Gross Margin − Benchmark %

Enter your inputs above to calculate the results.

What is Gross Margin?

Gross margin (gross profit margin) is the percentage of net revenue left after subtracting cost of goods sold (COGS).

It shows how efficiently a company turns sales into gross profit before operating expenses, and is a core signal of pricing power, cost discipline, and scalability in the value-creation chain.

Investors, lenders, and management track gross margin to compare profitability across products, business models, and competitors, and to assess whether there is enough spread to fund operating expenses, growth capex, and debt service.

Formula

In percentage terms, gross margin is:

Gross Margin = Revenue-COGS / Revenue × 100%

Where:

  • Revenue (Net Sales) = sales after returns, discounts, and allowances
  • COGS = direct costs tied to producing or delivering goods / services (materials, direct labor, manufacturing or service delivery costs)

Gross profit in currency terms is:

Gross Profit = Revenue-COGS

Example

A company reports:

  • Revenue (Net Sales): $100,000
  • Cost of Goods Sold (COGS): $60,000

Step 1 – Compute gross profit:

$100,000 − $60,000 = $40,000 gross profit.

Step 2 – Compute gross margin:

Gross Margin = $40,000 ÷ $100,000 × 100% = 40%.

A 40% gross margin means the company retains $0.40 of gross profit for every $1 of revenue to cover operating expenses, contribute to EBITDA and operating margin, and ultimately support ROIC and equity value creation.

How to Use the Gross Margin Calculator

Use this calculator to turn your revenue and COGS into a clear gross margin %, then compare it to a healthy benchmark range so you know if your pricing and direct costs are on track.

Enter your Revenue (Net Sales)

  • In the left input, type your total revenue for the period (after returns, allowances, and discounts).

Enter your Cost of Goods Sold (COGS)

  • In the right input, enter all direct product costs for the same period (materials, production, shipping-in, etc.).

Review the core results

  • The Results panel shows your Gross Profit and Gross Margin%. The margin is calculated as: Gross Margin(%) = Revenue-COGS / Revenue × 100

Interpret the “What It Means” section

  • Check the health label (e.g., “Healthy Margin”) and the category band (such as 40–60%) to quickly understand how strong your margin is and whether you should adjust pricing or costs.

Use scenarios, benchmarks, and reset

  • (Optional) Toggle “Compare to Benchmark” or use the “Scenarios” dropdown to compare your margin against target ranges, then hit “Reset” to clear the inputs and test a new revenue/COGS combination. You can also expand “Show charts (optional)” for a visual view of your margin over scenarios.

Frequently Asked Questions

How do I use this calculator to find my gross margin from revenue and COGS?

Enter your Revenue (Net Sales) and Cost of Goods Sold (COGS); the tool computes gross profit and gross margin % using

Gross Margin(%) = Revenue-COGS / Revenue × 100

and shows the results instantly.

What is a “good” gross margin and how do I read the category label (e.g., 40–60%)?

Many product and e-commerce businesses aim for gross margins around 40–60%, but “good” depends heavily on your industry; use the category band and benchmark toggle to see whether your margin looks weak, average, or strong for your target range.

Why is my gross margin different from my net profit margin?

Gross margin only looks at revenue minus COGS, while net profit margin also subtracts operating expenses, salaries, rent, marketing, interest, and taxes—so net margin is usually much lower.

How can this calculator help me improve pricing or reduce costs?

Change the Revenue or COGS inputs (for example, testing a higher price or a lower supplier cost) and watch how the gross margin % and category shift; use this to see what changes are needed to reach your target margin.

Sources & Methodology