Margin Calculator

Calculate profit margin, markup, and selling price from cost and revenue.

Profit
Margin
Markup
Margin is the percentage of the selling price. Markup is the percentage of the cost.

What This Margin Calculator Does

This tool calculates three core financial metrics from your cost and revenue data: profit margin, markup percentage, and selling price. It is designed for business owners, product managers, and freelancers who need to quickly determine pricing strategies or evaluate the profitability of a product or service.

By entering any two known values (e.g., cost and revenue, or cost and desired margin), the calculator derives the missing figures. This eliminates manual formula work and reduces the risk of calculation errors when setting prices or analyzing financial performance.

How Profit Margin and Markup Are Calculated

The calculator uses standard financial formulas. Understanding the distinction between margin and markup is critical for accurate pricing.

Profit Margin (Gross Margin)

Profit margin expresses profit as a percentage of the selling price (revenue). It answers: "What portion of each dollar earned is profit?"

Formula: Profit Margin (%) = ((Revenue − Cost) ÷ Revenue) × 100

For example, if an item costs $40 to produce and sells for $100, the profit margin is 60%. This means 60% of the selling price is profit.

Markup

Markup expresses profit as a percentage of the cost. It answers: "How much above cost am I selling this for?"

Formula: Markup (%) = ((Revenue − Cost) ÷ Cost) × 100

Using the same example ($40 cost, $100 revenue), the markup is 150%. This means the selling price is 150% higher than the cost.

Selling Price

When you know your cost and desired margin or markup, the calculator determines the required selling price.

Formula (from margin): Selling Price = Cost ÷ (1 − (Desired Margin % ÷ 100))

Formula (from markup): Selling Price = Cost × (1 + (Desired Markup % ÷ 100))

How to Use the Calculator

Enter the values you know into the input fields. The calculator will automatically compute the remaining fields.

  • Cost: The total cost to acquire or produce the product (materials, labor, overhead).
  • Revenue (Selling Price): The price at which the product is sold to the customer.
  • Margin (%): The desired profit margin as a percentage of revenue.
  • Markup (%): The desired markup as a percentage of cost.

You only need to provide two of these four values. The tool will calculate the rest. For example, enter Cost and Revenue to see your current margin and markup. Or enter Cost and a desired Margin to find the selling price you should set.

Practical Example

A retailer purchases a chair for $80 (cost) and wants a 40% profit margin on the sale.

  1. Enter Cost = $80.
  2. Enter Margin = 40%.
  3. The calculator returns Revenue = $133.33 and Markup = 66.67%.

This tells the retailer they must sell the chair for approximately $133.33 to achieve a 40% margin. The markup of 66.67% indicates the selling price is 66.67% above the cost.

Understanding Your Results

The output provides a complete picture of your pricing structure. Focus on the metric that aligns with your business goal.

  • Profit Margin is the standard metric for financial reporting and comparing profitability across products. A higher margin means more profit per sale relative to the selling price.
  • Markup is commonly used in retail and wholesale for setting initial prices. It is easier to apply consistently across a product line.
  • Selling Price is the final price to the customer. Ensure it is competitive within your market while still achieving your target margin.

Note that a high markup percentage does not necessarily mean a high profit margin. For example, a 100% markup results in only a 50% profit margin. Always verify your pricing strategy using the correct metric.

Common Mistakes to Avoid

  • Confusing margin with markup. A 50% markup is not the same as a 50% margin. Using the wrong metric can lead to underpricing or overpricing.
  • Forgetting to include all costs. The cost input should include every expense directly tied to the product (materials, labor, shipping, transaction fees). Omitting costs inflates your perceived profitability.
  • Applying margin to cost. To achieve a 30% margin, do not simply add 30% to the cost. This results in a 23% margin, not 30%. Use the correct formula or this calculator.

Limitations and Considerations

This calculator provides gross profit margin and markup figures. It does not account for fixed costs (rent, salaries, marketing) or taxes. The results represent product-level profitability, not overall business net profit.

All calculations assume a single unit or consistent pricing. Volume discounts, tiered pricing, or variable costs per unit are not factored in. For complex pricing models, consult a financial professional.

Practical Use Cases

  • Setting retail prices: Determine the selling price needed to achieve a target margin for new products.
  • Evaluating supplier deals: Quickly assess whether a discounted bulk purchase still meets your margin requirements.
  • Freelance project pricing: Calculate the hourly rate or project fee needed to cover costs and achieve a desired profit.
  • Menu pricing for restaurants: Standardize food cost percentages by calculating the required menu price for each dish.

Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit expressed as a percentage of the selling price. Markup is profit expressed as a percentage of the cost. For example, a 50% markup means you added 50% of the cost to get the price. A 50% margin means 50% of the selling price is profit. Markup percentages are always higher than margin percentages for the same profit amount.

Can I use this calculator for services, not just products?

Yes. Enter your total cost to deliver the service (labor, materials, software, etc.) as the "Cost" and your desired revenue as "Revenue" or target margin. The same formulas apply.

What does a negative margin mean?

A negative margin indicates you are selling the product for less than it costs you to produce or acquire it. This results in a loss on each sale. Review your cost structure or pricing strategy immediately.

Should I use margin or markup for pricing?

Use margin for financial analysis and reporting, as it is the standard accounting metric. Use markup for quick, consistent price setting across many items, especially in retail and wholesale. Many businesses calculate both to ensure their pricing strategy is sound.