Revenue $120,000, COGS $72,000
The preset: gross profit $48,000, a gross margin of 40%, and 60 cents of every sales dollar consumed by the goods.
Margin arithmetic · the denominator is the whole story
Gross margin is what is left of revenue after the cost of the goods themselves. Enter the revenue and the COGS for one line or several, and read the gross profit, the margin and the share of every sales dollar that the goods consumed.
| Line | Revenue | COGS | Gross profit | Margin |
|---|---|---|---|---|
| This line | $120,000.00 | $72,000.00 | $48,000.00 | 40% |
| Product 1 | $42,000.00 | $21,000.00 | $21,000.00 | 50% |
| Product 2 | $18,000.00 | $10,800.00 | $7,200.00 | 40% |
| Product 3 | $9,000.00 | $5,850.00 | $3,150.00 | 35% |
| Blended total | $189,000.00 | $109,650.00 | $79,350.00 | 41.98% |
Estimating tool only. Not accounting, tax or legal advice.
40%gross margin · $48,000.00 gross profit
Every number below is produced by the same engine that runs in the browser, at build time — so an example cannot drift from the calculator above.
The preset: gross profit $48,000, a gross margin of 40%, and 60 cents of every sales dollar consumed by the goods.
One bag at a time: $10.80 gross profit and a 60% gross margin. Gross margin is a per-unit idea as much as a yearly one.
$160,000 of gross profit. A low gross margin is not automatically bad; it is a statement about how much room the operating expenses have.
Gross margin is the money left from sales after the cost of the goods sold is taken out. AccountingCoach puts it as the amount remaining after a retailer or manufacturer subtracts its cost of goods sold from its net sales. As a percentage it is gross profit divided by revenue, and it answers a narrow, useful question: of every dollar that came in, how much survived the cost of the product itself.
The figure is deliberately blind to everything after the goods. Rent, salaries, marketing, interest and tax all sit below the gross margin line, which is exactly why the number is worth watching on its own: it is the pool that every other expense has to be paid from. A business with a 20% gross margin and 22% of revenue in operating expenses is losing money at the operating line no matter how good the top line looks.
The page also prints the COGS percentage, which is simply 100% minus the gross margin. On $120,000 of revenue and $72,000 of COGS the gross profit is $48,000, the gross margin is 40% and the goods consumed 60% of every dollar.
Gross margin percentage equals revenue minus COGS, divided by revenue, times one hundred. COGS percentage equals COGS divided by revenue, times one hundred. The two always add to 100%. Gross profit is the dollar amount, revenue minus COGS, and it is the figure that flows down into the operating profit.
What belongs in COGS is a judgement, not an arithmetic fact, and the number is only as good as that judgement. For a reseller it is the purchase price of the goods. For a manufacturer it is the materials, the direct labour and the factory overhead that go into the unit. Shipping to the customer is sometimes in COGS and sometimes in operating expenses, and the choice changes the gross margin without changing the cash.
The important thing is consistency. If the same costs are in the same place this month as last month, the trend is meaningful even when the absolute level depends on a convention. The page takes a single revenue figure and a single COGS figure per row and does not pretend to classify anything for you.
Most real businesses sell more than one thing, and the blended margin is not the average of the individual margins — it is weighted by revenue. A product with a 20% margin and a million dollars of sales moves the blended number far more than a 70% margin on ten thousand dollars, even though the second margin looks better on its own.
The rows on this page add up the revenue, add up the COGS and divide once, which is the only way to get a blended margin that reconciles with the total. Averaging the percentages instead gives a number that can be a full point or more away from the truth, because it treats a small product as if it were as big as a large one.
Use the rows to see which line is dragging the blend down. A single product at a 12% margin inside an otherwise healthy mix is a pricing conversation, and the table makes it visible in one glance rather than three.
Gross margin says nothing about whether the business is profitable. It is the top half of the income statement, and a company can have a beautiful gross margin and still lose money on rent, payroll and interest. The net-profit-margin page takes the same revenue and carries it all the way down to the bottom line.
It also says nothing about cash timing. A sale on ninety-day terms with a 40% gross margin is a receivable, not cash, and a business can be gross-margin positive and cash-negative at the same time. And it says nothing about volume: a 10% margin on a million units and a 50% margin on ten units are both gross margins, and only one of them pays the rent.
Read the number for what it is — the share of each sales dollar that survives the product — and read the pages below it for everything else.
Gross margin percentage equals revenue minus cost of goods sold, divided by revenue, times one hundred. On $120,000 of revenue and $72,000 of COGS the gross profit is $48,000 and the gross margin is 40%.
In everyday use the two are often used interchangeably, and one of the sources here defines gross margin as the amount remaining after COGS, which is the dollar figure. Strictly, gross profit is the dollars and gross margin is the percentage of revenue; the page shows both so the distinction never causes a wrong reading.
The direct cost of the goods: purchase price for a reseller, or materials, direct labour and factory overhead for a manufacturer. Freight and shipping are a convention — in COGS for some businesses and in operating expenses for others — and the page leaves the choice to you and asks only that you keep it consistent.
Add the revenue, add the COGS, and divide once. Averaging the individual percentages is wrong because it ignores size: a 70% margin on a small product and a 20% margin on a large one do not average to 45% unless the two sell the same amount.
No. Gross margin is the pool that pays the operating expenses, interest and tax. A business can carry a 50% gross margin and still lose money if the costs below the line are larger than the pool. The net-profit-margin page carries the same revenue to the bottom line.
Every figure on this site that is not arithmetic comes from one of these pages, read while this build was made. The Shopify card and transaction rates carry the date they were read and are editable in the calculator. Nothing else is looked up at run time.