FREE · INSTANT RESULT · WITH THE FORMULA
Home / Finance & Money / Margin Calculator
Finance · Margin

Margin Calculator

Enter the cost and selling price to get the margin, the markup and the profit. Margin is a share of the price; markup is a share of the cost.

Margin
33.3%
Markup
50.0%
margin = profit ÷ price · markup = profit ÷ cost

TL;DR: A margin calculator determines the profitability of a product or service by computing the profit margin, which is the percentage of revenue you keep as profit. It simplifies pricing strategies and financial analysis.

  • Profit Margin Formula: Margin (%) = [(Revenue - Cost) / Revenue] × 100.
  • Margin vs. Markup: Margin is profit relative to revenue, while markup is profit relative to cost.
  • Key Inputs: Most margin calculators require any two of the following: cost, revenue, markup, or margin.
  • Pricing Tool: You can use the formula to calculate a selling price based on a desired profit margin.
  • Business Health: Tracking profit margin helps assess profitability, efficiency, and pricing effectiveness.

What Is Profit Margin?

Profit margin is a percentage that indicates how many cents of profit a business has generated for each dollar of sale. It is a primary measure of a company's profitability, calculated by dividing the profit by the revenue. A higher profit margin suggests a more profitable business that has better control over its costs relative to its sales.

This metric is expressed as a percentage and is fundamental to understanding a company"s financial health. Investors and managers use the profit margin to compare a company"s performance over time or to benchmark it against competitors in the same industry. A consistent or growing margin is often a sign of a well-managed and financially stable operation.

How to Calculate Margin: The Formula Explained

The formula to calculate profit margin is Profit divided by Revenue, multiplied by 100 to express it as a percentage. Profit itself is calculated by subtracting the Cost from the Revenue. The entire formula combines these steps.

The complete calculation is: Margin (%) = [(Revenue - Cost) / Revenue] × 100

The components of the formula are defined as follows:

  • Cost: The total expense incurred to produce or acquire the product sold. This is often referred to as the Cost of Goods Sold (COGS).
  • Revenue: The total income generated from the sale of the product. This is also known as the selling price.
  • Profit: The amount of money left after subtracting the cost from the revenue (Revenue - Cost).

Margin vs. Markup: Understanding the Key Difference

Margin and markup both measure profitability but from different perspectives; margin is profit as a percentage of revenue, while markup is profit as a percentage of cost. Confusing the two can lead to significant pricing errors and lower-than-expected profits. Markup will always be a higher percentage than margin for any profitable sale.

The following table breaks down the core distinctions between the two metrics.

FeatureProfit MarginMarkup
Calculation BasisRevenue (Selling Price)Cost of Goods Sold (COGS)
Formula(Revenue - Cost) / Revenue(Revenue - Cost) / Cost
PurposeMeasures overall profitability of a saleDetermines the price increase over cost
Value ComparisonAlways lower than markup for a profitable itemAlways higher than margin for a profitable item

How to Set a Price for a Target Margin

To determine the selling price needed to achieve a specific profit margin, you can rearrange the margin formula. The required selling price is the cost of the item divided by the inverse of the desired margin percentage. This calculation is essential for ensuring your pricing strategy meets profitability goals.

The formula to set a price is: Selling Price = Cost / (1 - Desired Margin Percentage)

For example, to achieve a 40% margin on a product that costs $60, you would calculate the selling price as follows:

  • Convert the margin to a decimal: 40% = 0.40.
  • Subtract the decimal from 1: 1 - 0.40 = 0.60.
  • Divide the cost by the result: $60 / 0.60 = $100.
  • The item must be sold for $100 to realize a 40% profit margin.

Gross Margin vs. Net Margin

Gross profit margin measures the profitability of a specific product, while net profit margin measures the profitability of the entire business. Gross margin only considers the Cost of Goods Sold (COGS), which includes direct labor and materials. It shows how efficiently a company produces and sells its core products.

Net profit margin provides a more comprehensive view of financial health. It accounts for all business expenses, not just COGS. These additional costs include operating expenses, interest, taxes, and administrative overhead. A company can have a high gross margin but a low net margin if its operating costs are too high.

Frequently Asked Questions

How do you calculate the margin? To calculate margin, subtract the cost of an item from its revenue (selling price), then divide that result by the revenue. Multiply the final number by 100 to get the margin percentage.

What is a 30% margin? A 30% margin means that for every dollar of revenue, 30 cents is profit. For an item sold at $100, a 30% margin translates to $30 of profit, with the remaining $70 being the cost of the item.

How do you calculate a 40% margin on a price? To set a price that achieves a 40% margin, divide the item's cost by 0.60 (which is 1 - 0.40). For instance, if a product costs $30, the selling price for a 40% margin would be $30 / 0.60, which equals $50.

What is a 20% profit margin? A 20% profit margin indicates that 20% of the total revenue from a sale is profit. If a product sells for $50, a 20% margin means the profit is $10 and the cost of the product was $40.

Is a higher margin always better? A higher margin generally indicates better profitability, but it is not the only factor for success. A business might choose a lower margin strategy to increase sales volume, gain market share, or sell complementary products, which can lead to higher overall profit.