~/profit-margin-calculator apps ← back to terminal
Profit Margin Calculator
Calculate margin, markup & break-even · pricing table · batch mode · CSV export
▸ Calculator margin mode

Enter any two values to calculate the third. Results update instantly.

Enter cost and desired markup percentage to calculate selling price.

Enter original price, discount %, and optionally your cost to see effective margin.

Enter fixed costs, variable cost per unit, and selling price to find your break-even point.

▸ Results
--%
profit margin
Markup %
--
Gross Profit
--
Revenue
--
Cost
--
Profit per Unit
--
▸ Pricing Table at different margins

Based on your cost, see selling prices at various margin levels:

Margin %Markup %Selling PriceProfit / Unit
OPERATING MARGIN CALCULATOR (ADVANCED)
▸ Operating Margin

Enter revenue, COGS, and operating expenses to calculate operating and net margin.

Gross Margin
--
Operating Margin
--
Gross Profit
--
Operating Profit
--
BULK / BATCH CALCULATOR
▸ Batch Mode

Paste products as CSV or line-by-line: product name, cost, selling price

CALCULATION HISTORY
▸ Last 10 Calculations
No calculations yet.

How to Calculate Profit Margin — Complete Guide

What is Profit Margin?

Profit margin is the percentage of revenue that remains as profit after subtracting all costs. It is one of the most important financial metrics for any business, freelancer, or entrepreneur. The profit margin formula is: Profit Margin = ((Revenue - Cost) / Revenue) × 100. A higher margin means more of every dollar you earn goes into your pocket rather than covering costs. This calculator lets you compute profit margin instantly by entering cost and revenue.

Profit Margin Formula with Examples

Suppose you buy a product for $60 and sell it for $100. Your profit is $40, and your profit margin is ($40 / $100) × 100 = 40%. If you sell a service for $200 and your total cost is $150, your margin is ($50 / $200) × 100 = 25%. The formula always divides profit by revenue (selling price), not by cost — that distinction is what separates margin from markup.

Gross Margin vs Net Margin vs Operating Margin

Gross profit margin only considers the direct cost of goods sold (COGS). Operating margin subtracts operating expenses like rent, salaries, and utilities from gross profit. Net profit margin accounts for everything including taxes, interest, and one-time charges. Gross margin shows production efficiency, operating margin shows business management efficiency, and net margin shows overall bottom-line profitability.

Markup vs Margin — What's the Difference?

Markup Formula Explained

Markup is the percentage added to the cost to arrive at the selling price. The markup formula is: Markup = ((Selling Price - Cost) / Cost) × 100. If a product costs $50 and you sell it for $80, your markup is (($80 - $50) / $50) × 100 = 60%. Markup is always calculated relative to cost, making it larger than margin for the same transaction.

Margin Formula Explained

Margin is the percentage of the selling price that is profit. The margin formula is: Margin = ((Selling Price - Cost) / Selling Price) × 100. Using the same example above ($50 cost, $80 price), margin is (($80 - $50) / $80) × 100 = 37.5%. Notice that 60% markup corresponds to only 37.5% margin. Margin is always lower than markup for positive profits.

Markup to Margin Conversion Table

Markup %Margin %Example (Cost $100)
15%13.0%Sell at $115
25%20.0%Sell at $125
33.3%25.0%Sell at $133
50%33.3%Sell at $150
75%42.9%Sell at $175
100%50.0%Sell at $200
150%60.0%Sell at $250
200%66.7%Sell at $300

What is a Good Profit Margin?

Average Profit Margins by Industry

Profit margins vary dramatically by industry. Here are typical ranges: Retail grocery (1–3%), Retail general (2–5%), Restaurants (3–9%), Manufacturing (5–15%), Construction (5–10%), E-commerce (10–30%), Consulting & professional services (15–40%), Financial services (15–35%), Software/SaaS (70–90%), and Healthcare (10–20%). Knowing your industry benchmark helps you assess whether your margins are competitive.

How to Improve Your Profit Margin

There are four main levers: reduce your cost of goods sold (COGS) by negotiating supplier prices or finding alternatives; increase your selling prices where the market allows; reduce overhead costs like rent, utilities, and subscriptions; improve operational efficiency through automation and process optimization. Even a 2–3% margin improvement can dramatically increase annual profit.

Break-Even Analysis Explained

What is the Break-Even Point?

The break-even point is the number of units you must sell (or revenue you must generate) to cover all your costs — both fixed and variable. At the break-even point, your total revenue equals your total costs, so profit is exactly zero. Selling beyond this point generates profit; selling below it means a loss.

How to Calculate Break-Even Point

The break-even formula is: Break-Even Units = Fixed Costs / (Selling Price − Variable Cost per Unit). The denominator (selling price minus variable cost) is called the contribution margin per unit. For example, with $10,000 in fixed costs, a $50 selling price, and $30 variable cost per unit: 10,000 / (50 − 30) = 500 units. You need to sell 500 units to break even.

Why Break-Even Analysis Matters for Small Business

Break-even analysis helps you set realistic sales targets, evaluate pricing decisions, and understand your cost structure. Before launching a product or service, knowing your break-even point tells you whether the venture is financially viable. It also helps when evaluating the impact of price changes or cost increases on your bottom line.

Pricing Strategies for Maximum Profit

Cost-Plus Pricing

Cost-plus pricing adds a fixed markup percentage to your cost of goods. It is the simplest pricing strategy — calculate your total cost, add your desired markup, and that is your selling price. While straightforward, it may leave money on the table if customers would pay more, or price you out if competitors charge less.

Value-Based Pricing

