A gross margin calculator tells you the single most important number in product-level pricing: what percentage of each sale is left over after you pay for the goods themselves. Enter your selling price and your cost of goods sold, and the tool instantly returns your gross margin percentage, your gross profit per unit, your projected monthly gross profit at your current volume, and β for comparison β the equivalent markup percentage on the same two numbers.
Arb Digital works with ecommerce and subscription businesses on pricing and growth strategy constantly, and gross margin is usually the first number we ask for, because it sets the ceiling on everything else a business can afford to do. A business can't spend its way past its own margin structure, no matter how good the marketing is.
What This Gross Margin Calculator Does
You give it two required numbers β selling price and cost of goods sold (COGS) β plus an optional monthly unit volume, and it calculates your gross margin percentage and gross profit in both per-unit and monthly-total terms. Add a target margin percentage and the calculator works backward to show the price you'd need to charge at your current cost to hit that target. This reverse calculation is genuinely useful when you're setting a new product's price and you already know the margin your business model requires to stay healthy.
The calculator also shows the equivalent markup percentage next to your margin, because the two numbers are frequently confused and it's worth seeing both side by side rather than mentally converting one to the other.
How to Use It
- Enter your selling price. Use the actual price the customer pays, before any payment-processing fees, but after any typical discounts if that reflects your real average price.
- Enter your cost of goods sold. This is the direct cost of the product itself β manufacturing or wholesale cost, plus inbound shipping and packaging. Do not include marketing, salaries, or rent here; those come out later, at the operating and net margin stages.
- Add your monthly unit volume. This converts your per-unit margin into a real monthly gross profit dollar figure, which is far more useful for budgeting than a percentage alone.
- Set a target margin if you're pricing a new product. The calculator shows the price required, at your current cost, to hit that target β useful for checking whether a price you're considering is even mathematically possible given your supplier costs.
- Compare the margin to your business model's benchmark using the typical ranges below, so you know whether your number is healthy, average, or a warning sign.
The Gross Margin Formula
The formula is: gross margin % = (selling price β COGS) Γ· selling price Γ 100. With a $100 price and $55 COGS, gross profit is $45, and gross margin is 45 Γ· 100 = 45%. Notice the denominator is price, not cost β that's the defining difference from markup, which divides by cost instead. This distinction is standard across financial reporting and is explained clearly in Investopedia's guide to gross profit margin. To solve for a target price at a given cost, the formula rearranges to price = COGS Γ· (1 β target margin %), which is exactly what the calculator does when you fill in the target margin field.
Why Gross Margin Is the Ceiling on Everything You Can Afford
Gross margin isn't just an accounting metric to report quarterly β it's the pool of money that funds literally everything a business does after the product is sold. Marketing budgets, salaries, rent, software subscriptions, customer service, and eventually owner or shareholder profit all get paid out of gross profit dollars. Revenue never funds any of that directly; only the margin left after cost of goods does.
This is why two businesses with identical revenue can be in completely different financial positions. A business running a 20% gross margin on $1,000,000 in revenue has $200,000 to cover every other expense in the company. A business running a 70% margin on the same revenue has $700,000 to work with. The low-margin business simply cannot afford the same customer-acquisition spend, the same headcount, or the same runway during a slow month β not because the owner is less capable, but because the margin structure doesn't allow it. This is the number one reason marketing campaigns that work brilliantly for one business bankrupt another: nobody checked whether the margin could actually support the acquisition cost before scaling ad spend.
Typical Gross Margins by Business Model
Knowing your industry's typical range helps you judge your own number honestly instead of guessing:
- SaaS and software β typically 75β85% gross margin, since delivering an additional software user costs very little beyond hosting.
- Ecommerce (physical products) β typically 30β50%, depending heavily on category, shipping costs, and whether the brand manufactures or resells.
- Retail (brick-and-mortar) β typically 20β40%, pulled down by occupancy costs baked into the buying strategy even though rent itself isn't in COGS.
- Agencies and professional services β typically 40β60%, where COGS is mostly the direct labor cost of delivering the service.
- Restaurants β food cost alone typically runs a 60β70% gross margin on the food itself, before labor, which is usually treated separately in restaurant accounting.
If your number is well below your category's norm, that's not automatically bad β it might reflect an intentional low-price strategy β but it does mean your marketing and overhead budgets need to be proportionally tighter than a competitor sitting at a higher margin.
How Gross Margin Shapes Your Pricing and Cash Flow Decisions
Gross margin isn't only a scorecard you check after the fact β it should actively shape decisions before you make them. When you're deciding whether to run a promotion, offer free shipping, or negotiate a volume discount with a big customer, the honest question is always "what does this do to my gross margin?" A 20%-off promotion looks harmless on a spreadsheet until you realize it might cut a 45% margin down to 31%, which can turn a profitable campaign into one that loses money once ad spend and fulfillment costs are counted against it.
Cash flow is tied to gross margin in a way that's easy to overlook when a business is growing fast. Rapid revenue growth on a thin gross margin can actually create a cash crunch, because inventory and fulfillment costs scale with unit volume immediately, while the margin dollars trickle in more slowly, especially if customers pay on terms or through platforms with delayed payouts. This is why some fast-growing, high-revenue companies still run into cash problems: the top line looks great, but the gross margin isn't generating cash fast enough to fund the next batch of inventory or the next hire. Watching your gross margin trend over time β not just a single snapshot β tells you whether growth is actually strengthening the business or just making it busier.
Gross Margin Is Not the Whole Story
It's worth being precise about what gross margin does and doesn't measure. It only accounts for the direct cost of producing what you sold β cost of goods sold. It says nothing about your operating expenses: salaries, rent, software, marketing spend, or interest and taxes. A business can have an excellent 60% gross margin and still lose money overall if operating expenses eat through that margin faster than revenue grows. To see the full picture β including whether overhead is the real problem β you need to go one level further with our net profit margin calculator, which walks the whole waterfall from gross profit down to what actually lands in the bank.
Arb Digital builds paid media and growth campaigns sized to what your actual gross margin can support β not guesswork acquisition budgets that outrun your profit. Let's map your numbers together.
See Our Services All Free ToolsCommon Mistakes to Avoid
- Including overhead in COGS. Rent, salaries not tied directly to production, and software subscriptions belong in operating expenses, not cost of goods sold β mixing them understates your gross margin.
- Confusing gross margin with markup. A 45% margin is not a 45% markup; check the equivalent markup figure in the results to see the real gap.
- Pricing to a margin target without checking market demand. The formula tells you what price is mathematically required β it doesn't tell you whether customers will pay it.
- Averaging margin across a whole catalog. A blended 40% average can hide individual products losing money and others carrying the business β check margin product by product when you can.
- Treating gross margin as take-home profit. It's only the starting pool; operating expenses, interest, and taxes still come out of it before anything is truly "profit."
Related Free Tools From Arb Digital
See how gross margin compares to a cost-based markup with the markup calculator, or follow the money further down to the bottom line with the net profit margin calculator. If you're setting a price for volume goals, try the break-even units calculator or the revenue-based break-even calculator. You can also build a full price structure with the product pricing calculator. Explore everything in our free online tools hub.
Frequently Asked Questions
It depends heavily on your business model: SaaS businesses often run 75-85%, ecommerce 30-50%, retail 20-40%, and agencies 40-60%. Compare your number to your specific category rather than a single universal benchmark.
Gross margin only subtracts the direct cost of goods sold from revenue. Net profit margin subtracts everything β cost of goods, operating expenses, interest, and taxes β to show what's actually left as profit.
Gross margin is calculated as a percentage of selling price. Markup is calculated as a percentage of cost. The same dollar profit produces a lower margin percentage than markup percentage every time above 0%.
Direct costs tied to producing or acquiring the specific product sold β manufacturing cost, wholesale purchase price, inbound shipping, and direct packaging. Overhead like rent, salaries, and marketing should not be included in COGS.
Divide your cost of goods sold by one minus your target margin as a decimal: price = COGS / (1 - target margin). Enter your target margin in the calculator above and it computes this automatically.
Revenue doesn't tell you what's actually available to fund marketing, salaries, and profit β only gross margin dollars do. A business with lower revenue but a higher margin can be healthier than a larger business with thin margins.