margin percent calculator

Margin Percent Calculator

Use this tool to calculate gross margin, gross profit, and markup. Optionally enter a target margin to find the selling price you should charge.

What Is Margin Percent?

Margin percent (often called gross margin) tells you how much of each sales dollar is left after covering the direct cost of the product or service. It is one of the most important profitability metrics for eCommerce stores, agencies, SaaS products, restaurants, and retail businesses.

If your margin is too low, even strong sales volume can still leave you with weak profits. If your margin is healthy, your business has more room for operating expenses, growth, and unexpected costs.

Margin Formula

The standard formula for gross margin percent is:

Margin % = ((Selling Price - Cost Price) / Selling Price) × 100
  • Selling Price = the amount your customer pays
  • Cost Price = your direct cost to provide the product/service
  • Gross Profit = Selling Price − Cost Price

Important: margin is based on selling price, not cost.

Margin vs Markup (They Are Not the Same)

Margin

Margin expresses profit as a percentage of the selling price.

Markup

Markup expresses profit as a percentage of the cost.

Example: if cost is $50 and price is $80, profit is $30.

  • Margin = 30 / 80 = 37.5%
  • Markup = 30 / 50 = 60%

This difference is why confusing margin and markup can lead to underpricing.

How to Use This Margin Percent Calculator

1) Enter Cost Price

Type your direct cost for one unit, project, or service.

2) Enter Selling Price

Type what you charge the customer.

3) Click Calculate

You’ll get:

  • Gross Profit in dollars
  • Margin Percent
  • Markup Percent

4) Optional: Target Margin

If you enter a target margin (for example, 40%), the calculator also gives the target selling price needed to hit that margin with your current cost.

Common Pricing Mistakes

  • Using markup when you intended margin: this often sets prices too low.
  • Ignoring variable costs: fees, shipping, returns, and transaction costs can shrink real margin.
  • Copying competitors blindly: their cost structure may be very different from yours.
  • Not updating pricing regularly: supplier increases can silently erode profitability.

Tips to Improve Your Margin

Raise value before raising price

Bundle, improve positioning, add guarantees, or enhance service quality so higher pricing feels justified.

Reduce direct costs strategically

Negotiate with suppliers, improve operations, and reduce waste. A small cost reduction can produce a large margin improvement.

Track product-level profitability

Not all products deserve equal attention. Focus on high-margin winners and fix or remove chronic low-margin offers.

Quick FAQ

What is a “good” margin?

It depends on your industry and business model. High-volume retail can run on lower margins; premium services often require much higher margins.

Can margin be negative?

Yes. If selling price is below cost, margin is negative and you are losing money on each sale.

Why is 100% margin not allowed?

A 100% margin would imply cost is zero while keeping a positive selling price relationship that breaks the usual pricing equation. In practice, target margin should be below 100%.

🔗 Related Calculators