Value-based pricing sets prices based on the perceived value to the customer rather than the cost to produce. Software companies, consultants, and premium brands often use this strategy. It can yield much higher margins than cost-plus pricing, but requires a deep understanding of your customers and the value your product delivers.

Competitive Pricing

Competitive pricing sets your prices relative to competitors. You might match, undercut, or price slightly above competitors depending on your positioning. This approach works well in commoditized markets but can lead to price wars and thin margins. Use this calculator to model different price points and see their impact on your margin.

Keystone Pricing (100% Markup)

Keystone pricing is a simple retail strategy where you double the wholesale cost to arrive at the retail price — a 100% markup. This produces a 50% profit margin. While popular in retail, it may not work for all products. Low-volume, high-value items may need higher markups, while high-volume commodities may require lower ones.

FREQUENTLY ASKED QUESTIONS (15)

Profit Margin Calculator — FAQ

What is profit margin and how is it calculated?

Profit margin is the percentage of revenue that remains as profit after all costs are subtracted. The formula is: Profit Margin = ((Revenue - Cost) / Revenue) × 100. For example, if you sell something for $100 and it costs $60, your profit margin is 40%. This metric is essential for evaluating business health and comparing profitability across products or time periods.

What is the difference between margin and markup?

Margin is profit expressed as a percentage of the selling price (revenue), while markup is profit expressed as a percentage of cost. For the same transaction, markup is always a larger number than margin. A 100% markup equals a 50% margin. Understanding this difference is critical for accurate pricing and financial reporting.

What is a good profit margin for a small business?

A good profit margin depends on your industry. Generally, 5% is considered low, 10% is healthy, and 20% or above is excellent. Service businesses often achieve 15–40% margins, while retail operates on 2–5%. Software and SaaS companies can reach 70–90%. Compare your margin to your specific industry benchmark to gauge performance.

How do I calculate the selling price from cost and desired margin?

Use the formula: Selling Price = Cost / (1 - Desired Margin as a decimal). For example, if your cost is $60 and you want a 40% margin: $60 / (1 - 0.40) = $60 / 0.60 = $100. This means you need to sell at $100 to achieve a 40% profit margin on a $60 cost item.

What is gross profit margin vs net profit margin?

Gross profit margin only deducts the direct cost of goods sold (COGS) from revenue, showing how efficiently you produce or source products. Net profit margin deducts all expenses — operating costs, taxes, interest, depreciation — from revenue, showing your true bottom-line profitability. Most businesses track both metrics.

How to calculate markup percentage?

Markup percentage = ((Selling Price - Cost) / Cost) × 100. If a product costs $40 and you sell it for $70, the markup is (($70 - $40) / $40) × 100 = 75%. Markup tells you how much you have increased the price above your cost. Use the Markup tab in this calculator to compute it instantly.

What is the break-even point and how do I calculate it?

The break-even point is where total revenue equals total costs — no profit, no loss. Formula: Break-Even Units = Fixed Costs / (Price per Unit - Variable Cost per Unit). If your fixed costs are $10,000, price is $50, and variable cost is $30, you need to sell 500 units to break even. Use the Break-Even tab for an instant calculation with a visual chart.

How do I convert markup to margin?

To convert markup to margin, use: Margin = Markup / (1 + Markup), where both are expressed as decimals. A 50% markup (0.50) becomes 0.50 / 1.50 = 0.333 = 33.3% margin. A 100% markup equals 50% margin. The conversion is important because many businesses mistakenly confuse the two metrics.

What is the average profit margin for retail?

Average retail profit margins range from 2% to 5% for grocery stores, 5% to 10% for general retail, and 10% to 15% for specialty or luxury retail. E-commerce retail typically achieves 10% to 30% due to lower overhead. These are net margins — gross margins in retail are typically 25% to 50%.

How to calculate profit margin in Excel?

In Excel, use the formula: =(Revenue-Cost)/Revenue. For example, if cost is in cell A1 and revenue in B1: =(B1-A1)/B1. Format the cell as a percentage. For markup: =(B1-A1)/A1. This free online calculator provides the same functionality without needing a spreadsheet, plus extras like pricing tables and break-even charts.

What is a 50% markup in terms of margin?

A 50% markup translates to a 33.3% profit margin. If your product costs $100 and you add 50% markup, the selling price is $150. Margin = ($150 - $100) / $150 = 33.3%. Many business owners are surprised that a 50% markup only yields a 33.3% margin — this is one of the most common pricing misconceptions.

Is 30% profit margin good?

A 30% profit margin is considered very good for most industries. It means you keep 30 cents of every dollar earned as profit. Industries like software, consulting, and financial services routinely achieve 30%+ margins. For retail or manufacturing, 30% would be exceptional. Always compare to your specific industry benchmarks.

How do I price my products for a target margin?

To price for a target margin, use: Selling Price = Cost / (1 - Target Margin). For a 40% margin on a $60 product: $60 / 0.60 = $100. Use the Pricing Table feature in this calculator to see selling prices at margins from 10% to 80% simultaneously, helping you find the sweet spot between profitability and competitiveness.

What is contribution margin?

Contribution margin is the selling price minus the variable cost per unit. It represents the portion of each sale that contributes to covering fixed costs and generating profit. Formula: Contribution Margin = Price - Variable Cost. If you sell at $80 and your variable cost is $30, the contribution margin is $50 per unit. It is key to break-even analysis.

How does discount affect profit margin?

Discounting directly reduces your profit margin. A 20% discount on a product with a 40% margin drops the margin to 25%. Use the Discount tab to calculate exactly how much a discount erodes your margin. Before offering discounts, calculate whether the expected increase in sales volume will compensate for the lower per-unit margin.