What Is a Profit Margin?
Profit margin is one of the most important metrics in business. It tells you what percentage of revenue remains as profit after covering the cost of goods sold. A business with healthy margins can cover operating expenses, reinvest in growth, and weather downturns. A business with thin margins has little room for error.
Understanding your margin is essential whether you are setting prices for a product, evaluating a supplier quote, or assessing the profitability of a service offering.
What This Calculator Does
This margin calculator solves three common business problems: calculating margin and markup from known cost and revenue, finding the selling price required to achieve a target margin, and determining the maximum allowable cost given a revenue target and margin goal.
Inputs Required
- Calculate Mode: Choose from margin and markup analysis, selling price finder, or max cost finder
- Cost of Goods Sold: The direct cost of producing or purchasing the item being sold
- Revenue / Selling Price: The price at which the item is sold to customers
- Target Margin: The desired profit margin percentage (used when working backward from a goal)
Outputs Provided
- Profit Margin: Gross profit as a percentage of revenue
- Gross Profit: Revenue minus cost in dollar terms
- Markup: Gross profit as a percentage of cost
- Full Breakdown: Revenue, cost, gross profit, margin, and markup in a single summary table
How the Calculation Works
Margin and markup are two different ways of expressing the relationship between cost, revenue, and profit. Many people confuse them, but they use different denominators.
Gross Profit = Revenue - Cost
Margin = Gross Profit / Revenue x 100
Markup = Gross Profit / Cost x 100
To find the selling price from a cost and a target margin, rearrange the margin formula:
Selling Price = Cost / (1 - Target Margin / 100)
This is a critical formula that many business owners get wrong. A 40% margin does not mean adding 40% to the cost. A product that costs $60 with a target 40% margin must be priced at $60 / (1 - 0.40) = $100, not $84.
How to Use the Calculator
- Select the calculation mode that matches your task
- If analyzing existing pricing, enter your cost and selling price to see current margin and markup
- If setting a price, enter your cost and target margin to see the required selling price
- If evaluating a supplier, enter your revenue target and margin goal to see the maximum acceptable cost
- Review the full breakdown card for the complete picture
Example Calculation
A retailer buys a product for $40 and sells it for $70.
- Gross Profit: $70 - $40 = $30
- Margin: $30 / $70 = 42.86%
- Markup: $30 / $40 = 75%
Now the retailer wants to achieve a 50% margin instead. Using the selling price formula: $40 / (1 - 0.50) = $80. They need to raise the price to $80, not just add 50% to $40.
Real World Scenarios
E-Commerce Product Pricing
An online seller sources a product for $18 including shipping. Their platform fees and advertising cost roughly $8 per unit, bringing total cost to $26. To achieve a 35% margin, they need a selling price of $26 / (1 - 0.35) = $40. Pricing below this erodes profitability even if the product appears to sell well.
Service Business Rate Setting
A consultant with a direct cost of $50 per hour (salary, overheads, tools) wants a 60% gross margin. The required billing rate is $50 / (1 - 0.60) = $125 per hour. This covers direct costs and leaves $75 per hour for administrative expenses, sales, and profit.
Evaluating a Supplier Quote
A business with a standard selling price of $200 receives a supplier quote of $140. The margin calculator shows this yields a 30% margin. If the company's minimum margin requirement is 35%, the maximum acceptable cost is $200 x (1 - 0.35) = $130. The quote is $10 too high and needs renegotiation.
Why This Calculation Matters
Pricing decisions based on a misunderstood margin formula are one of the most common causes of business failure. A business that prices by adding a percentage to cost rather than working backward from a margin target will consistently underprice and erode profitability over time. Using this calculator to model pricing scenarios ensures every product or service is priced to meet the business's financial requirements.
Common Mistakes to Avoid
- Confusing margin with markup: A 40% markup means adding 40% to cost. A 40% margin means 40% of revenue is profit. These are different numbers from the same cost and revenue pair
- Calculating margin on cost instead of revenue: Margin is always expressed as a percentage of revenue, not cost. Using cost as the denominator produces the markup figure, not the margin
- Ignoring indirect costs: This calculator shows gross margin, which only accounts for direct cost of goods sold. Wages, rent, marketing, and other overheads must also be covered before arriving at net profit
- Using average cost instead of marginal cost: If your costs change at higher volumes due to bulk discounts or economies of scale, recalculate margin at each volume tier to price accurately