Calculator
| Selling price | $60.00 |
|---|---|
| Discount 10.0% | -$6.00 |
| Customer pays | $54.00 |
| Product cost | -$22.00 |
| Gross profit margin 59.3% | $32.00 |
| Shipping you pay | -$6.50 |
| Payment fee | -$1.87 |
| Profit per unit net margin 43.8% | $23.63 |
Markup on cost 145.5%
Profit on 1 units $23.63
Want this for every product you sell, after discounts and refunds, in a report that arrives on its own? Install ReportNerds and run gross margin by product, or tell our nerds the version you need.
14-day free trial.
How to use it
Two fields are required. The rest sharpen the answer.
- Enter the price and the product cost. The price is what the item lists for. The cost is what you paid your supplier for one unit, the same figure as "Cost per item" in Shopify.
- Add what the order costs you. The discount the customer used, the shipping label you pay for, and the card rate your store is charged. Leave any of them at zero if they don't apply.
- Read the sheet. Gross profit is what's left after the product cost. Profit per unit is what's left after shipping and the fee. Negative means the order loses money.
The formula
Profit margin on a Shopify order is the share of what the customer pays that you keep after the product cost, the shipping you pay and the payment fee. Gross margin stops at product cost; net margin takes shipping and fees off too.
customer pays = price × (1 − discount) gross profit = customer pays − product cost gross margin = gross profit ÷ customer pays payment fee = customer pays × fee % + fixed fee profit = gross profit − shipping − payment fee net margin = profit ÷ customer pays markup = gross profit ÷ product cost
Included: the discount, the product cost, the shipping you pay and the payment fee on what the customer pays. Not included: sales tax or VAT (collected and passed on), refunds, advertising, app subscriptions, packaging, and any shipping or tax you charge the customer. If you charge shipping, the fee on that part is also left out, so the real fee is a few cents higher.
Shopify's own margin calculator takes a cost and a markup and gives you a price. This one starts from the price you already sell at and shows what is left after the costs that sit on every Shopify order.
A worked example
A $60.00 item, a 10% discount, $22.00 cost, $6.50 shipping, and a fee of 2.9% plus $0.30. The same figures are pre-filled above.
| Line | Working | Per unit |
|---|---|---|
| Customer pays | $60.00 × (1 − 10%) | $54.00 |
| Gross profit | $54.00 − $22.00 | $32.00 |
| Gross margin | $32.00 ÷ $54.00 | 59.3% |
| Payment fee | $54.00 × 2.9% + $0.30 | $1.87 |
| Profit per unit | $32.00 − $6.50 − $1.87 | $23.63 |
| Net margin | $23.63 ÷ $54.00 | 43.8% |
| Markup | $32.00 ÷ $22.00 | 145.5% |
What the number means
Two margins, two jobs.
- Gross margin
- What the product itself earns. It is the figure Shopify's profit reports and most reporting apps show, and the one to compare across products: a high gross margin on a slow seller can still beat a thin one on a bestseller.
- Net margin
- What the order earns once shipping and the card fee come off. Free shipping and a deep discount on a cheap item can turn a healthy gross margin into a loss. This is the number that decides whether an offer is worth running.
- Markup
- Profit as a share of cost. Use it to set prices, then read margin to judge them. A 100% markup is a 50% gross margin.
- A negative number
- The order loses money before advertising. Raise the price, cut the discount, charge for shipping, or stop promoting that item.
- Per unit versus per month
- Set units sold to see what the product earns over a period. Cost of goods, shipping and fees scale with units; your fixed costs don't, so monthly profit is what has to cover them.
Questions
- How do I calculate profit margin on a Shopify product?
- Take what the customer pays after any discount, subtract the product cost, and divide by what the customer pays. That is gross margin. For the margin you keep, also subtract the shipping you pay and the payment fee before dividing. This calculator does both.
- What is the difference between margin and markup?
- Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A $22 item sold for $54 has a gross margin of 59.3% and a markup of 145.5%. Markup is the number you use when setting a price; margin is the number you use when reading a report.
- Does Shopify charge a fee on every order?
- With Shopify Payments, each card payment carries a percentage plus a fixed amount, and the rate depends on your plan, your country and the card type. With another payment provider, Shopify adds a third-party transaction fee on most plans and the provider charges its own fee on top. Enter the rate your store actually pays; the fields are pre-filled with an example.
- Does this calculator include tax, refunds or ad spend?
- No. Sales tax or VAT collected from the customer is passed on, so it is left out. Refunds, advertising, app subscriptions, packaging and your own time are also outside this number. It is the profit on one unit that sold and stayed sold.
- What is a good profit margin for a Shopify store?
- It depends on what you sell. The useful test is whether the profit per unit after shipping and fees covers your share of advertising, apps, returns and overhead, with something left. Compare products against each other inside your own store rather than against a general figure.
- How do I see the margin for every product I sell?
- Shopify's profit reports show gross profit by product for variants that had a cost per item recorded when they sold. A reporting app such as ReportNerds runs the same calculation across your products and variants in one table, with net sales after discounts and refunds, and can send it on a schedule.
The same numbers, for the whole store
Built-in ReportNerds reports that answer the question for every product at once.
Gross margin by product
Which products make money after the cost of goods, and which only look like they do?
Sales by product
What did each product actually earn after discounts and refunds?
Inventory value
What is the stock we hold worth right now, at cost and at retail?