Gross Margin Calculator
Calculate gross profit and gross margin percentage from revenue and cost of goods sold.
What Gross Margin Tells You
Gross margin is the percentage of revenue that remains after subtracting the direct cost of producing whatever you sell. It represents the "raw material" of profitability — before you pay salaries, rent, marketing, or taxes. A 40% gross margin means 40 cents of every revenue dollar is available to cover those overhead costs and generate profit.
Businesses with high gross margins have more flexibility. If your gross margin is 70%, a bad quarter of higher costs or lower sales is survivable. If your gross margin is 12%, almost everything has to go right for the business to work. This is why investors scrutinize gross margin so carefully — it reflects the fundamental economics of the product or service.
Gross margin also reveals pricing power and competitive position. Companies with strong brands, proprietary products, or significant switching costs typically command higher gross margins because customers are less price-sensitive. Commodity businesses and price-competitive markets naturally produce thin margins regardless of how well-run the business is.
What Belongs in COGS
COGS (Cost of Goods Sold) includes only the direct costs of producing what you sell: raw materials, direct labor on production lines, manufacturing overhead directly tied to production, and inbound shipping. It does not include sales salaries, marketing spend, office rent, or executive compensation — those are operating expenses.
For service businesses, COGS typically includes the direct cost of delivering the service: consultants' billable hours, support staff serving customers, direct software costs. For e-commerce, COGS includes product cost, fulfillment fees, and payment processing fees but not advertising.
The distinction matters because misclassifying expenses between COGS and operating expenses distorts gross margin and makes it harder to benchmark against industry peers or diagnose business problems. A company that buries sales team salaries in COGS will show artificially low gross margins and inflated operating efficiency.
Industry Gross Margin Benchmarks
Gross margins vary dramatically by industry. Software and SaaS companies typically achieve 70-90% gross margins because the marginal cost of delivering software to one more customer is near zero. Professional services firms (consulting, legal, accounting) see 50-70%. E-commerce varies widely from 20-50% depending on product category.
Manufacturing businesses typically see 20-40% gross margins depending on product differentiation. Retail grocery operates on 20-30% gross margins but compensates with high volume and inventory turnover. Restaurants achieve 60-70% gross margin on food cost alone, though overall business margins are much thinner after labor and overhead.
The most important comparison is within your specific industry. A 30% gross margin is excellent for a hardware manufacturer but concerning for a SaaS company. Context and trend matter more than the absolute number — improving gross margins over time signals operational leverage and pricing power.