FREE GROSS MARGIN TOOL

Gross Margin Calculator

Calculate gross profit, gross margin, markup, COGS ratio, and target pricing for a product, service, or catalog.

01

Choose a calculation

Gross margin covers direct product or service costs. It does not include ads, salaries, rent, tax, interest, or other operating expenses.

Powered by EasyClaw

02

Your margin breakdown

%

Your result will appear here

Enter revenue and direct costs to see the margin, profit, and pricing picture.

GO FURTHER WITH EASYCLAW

Calculate one margin. Keep the whole pricing workflow accountable.

Connect cost assumptions to product briefs, pricing changes, discount approvals, campaign plans, and monthly actuals so a margin number leads to a clear next action.

Explore EasyClaw

What does gross margin measure?

Gross margin shows how much revenue remains after the direct cost of making or delivering what you sell. It is expressed as a percentage, while gross profit is the currency amount left over. A product with $100 in sales and $60 in COGS creates $40 gross profit and a 40% gross margin.

Gross margin versus markup

Margin uses revenue as its denominator: (Revenue − COGS) ÷ Revenue × 100. Markup uses cost: (Revenue − COGS) ÷ COGS × 100. A $60 cost and $100 price produce a 40% margin but a 66.7% markup. Confusing these percentages can lead to underpricing.

Why does gross margin matter for pricing and growth?

Revenue growth can hide a weaker business when discounts, supplier prices, shipping, returns, or fulfillment costs rise faster than sales. Gross margin gives marketing, finance, and product teams a shared signal for deciding whether a price, promotion, channel, or product line creates enough room to fund the work around it.

What a margin percentage can tell you

It can show how much of each sales dollar is available for operating expenses and profit. It cannot tell you whether the company is profitable overall, because salaries, rent, software, advertising, tax, interest, and other overhead sit below gross profit. Pair it with contribution margin, operating margin, cash flow, and customer retention when the decision requires a complete view.

Who benefits from a gross margin calculation?

Retailers and ecommerce teams can check product prices, bundles, shipping assumptions, and discount floors. Manufacturers can compare material and production changes. Wholesalers can test supplier quotes and resale prices. SaaS and service businesses can define direct delivery costs such as hosting, support, contractors, or usage fees. Founders, operators, marketers, and finance partners can use the same transparent formula before changing a price or campaign.

When should you recalculate gross margin?

Calculate it before launching a product, setting a price, approving a discount, or committing to a sales channel. Recalculate when supplier costs, shipping rates, payment fees, labor allocation, exchange rates, or product mix changes. A monthly review catches drift early; a quarterly review can connect margin trends with promotions, inventory, and marketing spend.

How discounts and returns affect the answer

Use net revenue after discounts, refunds, and returns when that is the number you actually keep. Include direct shipping, packaging, payment fees, and fulfillment when they are necessary to deliver the sale and your accounting policy treats them as direct costs. Document the scope so two teams do not compare a fully loaded margin with a product-only margin.

Gross margin for ecommerce, retail, SaaS, and services

The formula works across business models, but the definition of COGS changes. Ecommerce may include product cost, pick-and-pack, shipping, and transaction fees. SaaS may include hosting, support, and usage-based infrastructure. Agencies and service businesses may include delivery contractors and billable labor. Wholesale teams may focus on supplier cost and freight. Use a consistent policy for each model rather than borrowing a benchmark without checking what it includes.

Why a “good” margin depends on context

There is no universal healthy percentage. A 40% margin may be strong for one retail category and too low for a software business with high acquisition and support costs. Compare your margin with operating expenses, growth stage, cash needs, competitive pricing, and the return required by the business.

How do you calculate gross margin step by step?

  1. Set the revenue base. Use gross sales or net revenue, and state whether discounts, refunds, and returns are removed.
  2. List direct costs. Add the costs directly required to make or deliver the sale, such as materials, inventory, direct labor, hosting, fulfillment, or transaction fees.
  3. Find gross profit. Subtract COGS from revenue.
  4. Convert to a percentage. Divide gross profit by revenue and multiply by 100.
  5. Compare like with like. Keep the period, product mix, currency, and cost policy consistent.

Example: $10,000 in net revenue minus $6,000 in COGS leaves $4,000 gross profit. Divide $4,000 by $10,000 and the gross margin is 40%. This calculator also shows markup and COGS ratio so the relationship is easy to audit.

How do you price a product for a target gross margin?

To price a unit for a target margin, divide unit cost by 1 − target margin. For a $30 unit cost and a 40% target margin, the minimum price is $30 ÷ 0.60 = $50. The target-margin mode on this page performs that calculation and scales it across your planned units.

Why target price is a starting point

A formula cannot decide whether customers will accept the price. Check competitor positioning, willingness to pay, channel fees, discounts, returns, taxes, and the operating costs that gross margin does not include. Treat the result as a floor for a pricing conversation, then test the offer in the market.

How can a business improve gross margin?

Start with the biggest controllable drivers: supplier terms, waste, product mix, fulfillment, payment fees, packaging, discounting, and price architecture. Raise price only when the value and positioning support it. Remove unprofitable variants, improve forecasting, and negotiate volume or payment terms where that does not damage quality. In services, review utilization, scope creep, delivery time, and the direct labor assigned to each project.

Track margin by product, customer segment, channel, and campaign instead of relying on one company-wide average. When a number changes, record the reason and the owner of the next action. EasyClaw can keep those cost updates, pricing experiments, approvals, and performance reviews connected so the calculator becomes part of a repeatable operating rhythm.

Frequently asked questions about gross margin

How do you calculate gross margin?

Subtract COGS from revenue to get gross profit, then divide gross profit by revenue and multiply by 100: (Revenue − COGS) ÷ Revenue × 100.

What does a 30% gross margin mean?

A 30% gross margin means $0.30 of every $1 in revenue remains after direct costs. The other $0.70 covers COGS; operating expenses and taxes still come afterward.

What is a 40% gross margin?

A 40% gross margin means gross profit is $0.40 for each $1 of revenue after direct costs. Whether it is good depends on the business model, operating expenses, pricing, and growth goals.

How do I calculate a 70% profit margin?

For a 70% gross margin, set gross profit equal to 70% of revenue: (Revenue − COGS) ÷ Revenue = 70%. To price from a known unit cost, divide cost by 0.30. If you mean net profit margin, include operating expenses, taxes, and interest instead of only COGS.

What is the difference between gross margin and markup?

Gross margin divides profit by revenue. Markup divides profit by cost. A $60 cost and $100 price produce a 40% gross margin and a 66.7% markup.

Should shipping and payment fees be included in COGS?

Include a cost when it is directly required to deliver the sale and your accounting policy classifies it as a direct cost. State your policy and use it consistently across products and periods.

Ready to Try the #1 AI Agent?

EasyClaw is free to get started. Zero setup. Works on Mac & Windows. Control your desktop with AI starting today.