Skip to main content

Gross Margin Calculator

Calculate gross profit margin, markup percentage, selling revenue, and direct COGS with unit economics and batch volume projections.

Cost & Pricing Inputs Per-Unit Economics
$
$
%
%
units
%
GROSS PROFIT MARGIN
40.0%
Gross Profit: $40.00 / unit ($4,000.00 total) • Markup: 66.67%
Gross Margin
40.0%
$40.00 of $100.00
Markup on Cost
66.67%
$40.00 on $60.00 cost
Gross Profit (Batch)
$4,000.00
100 units sold
Net Operating Profit
$2,500.00
25.0% Net Margin
Financial Metric Per Unit Total Volume (100 units) % of Revenue
Selling Price (Revenue) $100.00 $10,000.00 100.0%
Cost of Goods Sold (COGS) $60.00 $6,000.00 60.0%
Gross Profit $40.00 $4,000.00 40.0%
Markup on Cost 66.67% Profit ÷ Cost
Operating Overhead (15%) $15.00 $1,500.00 15.0%
Net Operating Profit $25.00 $2,500.00 25.0%
Price-to-Cost Multiplier 1.67× Selling Price ÷ COGS
Revenue Allocation Donut Chart
40.0% GROSS MARGIN Revenue Allocation Breakdown $10,000.00 Cost of Goods (COGS) $6,000.00 (60.0%) Gross Profit $4,000.00 (40.0%) Operating Expenses (Overhead) $1,500.00 (15.0%) Net Operating Profit $2,500.00 (25.0%)
Gross Profit: Revenue ($100.00) − Cost ($60.00) = $40.00 per unit ($4,000.00 total)
Gross Margin: ($40.00 Gross Profit ÷ $100.00 Revenue) × 100 = 40.00%
Markup on Cost: ($40.00 Gross Profit ÷ $60.00 Cost) × 100 = 66.67%
Net Operating Income: $4,000.00 Gross Profit − $1,500.00 Overhead (15%) = $2,500.00 (25.00% Net Margin)

* Results are financial estimates for business planning and pricing strategy. They do not constitute formal tax, legal, or accounting advice.

Margin vs. Markup Explained
Gross Margin is profit as a percentage of Selling Price (Revenue), while Markup is profit as a percentage of Cost. A 50% markup yields only a 33.3% margin. Never confuse the two when calculating prices!
Pricing for Target Profitability
To achieve a desired target margin, use the formula: Price = Cost ÷ (1 − Target Margin). For example, to earn a 40% margin on a $60 item: $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100.00.
COGS vs. Operating Overhead
COGS includes direct variable costs: raw materials, packaging, inventory wholesale, and direct assembly labor. Overhead includes fixed costs: office rent, utilities, software subscriptions, insurance, and executive salaries.
The Hidden Danger of Price Discounts
If your business operates at a 30% gross margin, offering a 10% discount requires a 50% increase in sales volume just to make the exact same total dollar gross profit! Protect margins before cutting prices.
Average Gross Margin & Markup Benchmarks by Industry
Industry Sector Typical Gross Margin Equivalent Markup Primary Cost Drivers Pricing Strategy Focus
SaaS & Cloud Software 75% – 85% 300% – 567% Hosting, CDN, customer support High gross margins absorb heavy R&D and CAC
Professional & Legal Services 50% – 70% 100% – 233% Direct consultant billable wages Value pricing based on expertise and deliverables
Medical Devices & Pharma 55% – 75% 122% – 300% Sterile manufacturing, precision tooling Amortizes clinical trials and patent filings
E-Commerce & Consumer Retail (Default) 35% – 50% 54% – 100% Wholesale goods, packaging, freight Keystone pricing (100% markup on wholesale)
Industrial Manufacturing 25% – 35% 33% – 54% Steel, plastics, machining, direct labor Economies of scale and scrap reduction
Restaurants & Hospitality 28% – 35% 39% – 54% Food ingredients, beverages, spoilage Food cost target is strictly 28%–32% of menu price
Grocery & Supermarkets 20% – 25% 25% – 33% Wholesale food, refrigerated logistics Ultra-high inventory turns offset thin margins
Automotive Dealerships 12% – 18% 14% – 22% Manufacturer invoice wholesale Low new-car margins offset by parts and financing
About This Calculator

The Gross Margin Calculator helps entrepreneurs, finance executives, ecommerce store owners, and managers determine the exact profitability of their products and services. It calculates gross profit, margin percentage, and markup on cost, while factoring in batch sales volume and operating overhead.

