The question gross margin answers
Gross margin shows how much of every unit of revenue remains after paying for the things that were sold. A shop that buys goods for resale, a manufacturer that pays for materials and factory labor, and a service firm that pays the people delivering the work all have a direct cost of sales. What is left is gross profit, and the margin expresses it as a share of revenue. That makes businesses of different sizes comparable and lets you track one business over time. The page takes two numbers, net revenue and gross profit, and returns the percentage. It does not calculate gross profit for you, so that figure should come from your income statement or from revenue minus cost of goods sold.
The formula and the inputs
The calculation is margin = 100 × profit / revenue. Revenue is net revenue, meaning sales after returns, discounts and allowances, and profit is gross profit, which is net revenue minus cost of goods sold. The result is a percentage shown to two decimals. Because both inputs sit in the same ratio, the currency cancels out, and 250 out of 1,000 is the same 25 percent whether the amounts are in dollars, euros or yen. What matters is that the two figures describe the same period and the same scope. Mixing a quarterly profit with annual revenue, or a profit for one product line with revenue for the whole company, produces a percentage that describes nothing real.
A 25 percent gross margin on 1,000 revenue
The page starts with net revenue of 1,000 and gross profit of 250. Dividing gives 0.25, and multiplying by 100 gives a gross margin of 25.00 percent. That means cost of goods sold was 750, or 75 percent of revenue. Each sale of 100 leaves 25 to cover everything else the business pays for, such as rent, marketing, administration and interest, and ideally some profit after them. It is useful to keep this reading in mind when you vary the numbers: raising gross profit by 50 on the same revenue lifts the margin by exactly five percentage points, while an extra 100 of revenue with no extra profit would lower it.
More examples with different shapes
A retailer with net revenue of 84,500 and gross profit of 31,265 has a margin of 37.00 percent. A small manufacturer with revenue of 12,400 and gross profit of 4,960 earns exactly 40.00 percent. A reseller on thin terms, with revenue of 2,150 and gross profit of 387, earns 18.00 percent. Gross margin can also be negative: with revenue of 5,000 and a gross profit of minus 400, because the goods cost more than they sold for, the margin is minus 8.00 percent. The sign matters, and a negative gross margin means that every additional sale at those economics increases the loss before any overhead is counted.
Margin is not markup
Margin divides profit by the selling price, while markup divides profit by cost. The two are easily confused and give different numbers for the same trade. A product that costs 75 and sells for 100 has a gross profit of 25, a margin of 25 percent and a markup of 33.33 percent. Someone who wants a 25 percent margin but marks up cost by 25 percent will end up with a price of 93.75 on that cost and a real margin of 20 percent. If your supplier quotes markup and your accounts report margin, convert before comparing. This page computes margin only, from profit and revenue figures you already have.
What belongs in cost of goods sold
The margin is only as meaningful as the cost of sales behind it. Cost of goods sold normally includes the purchase cost of inventory sold, direct materials, direct labor and manufacturing overhead attributable to production. For service businesses, it may be the pay of staff who deliver the service. Selling, general and administrative costs such as advertising and head office salaries are usually kept below the gross profit line. Different companies and industries draw this line in different places, which is a good reason not to compare margins across firms without checking their definitions. Keep the definition fixed for your own business so trends over time are real.
Using the result to compare and diagnose
Margins differ widely by industry. Grocery retailers often work at low gross margins on high volume, while software and specialist services can show much higher figures. Comparing your margin with your own history is usually more informative than comparing it with a published average. A margin that falls from 40 to 36 percent while revenue grows suggests discounting, rising input prices or a shift toward lower-margin products. A margin that holds while profit shrinks points to costs below the gross profit line. Use the page quarter by quarter, and test a planned price change by entering the revenue and gross profit you would expect after it.
Gross margin next to other profit measures
Gross profit is only the first step of the income statement. After it come operating expenses, then operating profit, then interest and tax, and finally net profit. Each stage has its own margin. This page computes the margin using gross profit, and replacing that input with operating or net profit would give a different measure with a different meaning. Keep those figures separate when you report. Gross margin is also different from contribution margin, which deducts only variable costs and can include variable selling costs that sit outside cost of goods sold, so the two can disagree for the same business and period.
Setting a target margin for pricing
Gross margin is often used backward, to set a price. If cost of goods sold is 60 per unit and you want a 40 percent gross margin, the price must be 60 divided by 0.60, which is 100. A 30 percent target needs a price near 85.71. Once you have a candidate price, test it here by entering the revenue and gross profit you would earn at your expected volume. This also shows how a supplier price increase of five percent on materials moves the margin if you hold your selling price. Keeping a target margin per product line, and checking actual results against it each quarter, is a simple discipline that catches drift early.
What a gross margin ratio cannot verify
The page applies a ratio to two numbers you supply. It does not check that gross profit is correct, that returns and discounts have been netted from revenue, or that costs are matched to the period in which the sales occurred. Inventory valuation methods, accruals and timing can all move gross profit between periods. Results are rounded to two decimals for display, which does not imply the underlying amounts are that precise. The calculator offers no accounting, tax or investment advice, and the definitions follow standard financial accounting textbooks such as OpenStax, which you can consult for the formal treatment.