Gross Profit Margin Calculator
Enter your revenue and cost of goods sold (COGS) to instantly calculate gross profit, gross margin %, and markup %.
If you run a business, the gross profit margin calculation formula is one of the most important numbers you can track. It quickly tells you how much money is left after paying for the direct costs of your product or service.
What Is Gross Profit Margin?
Gross profit margin measures the percentage of revenue that remains after subtracting cost of goods sold (COGS). It focuses only on direct production or delivery costs—before overhead, taxes, interest, and other operating expenses.
Gross Profit Margin Calculation Formula (Step by Step)
1) Find your total revenue
Revenue is the full amount earned from sales during a specific period.
2) Calculate COGS
COGS includes direct costs required to produce or deliver your offering, such as:
- Raw materials
- Direct labor
- Manufacturing supplies
- Shipping-in or freight directly tied to products
3) Compute gross profit
4) Convert to gross margin percentage
Divide gross profit by revenue, then multiply by 100.
Example Calculation
Suppose a company reports:
- Revenue = $120,000
- COGS = $78,000
Then:
- Gross Profit = $120,000 − $78,000 = $42,000
- Gross Profit Margin = ($42,000 / $120,000) × 100 = 35%
This means the business keeps 35 cents of each sales dollar after direct costs.
Gross Margin vs Markup
Many people confuse gross margin and markup, but they are not the same:
- Gross Margin uses revenue as the denominator.
- Markup uses COGS as the denominator.
A 40% markup does not equal a 40% gross margin. Always use the right formula for pricing and reporting.
Why Gross Profit Margin Matters
- Pricing decisions: Helps determine whether your prices cover direct costs with enough room for profit.
- Business health: A shrinking margin can signal rising input costs or weak pricing power.
- Benchmarking: Lets you compare performance across products, time periods, or competitors.
- Investor confidence: Stable or improving margins often indicate efficient operations.
Common Mistakes in Margin Calculations
- Using net profit instead of gross profit.
- Including operating expenses inside COGS when they do not belong there.
- Forgetting to analyze margin trends over time.
- Mixing monthly revenue with quarterly COGS (inconsistent periods).
How to Improve Gross Profit Margin
Increase average selling price
Raise prices where you have value-based differentiation and strong customer demand.
Reduce direct costs
Negotiate supplier contracts, improve purchasing strategy, and reduce waste in production.
Optimize product mix
Promote high-margin items and reevaluate low-margin products that consume resources.
Improve operational efficiency
Automation, better inventory controls, and lower defect rates can all improve gross margin.
Quick FAQ
What is a good gross profit margin?
It depends on industry. Software companies often have very high margins, while retail and grocery tend to run lower margins.
Can gross margin be negative?
Yes. If COGS exceeds revenue, gross profit becomes negative and margin is below 0%.
How often should I calculate gross margin?
At least monthly, and ideally weekly for fast-moving businesses.
Final Takeaway
The gross profit margin calculation formula gives a clear, practical snapshot of your unit economics. Track it consistently, compare it across periods, and use it to improve pricing, purchasing, and product strategy. Small improvements in gross margin can create a major impact on long-term profit.