Skip to content

Gross Margin Calculator

Use this gross margin calculator to see what is left from your sales after paying for the goods themselves. Enter revenue and cost of goods sold, for a single product or a whole month, and it returns gross profit and gross margin as a percentage. It is the figure investors, lenders and your own accountant look at first, and this page calculates it privately in your browser.

FreeNo signupNothing uploaded or stored

Mode

Figures

Optional, for totals

Margin vs markup

Margin is profit as a share of the selling price; markup is profit as a share of the cost. Margin = markup ÷ (1 + markup). Markup = margin ÷ (1 − margin).

Margin= Markup
10%11.11%
15%17.65%
20%25%
25%33.33%
30%42.86%
40%66.67%
50%100%
60%150%
75%300%

Gross margin

-

Enter revenue above zero

Profit per unit

-

Price $0.00 − cost $0.00

Margin

-

Profit ÷ selling price

Markup

-

Profit ÷ cost price

Total for 1 unit

-

Revenue $0.00 − cost $0.00

Formula: Margin = ($0.00 − $0.00) ÷ $0.00 × 100

How to use the gross margin calculator

  1. Enter total revenue, or the selling price of one unit, in the "Revenue" box. Use sales before any tax you collect on top.
  2. Enter the cost of goods sold in the "Cost of goods" box. That means direct costs only: stock, materials, direct labour and freight, not rent or marketing.
  3. Read the gross profit in money and the gross margin as a percentage of revenue in the result panel.
  4. Compare periods by changing the inputs, for example last month against this month, to see whether the margin is drifting.

What to include

  • Revenue for the period or product, excluding sales tax collected
  • Cost of goods sold: materials, purchased stock, direct labour and inbound freight
  • Returns and refunds, which should be deducted from revenue first
  • Discounts given, which also reduce the real revenue figure
  • A consistent period, so you compare like with like
  • Overheads kept separate, because they belong in net margin, not gross

Gross margin formula and what counts as cost of goods

The formula is: Gross margin = (revenue − cost of goods sold) ÷ revenue × 100. The money figure, revenue minus cost of goods, is the gross profit. Say you type revenue of 48,000 and cost of goods of 31,200 for a month. Gross profit is 16,800, and 16,800 ÷ 48,000 × 100 gives a gross margin of 35 percent. The same formula works for a single item: a product that sells for 90 and costs 54 to buy in also has a 35 percent margin.

What goes into cost of goods is where businesses differ, and consistency matters more than the exact rule. A shop includes the purchase price of stock and the freight to get it in. A bakery includes flour, butter and the wages of the people who bake, but not the manager's salary. A service business might include subcontractors but not the office. Pick a definition, write it down, and use it every month, because the trend in gross margin is far more useful than any single reading. A margin that slips three points over a quarter usually means either supplier prices rose or discounting crept up.

Frequently asked questions

What is the difference between gross margin and gross profit?

Gross profit is a money amount, revenue minus cost of goods. Gross margin is that profit expressed as a percentage of revenue. This calculator shows both.

Is gross margin the same as net margin?

No. Net margin also subtracts overheads such as rent, salaries and advertising. Gross margin only removes the direct cost of what you sold, so it is always the higher of the two.

Can I use this for a service business with no stock?

Yes. Put the direct cost of delivering the service, such as freelancer fees or materials, in the cost box. If there are no direct costs, the gross margin is 100 percent and the useful figure is net margin.

Why is my gross margin negative?

Your cost of goods is higher than your revenue, so every sale loses money before overheads. Check the cost figure for one-off items that belong elsewhere, and if it is right, prices need to rise.

Do you keep the revenue figures I enter?

No. Nothing is uploaded or logged. The calculation happens in the page and your figures disappear when you close it.