Gross profit is the foundational money engine of every enterprise. It represents the residual revenue available after direct production costs are paid to fund operating overhead (rent, utilities, software, marketing) and generate clean net earnings.

Whether you are launching a new product, negotiating wholesale supplier agreements, or establishing retail pricing matrices, this tool provides instant clarity between margin and markup.

Mathematical Formulas & Illustrative Example

1. Core Financial Formulas

Gross Profit = Revenue − Cost of Goods Sold (COGS)
Gross Margin (%) = (Gross Profit ÷ Revenue) × 100
Markup (%) = (Gross Profit ÷ COGS) × 100
Revenue from Target Margin = COGS ÷ [1 − (Target Margin % ÷ 100)]
Revenue from Target Markup = COGS × [1 + (Target Markup % ÷ 100)]

2. Illustrative Example

Scenario: You purchase a consumer item from a manufacturer for $60.00 (COGS) and sell it at retail for $100.00. You anticipate selling 100 units, with estimated company overhead of 15%.

  • Unit Gross Profit: $100.00 − $60.00 = $40.00.
  • Gross Profit Margin: ($40.00 ÷ $100.00) × 100 = 40.00%.
  • Markup on Cost: ($40.00 ÷ $60.00) × 100 = 66.67%.
  • Batch Totals (100 units): Revenue = $10,000.00, COGS = $6,000.00, Gross Profit = $4,000.00.
  • Net Operating Profit: $4,000.00 − ($10,000.00 × 15%) = $4,000.00 − $1,500.00 = $2,500.00 (25.00% Net Margin).
How to Use This Calculator
  1. Select Calculation Mode: Choose Cost & Revenue (default), Cost & Target Margin, or Cost & Target Markup from the top tabs.
  2. Enter Values: Input your unit cost and price (or desired percentage) using numeric fields or interactive range sliders.
  3. Configure Volume & Overhead: Expand the options toggle to project batch totals and net operating margins.
  4. Analyze Charts: Toggle between the Revenue Allocation Donut and Margin vs. Markup Comparison visual charts.
Important Financial Terms

Cost of Goods Sold (COGS): The direct expenditures incurred in producing or sourcing a product, including raw materials, direct manufacturing labor, and inward freight.

Gross Profit: The net financial surplus generated after subtracting direct production costs from top-line revenue (Revenue − COGS).

Gross Margin: Gross profit expressed as a percentage of total selling revenue. It reveals how many cents of gross profit remain from every dollar earned.

Markup: The percentage amount by which the cost of a product is increased to arrive at the selling price (Profit ÷ Cost).

Operating Expenses (OPEX): Day-to-day indirect expenses required to run a business that are not directly tied to unit manufacturing (e.g., rent, legal, marketing, general administration).

Frequently Asked Questions

Why is Gross Margin always lower than Markup? +
Gross margin divides profit by the selling price (which is larger), whereas markup divides profit by the cost (which is smaller). Because the denominator for margin is larger, margin is always a lower percentage than markup. For example, doubling an item's cost (100% markup) results in a 50% gross margin.
Can Gross Margin ever be greater than 100%? +
No. In standard accounting, gross margin cannot exceed 100% because profit cannot be greater than the selling price itself unless the cost of goods sold is negative. Markup, on the other hand, can easily exceed 100%, 500%, or even 1,000% (common in software licenses, designer cosmetics, and fine jewelry).
What is a "good" gross margin for a small business? +
A healthy gross margin depends on your industry. A retail ecommerce business typically aims for 40% to 50% to absorb shipping, marketing, and returns. Manufacturing companies target 30% to 40%, while digital software companies often achieve 70% to 85%. If your gross margin is below 20%, your business will struggle to cover indirect overhead.
How do I convert a target margin into a selling price? +
Do NOT simply multiply cost by your margin percentage and add it—that calculates markup, not margin! To calculate selling price from a desired gross margin, divide the cost by one minus the margin decimal: Price = Cost ÷ (1 − Margin). To get a 30% margin on a $70 product: $70 ÷ (1 − 0.30) = $70 ÷ 0.70 = $100.00.
What is the difference between Gross Margin and Net Margin? +
Gross Margin reflects profitability after subtracting only direct production costs (COGS). Net Margin reflects bottom-line profitability after subtracting ALL expenses—including operating overhead, rent, marketing, administrative payroll, interest on loans, and income taxes.
✓ Copied to Clipboard!