Profit Margin Calculator
Calculate gross profit, margin percentage, and markup instantly. Three calculation modes plus batch comparison for multiple products.
Batch Mode โ Compare Multiple Products
How to calculate your profit margin
- 1Choose your calculation mode
Select "Calculate Margin" to find profit from cost and price, "Calculate Revenue" to find the selling price from cost and target margin, or "Calculate Cost" to find the maximum cost from price and margin.
- 2Enter your numbers
Type your cost price, selling price, or target margin into the fields. Select your currency symbol from the dropdown. The calculator accepts decimal values for precision.
- 3Review and compare
Click Calculate to see gross profit, margin percentage, markup percentage, and profit per unit. Use batch mode below to compare multiple products in a table.
Understanding profit margin and why it matters
Profit margin is one of the most important financial metrics for any business, whether you are running a local shop, an e-commerce store, or a multi-million-dollar enterprise. It tells you how much of every dollar in revenue you actually keep as profit after covering the cost of the goods or services you sell. Without tracking margin, you are essentially flying blind on pricing decisions.
The gross profit margin formula is straightforward: Margin = (Revenue - Cost) / Revenue ร 100. If you sell a product for $100 and it costs you $60 to produce, your gross profit is $40 and your gross margin is 40%. This number tells you that for every dollar of revenue, 40 cents is available to cover operating expenses, taxes, and ultimately net profit.
Margin vs markup: the critical distinction
One of the most common pricing mistakes in business is confusing margin with markup. Margin uses the selling price as its base, while markup uses the cost price. The formulas look similar but produce different numbers. Margin: Profit / Revenue ร 100. Markup: Profit / Cost ร 100. A 50% markup does not give you a 50% margin. In fact, a 50% markup produces only a 33.3% margin. If your business targets a 50% margin and you accidentally apply a 50% markup instead, you are leaving significant money on the table.
To convert between the two: Margin = Markup / (1 + Markup) and Markup = Margin / (1 - Margin). Our calculator shows both numbers side by side so you never have to guess which one you are looking at.
Using the three calculation modes
The โCalculate Marginโ mode is the most common use case. Enter your cost and selling price, and the tool returns your gross profit, margin percentage, markup percentage, and profit per unit. The โCalculate Revenueโ mode works in reverse โ you enter your cost and your target margin, and the tool tells you what selling price you need to hit that margin. The โCalculate Costโ mode is useful when you know the market price and your target margin, and need to determine the maximum amount you can spend on production.
Batch comparison for product lines
If you sell multiple products, batch mode lets you enter each one individually and see all their margins in a single table. This is invaluable for identifying your most and least profitable products. You might discover that a high-volume product has a dangerously thin margin, or that a slow-selling item is actually your most profitable per unit. Use this data to adjust pricing, negotiate better supplier costs, or shift marketing spend toward your highest-margin products.
Industry benchmarks to target
Gross margins vary dramatically by sector. Software and digital products typically achieve 70-90% gross margins because the marginal cost of each additional sale is nearly zero. Retail clothing runs 50-65%. Grocery and food service operates on thin 25-35% margins but compensates with volume. Manufacturing sits at 25-45% depending on the product. If your margin is significantly below industry average, it usually points to one of three problems: your cost of goods is too high, your pricing is too low, or you are competing in a race to the bottom on price when you should be differentiating on value.
Get GEO & AEO tips every week
The Layman SEO newsletter. Plain English updates on what is changing in search - SEO, AEO, and GEO - and what to do about it. One email a week. Unsubscribe any time.
No spam. No paywall content. Unsubscribe with one click.