What is gross profit margin?
Gross profit margin is the percentage of revenue left after subtracting the cost of goods sold (COGS). It tells you how efficiently your business turns sales into gross profit before overhead, marketing, and admin expenses are paid.
If you run a product-based business, e-commerce store, wholesale operation, restaurant, or manufacturing company, this is one of the most important profitability metrics to track. It helps you evaluate pricing, supplier costs, and unit economics quickly.
Gross profit margin formula
Gross Profit Margin (%) = (Gross Profit / Revenue) × 100
Example: if revenue is $50,000 and COGS is $30,000, gross profit is $20,000 and gross margin is 40%.
How to use this gross margin calculator
Step-by-step
- Enter your total revenue for the period.
- Enter your cost of goods sold for the same period.
- (Optional) Enter a target gross margin percentage.
- Click Calculate to view gross profit, margin, and markup.
The calculator also displays markup percentage, which is different from margin. Markup is based on cost; margin is based on revenue.
Margin vs markup (important difference)
Gross margin
Gross margin measures profit as a percentage of selling price (revenue). This is the common metric used in financial statements and performance dashboards.
Markup
Markup measures profit as a percentage of cost. It is frequently used for pricing decisions. A 50% markup does not equal a 50% margin.
- 50% markup means selling price is 1.5× cost.
- That equals about 33.33% gross margin.
Why gross profit margin matters
- Pricing power: Shows whether your pricing supports sustainable profits.
- Cost control: Highlights rising direct costs from suppliers or production.
- Trend tracking: Margin changes over time can reveal hidden issues early.
- Benchmarking: Helps compare your business with competitors and industry averages.
- Decision support: Guides product mix, discount strategy, and promotion planning.
Common mistakes when calculating gross margin
1) Mixing gross and net profit
Gross margin ignores operating expenses like rent, software, payroll for admin staff, and advertising. Net margin includes those.
2) Including the wrong costs in COGS
COGS should include direct costs tied to producing or delivering goods sold. Keep indirect overhead separate for clean analysis.
3) Comparing mismatched time periods
Revenue and COGS must come from the same period (same month, quarter, or year), or your result is misleading.
4) Ignoring product-level margin
Company-wide margin can look fine while individual products lose money. Use gross margin by SKU, category, or service line.
How to improve gross profit margin
- Increase prices where demand is less sensitive.
- Renegotiate supplier contracts and shipping rates.
- Reduce waste, defects, returns, and rework.
- Bundle high-margin products with lower-margin items.
- Shift marketing spend toward your highest-margin offerings.
- Automate purchasing and inventory controls to reduce stock loss.
Quick reference examples
Retail example
Revenue: $120,000, COGS: $78,000 → Gross profit: $42,000 → Gross margin: 35%.
Food business example
Revenue: $85,000, COGS: $51,000 → Gross profit: $34,000 → Gross margin: 40%.
Manufacturing example
Revenue: $350,000, COGS: $245,000 → Gross profit: $105,000 → Gross margin: 30%.
Final takeaway
Gross profit margin is one of the fastest ways to evaluate business performance. Use it regularly—monthly at minimum—to spot cost pressure, pricing problems, and opportunities to improve profitability. Pair this metric with operating margin and net profit margin for a complete financial picture.