Margin Calculator
Calculate profit margin, revenue, or cost from any two values.
Last updated:
Calculation Examples
📋Steps to Calculate
-
Enter any two known values: cost, revenue, profit, or margin percentage.
-
Make sure all values use the same currency.
-
Click "Calculate" to get all four metrics at once.
Mistakes to Avoid ⚠️
- Confusing margin with markup. A 50% markup on a $100 cost gives a $150 price and only a 33.3% margin. Pricing with the wrong one quietly underprices every sale.
- Treating gross margin as net profit. Gross margin ignores rent, salaries, marketing, and taxes. A business with a 40% gross margin still loses money if operating expenses exceed 40% of revenue.
- Ignoring returns and chargebacks. Sell 100 units at $100 with a $60 unit cost and the margin is 40%. If 10 units are refunded and cannot be resold, revenue falls to $9,000, cost stays at $6,000, and margin drops to 33.3%.
- Dividing profit by cost instead of revenue. On a $60 cost and a $100 price, profit over cost shows 66.7% while the true margin is 40%, which makes the product look far more profitable than it is.
Practical Applications📊
Price products to hit a target gross margin. A $70 cost and a 30% target margin set the minimum price at $100.
Track margin by product line or customer segment. A slide from 40% to 36% on a $100 product means unit profit fell from $40 to $36, a 10% drop in profit.
Build budget scenarios. At $500,000 of revenue and a 35% target margin, the maximum cost is $325,000.
Check a supplier quote. If cost rises from $40 to $44 on a $100 product, margin falls from 60% to 56%.
Questions and Answers
Can I use this calculator to find the required selling price from a target margin?
Yes, enter your cost and target margin percentage and the calculator returns the required selling price: \(\text{Revenue} = \frac{\text{Cost}}{1 - \text{Margin}/100}\). For a $70 cost and a 30% target margin, \(\frac{70}{1 - 0.30} = \frac{70}{0.70} = 100\), so the minimum price is $100. This reverse calculation lets you set the margin first and let the formula fix the price, instead of choosing a price by feel and checking the margin afterward.
How do you calculate profit margin?
Profit margin equals profit divided by revenue, times 100: \(\text{Margin} = \frac{\text{Revenue} - \text{Cost}}{\text{Revenue}} \times 100\). For a $40 cost and a $100 price, profit is $60 and margin is 60 / 100 × 100 = 60%, so 60 cents of every revenue dollar is gross profit. Operating expenses (rent, salaries, marketing, utilities) come out of that gross profit next, which is why a business with a 60% gross margin can still post a small or negative net margin.
Is this margin calculator suitable for service businesses?
Yes, a service business simply replaces COGS with the direct cost of delivering the service: labor at its fully loaded cost (including benefits and employment taxes), subcontractors, and any materials or software used in delivery. For example, a consultant bills a project at $5,000 and the direct cost is 50 hours at a $60 fully loaded hourly cost, or $3,000. Gross margin is (5,000 - 3,000) / 5,000 = 40%. Office costs, business development time, and administration are not included, so net margin will be lower. Use gross margin to judge individual engagements and net margin to judge overall business health.
What is a good profit margin for a business?
There is no single good margin because it depends on the industry: in NYU Stern (Damodaran) data for US public companies, January 2026, gross margin runs from about 17.5% in aerospace and defense to about 71.7% in system and application software. Net margin shows the real spread: software about 25.5%, aerospace and defense 5.0%, apparel 3.9%, air transport 2.5%, and advertising slightly negative at -0.3%. Apparel shows why gross margin alone misleads: 56.9% gross but only 3.9% net after operating costs. Across all roughly 6,000 US public firms, the aggregate is about 37.8% gross and 9.7% net. Small businesses often differ from public-company averages, so track your own trend over time and compare it with peers in your niche.
What is a margin calculator and how does it help businesses?
A margin calculator finds the gross profit margin of a product or service: the percentage of revenue left after subtracting the cost of goods sold (COGS). It takes any two of the four variables (revenue, cost, profit, margin percentage) and solves for the other two. Retailers use it to check prices, manufacturers to judge production efficiency, service firms to set billable rates, and investors to compare profitability. Gross margin decides how much revenue is left to cover operating expenses and produce net profit, which makes it the starting point for pricing.
What is the difference between gross margin and net profit margin?
Gross margin counts only direct costs, while net profit margin subtracts every expense. Gross margin is \(\text{Gross Margin} = \frac{\text{Revenue} - \text{COGS}}{\text{Revenue}}\). Net margin also deducts operating costs (rent, salaries, utilities, marketing), depreciation, interest, and taxes: \(\text{Net Margin} = \frac{\text{Net Income}}{\text{Revenue}}\). A business can have a healthy 60% gross margin and still lose money if fixed costs are high, which is common in early-stage companies. This calculator computes gross margin; net margin needs a full income statement and is better handled in accounting software.
What is the difference between margin and markup?
Margin is profit as a percentage of revenue, while markup is profit as a percentage of cost: \(\text{Margin} = \frac{\text{Profit}}{\text{Revenue}}\) and \(\text{Markup} = \frac{\text{Profit}}{\text{Cost}}\). Because cost is always lower than revenue, markup is always higher than margin for a profitable product. A product costing $60 and sold at $100 has a 40% margin but a 66.7% markup. To convert, use \(\text{Markup} = \frac{m}{1 - m}\) and \(\text{Margin} = \frac{k}{1 + k}\) with \(m\) and \(k\) as decimals: a 40% margin needs a 66.7% markup, while a 40% markup gives only a 28.6% margin.
Disclaimer: This calculator is designed to provide helpful estimates for informational purposes. While we strive for accuracy, financial (or medical) results can vary based on local laws and individual circumstances. We recommend consulting with a professional advisor for critical decisions.