About the Margin Calculator
This margin calculator helps you price products and check profitability for an online store, Amazon or Etsy shop, wholesale business or restaurant. A “30% margin” and a “30% markup” are very different numbers: margin is profit as a share of the selling price, markup is profit as a share of cost. Mixing them up is one of the most common pricing mistakes, so the calculator always shows both, plus a table of prices for common margins.
It’s used by Etsy and Shopify sellers pricing a new listing, wholesalers quoting a reseller and restaurant owners checking food cost. A restaurant aiming for a 30% food cost, for example, can switch to Price from margin, enter 70% and get the menu price for any plate cost.
How to use
- Choose a mode: Margin uses cost and selling price; Price from margin and Price from markup calculate the price from cost and a target percentage.
- Enter the cost (what you pay per unit, including landed costs) and the price or target percentage, all before sales tax.
- Tick Add sales tax and enter your combined state and local rate to see the price the customer pays.
- Use the table to compare prices and profit at margins from 10% to 60%.
Worked examples
Handmade product on Etsy
- Input
- Margin · cost $12.40 (materials and packaging) · price $29.00
- Result
- Gross margin 57.24% · $16.60 profit per unit · markup 133.87%
Listing, transaction and payment fees still come out of that $16.60. Add them to the cost to see what you actually keep per sale.
Pricing for a 40% margin, plus sales tax
- Input
- Price from margin · cost $22.50 · target margin 40% · Add sales tax 8.25%
- Result
- Price $37.50 · profit $15.00 · markup 66.67%
Sales tax $3.09 → price with tax $40.59
Adding 40% to the cost would give $31.50 and only a 28.6% margin. The tax is passed on to the state, so your margin is still measured on $37.50.
Keystone pricing (double the cost)
- Input
- Price from markup · cost $18.00 · markup 100%
- Result
- Price $36.00 · profit $18.00 · margin 50%
Keystone is a common retail rule of thumb: a 100% markup is always a 50% margin. It’s the starting point many gift and apparel shops use for suggested retail prices.
Margin and markup formulas
| Value | Formula | Example (cost $35, price $50) |
|---|---|---|
| Profit | price − cost | $15 |
| Gross margin | profit ÷ price × 100 | 30% |
| Markup | profit ÷ cost × 100 | 42.86% |
| Price from margin m | cost ÷ (1 − m) | 40% → $58.33 |
| Price from markup k | cost × (1 + k) | 50% → $52.50 |
Common mistake: adding 40% to a $35 cost ($49) gives a margin of only 28.6%, not 40%.
Margin to markup conversion
| Margin | Markup |
|---|---|
| 10% | 11.1% |
| 20% | 25% |
| 25% | 33.3% |
| 30% | 42.9% |
| 40% | 66.7% |
| 50% | 100% |
| 60% | 150% |
Markup = margin ÷ (1 − margin); margin = markup ÷ (1 + markup).
Sales tax and other costs
US sales tax is collected from the customer and passed on to the state, so it is not part of your revenue or margin – always calculate margin on the pre-tax price. Rates depend on the state, county and city. Also account for marketplace and payment fees (often 3–15% of revenue), shipping, returns and advertising, either by adding them to cost or by targeting a higher margin.
FAQ
What is the difference between margin and markup?
Margin is profit divided by the selling price; markup is profit divided by cost. The same sale always has a higher markup than margin – for example, cost $35 and price $50 is a 42.9% markup but a 30% margin.
Can a margin be more than 100%?
No. Because margin is a share of the price, it can never reach 100% unless the cost is zero. Markup has no upper limit: selling at three times cost is a 200% markup and a 66.7% margin.
What is a good profit margin?
It depends on the industry. Grocery stores often run gross margins of 25–30%, apparel and cosmetics 50% or more, and software even higher. Compare with businesses like yours and remember that operating costs still come out of the gross margin.
Is this gross margin or net margin?
Gross margin: it only subtracts the cost of the product. Net margin also subtracts overhead such as rent, salaries and taxes.
How do I calculate food cost percentage?
Food cost % = plate cost ÷ menu price × 100, which is 100 minus the gross margin. A dish with $3.60 of ingredients sold for $12 shows a 70% margin, so its food cost is 30%. To price a new dish for a 30% food cost, use Price from margin with 70%.