ThisCalculator

Everyday

Get Profit Margin Percentage: Formula & Calculator

Updated · Standard formula, shown below

Profit margin 50.00 %
Profit amount
50.00 $
Result
Cost price
50 $
You entered
Selling price
100 $
You entered

Get Profit Margin Percentage: Formula & Calculator

This calculator works out the profit margin percentage from your cost price and selling price. Enter the cost and the selling price, and you get back the profit margin as a percentage, along with the profit amount in your chosen currency. The formula is simple: (Selling Price – Cost Price) ÷ Selling Price × 100.

Formula

The profit margin percentage is calculated with this formula:

Profit Margin (%) = (Selling Price – Cost Price) ÷ Selling Price × 100

  • Selling Price – the price you charge the customer (in dollars, euros, etc.)
  • Cost Price – what you paid to acquire or produce the item (same currency)

The result is a percentage. A margin of 40% means that for every $100 of revenue, $40 is gross profit and $60 covers the cost of goods.

Worked Example

Using the default values from the calculator above:

  1. Cost price = $50
  2. Selling price = $100
  3. Profit = $100 – $50 = $50
  4. Profit margin = ($50 ÷ $100) × 100 = 50%

The calculator shows a margin of 50.00% and a profit of $50.00, matching the manual calculation.

Why Profit Margin Matters

Profit margin is one of the most widely used financial metrics because it shows how much of each sales dollar actually becomes profit. It is different from markup, which is often confused with margin. Markup is the percentage added to the cost to get the selling price, while margin is the percentage of the selling price that is profit.

For example, a 50% margin means half the selling price is profit. But a 50% markup means the selling price is cost plus 50% of the cost. On a $50 cost, a 50% markup gives a $75 selling price and a margin of only 33.3%. Knowing the difference prevents serious pricing errors.

How to Use the Calculator

To get the profit margin percentage, you only need two numbers:

  1. Enter the cost price (what you paid or spent to make the product).
  2. Enter the selling price (what the customer pays).
  3. The calculator instantly shows the margin percentage and the profit amount.

The margin percentage is the headline result. The profit amount is shown as a secondary output. You can use any currency – the math works the same as long as both prices are in the same unit.

Common Mistakes and Misconceptions

One of the most common errors is confusing margin with markup. As noted, they are not the same. Another frequent mistake is using the cost price as the denominator instead of the selling price. The correct formula always divides by the selling price.

Rounding can also cause small discrepancies. If you round the margin to one decimal place, the profit amount may not exactly match the rounded percentage. For precise financial records, keep more decimal places or work with the exact profit amount.

A third misconception is that a higher margin is always better. While a higher margin usually means more profit per sale, it can also make your price less competitive. Many businesses aim for a target margin that balances profitability with market demand.

Limitations of the Formula

The basic profit margin formula only considers the direct cost of the product. It does not include overhead costs like rent, salaries, marketing, or utilities. That is why the result is often called the gross profit margin. To get a net profit margin, you would need to subtract all operating expenses from revenue before dividing by revenue.

Also, the formula assumes a single product or service. For a business with many products, you would calculate the margin for each item or use an average. The formula also ignores taxes, discounts, and returns, which can affect the actual profit realized.

Despite these limitations, the gross profit margin is a quick and useful tool for pricing decisions, comparing profitability across products, and tracking changes over time.

Frequently Asked Questions

What is the difference between profit margin and markup?

Profit margin is profit divided by selling price, while markup is profit divided by cost price. For example, if an item costs $80 and sells for $100, the profit is $20. The margin is 20% ($20 ÷ $100), but the markup is 25% ($20 ÷ $80). They are related but measure different things.

Can the profit margin be over 100%?

No, the profit margin percentage cannot exceed 100% if the selling price is positive. Since the selling price is the denominator, and profit cannot exceed the selling price (unless cost is negative, which is unrealistic), the margin will always be less than 100%. A margin of 100% would mean the cost is zero.

What if the selling price is less than the cost?

Then the profit margin is negative, indicating a loss. For example, if you buy an item for $50 and sell it for $40, the profit is –$10 and the margin is –25%. This means you are losing money on each sale, which is unsustainable unless it is a loss leader or a clearance sale.

How do I calculate the selling price if I want a specific margin?

Rearrange the formula: Selling Price = Cost ÷ (1 – Margin%). For instance, if you want a 40% margin and the cost is $60, the selling price would be $60 ÷ (1 – 0.40) = $100. This is a common calculation for pricing products.

Does the profit margin formula work for services?

Yes, the same formula applies to services. The cost would be the direct cost of providing the service (labor, materials, etc.), and the selling price is what you charge the client. Many service businesses use this to ensure they cover their costs and make a profit.

Is a higher profit margin always better?

Not necessarily. A very high margin might mean your price is too high, which could reduce sales volume. Conversely, a low margin might be acceptable if you sell in high volume. The ideal margin depends on your industry, competition, and business model. It is more important to have a consistent, positive margin than to chase an arbitrarily high number.

Related

Formula used
in cost | Cost price | $ | 50 | 0
in sell | Selling price | $ | 100 | 0
out margin | Profit margin | % | ((sell - cost) / sell) * 100 | 2
out profit | Profit amount | $ | sell - cost | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.