Free tool · Pricing
Profit margin calculator
Gross margin and margin after order costs.
Enter the selling price and the cost to get the gross profit, the margin and the markup. Add shipping, the payment fee and the ad cost per order to see what an online store really keeps, or the price you need for a target margin.
It works in any currency. Use net amounts, without VAT or sales tax.
How it is calculated
Profit margin formulas
Gross profit = selling price − cost
Gross margin = gross profit / selling price × 100
Order costs = shipping + selling price × payment fee + ad cost per order
Margin after order costs = (gross profit − order costs) / selling price × 100
Price for a target margin = (cost + shipping + ad cost) / (1 − margin − payment fee)
Example
Selling price 50.00, cost 30.00
50.00 − 30.00 = 20.00 gross profit
20.00 / 50.00 = 40% gross margin
With 4.50 shipping, 3% payment fee (1.50) and 6.00 ad cost: 20.00 − 12.00 = 8.00, a margin of 16%
Why the gross margin is not what you keep
In an online store every order has costs that a shop counter does not: shipping you do not charge in full, packaging, the fee of the payment provider (see the PayPal fee calculator) and, for many orders, the ads that brought the buyer. In the example above they turn a 40% gross margin into 16%. Enter them per order, and if an order usually holds several items, divide them by the number of items. Fixed costs such as rent, staff or software are not spread here; the profit of all orders together has to cover them.
The ROAS calculator shows how much ad spend a margin can carry, the discount calculator how much more you need to sell after a price cut, the markup calculator starts from the cost instead of the price, and the break-even calculator how many sales cover your fixed costs.
Margin and markup
| Margin | Markup | Price for a cost of 10.00 |
|---|---|---|
| 10% | 11.1% | 11.11 |
| 20% | 25.0% | 12.50 |
| 30% | 42.9% | 14.29 |
| 40% | 66.7% | 16.67 |
| 50% | 100.0% | 20.00 |
| 60% | 150.0% | 25.00 |
A margin can never reach 100%, a markup can be any size. A 100% markup is a 50% margin.
Profit margin FAQ
How do I calculate profit margin?
Subtract the cost from the selling price and divide the result by the selling price. A product that sells for 50 and costs 30 has a gross profit of 20 and a margin of 20 / 50 = 40%.
What is the difference between gross margin and net margin?
Gross margin only subtracts the cost of the goods. Net margin also subtracts the other costs. This calculator shows the margin after the costs of each order: shipping you pay, the payment fee and the ad cost per order. Fixed costs such as rent, staff or software are not included.
How do I find the selling price for a target margin?
Divide the cost by 1 minus the margin. For a 40% margin on a cost of 30, the price is 30 / 0.6 = 50. If a payment fee is charged as a percentage of the price, subtract it as well: with a 3% fee the price is 30 / 0.57 = 52.63.
Is margin the same as markup?
No. Both use the same profit, but margin divides it by the selling price and markup by the cost. A 40% margin is a 66.7% markup. The markup calculator converts between the two.
Should I calculate with or without VAT?
Use net amounts, without VAT or sales tax, for the price and all costs. The tax goes to the tax office and is not part of your margin.
What is a good profit margin for an online store?
There is no single figure; it depends on the category, the order value and how many orders come from paid ads. What matters is that the margin after order costs is clearly above zero and leaves enough to pay the fixed costs.
For online stores
More sales from the visitors you already paid for
Grumeria is a typo-tolerant site search for online stores. When the store search finds nothing for a misspelled word, the visitor and the ad cost behind it are lost. The free feed check shows on your own products what Grumeria finds for such searches; it reads WooCommerce, Shopify, Magento and PrestaShop stores straight from the store address.
- 14-day free trial, no payment method needed
- Then from €29 a month (excl. VAT)
- Free feed check, no account needed