# What is Gross margin? Meaning and formula

> Gross margin: Revenue minus the cost of the goods sold, as a share of revenue. It leaves out shipping, fees, returns and marketing, so for an online store it overstates what each order earns.

Formula: Gross margin = (revenue − cost of goods) ÷ revenue

## Check yours free

- [Shopify orders refund and margin analyzer](https://teraads.co/analyze/shopify-orders-csv)

Guide: [Contribution Margin for D2C Brands: CM1, CM2 and CM3 Explained](https://teraads.co/blog/contribution-margin-d2c.md)

## Related terms

- [Contribution margin](https://teraads.co/glossary/contribution-margin.md)
- [Net revenue](https://teraads.co/glossary/net-revenue.md)
- [Break-even CPA](https://teraads.co/glossary/break-even-cpa.md)
- [Unit economics](https://teraads.co/glossary/unit-economics.md)

---
Source page: https://teraads.co/glossary/gross-margin. Start free (no card): https://teraads.co/signup. MCP server for AI assistants: https://teraads.co/mcp.
