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.
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?
What is the difference between gross margin and net margin?
Does gross margin include shipping?
Can gross margin be negative?
Why can’t I enter a target margin of 100%?
Is a higher markup always a higher margin?
Keep calculating