How to Calculate Gross Profit: Formula, Margin & Examples
Gross profit is the first and most fundamental profitability metric in business. It tells you how much money remains after paying for the direct costs of producing your product or service — before overhead, taxes, or other expenses. Understanding gross profit is essential for pricing, cost control, and business health.
The Gross Profit Formula
Gross Profit = Revenue − COGS
Gross Profit Margin = (Gross Profit ÷ Revenue) × 100
Revenue
Total sales income before any deductions
COGS
Cost of Goods Sold — direct production costs only
Gross Profit
What remains to cover operating expenses and profit
Gross Profit Calculator
Gross Profit
$20,000
Gross Margin
40.0%
COGS Ratio
60.0%
Step-by-Step Examples
Example 1: E-commerce Store
Revenue
$80,000
COGS
$48,000
Gross Profit
$32,000
Margin
40%
COGS includes product cost, packaging, and shipping to customer.
Example 2: SaaS Company
Revenue
$200,000
COGS
$30,000
Gross Profit
$170,000
Margin
85%
COGS includes hosting, support staff, and third-party APIs.
Example 3: Restaurant
Revenue
$50,000
COGS
$18,000
Gross Profit
$32,000
Margin
64%
COGS is food and beverage cost only. Labor and rent are operating expenses.
Gross Profit Margin by Industry
Benchmarks vary by company size, pricing strategy, and market conditions.
Gross Profit vs Net Profit: What's the Difference?
| Metric | Formula | What It Shows |
|---|---|---|
| Gross Profit | Revenue − COGS | Production efficiency |
| Operating Profit | Gross Profit − Operating Expenses | Core business profitability |
| Net Profit | Operating Profit − Taxes − Interest | Overall bottom line |
Frequently Asked Questions
Related Guides
Calculate Your Gross Profit Now
Use our free profit calculator for instant gross profit, net profit, and margin results.
Open Profit CalculatorQuick Formula
Gross Profit = Revenue − COGS
Margin = (GP ÷ Revenue) × 100