Profitability Metric

Gross Margin Calculator

Calculate gross profit margin from revenue and cost of goods sold. A key metric for pricing strategy and profitability.

Calculate Gross Margin
Choose what you want to calculate
$
$

Formula:

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

Results
Your gross margin analysis

Gross Margin

40.0%

Markup: 66.7%

Revenue

$100,000

COGS

$60,000

Gross Profit

$40,000

Profit Breakdown

Profit 40%
COGS 60%

Gross Margin vs Markup

Gross Margin

(Revenue - COGS) / Revenue × 100

Margin shows profit as a percentage of the selling price (revenue). It's the portion of each sale that is profit.

Example:

$100 sale - $60 cost = $40 profit

Margin = $40 / $100 = 40%

Markup

(Revenue - COGS) / COGS × 100

Markup shows profit as a percentage of the cost. It's how much you add on top of your cost to set the price.

Example:

$100 sale - $60 cost = $40 profit

Markup = $40 / $60 = 66.7%

Quick Conversion Table

Margin

20%

Markup

25%

Margin

33%

Markup

50%

Margin

50%

Markup

100%

Margin

60%

Markup

150%

Frequently Asked Questions

Gross Margin Formula and What COGS Includes

Gross margin is calculated as (Revenue - Cost of Goods Sold) / Revenue x 100. It measures the percentage of each revenue dollar remaining after covering direct production costs. A company with $500,000 in revenue and $300,000 in COGS has a gross profit of $200,000 and a gross margin of 40%. This means $0.40 of every dollar earned is available to cover operating expenses, interest, taxes, and net profit.

Cost of Goods Sold (COGS) includes only direct costs tied to producing or acquiring the goods sold: raw materials, direct labor (factory workers, not office staff), manufacturing overhead, freight-in costs, and direct production supplies. COGS does not include marketing, administrative salaries, rent for office space, or distribution costs to customers. For service businesses, COGS (sometimes called Cost of Services) includes direct labor hours and materials consumed delivering the service.

IndustryAvg. Gross MarginTypical COGS Components
SaaS / Software70-85%Hosting, support staff, licenses
Professional Services50-70%Consultant salaries, direct labor
Restaurants60-70%Food, beverage, kitchen labor
Retail (general)25-50%Product cost, shipping-in
Manufacturing25-35%Materials, factory labor, overhead
Grocery25-30%Product cost, spoilage

Gross Margin vs. Markup: The Critical Distinction

Gross margin and markup use the same numerator (gross profit) but different denominators. Margin divides by revenue (selling price); markup divides by COGS (cost). This produces very different percentages for the same transaction. A product costing $60 and selling for $100 has a gross margin of 40% ($40/$100) but a markup of 66.7% ($40/$60). Confusing the two leads to pricing errors.

The conversion formulas are: Margin = Markup / (1 + Markup) and Markup = Margin / (1 - Margin). A 50% markup equals a 33.3% margin. A 50% margin equals a 100% markup. Keystone pricing (100% markup, or doubling the cost) produces a gross margin of exactly 50%. This is a common retail benchmark, particularly in clothing and accessories.

Businesses that track margin when they should track markup (or vice versa) systematically misprice products. A retailer aiming for a "50% margin" who applies a 50% markup to a $40 item prices it at $60 (actual margin: 33%). To achieve a true 50% margin, the price must be $80 ($40 / (1 - 0.50)). This $20 difference per unit compounds across thousands of SKUs into significant revenue gaps.

Strategies to Improve Gross Margin Without Raising Prices

Supplier negotiation is the most direct path to margin improvement. Consolidating purchases with fewer suppliers often unlocks 5-15% volume discounts. Renegotiating payment terms (net-60 vs. net-30) can yield 2-3% early payment discounts. Switching to alternative suppliers or materials -- without sacrificing quality -- can reduce COGS by 8-12% in manufacturing and 5-10% in retail.

Product mix optimization shifts sales toward higher-margin items. Most businesses follow the 80/20 rule: 20% of products generate 80% of profits. Analyzing margin by SKU often reveals that 10-15% of products actually lose money when fully loaded costs are considered. Eliminating or repricing these loss leaders can improve overall gross margin by 2-5 percentage points.

Operational efficiency improvements include reducing waste and spoilage (restaurants lose an average of 4-10% of food costs to waste), improving production yields, investing in automation that reduces direct labor hours, and implementing just-in-time inventory to reduce carrying costs. A restaurant that reduces food waste from 8% to 4% on $400,000 in food costs saves $16,000 annually, directly improving gross margin by 1-2 percentage points on a $1M revenue base.

Simplify Your Business Accounting

Jupid is an AI-powered accountant for small businesses. Taxes, bookkeeping, and deductions — all in one place.