Ecommerce & profit

Gross Margin Calculator

Calculate the revenue share left after cost of goods sold, before operating expenses.

Use gross margin for direct product economics. It is intentionally narrower than the existing profit margin, which deducts the complete supplied expense total.

Your inputs

Use one currency and a consistent period throughout. Currency results use your input currency, not a preset symbol. Enter decimals with a dot or comma, without thousands separators.

Net revenue for the same period as the goods cost; exclude pass-through taxes and refunds.

Direct product or service delivery costs included in gross profit; exclude marketing and overhead.

Your result

Result for the default inputs

Gross margin percentage

60%

Calculations run in this browser. Inputs are not sent to a server or added to a share link.

What the result means

A 60% result means 60% of revenue remains after direct goods costs. It does not pay for operating expenses, advertising, interest, or tax.

The formula

((Net revenue - cost of goods sold) / net revenue) * 100

Results are displayed to at most two decimal places. Calculations use the unrounded inputs.

A worked example

Put the formula to work

Net revenue (currency)
50,000
Cost of goods sold (currency)
20,000

Gross margin percentage: 60%

Revenue of 50,000 less 20,000 in direct goods cost leaves 30,000 gross profit, or a 60% gross margin.

How to use this calculator

  1. Choose a revenue period and matching direct-cost scope.
  2. Exclude operating expenses that are not direct goods costs.
  3. Subtract cost of goods sold from revenue.
  4. Divide gross profit by revenue and express it as a percentage.

Why this number matters

Gross margin isolates direct delivery economics so product mix and pricing changes can be reviewed before overhead.

Input definitions

Net revenue (currency)
Net revenue for the same period as the goods cost; exclude pass-through taxes and refunds.
Cost of goods sold (currency)
Direct product or service delivery costs included in gross profit; exclude marketing and overhead.

Assumptions and limitations

  • Direct-cost classification differs by business model and accounting policy.
  • It is not net profit margin and does not include operating overhead.
  • A blended result can conceal low-margin products or services.

Methodology

The default result and worked example use the same calculation functions as the interactive tool. The formula cannot verify the quality or scope of your source data.

Read our calculation methodology

Last updated .