Margin Calculator
Calculate profit margin based on revenue and cost.
Enter your values and click Calculate
Profit margin is one of the most critical metrics in business — it shows how much of each dollar earned you actually keep as profit after covering costs. This calculator is used by retailers setting product prices, service businesses quoting jobs, wholesale buyers evaluating supplier deals, and freelancers assessing their effective hourly rate. Knowing your margin helps you quickly identify which products or services are driving profit and which are eating into it. A 40% margin means $0.40 of every dollar earned is retained, while the remaining $0.60 covers costs. The calculator also distinguishes margin from markup: a common and costly mistake is confusing the two, since markup uses cost as the denominator while margin uses revenue. You can also use margin to reverse-engineer a selling price from a target percentage using the formula: Price = Cost ÷ (1 − Margin). Whether you are reviewing existing financials or planning a new pricing structure, understanding margin prevents underpricing and supports smarter, data-backed decisions. Businesses that monitor gross margin regularly are better positioned to adjust pricing in response to rising costs, competitive pressure, or changing customer demand. Even a few percentage points of improvement in margin can translate to significantly higher profitability without requiring additional revenue.
How It Works
Profit margin measures how much of each dollar of revenue you keep as profit. The formula is: Margin (%) = (Revenue − Cost) ÷ Revenue × 100. First, gross profit is calculated by subtracting the cost from revenue. That profit is then divided by revenue — not by cost — and multiplied by 100 to express it as a percentage. This is the critical distinction between margin and markup: margin uses revenue as the denominator while markup uses cost. The calculator also outputs the cost ratio, which is the percentage of each revenue dollar consumed by costs. A 40% margin means for every $1 earned, $0.40 is profit and $0.60 covers costs. Higher margins indicate more efficient pricing or lower production costs relative to selling price.
Examples
Frequently Asked Questions
What is a good profit margin?
What is the difference between margin and markup?
How do I use margin to set a selling price?
Recommended Resources
- ComparisonMarkup vs. Margin: Why They're Not the Same
- Related ToolMarkup Calculator
- Related ToolProfit Margin Calculator