Find your margin and markup
Enter the cost price and selling price to calculate the profit, margin and markup.
Calculate margin, markup and selling price in seconds — for free
Use the calculators below to find, starting from the cost price, the profit margin, the markup or the ideal selling price of your product.
Enter the cost price and selling price to calculate the profit, margin and markup.
Enter the cost price and desired profit margin to calculate the selling price.
Profit margin is the percentage of the selling price that represents the profit earned on each transaction. It's one of the most important financial indicators for any business, because it directly measures the profitability of each product or service sold.
The profit margin formula is:
Practical example: a product with a cost of $60.00 sold for $100.00 generates $40.00 in profit and a margin of 40% — because $40 represents 40% of the $100 selling price.
Without knowing your margin, you could be selling a lot and still losing money. This happens when fixed and variable costs eat up all the apparent profit. Tracking your margin lets you:
Calculating profit margin is simple once you have a clear picture of all the costs involved. Follow these steps:
A shop owner buys bags for $85.00 (including shipping) and sells them for $149.90.
This means that for every $100 collected from the sale, $43.30 is gross profit — before paying rent, salaries and taxes.
If you know the cost and want to guarantee a specific margin, the formula is:
Example: cost of $85.00, desired margin of 40%.
Selling Price = 85 ÷ (1 − 0.40) = 85 ÷ 0.60 = $141.67
Profit margin calculates the profit percentage based on the selling price. Markup calculates the profit percentage based on cost. Both start from the same absolute profit, but use different bases — which is why a 40% markup never equals a 40% margin.
Margin = Profit ÷ Selling Price
Markup = Profit ÷ Cost Price
SP = Cost ÷ (1 − Margin)
Margin = Markup ÷ (1 + Markup)
Markup = Margin ÷ (1 − Margin)
See the equivalence between profit margin and markup for the most commonly used percentages in commerce:
| Profit Margin | Equivalent Markup |
|---|
Margin will always be lower than the equivalent markup — because it's calculated over a larger value (the selling price).
Markup is widely used in retail and manufacturing to set prices quickly. There are two ways to calculate it:
Example: a product bought for $50 and sold for $80.
Markup = (80 − 50) ÷ 50 × 100 = 30 ÷ 50 × 100 = 60%
(The profit margin in this case would be 30 ÷ 80 = 37.5%)
Example: desired margin of 35%.
Markup = 0.35 ÷ (1 − 0.35) = 0.35 ÷ 0.65 = 0.5385 = 53.85%
Selling price shouldn't be set based only on competitors or intuition. A badly calculated price can generate a loss even with high sales volume. Follow this method:
| Item | Value |
|---|---|
| Product cost | $45.00 |
| Packaging + tape | $3.50 |
| Inbound freight | $2.00 |
| Fixed cost allocation | $8.00 |
| Total unit cost | $58.50 |
With a desired margin of 35%:
Selling Price = $58.50 ÷ (1 − 0.35) = $58.50 ÷ 0.65 = $90.00
By selling for $90.00, the store secures $31.50 in profit per unit, with an effective margin of 35%.
Knowing the most common mistakes is just as important as mastering the formulas. Here are the ones that hurt profitability the most:
The most frequent mistake. Applying a 30% markup thinking you'll get a 30% margin actually produces a real margin of only 23.1%. At scale, that difference can mean a monthly loss.
Rent, salaries, electricity and internet exist even when there are no sales. If those costs aren't allocated into product prices, your gross margin turns into a net loss.
Commissions on eBay, Etsy and Amazon add up to between 12% and 16% of the selling price. Ignoring them is one of the most common reasons for selling a lot while earning very little.
Copying a competitor's price without knowing your own costs is dangerous. They may have purchasing terms, scale or an operating structure completely different from yours.
Costs change: suppliers raise prices, shipping costs rise, taxes change. A price that was profitable in January can generate a loss by July without the business owner noticing.
A 10% discount on the selling price can reduce the margin by far more than 10%. On a product with a 30% margin, a 10% discount cuts profit by 33%. Always use the calculator before offering discounts.
Each sector has very different cost and margin dynamics. Here are practical examples for the main retail and service industries:
In food retail, gross margins vary widely by category. Produce and dairy run between 20% and 35%, while beverages and personal care products can reach 40% to 50%.
A supermarket's net margin, after all expenses, usually falls between 1% and 4%, which requires high sales volume to be viable.
The industry uses the concept of food cost: ingredient cost should represent between 25% and 35% of a dish's price. A dish with a $12 food cost should be sold between $34 and $48.
After labor, rent and utilities, a restaurant's typical net margin lands between 5% and 15%.
Generic drugs have margins tightly regulated by drug pricing authorities, around 20% to 28%. Perfumes, supplements and cosmetics allow margins of 40% to 60%.
Insurance agreements and loyalty programs affect margin and should be factored into pricing.
In apparel, gross margins of 50% to 70% are common — especially for private-label brands or women's fashion. High seasonal turnover requires wider margins to cover unsold stock.
Stores with high inventory turnover should factor in the cost of tied-up capital when setting prices.
In e-commerce, besides the product cost, the calculation includes: packaging (~$1 to $3), outbound shipping ($3 to $12), platform fees (~3%), payment gateway (~2.8%) and return rate (~2% to 5%).
A gross margin of at least 40% is recommended so that net margin in e-commerce stays positive after all fees.
Distributors work with lower margins and higher volume. Gross margins between 8% and 20% are typical, but high turnover offsets the tight margin.
The payment terms extended to retailers (30/60/90 days) create a financing cost that should be built into the price.
eBay's final value fee ranges from 11% to 16% per sale, depending on the category. There's also payment processing on top, and shipping costs if you offer free shipping.
Always price on eBay including the selling fee as a variable cost in your margin calculation.
Etsy charges listing, transaction and payment processing fees that typically total 12% to 14% of the order value. Free shipping is often absorbed by the seller, and sale campaigns can reduce your margin further.
Only join promotional campaigns when your original margin is already high enough to absorb the reduction without a loss.
Amazon charges between 8% and 15% in referral fees, plus a closing fee for certain categories. If you use FBA (Fulfillment by Amazon), add storage and fulfillment costs (~$3 to $8 per unit).
On Amazon, winning the Buy Box requires competitive pricing — carefully calculate your total cost with FBA before setting a price.
Direct answers to the most common questions about margin, markup and pricing:
Deepen your knowledge of pricing and financial management:
Learn how to calculate the selling price considering all costs, expenses and your desired profit margin.
Understand the difference between simple markup and divisor markup and when to use each one.
Discover how to analyze your business's production efficiency with gross margin.
Learn how to calculate and interpret net margin to make more precise decisions.
A step-by-step method for pricing products without making the most common mistakes.
Complementary tools for your business's financial management:
Calculate the ideal markup for each product from cost and your desired margin.
Find the selling price considering all costs and your target margin.
See the impact of a discount on your margin before offering it.
Calculate gross, operating and net profit simply and quickly.