Build your retirement plan for free.Explore Plan Builder →

Gross Margin Calculator

Enter your net sales revenue and cost of goods sold (COGS) to calculate your gross margin percentage, markup, and break-even point — giving you a complete picture of your business profitability.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter Net Sales Revenue

    Enter the sales revenue amount for the period before subtracting Cost of Goods Sold (COGS).

  2. 2

    Enter Cost of Goods Sold (COGS)

    Include direct costs attributable to the goods sold, using the same period and currency as sales revenue.

  3. 3

    Review margin, markup, and break-even results

    The calculator subtracts COGS from sales and shows gross margin percentage, markup, COGS as a share of revenue, and the revenue amount equal to entered COGS.

Example Calculation

A business records $200,000 in net sales revenue and $120,000 in direct costs for the goods sold during the same period.

Net Sales Revenue ($)

200,000

Cost of Goods Sold (COGS) ($)

120,000

Results

Gross Margin

$80,000

Gross Margin %

40.00%

Markup Percentage

66.67%

COGS as % of Revenue

60.00%

Revenue After COGS

$80,000

Break-Even Revenue

$120,000

Tips

At $220,000 in sales, the margin rises to 45.45% if COGS stays $120,000

Change Net Sales Revenue from $200,000 to $220,000 to see the effect of increasing sales while holding direct costs constant.

At $140,000 in COGS, gross margin falls to 30%

Change Cost of Goods Sold from $120,000 to $140,000 while keeping sales at $200,000 to test the effect of higher direct costs.

A 50% margin requires COGS of $100,000 at $200,000 in sales

Change Cost of Goods Sold to $100,000 to compare a 50% gross margin with the entered cost structure.

What this calculator estimates

Gross margin is the amount of sales revenue left after subtracting the direct cost of the goods sold. This calculator also expresses gross margin as a percentage, calculates markup and the COGS share of revenue, and shows the entered COGS amount as a simple break-even revenue point.

Gross margin is not net profit: this calculation excludes operating expenses, financing costs, and taxes.

How the calculation works

Gross margin = Net sales revenue − COGS
Gross margin percentage = (Gross margin ÷ Net sales revenue) × 100
Markup percentage = (Gross margin ÷ COGS) × 100
COGS ratio = (COGS ÷ Net sales revenue) × 100

For the example, gross margin is $200,000 − $120,000 = $80,000. The gross margin percentage is ($80,000 ÷ $200,000) × 100 = 40%. Markup is ($80,000 ÷ $120,000) × 100 = 66.67%, and COGS is ($120,000 ÷ $200,000) × 100 = 60%.

The calculator's Break-Even Revenue card returns the entered COGS amount. It treats that amount as the revenue needed to match COGS, not as a complete business break-even point that includes fixed costs.

How sales and costs change the margin

Each row changes one input while holding the other constant. These scenarios show why revenue growth alone does not guarantee a higher margin.

Net sales revenue COGS Gross margin Gross margin %
$200,000 $120,000 $80,000 40.00%
$220,000 $120,000 $100,000 45.45%
$200,000 $140,000 $60,000 30.00%

If sales rise while COGS stays fixed, the margin percentage increases. If direct costs rise while sales stay fixed, the percentage falls. When both change, compare gross margin dollars and percentage together: dollars show the amount left for overhead, while the percentage shows how much of each sales dollar remains after COGS.

When to use a different calculator

Use consistent accounting inputs

Enter revenue and COGS for the same period, and apply the same accounting treatment to direct costs each time you compare results. The IRS discusses inventory and COGS reporting in Publication 334; financial statements also separate gross profit from later operating expenses, so do not use this result as a substitute for operating or net profit.

Frequently Asked Questions

What is gross margin?

Gross margin is sales revenue minus the direct cost of the goods sold. Gross margin percentage expresses that amount as a share of revenue, before operating expenses, interest, and income taxes.

How do I calculate gross margin percentage?

1. Subtract COGS from net sales revenue. 2. Divide the result by net sales revenue. 3. Multiply by 100 to express it as a percentage. If COGS exceeds sales, the percentage is negative.

What is the difference between gross margin and markup?

Gross margin divides gross profit by sales revenue, while markup divides gross profit by COGS. With the same sales and costs, markup percentage is usually higher than gross margin percentage because its denominator is smaller.

Does a positive gross margin mean the business is profitable?

No, a positive gross margin only means sales exceed the entered COGS. The result does not subtract rent, marketing, payroll outside direct production costs, interest, or taxes, so it is not net profit; the SBA's business-finance guidance covers broader financial records and planning.

What does Break-Even Revenue mean in this calculator?

It shows the entered COGS amount as the revenue level where sales equal those costs, assuming COGS stays fixed. If costs rise with each additional sale, this is not a full business break-even analysis because it excludes fixed operating expenses and changing costs.

Which costs belong in COGS?

COGS generally includes costs directly attributable to producing or acquiring the goods sold, but the exact treatment depends on the business and accounting method. The IRS explains inventory and cost-of-goods-sold reporting in Publication 334; use consistent accounting rules when entering costs.