Margin Calculator
Calculate your profit margin, markup, and gross profit from your cost and selling price. Understand the exact difference between margin and markup to price your products or services correctly.
Product or Service Details
Enter your cost and selling price to see the margin…
The Formulas Explained
These are the standard accounting formulas used to calculate profitability.
1. Gross Profit:
Profit = Selling Price − Cost
2. Profit Margin (%):
Margin = (Profit ÷ Selling Price) × 100
Margin is the percentage of the SELLING PRICE that is profit. This is what appears on your income statement.
3. Markup (%):
Markup = (Profit ÷ Cost) × 100
Markup is the percentage of the COST added to get the selling price. This is typically used by sales and purchasing teams.
4. Revenue:
Revenue = Selling Price × Quantity
5. Cost of Goods Sold (COGS):
COGS = Cost × Quantity
Margin vs Markup Quick Reference
| Cost | Selling Price | Profit | Margin % | Markup % |
|---|---|---|---|---|
| $10.00 | $20.00 | $10.00 | 50.0% | 100.0% |
| $50.00 | $100.00 | $50.00 | 50.0% | 100.0% |
| $20.00 | $50.00 | $30.00 | 60.0% | 150.0% |
| $80.00 | $100.00 | $20.00 | 20.0% | 25.0% |
| $90.00 | $100.00 | $10.00 | 10.0% | 11.1% |
Why confusing margin and markup loses money
This is the most common pricing mistake in business. If you want a 50% profit margin on a product that costs $50, you might intuitively add 50% ($25) and price it at $75. But a $25 profit on a $75 selling price is only a 33.3% margin. To get a true 50% margin on a $50 cost, your selling price must be $100. Using markup when you should be using margin systematically underprices your products and shrinks your profits.
What is a “good” profit margin?
A “good” margin depends entirely on your industry. Software and SaaS companies often see 70-85% gross margins because replicating code costs almost nothing. Retail clothing typically sees 50-55% margins. Restaurants operate on notoriously thin margins, usually 3-9% net, though gross margins on food might be 60-65%. Grocery stores survive on 1-3% net margins but make it up in massive volume.
Gross margin vs Net margin
This calculator shows your Gross Margin, which only accounts for the direct cost of the product (materials, direct labor). Net Margin is what is left over after paying for everything else: rent, marketing, salaries, taxes, and insurance. A business might have a healthy 60% gross margin but a very thin 5% net margin if operating expenses are high.
How to use margin to set prices
To set a price based on a desired margin, use this formula: Selling Price = Cost ÷ (1 − Margin Decimal). For example, if your product costs $40 and you want a 40% margin, the calculation is: $40 ÷ (1 − 0.40) = $40 ÷ 0.60 = $66.67. Always calculate your price from your cost, never by simply adding a percentage to your cost.
The danger of racing to the bottom
Lowering prices to beat competitors often destroys profitability. If you lower your price by 10% but your margin is only 20%, you have to sell 100% more units just to make the same total profit. Instead of cutting prices, focus on increasing the perceived value of your product to justify a higher margin.
What is a Margin Calculator?
A margin calculator is a financial tool that determines how much profit a business makes on a product or service as a percentage of the selling price. By entering the cost to produce an item and the price it sells for, the calculator instantly shows the profit margin, markup, and total profitability for a given quantity.
Why accurate margin tracking matters
Profit margin is the single most important metric for understanding if a business is actually making money. A company can have millions in revenue, record-breaking sales volume, and happy customers, but if the profit margin is negative, the business is losing money on every single sale. Tracking margin ensures your pricing strategy actually covers your costs and generates a sustainable profit.
How this calculator handles quantity
While margin percentage is always the same whether you sell 1 unit or 1,000 units, the quantity field is included to calculate your total gross profit in dollars. This bridges the gap between per-unit metrics and real-world business numbers, showing you the actual dollar amount of profit you will take to the bank after a batch of sales.
Who this calculator is for
This tool is for small business owners, e-commerce sellers, freelancers, restaurateurs, and anyone who sets prices for products or services. It is equally useful for students learning accounting, buyers evaluating supplier pricing, and investors analyzing a company’s income statement. The mobile-friendly layout makes it easy to run quick pricing scenarios while on the phone with a supplier or client.
