CalcPro

Margin Calculator

Selling price, profit and markup from cost and a target margin.

Understanding margins and pricing

When you sell a product, the difference between what you pay for it and what you charge customers is your profit. A margin calculator helps you set the right selling price based on the profit percentage you want to achieve. This is essential for retail, wholesale, manufacturing, and service businesses.

Margin and markup are often confused, but they're different. Margin is profit as a percentage of the selling price, while markup is profit as a percentage of the cost. This calculator uses margin, which is the standard metric for pricing decisions.

The formula

Selling Price = Cost ÷ (1 − Margin% ÷ 100)

Once you have the selling price, profit is simply selling price minus cost. Markup percentage is then calculated as (profit ÷ cost) × 100.

Worked example

Let's say you manufacture a water bottle that costs $8 to produce, and you want a 40% gross margin.

Step 1: Apply the formula

  • Selling Price = $8 ÷ (1 − 40 ÷ 100)
  • Selling Price = $8 ÷ (1 − 0.40)
  • Selling Price = $8 ÷ 0.60
  • Selling Price = $13.33

Step 2: Calculate profit

  • Profit = $13.33 − $8 = $5.33 per unit

Step 3: Verify the margin

  • Margin = ($5.33 ÷ $13.33) × 100 = 40%

Step 4: Calculate markup for reference

  • Markup = ($5.33 ÷ $8) × 100 = 66.6%

Notice that a 40% margin requires a 66.6% markup on cost. This is why many retailers aim for 50% margin—it's easier to communicate as roughly doubling the cost price.

Why margin percentage matters

Different industries have different margin expectations. Grocery stores typically operate on 20–30% margins because volume is high and competition is tight. Electronics retailers might target 15–25%. Luxury goods can sustain 50%+ margins. Premium services often aim for 60–80%.

Your margin must cover three things:

  1. Operating costs: rent, staff, utilities, shipping
  2. Taxes and fees: income tax, VAT, payment processing
  3. Contingency: unexpected costs, discounts, returns

If your margin is too low, you won't be profitable. If it's too high relative to competitors, you'll lose sales. The calculator helps you find the sweet spot by showing exactly what price you need to charge.

Common mistakes

Confusing margin with markup: A 50% markup on a $10 cost gives a $15 selling price and only a 33% margin. Always use margin when pricing based on target profit percentage—it's more accurate for business planning.

Ignoring hidden costs: Your cost input should include all direct expenses tied to that product: materials, labor, packaging, freight. If you omit shipping costs, your margin will be eaten away.

Setting margin too tight: A 15% margin sounds reasonable until you account for returns, damaged stock, and the time you spend managing inventory. Most sustainable businesses maintain at least 30–40% margin after all costs.

Forgetting competitive pressure: Even if your calculator says you can charge $20, check what competitors charge. If they're at $15, your margin won't matter if no one buys. Use this tool to understand your costs, then adjust based on market reality.

Frequently asked questions

What's the difference between margin and markup?

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. For example, a $10 cost with $5 profit has a 33% margin ($5÷$15) but a 50% markup ($5÷$10). This calculator uses margin, which is the standard for pricing.

How do I know what margin to target?

It depends on your industry and business model. Grocery stores use 20–30%, electronics 15–25%, apparel 40–50%, and luxury services 60%+. Your margin must cover operating costs, taxes, and contingencies. Start by calculating your total overhead, then set margin high enough to cover it plus reasonable profit.

What should I include in the cost input?

Include all direct costs: raw materials, manufacturing labor, packaging, and shipping to your warehouse. Do not include fixed overhead like rent or salaries—those come out of your gross profit. If you're reselling, cost is your wholesale price plus freight.

Can I use this for services?

Yes. For services, 'cost' is the direct expense: contractor fees, materials, software licenses, or your hourly labor cost. Margin then covers your operating overhead and profit. A consultant might have $20/hour labor cost and target 60% margin to set a $50/hour rate.

Why does my margin shrink when I give discounts?

If you sell at $13.33 with a 40% margin but offer a 10% discount, the new price is $12, and your margin drops to 33%. Always factor in typical discounts when you set your initial margin target. If you expect 10% off average, aim for 50% margin instead of 40%.

Is this calculator suitable for tax or financial advice?

This is an estimate tool to help you understand pricing and profitability. It does not account for taxes, accounting methods, or business structure. Consult an accountant for how margins affect your actual tax liability and financial statements.