Calculate gross profit margin, markup percentage, and COGS ratio for any product or service. Three calculation modes for retailers, manufacturers, and service businesses.
Margin, markup & cost ratio for any product or service
Gross margin and markup measure the same spread between cost and price but from different angles — and confusing the two is one of the most common pricing mistakes small business owners make. Gross margin is calculated as (Revenue − COGS) / Revenue, expressing profit as a percentage of selling price. Markup is (Revenue − COGS) / COGS, expressing profit as a percentage of cost. A product that costs $60 and sells for $100 has a 40% gross margin but a 66.7% markup. Retailers, manufacturers, and service businesses need to track gross margin because it tells you how much of each revenue dollar is left to cover operating expenses — rent, payroll, marketing — before reaching net profit.
US industry benchmarks vary widely. Software companies often run 70%–80% gross margins. Grocery retailers are lucky to see 25%. A typical restaurant lands around 60%–70% on food alone but after labor and overhead, net margins collapse to 3%–5%. Knowing your margin baseline relative to your industry tells you whether your COGS is competitive and how much pricing flexibility you have. If a competitor undercuts you and you're already at a 30% margin, cutting price further is unsustainable — but at a 70% margin there may be room to compete aggressively on price without going negative.
40% gross margin = 66.7% markup. 50% margin = 100% markup. They're not interchangeable. Businesses that price on markup often discover their actual margin is lower than expected once revenue math is applied.
Software: 70%–80%. Healthcare services: 40%–60%. Retail apparel: 50%–55%. Grocery: 20%–30%. Manufacturing: 25%–40%. Knowing your benchmark tells you whether your business model is structurally profitable.
To hit a 50% gross margin, divide COGS by 0.5 — not 1.5. A product costing $40 needs to sell for $80 (not $60) to achieve 50% margin. This mistake costs businesses thousands in missed revenue every year.
Gross margin expands when you reduce COGS without cutting price. Renegotiating supplier contracts, reducing waste, or improving production efficiency all raise margin. A 5-point margin improvement on $1M revenue is an extra $50,000 in gross profit.
Gross margin is the share of revenue left after the direct cost of producing what you sold, and it is the first real signal of whether a business model works. Everything else — salaries, rent, marketing, interest — has to come out of it. The persistent confusion is between margin and markup: margin divides profit by the selling price, markup divides the same profit by cost. A 50% markup is a 33.3% margin, and pricing a business as though they were the same is a reliable way to run out of money.
Gross profit = Revenue − COGSGross margin % = (Gross profit ÷ Revenue) × 100Markup % = (Gross profit ÷ COGS) × 100where:
Assumptions: Only direct costs belong in COGS. Classifying overhead there flatters operating expenses and understates margin, which makes period-to-period comparison meaningless unless the treatment is consistent.
A small manufacturer books $480,000 of net sales for the year against $312,000 of direct costs.
Result35% gross margin — equivalently a 53.85% markup
To convert between them: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin). If overhead runs $140,000 a year, this business keeps $28,000 — a 5.8% net margin from a healthy-looking 35% gross.