Skip to content

MARGIN ANALYSIS

Gross Profit Margin Calculator

Find gross profit and margin from revenue and cost of goods sold, compare unit economics, or calculate the price required for a target margin.

Last updated: November 27, 2026 Browser-based Free No sign-up
What do you know?
$
$

Results dashboard

Gross margin
36%
Gross profit
$18,000.00
Markup (on cost)
56.25%

Gross margin divides profit by revenue; markup divides the same profit by cost. That's why markup is always the larger number.

Gross profit and margin formulas

Gross profit measures what remains after the direct cost of the goods you sold. Net revenue is sales after discounts and returns; COGS is the cost of goods sold for the same units and period.

Gross profit = net revenue − cost of goods sold (COGS)Gross margin % = gross profit ÷ net revenue × 100Markup % = gross profit ÷ COGS × 100Required selling price = unit cost ÷ (1 − target margin % ÷ 100)

Margin therefore expresses profit as a share of the selling price, while markup expresses profit as a share of cost. Keeping the denominators clear is essential when comparing prices or supplier options.

For a step-by-step explanation of revenue, COGS and the denominator, read the gross margin formula guide.

Worked gross margin example

If net revenue is $100 and COGS is $60, gross profit is $100 − $60 = $40. Gross margin is $40 ÷ $100 = 40%, while markup is $40 ÷ $60 = 66.67%. Both percentages describe the same $40 of gross profit.

In target-margin mode, a $10 unit cost and 25% target margin require a selling price of $10 ÷ 0.75 = $13.3333…, displayed as $13.33. At that exact unrounded price, gross profit is $3.3333… and margin is 25%.

When to use gross margin

  • Compare product lines using profitability as a share of sales rather than dollars alone.
  • Check whether discounts leave enough gross profit to support the rest of the business.
  • Estimate the price required to meet a margin target before listing a product.
  • Model total gross profit for a quantity while keeping unit price and cost visible.

Common gross margin mistakes

  • Using gross instead of net revenue. Exclude discounts, refunds and canceled sales so revenue and COGS describe the same completed sales.
  • Mixing COGS with operating expenses. Advertising, rent, software and administrative wages usually sit below gross profit; follow a consistent accounting policy for direct costs.
  • Calling markup a margin. A 50% markup on $60 of cost gives a $90 price and a 33.33% margin, not 50%.
  • Ignoring a negative result. Revenue below COGS produces a gross loss and a negative margin; more sales volume alone does not fix unfavorable unit economics.
  • Assuming quantity changes margin. Quantity scales total gross profit, but the percentage stays the same when unit revenue and unit cost are unchanged.

Methodology and assumptions

This tool uses gross, not operating or net, profit. It does not decide which expenses belong in your COGS and does not include income tax, marketplace commissions or payment processing unless you incorporate them into the cost input. For a separate estimate of transaction deductions, use the PayPal fee and net amount calculator. Calculations use unrounded intermediate values and run entirely in your browser.

For a marketplace sale, use the eBay fee and profit estimate or Amazon FBA and FBM profit estimate to account for the modeled seller fees. Review our cost classification and rounding methodology before comparing gross margin with after-fee profit.

Frequently asked questions

What is a good gross profit margin?

There is no universal good percentage. Product type, return rates, sales volume and overhead all matter. Compare consistent periods and similar businesses rather than relying on a generic target.

What is the difference between gross margin and net margin?

Gross margin subtracts COGS only. Net margin also reflects operating expenses, interest, taxes and other items, so it answers a broader profitability question.

Does gross margin include shipping?

Inbound freight needed to acquire inventory is commonly included in landed product cost. Treatment of outbound shipping and fulfillment can vary, so use a consistent policy and include costs you want this analysis to capture.

Can gross margin be negative?

Yes. If revenue is below COGS, gross profit and margin are negative. The calculator keeps the result visible and flags the gross loss instead of treating it as zero.

Why can’t I enter a target margin of 100%?

With a positive unit cost, a 100% margin has no finite selling price because the denominator becomes zero. The calculator rejects targets of 100% or more.

Is a higher markup always a higher margin?

For the same positive cost structure, increasing the selling price raises both. But the same dollar profit produces different percentages because markup divides by cost and margin divides by revenue.

Keep calculating