Free Calculator · Gross Margin
Gross Margin Analyzer
Gross margin is the clearest single read on whether your pricing and costs are working. Enter revenue and cost of goods sold to see gross profit, margin, and markup.
How this is calculated
Gross profit = revenue − cost of goods sold (COGS). Gross margin = gross profit ÷ revenue, expressed as a percentage of what you charge. Markup = gross profit ÷ COGS, expressed against what it costs you. Margin tells you how much of every dollar of sales you keep before operating expenses.
A worked example
A business with $250,000 in revenue and $150,000 in cost of goods sold keeps $100,000 in gross profit. That is a 40% gross margin and a 67% markup. Same profit, two different percentages, because margin divides by revenue and markup divides by cost.
Now say material and labor costs rise 5%, to $157,500, and prices stay put. Gross profit falls to $92,500 and margin drops to 37%. Revenue did not change at all. That is how margins erode quietly: costs creep up a few points a year and the price list never moves.
What to do with the number
Track gross margin every month, not once a year. A drop of two or three points is often the first sign of trouble: a supplier price increase, jobs that ran over on labor, or discounts creeping in. An annual number buries it.
Then break it down. One overall margin can hide a product or customer that loses money. Run the calculator for each product line, service, or large customer using its own revenue and direct costs. The weakest one is usually where pricing or scope needs to change first.
Keep reading
- Pricing calculator — Work out the price that gets you back to your target margin.
- Break-even calculator — See how many sales your margin needs to cover fixed costs.
- How to read your P&L — Where gross margin sits on the P&L and what moves it.
Frequently asked questions
What is a good gross margin?
It varies widely by industry — services and software often run 60% or higher, while product and construction businesses may run 20–40%. The key is knowing your number and defending it against rising costs.
What counts as cost of goods sold?
COGS includes the direct costs of delivering your product or service — materials, direct labor, and other costs that scale with each sale. It excludes fixed operating expenses like rent, marketing, and administration.
Is gross margin the same as net profit margin?
No. Gross margin only subtracts the direct costs of what you sell. Net profit margin also subtracts operating expenses like rent, salaries, software, and interest. A business can have a healthy gross margin and still lose money if overhead is too high.