Passer au contenu principal
Business β˜… Popular

Calculate your profit margin: formula, rate and examples

How to calculate gross margin and margin rate? Formula, difference with markup and sector examples.

Published on January 12, 2026

Profit margin is the most fundamental financial indicator for any entrepreneur, retailer or e-commerce seller. Knowing your margin on each product allows you to set prices correctly, identify profitable products and avoid unknowingly selling at a loss.

Understanding the conversion

Gross margin is the difference between selling price and cost of goods sold. The margin rate expresses this margin as a percentage of the selling price. The markup rate, often confused with margin, expresses the margin as a percentage of the purchase price. These two rates are very different: a 50% margin on selling price equals a 100% markup on purchase price.

πŸ“ Formula

Margin = Selling Price - Cost | Margin rate = (Margin / Selling Price) Γ— 100 | Markup rate = (Margin / Cost) Γ— 100

πŸ“Š Conversion table

Sector Average margin rate Example cost β†’ price
Grocery retail 20–30 % $1.00 β†’ $1.30
General e-commerce 30–50 % $20 β†’ $33
Restaurant 65–75 % $3 β†’ $10
Fashion / apparel 50–70 % $15 β†’ $40
Software / SaaS 70–90 % near-zero marginal cost
Jewelry / luxury 50–65 % $200 β†’ $500

πŸ’‘ Practical examples

Example 1: product bought for $20 sold at $45

Margin = 45 - 20 = $25. Margin rate = (25/45) Γ— 100 = 55.6%. Markup rate = (25/20) Γ— 100 = 125%.

Example 2: find selling price for 60% margin

If Cost = $12 and target = 60% margin rate: Price = Cost / (1 - 0.60) = 12 / 0.40 = $30.

Example 3: margin after shipping costs

Cost = $25, shipping = $5, Price = $55. Total cost = $30. Net margin = $25. Real margin rate = 45.5%.

⚑ Use the tool

Try our free online tool β€” no installation required.

Open the tool β†’

πŸ”— Other useful tools

Lien copiΓ© !