FinanceCalculatorHub

Margin Calculator

Enter cost and selling price — or set a target margin — to instantly calculate profit margin, markup, and gross profit.

Pricing Inputs

$
$
%

Results

Gross Profit

Profit Margin

Markup

Revenue / Cost Ratio

Selling price at common margins (cost = $50.00)

Revenue breakdown

Profit Margin vs. Markup: Understanding the Difference

Profit margin and markup are the two most commonly confused pricing metrics — and the confusion costs businesses real money. Profit margin is calculated as gross profit divided by selling price: if you sell something for $100 and it cost you $60, your margin is $40/$100 = 40%. Markup is calculated as gross profit divided by cost: the same scenario gives a markup of $40/$60 = 66.7%. The margin is always lower than the markup percentage for any profitable product, because the denominator (selling price) is larger than the cost. Confusing the two — applying a 40% "markup" when you actually mean 40% margin — results in prices that are 33% lower than intended, dramatically compressing profits.

The formula to convert between the two: Markup = Margin / (1 - Margin). To achieve a 40% margin, you need a 66.7% markup. To achieve a 50% margin, you need a 100% markup. Retailers commonly use 50% margin (keystoning) for simplicity — buying at wholesale and selling at twice the cost. This calculator handles both directions: enter cost and selling price to see both metrics, or enter a target margin to have the selling price computed automatically.

Gross Margin Benchmarks by Industry

What counts as a "good" margin varies enormously by industry. Software and SaaS companies routinely achieve 70-80% gross margins because the marginal cost of delivering software to one more customer is near zero. Grocery stores operate on 25-30% gross margins but rely on volume and inventory turnover. Restaurants target 60-70% gross margins on food (before labor and overhead), which sound healthy until labor and rent reduce net margins to 3-9%. Apparel retail typically sees 40-60% gross margins. Automotive dealerships earn thin margins on new car sales (3-5%) and make the bulk of their profit on service and used vehicles.

Understanding your industry benchmark matters because gross margin must cover all operating expenses — labor, rent, marketing, administration — before any profit remains. A 40% gross margin sounds comfortable but leaves no profit if operating expenses consume 45% of revenue. Tracking gross margin over time also surfaces pricing erosion from discounting, rising input costs, or unfavorable product mix shifts before they become cash flow problems.

Pricing Strategy and Margin Engineering

Cost-plus pricing starts with cost and adds a target margin or markup to arrive at price. It is simple and ensures profitability on each unit but ignores what customers are willing to pay and what competitors charge. Value-based pricing starts with the customer's perceived value and works backward to acceptable cost structures — it typically achieves higher margins but requires deep understanding of customer willingness to pay. Competitive pricing anchors price to market rates regardless of cost, which can create margin pressure if your costs are above average.

Volume discounting trades margin for volume, which increases total gross profit if the volume increase more than compensates for the margin reduction. A product with 40% margin sold to 1,000 units generates $40,000 gross profit; if a 10% price discount brings 1,500 units, margin drops to 33% but total gross profit rises to $49,500. This calculator can model different price points to quickly evaluate these trade-offs. Setting minimum acceptable margins — the floor below which a sale is declined — prevents the common error of accepting unprofitable orders out of short-term revenue pressure.

The Hidden Costs That Reduce Effective Margin

Gross margin as calculated here — selling price minus cost of goods sold — captures only direct product costs. Actual profitability requires accounting for all overhead: marketing and customer acquisition costs, credit card processing fees (2-3% of revenue), shipping and fulfillment costs, returns and shrinkage, customer service costs, and warehouse or distribution expenses. A product with a 45% gross margin after COGS may have an effective net margin of 8-15% once all these costs are allocated. Understanding the full cost stack per order or per unit is essential to pricing decisions that actually drive business profitability.