calcmintly← Back to all tools

Business

Gross Margin Calculator

Calculate gross profit, gross margin, and the cost-of-goods ratio from revenue and cost of goods sold.

Your numbers

Results update as you type. No calculate button. All calculations run locally in your browser.

Gross margin

—

Gross profit: —COGS ratio: —

—

Breakdown

Amount

Gross profit is revenue minus cost of goods sold only — operating expenses are not deducted here.

At a glance

The two bars together equal revenue. A longer gross-profit bar means a higher margin.

Margin at different revenue levels

RevenueGross margin

Cost of goods sold is held at the value above; only revenue changes across rows.

Formula

Gross profit = revenue − cost of goods sold. Gross margin = gross profit ÷ revenue × 100%. COGS ratio = cost of goods sold ÷ revenue × 100%.

Worked example

Revenue $100,000, cost of goods sold $60,000: gross profit = $100,000 − $60,000 = $40,000, gross margin = $40,000 ÷ $100,000 × 100% = 40.00%, and COGS ratio = 60.00%.

Scope and limitations

Gross profit excludes operating expenses such as payroll, rent, marketing, interest, and tax. A healthy gross margin can still accompany an operating loss once those costs are counted — use the profit calculator for the fuller picture.

FAQ

How does the gross margin calculator work?

Gross profit = revenue − cost of goods sold; gross margin = gross profit ÷ revenue × 100%. It measures what is left after the direct cost of what you sold.

What is the difference from net margin?

Net margin deducts everything, including operating expenses, interest, and tax. Gross margin stops at cost of goods sold, so it is higher and says nothing about overhead.

Can gross margin be negative?

Yes, if cost of goods sold exceeds revenue — each sale loses money before any operating cost is even counted. That needs a price or sourcing fix, not cost-cutting elsewhere.

What counts as cost of goods sold?

Direct costs of producing or buying what you sold: materials, direct labor, and wholesale purchase cost. Rent and marketing are operating expenses, not COGS.

Why does the margin change with revenue alone?

Because COGS is held fixed in the scenario table. In reality COGS usually rises with volume, so read that table as a what-if, not a forecast.

Is a higher gross margin always better?

Generally, but not at any price: raising prices to lift margin can cut volume enough to reduce total gross profit. Margin percent and total profit must be read together.

Related tools

Results are estimates only and do not constitute professional advice.