Gross Margin Calculator

Calculate gross profit margin, markup percentage, and COGS ratio for any product or service. Three calculation modes for retailers, manufacturers, and service businesses.

💴

Gross Margin Calculator

Margin, markup & cost ratio for any product or service

$
$
%
$
Gross Profit
Gross Profit ($)
Gross Margin (%)
Markup (%)
Cost Ratio (%)

Gross Margin vs Markup: What US Businesses Need to Know

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.

↔️

Gross Margin vs Markup

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.

🏭

Industry Benchmarks

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.

💲

Pricing for Profit

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.

📋

COGS Control

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.

Formula & Logic

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) × 100

where:

Revenue
net sales after discounts and returns
COGS
cost of goods sold — materials, direct labour and freight in; not overhead
Gross profit
what is left to cover operating expenses

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.

Step-by-Step Example: $480,000 Revenue on $312,000 of COGS

A small manufacturer books $480,000 of net sales for the year against $312,000 of direct costs.

  • Revenue$480,000
  • COGS$312,000
  1. Find gross profit: $480,000 − $312,000 = $168,000.
  2. Divide by revenue: $168,000 ÷ $480,000 = 0.35.
  3. Convert: 0.35 × 100 = 35% gross margin.
  4. Now the markup on the same numbers: $168,000 ÷ $312,000 = 0.53846, or 53.85%.
  5. Note the gap: the identical $168,000 profit is a 35% margin but a 53.85% markup.

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.

Frequently Asked Questions

Gross margins vary widely by industry. Software/SaaS: 70-90%. Pharmaceuticals: 70-85%. Luxury goods: 50-70%. Retail: 25-50%. Restaurants: 60-70% (but net margins are much lower). Manufacturing: 20-40%. Grocery: 20-30%. Construction: 15-25%. A company-specific good margin should exceed industry average and cover operating expenses while leaving net profit. Comparing only within the same industry is meaningful.
Both measure profit but from different bases. Gross Margin = (Profit / Revenue) x 100 — profit as a percentage of selling price. Markup = (Profit / Cost) x 100 — profit as a percentage of cost. Example: Buy for $60, sell for $100. Gross Margin = $40/$100 = 40%. Markup = $40/$60 = 66.7%. A 40% margin ≠ 40% markup. To convert: Margin = Markup / (1 + Markup). Markup = Margin / (1 - Margin). Retailers often confuse these — always clarify which metric you are comparing.
Gross Profit = Revenue - Cost of Goods Sold (COGS). This does not include operating expenses like rent, salaries, marketing, or taxes. Net Profit = Gross Profit - Operating Expenses - Taxes - Interest. A business can have a healthy 60% gross margin but still lose money if operating costs are too high. Gross margin tells you if your product economics work; net margin tells you if your overall business model works.
Use "Find Revenue" mode: enter your target gross margin % and your COGS to find the minimum selling price. Example: COGS = $40, target margin = 60%. Required price = $40 / (1 - 0.60) = $100. Or use "Find COGS" to see the maximum you can spend producing a product to hit a target margin at a given price. This is essential for pricing decisions, supplier negotiations, and evaluating new product lines.

Related Calculators

✔ Reviewed by the True Value Calc editorial team📅 Last updated June 2026📚 Sources: Peer-reviewed formulas & official U.S. government data📑 How we build & check these