Free tool
Gross Margin Calculator
See how much of your selling price is left after product cost.
Enter the price of one item after discounts and refunds, excluding sales tax, and the product cost for that same item. This gross margin calculator shows the money left after product cost and the share of the selling price that remains. That percentage is also called gross profit margin.
Only the product cost you enter is subtracted. Any payment fees, delivery, advertising or other costs left out of that figure still have to be covered. Use the Contribution Margin Calculator to include more of the costs of making a sale.
One item · One currency
Price and product cost
Use the price and cost of one item, in the same currency.
Replace these examples with your own numbers. Results update as you type. Your entries stay on this page until you copy them.
Need help finding your figures in Shopify?
Ask Sidekick for the net selling price and recorded cost of the same item. Check discounts, refunds and missing product costs against your reports and supplier records.
Paste the copied text into Shopify Sidekick.
What’s different about this calculator
See the gross profit, margin and markup on the same sale.
| Basic calculation | What this adds |
|---|---|
| Selling price minus product cost | Shows gross profit, gross margin and markup together |
| Price and cost entered as totals | Explains how discounts, refunds, delivery and duties belong in those amounts |
| Gross profit on the item | Makes clear that selling costs and other business expenses still need to be covered |
How this tool works
How to calculate gross margin
Subtract product cost from net selling price to find gross profit per item. Divide that profit by net selling price, then multiply by 100 to get gross margin as a percentage. If the price is above zero but below product cost, the margin is negative.
Use the price and cost of the same item in the same currency. The calculator accepts zero or positive inputs. A zero selling price leaves gross margin undefined. A zero product cost leaves markup undefined, because markup divides the profit by cost instead of price.
Gross profit = net selling price − product cost. Gross margin = (net selling price − product cost) ÷ net selling price × 100.
A $100 item that costs you $40
A $100 net selling price minus a $40 product cost leaves $60 of gross profit. Divide $60 by the $100 price to get a 60% gross margin. Divide the same $60 by the $40 cost to get a 150% markup. Any costs you left out still need to come out of that $60.
Questions & answers
Understanding your result
What is the difference between gross margin and contribution margin?
This calculator subtracts the product cost you enter from net selling price. Contribution margin also subtracts the other costs that change with making a sale, such as payment fees, if they have not already been counted. Check which costs each calculation includes before comparing the results.
Is gross profit the same as net profit?
No. Gross profit here is the money left after the product cost you entered. Net profit takes account of the rest of the business’s income and expenses, including costs such as rent, wages, interest and tax. This two-input calculator does not calculate net profit.
What is the difference between margin and markup?
Both start with selling price minus product cost. Margin divides that amount by the selling price. Markup divides it by product cost. At a $100 price and $60 cost, you have a 40% margin and a 66.7% markup. They describe the same $40 using different starting amounts.
How do I calculate a price for a 30% gross margin?
Divide product cost by 0.70. A $70 product cost needs a $100 net selling price for a 30% gross margin. That leaves $30 to cover any other costs and profit. Adding 30% to cost gives a 30% markup, which is a lower margin. Allow for discounts when choosing the price customers will pay.
What should I enter for price and product cost?
Use the selling price of one item after discounts and refunds, excluding sales tax you collect. Enter the product cost for that same item, in the same currency. Use a consistent tax basis and count each cost once. There are no separate tax or discount fields, so make those adjustments before entering the amounts.
Can gross margin be negative, and what happens if I enter zero?
Yes. A $50 price and $60 product cost produce a $10 gross loss and a −20% gross margin. Negative input amounts are not accepted. If price is zero, the gross profit amount can still be calculated, but the margin percentage is undefined. If product cost is zero, the markup percentage is undefined.
