Gross Margin Calculator
Enter your selling price and cost to see your gross profit, margin and markup. Switch to Advanced for a cost breakdown by industry and ROI.
Built by Ben Rosenfeld, founder of Vertical Financials.
Gross profit
N/A
What's left from each sale after the cost of that unit.
Margin
N/A
Share of each sale you keep. This is what lenders, buyers and your P&L use.
Markup
N/A
How much you add on top of cost. It always looks bigger than margin.
What this means
Enter your numbers to see your results.
Want a second set of eyes on these numbers? Get a Free Books Review.
What gross margin tells you
Gross margin is the share of each sale left after the direct costs of that sale. It is what pays for rent, salaries, software, ads and, eventually, profit.
If your gross margin is thin, growing sales will not fix it. Each extra sale brings in only a little to cover your overhead. Raising price, cutting product or freight cost, or moving to cheaper fulfillment usually does more.
Which costs belong in it
Count the costs you pay for each unit: the product itself, getting it to your warehouse, and the fees and shipping to get it to the customer. Leave out costs that stay the same no matter how much you sell, like salaries and software.
In QuickBooks Online, these should sit in Cost of Goods Sold, not in operating expenses. If they are mixed in with overhead, your reported gross margin will look better than it really is.
FAQ
Common questions
- How do you calculate gross margin?
- Gross margin is gross profit divided by the selling price. Gross profit is the price minus the direct costs of making and delivering the product. A $40 product with $25 of direct costs has $15 of gross profit and a 37.5% gross margin.
- What is the difference between margin and markup?
- Both use the same gross profit. Margin divides it by the price, markup divides it by the cost. That is why a 60% markup is only a 37.5% margin. Pricing with markup and reporting with margin is a common source of confusion.
- What is a good gross margin for an e-commerce business?
- It depends on the category. The NYU Stern dataset shown above puts US specialty retail around 35% and apparel around 57%. Use the comparison as a reference point, not a target, because public companies have different scale and cost structures than most small brands.
- Should marketplace fees and shipping be in gross margin?
- For e-commerce we include them. Amazon referral and FBA fees, fulfillment, packaging and returns are paid on every unit you sell, so leaving them out makes products look more profitable than they are. Ad spend usually sits below gross margin, in contribution margin.
- How is ROI different from markup here?
- ROI compares gross profit to only the cash you pay before the sale, such as product cost, inbound freight and packaging. Fees taken out when the sale happens are not part of that upfront cash. For manufacturing and services every direct cost is upfront, so ROI and markup match.
See exactly what we'd fix in your books — free.
We audit your last month of books and send a 1-page findings report. No card, no pitch.